/* Shared design values. Preserve the inspected Canva proportions. */
:root {
  --cream: #f8f3f2;
  --hero-beige: #f8f5eb;
  --green: #223d3c;
  --terracotta: #cb8f7b;
  --green-hover: #355654;
  --selection: #416b68;
  --nav-line: #f8f3f229;
  --nav-hover: #f8f3f212;
  --control-shadow: 0 2px 8px #223d3c20;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --page-width: 1366px;
  --unit: min(1vw, 13.66px);
  --section-height: calc(var(--unit)*56.22);
  --gutter: calc(var(--unit)*5.56);
  --mobile-gutter: 24px;
}

/* Base and keyboard access */
* { box-sizing: border-box; }
html { scroll-behavior:auto; background:var(--cream); scrollbar-color:var(--green) var(--cream); }
body { margin:0; color:var(--green); font-family:var(--font); -webkit-font-smoothing:antialiased; }
::selection { color:var(--cream); background:var(--selection); }
a { color:inherit; text-underline-offset:.18em; }
a:focus-visible, button:focus-visible, h2:focus-visible { outline:3px solid currentColor; outline-offset:7px; }
.skip-link { position:fixed; top:8px; left:8px; padding:12px; background:var(--cream); color:var(--green); z-index:5; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }

/* Desktop hero and navigation */
.hero, main { max-width:var(--page-width); margin-inline:auto; }
.hero { height:auto; min-height:max(var(--section-height), 100svh); display:grid; grid-template-columns:76% 24%; }
.hero-intro { position:relative; isolation:isolate; background:var(--hero-beige); }
/* Solid beige matches the original logo and headline highlight pigment. */
.hero-intro::before { content:""; position:absolute; inset:0; z-index:-1; background:var(--hero-beige); }
.brand { position:absolute; top:calc(var(--unit)*6); left:var(--gutter); width:calc(var(--unit)*34); height:auto; font-size:calc(var(--unit)*2.64); font-weight:700; line-height:1.2; display:flex; align-items:center; }
.brand { aspect-ratio:117 / 35; }
.brand, .hero-copy-line { background:transparent; box-shadow:none; }
.brand img { display:block; height:auto; mix-blend-mode:darken; }
.brand .brand-wordmark { width:78%; }
.brand .brand-doorway { width:22%; }
h1 { position:absolute; top:calc(var(--unit)*21.51); left:var(--gutter); right:var(--gutter); margin:0; font-size:calc(var(--unit)*4); line-height:1.45; letter-spacing:0; font-weight:700; }
/* Deliberate two-line headlines in both languages, without highlights. */
.hero-copy-line { white-space:nowrap; }
nav { background:var(--green); color:var(--cream); display:flex; flex-direction:column; justify-content:center; gap:14px; padding:88px 24px 48px clamp(20px,2.5vw,34px); }
nav a { display:flex; flex:1; align-items:center; justify-content:flex-end; min-height:72px; padding:16px 12px; font-size:clamp(18px,2vw,28px); line-height:1.5; font-weight:600; text-align:right; text-decoration:underline; text-decoration-color:var(--nav-line); text-decoration-thickness:1px; text-underline-offset:.35em; border:1px solid transparent; background:transparent; transition:transform 180ms ease, text-decoration-color 180ms ease; }
nav a:focus-visible { text-decoration-color:currentColor; }
@media (hover:hover) and (pointer:fine) {
  nav a:hover { text-decoration-color:currentColor; transform:translateY(-3px) scale(1.025); }
}
.menu-toggle { display:none; }

/* Shared section components */
.section {
  display:grid;
  grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);
  align-items:start;
  gap:clamp(28px, 6vw, 96px);
  padding:clamp(64px, 8vw, 122px) var(--gutter);
}
.light { background:var(--cream); color:var(--green); }
.dark { background:var(--green); color:var(--cream); }
.section h2 { font-size:clamp(26px, 3.05vw, 44px); line-height:1.28; margin:0; font-weight:700; text-wrap:balance; }
.section h2 span { display:block; margin-bottom:16px; font-size:clamp(13px, 1.12vw, 16px); line-height:1.45; letter-spacing:.08em; }
.section h2 br { display:none; }
.copy { font-size:clamp(16px, 1.46vw, 20px); line-height:1.85; overflow-wrap:anywhere; }
.copy p { margin:0 0 1.05em; }
.copy p:last-child { margin-bottom:0; }
.copy p:first-child { font-weight:600; }
:where(#website, #maps) .copy { border-top:1px solid currentColor; padding-top:22px; }

.section-with-photo { grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:clamp(28px, 5vw, 76px); row-gap:28px; }
.section-with-photo .copy { grid-column:1; }
.section-photo { display:block; grid-column:2; grid-row:1 / span 2; align-self:center; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; }
@media (min-width:701px) {
  #menus h2, #menus .copy { grid-column:2; }
  #menus .section-photo { grid-column:1; }
}

#support .copy, #contact .copy { padding:clamp(20px, 3vw, 40px); background:var(--nav-hover); border:1px solid var(--nav-line); }
.price { display:block; font-size:clamp(28px, 4vw, 54px); line-height:1.2; margin-bottom:.25em; }
#process { grid-template-columns:minmax(0, 1fr); row-gap:32px; }
#process .copy { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
#process .copy p { margin:0; padding:clamp(18px, 2.7vw, 32px); border:1px solid #223d3c40; font-weight:400; }
#process .copy p::first-line { font-weight:700; }
#contact a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  max-width:100%;
  margin-top:8px;
  padding:8px 16px;
  background:var(--cream);
  color:var(--green);
  font-weight:700;
}
#contact a:hover { background:var(--green); color:var(--cream); }

/* Persistent language control and English text metrics */
.language-toggle:not([hidden]) { position:fixed; z-index:4; top:18px; right:24px; min-height:44px; padding:10px 16px; border:1px solid var(--cream); border-radius:3px; background:var(--green); color:var(--cream); font:600 14px var(--font); cursor:pointer; box-shadow:var(--control-shadow); }
.language-toggle:hover { background:var(--green-hover); color:var(--cream); }
/* Both languages inherit the same headline size, weight, spacing and line height. */
html[lang="en"] nav a { text-align:right; }

/* Keep this 700px breakpoint aligned with script.js. */
@media (min-width:1367px) {
  /* Extend each background to the window edges without stretching the content. */
  .section { box-shadow:0 0 0 100vmax var(--section-background); clip-path:inset(0 -100vmax); }
  .light { --section-background:var(--cream); }
  .dark { --section-background:var(--green); }
  nav { width:calc(100% + (100vw - var(--page-width))/2); }
  .hero-intro::before { left:calc((var(--page-width) - 100vw)/2); }
}
@media (max-width:700px) {
  .hero { height:auto; display:block; }
  .hero-intro { min-height:100svh; padding:58px var(--mobile-gutter) 28px; }
  .brand { position:relative; top:auto; left:auto; font-size:56px; width:300px; max-width:calc(100% - 88px); }
  h1 { position:static; margin:86px 0 30px; font-size:min(44px, calc((100vw - 48px)*.068)); line-height:1.45; letter-spacing:0; }
  nav { padding:24px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  nav a, html[lang="en"] nav a { justify-content:center; min-height:80px; font-size:16px; text-align:center; line-height:1.6; }
  .section { grid-template-columns:minmax(0, 1fr); gap:24px; }
  .section { padding:50px var(--mobile-gutter); }
  .section h2 { font-size:clamp(25px, 5.8vw, 34px); }
  .section-photo { grid-column:1; grid-row:auto; }
  #process .copy { grid-template-columns:minmax(0, 1fr); }
  .menu-toggle:not([hidden]) { display:block; position:absolute; top:86px; right:24px; min-height:44px; border:1px solid var(--green); color:var(--green); background:var(--cream); padding:8px; font:inherit; font-size:13px; cursor:pointer; }
  .js nav[data-collapsed="true"] { display:none; }
  .language-toggle:not([hidden]) { top:24px; right:24px; }
}
@media (max-width:380px) {
  .brand { font-size:48px; width:260px; }
  .menu-toggle:not([hidden]), .language-toggle:not([hidden]) { right:16px; }
  .section { padding-inline:20px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  nav a:hover { transform:none; }
  * { transition:none!important; }
}

/* A small illustrative neighborhood: one reveal, then three discoveries. */
#maps { row-gap:28px; }
#maps .copy { grid-column:2; grid-row:1 / span 2; }
.neighborhood-map { grid-column:1; margin:0; width:100%; max-width:400px; }
.map-scene { position:relative; aspect-ratio:400 / 260; border-radius:14px; overflow:hidden; }
.map-streets { display:block; width:100%; height:100%; }
.neighborhood-map figcaption { margin-top:10px; font-size:12px; line-height:1.5; }
.map-place { position:absolute; display:flex; align-items:center; gap:7px; }
.map-place-one { left:10%; top:13%; --pin-delay:260ms; }
.map-place-two { left:40%; top:43%; --pin-delay:570ms; }
.map-place-three { left:17%; top:73%; --pin-delay:880ms; }
.map-pin { width:25px; height:33px; flex:none; color:var(--green); }
.map-comment { padding:7px 9px; border-radius:9px; background:var(--cream); color:var(--green); font-size:clamp(10px, 1vw, 12px); font-weight:600; line-height:1.4; box-shadow:0 3px 10px #223d3c14; }
.map-pending .map-scene, .map-pending .map-pin, .map-pending .map-comment { opacity:0; }
.map-revealed .map-scene { animation:map-reveal 600ms ease-out both; }
.map-revealed .map-pin { animation:map-pin-drop 460ms cubic-bezier(.16,1,.3,1) var(--pin-delay) both; }
.map-revealed .map-comment { animation:map-comment-in 300ms ease-out calc(var(--pin-delay) + 230ms) both; }
@keyframes map-reveal { from { opacity:0; } to { opacity:1; } }
@keyframes map-pin-drop { from { opacity:0; transform:translateY(-32px); } to { opacity:1; transform:translateY(0); } }
@keyframes map-comment-in { from { opacity:0; transform:translateX(-5px); } to { opacity:1; transform:translateX(0); } }
@media (max-width:700px) {
  #maps .copy { grid-column:1; grid-row:auto; }
  .map-comment { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .neighborhood-map .map-scene, .neighborhood-map .map-pin, .neighborhood-map .map-comment { animation:none; opacity:1; transform:none; }
}

/* Six sidebar links; primary consultation action lives in the hero. */
#navigation { gap:12px; }
#navigation a { min-height:60px; padding-block:12px; font-size:clamp(16px, 1.6vw, 22px); }
.hero-message { position:relative; margin:calc(var(--unit)*21.51) var(--gutter) 48px; }
.hero-message h1 { position:static; margin:0; line-height:1.27; }
.hero-supporting { max-width:713px; margin:26px 0 0; font-size:18px; line-height:1.85; font-weight:500; text-wrap:pretty; }
.hero-actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:24px; }
.hero-cta { display:inline-flex; align-items:center; justify-content:center; min-height:61px; padding:16px 29px; border:1px solid var(--green); border-radius:3px; font-size:17.5px; font-weight:600; line-height:1.5; text-align:center; text-decoration:none; }
.hero-cta-primary { background:var(--terracotta); border-color:var(--terracotta); color:#182e2d; }
.hero-cta-primary:hover { background:#d69f8c; border-color:#d69f8c; }
.hero-cta-secondary { background:transparent; color:var(--green); }
.hero-cta-secondary:hover { background:#f8f3f233; }
html[lang="en"] .hero-supporting { max-width:701.5px; line-height:1.7; }
@media (max-width:700px) {
  .hero-message { margin:86px 0 0; }
  .hero-message h1 { margin:0; }
  .hero-supporting { font-size:16px; margin-top:24px; }
  .hero-actions { gap:12px; }
  .hero-cta { padding:16px 22px; }
  #navigation a { min-height:80px; font-size:16px; }
}

/* Photograph hero: cream introduction above an edge-to-edge, unfiltered image. */
.hero-intro { display:grid; grid-template-rows:minmax(min-content,55fr) minmax(320px,45fr); min-height:max(800px,100svh); padding:0; }
.hero-intro::before { content:none; }
/* Top alignment keeps the logo anchored when translated text changes height. */
.hero-upper { display:flex; flex-direction:column; justify-content:flex-start; gap:18px; padding:24px var(--gutter); background:var(--hero-beige); }
.hero-upper .brand { position:relative; top:auto; left:auto; width:240px; max-width:55%; flex:none; }
.hero-upper .hero-message { margin:0; }
.hero-upper .hero-supporting { margin-top:16px; }
.hero-photo { position:relative; min-width:0; min-height:320px; margin:0; padding:0; border:0; border-radius:0; }
.hero-photo img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:75% center; filter:blur(0.5px); border:0; border-radius:0; }
.hero-photo .hero-actions { position:absolute; z-index:1; left:var(--gutter); right:var(--gutter); top:calc(61.11% + 25px); transform:translateY(-50%); margin:0; }
.hero-photo .hero-cta-secondary { background:var(--hero-beige); color:var(--green); border-color:var(--hero-beige); }
.hero-photo .hero-cta-secondary:hover { background:#e8ddda; border-color:#e8ddda; }
.hero-photo .hero-cta:focus-visible { outline:3px solid var(--cream); outline-offset:5px; box-shadow:0 0 0 8px var(--green); }
@media (min-width:1367px) {
  .hero-upper { position:relative; }
  .hero-upper::before { content:""; position:absolute; top:0; bottom:0; right:100%; width:calc((100vw - var(--page-width))/2); background:var(--hero-beige); }
  .hero-photo { margin-left:calc((var(--page-width) - 100vw)/2); }
  .hero-photo .hero-actions { left:calc(var(--gutter) + (100vw - var(--page-width))/2); }
}
@media (max-width:700px) {
  .hero-intro { min-height:0; grid-template-rows:auto auto; }
  .hero-upper { min-height:max(420px,55svh); padding:32px var(--mobile-gutter); gap:24px; }
  .hero-upper .brand { width:200px; max-width:calc(100% - 88px); }
  .hero-upper .hero-message { margin:0; }
  .hero-photo { min-height:max(340px,45svh); }
  .hero-photo img { object-position:85% center; }
  .hero-photo .hero-actions { left:var(--mobile-gutter); right:var(--mobile-gutter); }
}

/* Keep the desktop navigation beside the full page, reserving its column. */
@media (min-width:701px) {
  #navigation {
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    z-index:3;
    width:calc(min(100vw, 1366px) * .24 + max(0px, (100vw - 1366px) / 2));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  main {
    width:calc(min(100vw, 1366px) * .76);
    max-width:none;
    margin-left:max(0px, (100vw - 1366px) / 2);
    margin-right:0;
  }
  main .section { clip-path:inset(0 0 0 -100vmax); }
}
#navigation a[aria-current="location"] {
  color:var(--terracotta);
  text-decoration-color:var(--terracotta);
  border-right-color:var(--terracotta);
}
@media (min-width:701px) and (max-width:1000px) {
  main .section { grid-template-columns:minmax(0,1fr); gap:28px; }
  main .section .copy, main .section .section-photo, main #menus h2 { grid-column:1; grid-row:auto; }
}

/* About copy uses the full content column alongside the persistent sidebar. */
#about { grid-template-columns:minmax(0, 1fr); row-gap:28px; }

/* Center the About text group with equal breathing room above and below. */
#about h2 > span { color:#AD6D55; letter-spacing:.1em; }
@media (min-width:701px) {
  #about { min-height:100svh; padding-block:48px; align-content:center; }
}
@media (max-width:700px) {
  #about { padding-top:30px; }
}

/* Acquisition follows About's full-width heading and body layout. */
#website { grid-template-columns:minmax(0, 1fr); row-gap:28px; }
#website .copy { border-top:0; padding-top:0; }
@media (min-width:701px) {
  #website { min-height:100svh; padding-block:48px; align-content:center; }
}
@media (max-width:700px) {
  #website { padding-top:30px; }
}

/* Compact, open service columns with a shared heading row. */
#website { row-gap:18px; }
#website h2 > span { color:#AD6D55; letter-spacing:.1em; }
#website .acquisition-intro { margin-bottom:22px; }
.acquisition-services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:48px; row-gap:0; align-items:start; }
.acquisition-service { min-width:0; }
.acquisition-placeholder { display:block; width:100%; height:170px; object-fit:cover; margin:0; }
.acquisition-service h3 { margin:18px 0 14px; min-height:2.7em; font-size:23px; line-height:1.35; font-weight:700; }
.acquisition-body { font-size:clamp(19px,1.4vw,20px); line-height:1.48; }
#website .acquisition-body p { font-weight:400; margin:0 0 .7em; }
#website .acquisition-body p:last-child { margin-bottom:0; }
@supports (grid-template-rows:subgrid) {
  .acquisition-service { display:grid; grid-template-rows:subgrid; grid-row:span 3; }
  .acquisition-service h3 { min-height:0; }
}
@media (min-width:701px) {
  #website { padding-block:32px; }
}
@media (max-width:1000px) {
  .acquisition-services { grid-template-columns:minmax(0,1fr); row-gap:32px; }
  .acquisition-service { display:block; grid-row:auto; }
  .acquisition-service h3 { min-height:0; }
}
@media (max-width:700px) {
  .acquisition-body { font-size:18px; }
}

/* Quiet divider at the end of About, aligned with the content margins. */
#about { position:relative; }
#about::after { content:""; position:absolute; bottom:0; left:var(--gutter); right:var(--gutter); height:1px; background:rgba(34,61,60,.16); pointer-events:none; }
@media (max-width:700px) {
  #about::after { left:var(--mobile-gutter); right:var(--mobile-gutter); }
}
@media (max-width:380px) {
  #about::after { left:20px; right:20px; }
}

/* Keep both acquisition headlines on one desktop line within the content column. */
@media (min-width:701px) {
  #website h2 { font-size:min(38px, 2.7vw); white-space:nowrap; text-wrap:nowrap; }
}

/* Customer Experience shares About's full-width, text-only composition. */
#menus { grid-template-columns:minmax(0,1fr); row-gap:28px; }
#menus h2, #menus .copy { grid-column:1; grid-row:auto; }
#menus h2 > span { color:#AD6D55; letter-spacing:.1em; }
@media (min-width:701px) {
  #menus { min-height:100svh; padding-block:48px; align-content:center; }
  html[lang="ja"] #menus-title { font-size:min(44px, 2.7vw); white-space:nowrap; text-wrap:nowrap; }
}
@media (max-width:700px) {
  #menus { padding-top:30px; }
}

/* Reputation follows the same full-width, text-only section layout. */
#maps { grid-template-columns:minmax(0,1fr); row-gap:28px; }
#maps h2, #maps .copy { grid-column:1; grid-row:auto; }
#maps .copy { border-top:0; padding-top:0; }
#maps h2 > span { color:#AD6D55; letter-spacing:.1em; }
@media (min-width:701px) {
  #maps { min-height:100svh; padding-block:48px; align-content:center; }
}
@media (max-width:700px) {
  #maps { padding-top:30px; }
}

/* Ongoing Growth matches the full-width, text-only service sections. */
#support { grid-template-columns:minmax(0,1fr); row-gap:28px; }
#support h2, #support .copy { grid-column:1; grid-row:auto; }
#support .copy { padding:0; background:transparent; border:0; }
#support h2 > span { color:#AD6D55; letter-spacing:.1em; }
@media (min-width:701px) {
  #support { min-height:100svh; padding-block:48px; align-content:center; }
}
@media (max-width:700px) {
  #support { padding-top:30px; }
}

/* Consultation matches the full-width, text-only service sections. */
#contact { grid-template-columns:minmax(0,1fr); row-gap:28px; }
#contact h2, #contact .copy { grid-column:1; grid-row:auto; }
#contact .copy { padding:0; background:transparent; border:0; }
#contact h2 > span { color:#AD6D55; letter-spacing:.1em; }
#contact a { padding:0; margin-top:0; background:transparent; color:var(--green); overflow-wrap:anywhere; }
#contact a:hover { background:transparent; color:#AD6D55; }
@media (min-width:701px) {
  #contact { min-height:100svh; padding-block:48px; align-content:center; }
}
@media (max-width:700px) {
  #contact { padding-top:30px; }
}

/* Share the left content edge while keeping the existing right gutter. */
@media (min-width:701px) {
  :root {
    --content-left-gutter: max(24px, calc(var(--unit) * 2.56));
    --content-left-extension: clamp(0px, calc((100vw - var(--page-width)) * .26), 70px);
  }
  main .section, .hero-upper {
    margin-left:calc(-1 * var(--content-left-extension));
    padding-left:var(--content-left-gutter);
  }
  #about::after { left:var(--content-left-gutter); }
  .hero-photo .hero-actions {
    left:calc(var(--content-left-gutter) + max(0px, (100vw - var(--page-width)) / 2) - var(--content-left-extension));
  }
}
