:root{
  --green-deep:#2F4A3D;
  --green-mid:#4B6858;
  --green-sage:#8FA089;
  --clay:#BE7C54;
  --clay-soft:#D9A879;
  --cream:#F7F2E7;
  --cream-deep:#EFE6D3;
  --paper:#FBF8F1;
  --ink:#2A2A24;
  --ink-soft:#5B5A4E;
  --line:#DED3BC;
  /* Rails' red, pulled down a little so it sits with the cream and green rather than
     shouting over them. Reserved for Rails-specific accents. */
  --rails-red:#C4271F;
  --rails-red-soft:#F2DFDD;
  /* Deeper still, for panels. The accent red vibrates over a large area and fights
     the text on top of it; this one carries paper-coloured type the way --green-deep does. */
  --rails-red-deep:#8E2018;
  --radius:14px;
  --maxw:1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Noto Sans JP', sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.85;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
h1,h2,h3,h4{font-family:'Zen Old Mincho','Noto Serif JP',serif; letter-spacing:.02em; color:var(--green-deep); font-weight:600;}

/* ===== texture bg ===== */
.texture{
  background-image:
    radial-gradient(circle at 15% 20%, rgba(190,124,84,0.05), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(47,74,61,0.06), transparent 45%);
}

/* ===== Announcement bar =====
 * Sits above the sticky header, so it scrolls off and doesn't follow the reader down.
 * Same red and weave as the Rails upgrade panels — it reads as that page calling out. */
.announce{
  display:block; background-color:var(--rails-red-deep);
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 30px);
  transition:background-color .25s ease;
}
.announce:hover{background-color:var(--rails-red);}
.announce-inner{
  max-width:var(--maxw); margin:0 auto; padding:11px 32px;
  display:flex; align-items:center; justify-content:center; gap:16px;
  font-size:14.5px; line-height:1.6;
}
.announce-tag{
  flex-shrink:0; font-size:11px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--paper);
  background:rgba(251,248,241,0.18); padding:4px 10px; border-radius:999px;
}
.announce-text{color:#F3DFDC;}
.announce-cta{flex-shrink:0; font-weight:600; color:var(--paper); white-space:nowrap;}
.announce-cta::after{
  content:'→'; margin-left:6px; display:inline-block; transition:transform .25s ease;
}
.announce:hover .announce-cta::after{transform:translateX(3px);}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(251,248,241,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px; max-width:var(--maxw); margin:0 auto;
}
.logo{display:flex; align-items:baseline; gap:10px;}
.logo .kanji{
  font-family:'Zen Old Mincho', serif;
  font-size:26px; font-weight:600; color:var(--green-deep);
  letter-spacing:.12em;
}
.logo .romaji{
  font-size:11px; letter-spacing:.28em; color:var(--clay); font-weight:600;
  text-transform:uppercase;
}
nav{display:flex; gap:40px; align-items:center;}
nav a{
  font-size:17px; color:var(--ink-soft); font-weight:500; letter-spacing:.03em;
  position:relative; padding:4px 0;
}
nav a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1.5px;
  background:var(--clay); transition:width .25s ease;
}
nav a:hover::after{width:100%;}
nav a:hover{color:var(--green-deep);}
.nav-cta{
  background:var(--green-deep); color:var(--paper) !important;
  padding:10px 24px; border-radius:999px; font-size:15.5px;
}
.nav-cta::after{display:none;}
.nav-cta:hover{background:var(--green-mid); color:var(--paper) !important;}
.menu-btn{display:none; background:none; border:none; font-size:26px; color:var(--green-deep); cursor:pointer;}

/* ===== Hero ===== */
.hero{
  padding:76px 0 100px;
  position:relative;
  overflow:hidden;
}
.hero .wrap{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:15px; letter-spacing:.18em; color:var(--clay);
  font-weight:600; margin-bottom:28px; text-transform:uppercase;
}
.hero-eyebrow::before{content:''; width:26px; height:1px; background:var(--clay);}
.hero h1{
  font-size:clamp(38px, 6vw, 66px);
  line-height:1.5;
  margin-bottom:28px;
  color:var(--green-deep);
}
.hero h1 em{
  font-style:normal; color:var(--clay);
  background:linear-gradient(transparent 74%, var(--green-deep) 74%);
}
.hero p{
  font-size:20px; color:var(--ink-soft); max-width:520px; margin-bottom:44px;
}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:56px;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:15px 32px; border-radius:999px; font-size:17px; font-weight:600;
  letter-spacing:.03em; transition:all .25s ease; border:1px solid transparent;
}
.btn-primary{background:var(--green-deep); color:var(--paper);}
.btn-primary:hover{background:var(--green-mid); transform:translateY(-2px);}
.btn-ghost{border-color:var(--green-deep); color:var(--green-deep);}
.btn-ghost:hover{background:var(--green-deep); color:var(--paper);}
.hero-tags{display:flex; gap:12px; flex-wrap:wrap;}
.tag{
  font-size:14.5px; color:var(--green-mid); background:var(--cream-deep);
  border:1px solid var(--line); padding:8px 16px; border-radius:999px; font-weight:500;
}

/* ===== Hero visual: the issue breakdown ===== */
.hero-visual{position:relative;}
.hero-visual-shape{
  position:absolute; top:-28px; left:-24px; width:100%; height:100%;
  background-color:var(--green-deep); border-radius:28px; opacity:.9; z-index:0;
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 22px);
}
.issue-card{
  position:relative; z-index:1; overflow:hidden;
  background:var(--paper); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 30px 60px -30px rgba(47,74,61,0.35);
}
/* The Open/Closed strip is what says "issue list" before a word is read — without it this
   is just a card with rows in it. */
.issue-head{
  display:flex; align-items:center; gap:22px;
  padding:12px 16px; background:var(--cream-deep);
  border-bottom:1px solid var(--line);
}
.issue-head-item{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13px; color:var(--ink-soft);
}
.issue-head-item strong{font-weight:700; color:var(--ink-soft);}
.issue-head-item svg{width:14px; height:14px;}
.issue-head-item.is-open{color:var(--green-deep);}
.issue-head-item.is-open strong{color:var(--green-deep);}

/* Full-bleed rows divided by hairlines, the way a real list is. */
.issue-list{list-style:none; margin:0; padding:0;}
.issue{
  display:flex; align-items:flex-start; gap:10px;
  padding:13px 16px; border-bottom:1px solid var(--line);
}
.issue:last-child{border-bottom:none;}
.issue-icon{width:15px; height:15px; flex-shrink:0; margin-top:4px; color:var(--green-mid);}
.issue-body{display:flex; flex-direction:column; gap:1px; min-width:0;}
.issue-title{font-size:14.5px; font-weight:600; color:var(--green-deep); line-height:1.5;}
.issue-meta{font-size:11.5px; color:var(--ink-soft); letter-spacing:.01em;}
.issue-label{
  flex-shrink:0; margin-left:auto; align-self:center;
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:3px 10px; border-radius:999px; white-space:nowrap; border:1px solid transparent;
}
/* Two sides, two colours — the same pairing the card used before it became a list. Which
   side each issue came from is the whole point, so the labels shouldn't look alike. */
.issue-label-biz{background:var(--cream-deep); color:var(--green-mid); border-color:var(--line);}
.issue-label-dev{background:var(--green-deep); color:var(--clay-soft);}
.issue-parent .issue-title{font-size:15.5px;}

/* Sub-issues sit indented under their parent, hung off a continuous tree. */
.issue-sub{padding-left:34px; position:relative;}
.issue-sub::before{
  content:''; position:absolute; left:22px; top:-14px; width:12px; height:32px;
  border-left:1.5px solid var(--line); border-bottom:1.5px solid var(--line);
  border-bottom-left-radius:6px;
}
.issue-sub:not(:last-child)::after{
  content:''; position:absolute; left:22px; top:18px; bottom:-14px;
  border-left:1.5px solid var(--line);
}
.issue-sub .issue-icon{color:var(--clay);}
.issue-sub .issue-title{font-weight:500;}
/* ===== Qualitative strip ===== */
.stats{
  background-color:var(--green-deep); color:var(--paper); padding:64px 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(217,168,121,0.09) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-60deg, rgba(217,168,121,0.09) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(217,168,121,0.06) 0 1px, transparent 1px 30px);
}
.stats .wrap{
  display:grid; grid-template-columns:repeat(3,1fr); gap:32px; text-align:center;
}
.stat-icon{
  width:48px; height:48px; margin:0 auto 16px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(217,168,121,0.45); border-radius:50%;
  color:var(--clay-soft);
}
.stat-icon svg{width:20px; height:20px;}
.stat-label{font-size:17px; color:#CFDBD1; line-height:1.75; letter-spacing:.03em;}

/* ===== Section heading ===== */
.section{padding:110px 0;}
.section-head{max-width:900px; margin:0 auto 64px; text-align:center;}
.section-eyebrow{
  font-size:15px; letter-spacing:.18em; color:var(--clay); font-weight:600;
  text-transform:uppercase; margin-bottom:14px; display:block;
}
.section-head h2{font-size:clamp(34px,5vw,52px); line-height:1.4; margin-bottom:18px;}
.section-head p{color:var(--ink-soft); font-size:19px; max-width:660px; margin-left:auto; margin-right:auto;}

/* ===== Services ===== */
.services{background:var(--cream);}
.service-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.service-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:40px 32px; transition:transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{transform:translateY(-6px); box-shadow:0 20px 40px -20px rgba(47,74,61,0.25);}
.service-num{
  font-family:'Zen Old Mincho',serif; font-size:14px; color:var(--clay);
  letter-spacing:.1em; margin-bottom:20px; display:block;
}
.service-icon{
  width:52px; height:52px; border-radius:14px; background:var(--cream-deep);
  display:flex; align-items:center; justify-content:center; margin-bottom:24px;
  color:var(--green-deep);
}
.service-icon svg{width:24px; height:24px;}
.service-card h3{font-size:20px; margin-bottom:14px; color:var(--green-deep);}
.service-card p{font-size:16px; color:var(--ink-soft);}
.service-lead{color:var(--green-mid) !important; font-weight:600; margin-bottom:10px;}

/* Banner for the Rails upgrade page, sitting under the three service cards —
   full width and red-accented so it reads as a distinct offer, not a fourth card. */
/* Red-backed, not paper with a red edge. On cream, between three paper cards, a fourth
   pale panel sank — the one thing here that isn't part of the set has to look like it.
   Same woven texture as the site's other heavy panels, so it's loud without being foreign. */
.service-feature{
  display:flex; align-items:center; justify-content:space-between; gap:36px;
  margin-top:28px; padding:34px 36px;
  background-color:var(--rails-red-deep); border-radius:var(--radius);
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 30px);
  transition:transform .3s ease, box-shadow .3s ease;
}
.service-feature:hover{transform:translateY(-4px); box-shadow:0 24px 44px -20px rgba(142,32,24,0.5);}
/* clay-soft only manages 4.15:1 on the deep red, and this is 12.5px of tracked-out caps —
   the size that needs contrast most. Warm it toward paper. */
.service-feature-eyebrow{
  display:block; margin-bottom:10px; font-size:12.5px; font-weight:600;
  letter-spacing:.18em; color:#F0CDB6; text-transform:uppercase;
}
.service-feature h3{font-size:20px; margin-bottom:10px; color:var(--paper);}
.service-feature p{font-size:16px; color:#F3DFDC; max-width:760px;}
/* Paper on red — the button has to be the brightest thing in the panel, not a ghost of it. */
.service-feature-cta{
  flex-shrink:0; display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-size:15.5px; font-weight:600;
  background:var(--paper); color:var(--rails-red-deep);
  transition:transform .25s ease;
}
.service-feature-cta::after{content:'→';}
.service-feature:hover .service-feature-cta{transform:translateX(3px);}

/* ===== Philosophy ===== */
.philosophy{
  padding:120px 0; text-align:center; position:relative;
}
.philosophy .section-eyebrow{display:block; margin-bottom:20px;}
/* This section doesn't use the .section-head wrapper, so it had its own smaller size and
   got missed when the scale went up. It's a section heading like any other. */
.philosophy h2{font-size:clamp(34px,5vw,52px); line-height:1.4; margin-bottom:32px;}
.philosophy blockquote{
  font-family:'Zen Old Mincho',serif; font-size:clamp(20px,2.6vw,28px);
  color:var(--green-deep); line-height:1.85; max-width:760px; margin:0 auto 40px;
  font-weight:500;
}
.philosophy-body{max-width:560px; margin:0 auto 36px;}
.philosophy-body p{font-size:16.5px; color:var(--ink-soft); margin-bottom:14px;}
.philosophy .who{font-size:14px; color:var(--ink-soft); letter-spacing:.06em;}

/* ===== Company info ===== */
.company{
  background-color:var(--green-deep); color:var(--paper);
  background-image:
    repeating-linear-gradient(60deg, rgba(217,168,121,0.09) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-60deg, rgba(217,168,121,0.09) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(217,168,121,0.06) 0 1px, transparent 1px 30px);
}
.company .section-eyebrow{color:var(--clay-soft);}
.company .section-head h2{color:var(--paper);}
.company .section-head p{color:#CFDBD1;}
.info-table{
  max-width:760px; margin:0 auto; border-top:1px solid rgba(247,242,231,0.18);
}
.info-row{
  display:grid; grid-template-columns:180px 1fr; gap:24px;
  padding:22px 0; border-bottom:1px solid rgba(247,242,231,0.18);
  font-size:16px;
}
.info-row dt{color:var(--clay-soft); font-weight:600; letter-spacing:.04em;}
.info-row dd{color:#EAE6DA;}

/* ===== Google map ===== */
.google-map{
  max-width:760px; margin:56px auto 0;
  position:relative; width:100%; height:0; padding-bottom:42%;
  overflow:hidden; border-radius:var(--radius);
  border:1px solid rgba(247,242,231,0.18);
}
.google-map iframe{
  position:absolute; top:0; left:0; width:100%; height:100%; border:0;
}

/* ===== CTA ===== */
.cta{
  padding:110px 0; text-align:center; background:var(--cream);
}
.cta h2{font-size:clamp(34px,5vw,52px); line-height:1.4; margin-bottom:20px;}
.cta p{color:var(--ink-soft); margin-bottom:40px; font-size:19px;}

/* ===== Footer ===== */
footer{background:#22362B; color:#B9C4B8; padding:64px 0 32px; font-size:14.5px;}
.footer-top{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:28px;
}
.footer-logo .kanji{font-family:'Zen Old Mincho',serif; font-size:22px; color:var(--paper); letter-spacing:.1em;}
/* 株式会社 is the legal form, not the name — at the same weight it competes with 千波矢
   for the eye. Sized down and set back so the name still reads as the name. */
.footer-logo .kanji-prefix{font-size:14px; letter-spacing:.06em; opacity:.75; margin-right:6px;}
.footer-logo .romaji{font-size:11px; letter-spacing:.24em; color:var(--clay-soft); margin-top:6px; display:block;}
.footer-links{display:flex; gap:60px; flex-wrap:wrap;}
.footer-col h4{font-family:'Noto Sans JP',sans-serif; font-size:13.5px; color:var(--paper); letter-spacing:.08em; margin-bottom:16px; font-weight:600;}
.footer-col a{display:block; margin-bottom:10px; color:#B9C4B8;}
.footer-col a:hover{color:var(--clay-soft);}
.footer-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:#7E8C7C; font-size:13px;}

/* ===== Responsive ===== */
@media (max-width:860px){
  nav{position:fixed; top:73px; left:0; right:0; background:var(--paper);
    flex-direction:column; align-items:flex-start; padding:24px 32px; gap:22px;
    border-bottom:1px solid var(--line); transform:translateY(-140%); transition:transform .3s ease;}
  nav.open{transform:translateY(0);}
  .menu-btn{display:block;}
  /* The announcement has to stay one line here or it stops being a bar. Drop the label and
     the second sentence; the first one carries it on its own. */
  .announce-inner{gap:12px; padding:10px 20px; font-size:13.5px;}
  .announce-tag, .announce-more{display:none;}
  .service-grid{grid-template-columns:1fr;}
  .service-feature{flex-direction:column; align-items:flex-start; gap:24px; padding:28px 26px;}
  .stats .wrap{grid-template-columns:1fr; gap:32px;}
  .info-row{grid-template-columns:1fr; gap:6px;}
  .google-map{padding-bottom:75%; margin-top:40px;}
  .footer-top{flex-direction:column;}
  .hero{padding:56px 0 60px;}
  .hero .wrap{grid-template-columns:1fr; gap:64px;}
  .hero p{max-width:100%;}
  .hero-visual{margin:0 12px;}
  .hero-visual-shape{display:none;}
  /* The translate card restates what the lede just said. On a phone that's a screen of
     scrolling between the headline and the buttons, for no new information. */
  .hero-visual-illustration{display:none;}
  .section{padding:72px 0;}
}
