:root {
  --paper: #faf3ed;
  --red: #860b21;
  --red-dark: #680003;
  --white: #fffaf5;
  --content: 976px;
  --display-font: "Cormorant Garamond", Georgia, serif;
  --ja-font: "FOT-TsukuOldGothic Std", "FOT-筑紫オールドゴシック Std", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* Preview only: replace with licensed TsukuOldGothic R/M when available. */
  --body-font: "FOT-TsukuGo Pro M", "FOT-筑紫ゴシック Pro M", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-font: "FOT-TsukuGo Pro", "Hiragino Kaku Gothic ProN", sans-serif;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --text-xxs: 10px;
  --heading-h1: 32px;
  --heading-h2: 72px;
  --heading-h3: 48px;
  --heading-h4: 28px;
  --heading-concept: 32px;
  --heading-concept-pair: 40px;
  --heading-work: 24px;
  --heading-member: 32px;
  --heading-company: 56px;
  --heading-contact: 88px;
  --section-space: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--red); font-family: var(--body-font); font-size: var(--text-base); font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .about-manifesto { font-family: var(--ja-font); font-weight: 700; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 10px 16px; background: var(--red); color: var(--paper); }
.skip-link:focus { top: 16px; }
section[id] { scroll-margin-top: 86px; }
.section-inner { width: min(calc(100% - 48px), 1024px); margin-inline: auto; }

@media (prefers-reduced-motion: no-preference) {
  .has-reveal .reveal { opacity: 1; transform: translateY(0); transition: opacity .85s ease var(--reveal-delay, 0s), transform .85s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0s); }
  .has-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
  .concept-pair > div:nth-child(2), .service-detail, #contact-form, .about-manifesto p:nth-child(2) { --reveal-delay: .12s; }
  .about-manifesto p:nth-child(3) { --reveal-delay: .24s; }
  .about-manifesto p:nth-child(4) { --reveal-delay: .36s; }
}

/* Figma 3044:5064: the motif and the oversized mark belong to the hero. */
.hero { height: 810px; position: relative; overflow: hidden; background: var(--paper); }
.hero-motif { position: absolute; top: -89px; left: calc(50% - 274px); width: 1175px; height: 785px; max-width: none; object-fit: contain; pointer-events: none; }
.hero h1 { position: absolute; top: 305px; left: max(5.56vw, 32px); margin: 0; color: var(--red); font-size: var(--heading-h1); line-height: 2.4; letter-spacing: .28em; }
.hero-wordmark { position: absolute; left: 50%; bottom: -4px; width: min(calc(100% - 160px), 1270px); height: auto; aspect-ratio: 1270 / 236; max-width: none; object-fit: contain; transform: translateX(-50%); }

/* In document flow below the hero; CSS sticky activates exactly at the top edge. */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 28px; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); background: var(--paper); }
.header-brand img { width: 124px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-family: var(--nav-font); font-size: var(--text-sm); letter-spacing: .09em; }
.site-header nav a:not(.nav-contact) { position: relative; }
.nav-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 24px; border-radius: 8px; background: var(--red); color: var(--paper);  }
.menu-toggle { display: none; }

.concept { min-height: 1235px; padding: 256px 24px; }
.concept h2 { margin: 0; text-align: center; font-size: var(--heading-concept); line-height: 1.8; letter-spacing: .09em; }
.concept-pair { display: flex; justify-content: center; gap: 80px; margin: 160px auto 180px; text-align: center; }
.concept-pair > div { width: 340px; }
.concept-art { width: min(100%,204px); height: auto; aspect-ratio: 3 / 2; margin: 0 auto 28px; object-fit: contain; }
.concept-pair h3 { margin: 0 0 24px; font-size: var(--heading-concept-pair); line-height: 1.8; letter-spacing: .09em; white-space: nowrap; }
.concept-pair p { margin: 0; font-size: var(--text-base); line-height: 1.8; letter-spacing: .09em; }
.concept-closing { margin: 0; text-align: center; font-size: var(--text-base); line-height: 1.9; letter-spacing: .09em; }

.services { padding: var(--section-space) 24px; }
.section-heading { text-align: center; }
.section-heading h2 { margin: 0; font-family: var(--display-font); font-size: var(--heading-h2); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.section-heading > p { margin: 50px 0 0; font-family: var(--display-font); font-size: 32px; line-height: 1; font-weight: 600; }
.service-rows { margin-top: 50px; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; min-height: 589px; padding: 80px 0; }
.service-row:last-child { min-height: 618px; }
.service-row h3 { margin: 0; font-size: var(--heading-h3); line-height: 1.8; letter-spacing: .09em; white-space: nowrap; }
.service-detail { display: flex; flex-direction: column; align-items: flex-start; }
.service-detail h4 { margin: 0 0 20px; font-size: var(--heading-h4); line-height: 1.8; letter-spacing: .09em; }
.service-detail > p { margin: 0 0 40px; font-size: var(--text-base); line-height: 1.8; letter-spacing: .09em; }
.service-examples { width: 100%; padding: 24px; border-radius: 16px; background: linear-gradient(105deg, var(--red), var(--red-dark)); color: var(--paper); }
.service-examples p { margin: 0 0 8px; font-size: var(--text-xs); line-height: 1.8; letter-spacing: .09em; }
.service-examples ul { margin: 0; padding-left: 22px; font-size: var(--text-sm); line-height: 1.8; letter-spacing: .09em; }
.service-examples li { padding-left: 2px; }

/* Works is not drawn in the referenced frame yet; these are the existing case texts. */
.works { padding: var(--section-space) 24px; }
.works-list { margin-top: 64px; border-top: 1px solid rgba(134,11,33,.35); }
.work-row { display: grid; grid-template-columns: 52px minmax(0,1.1fr) minmax(0,.9fr); gap: 24px; align-items: start; padding: 38px 0 46px; border-bottom: 1px solid rgba(134,11,33,.35); }
.work-number { font-family: var(--display-font); font-size: 24px; line-height: 1.2; }
.work-title { display: flex; flex-direction: column; gap: 10px; }
.work-category { font-family: var(--nav-font); font-size: var(--text-sm); line-height: 1.5; letter-spacing: .06em; }
.work-row h3 { margin: 0; font-size: var(--heading-work); line-height: 1.7; letter-spacing: .05em; }
.work-row p { margin: 31px 0 0; font-size: var(--text-sm); line-height: 2; letter-spacing: .04em; }

.about { padding: var(--section-space) 24px; }
.about-identity { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 128px; }
.about-identity img { width: 440px; height: auto; }
.about-identity > div { min-height: 125px; padding-left: 42px; border-left: 1px solid var(--red); }
.about-identity p { margin: 0 0 16px; font-family: var(--nav-font); font-size: 24px; line-height: 1.6; letter-spacing: .07em; }
.about-identity small { display: block; font-size: var(--text-xs); letter-spacing: .09em; }
.about-manifesto { display: flex; flex-direction: row-reverse; justify-content: center; gap: 48px; height: 560px; margin: 96px auto 0; padding: 40px 0; }
.about-manifesto p { writing-mode: vertical-rl; text-orientation: mixed; height: 480px; margin: 0; font-size: var(--text-base); line-height: 2.1; letter-spacing: .12em; }
.tatechuyoko { text-combine-upright: all; letter-spacing: 0; }
.members { margin: 200px auto 0; max-width: 976px; }
.member { display: grid; grid-template-columns: 191px 1fr; gap: 64px; align-items: center; margin-bottom: 116px; }
.member:last-child { margin-bottom: 0; }
.member-portrait { width: 191px; height: 191px; border-radius: 50%; object-fit: cover; background: #bbbbbb; }
.member h3 { margin: 0 0 6px; font-size: var(--heading-member); line-height: 1.5; letter-spacing: .09em; }
.member-role { margin: 0 0 20px !important; font-size: var(--text-sm) !important; letter-spacing: .08em; }
.member p { max-width: 700px; margin: 0; font-size: var(--text-sm); line-height: 1.8; letter-spacing: .04em; }

.company-overview { max-width: var(--content); margin: 176px auto 0; padding-top: 80px; border-top: 1px solid rgba(134,11,33,.35); }
.company-overview h3 { margin: 0 0 56px; font-family: var(--display-font); font-size: var(--heading-company); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.company-layout { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 64px; align-items: start; }
.company-photo { display: block; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; }
.company-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); }
@media (hover: hover) {
  .company-photo:hover img { filter: grayscale(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .company-photo img { transition: filter 400ms ease; }
}
.company-lead { margin: 0 0 40px; font-family: var(--ja-font); font-size: 23px; line-height: 1.75; letter-spacing: .04em; font-weight: 700; }
.company-facts { margin: 0; }
.company-facts > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 20px; padding: 16px 0; border-top: 1px solid rgba(134,11,33,.24); }
.company-facts > div:last-child { border-bottom: 1px solid rgba(134,11,33,.24); }
.company-facts dt, .company-facts dd { margin: 0; font-size: var(--text-sm); line-height: 1.7; }
.company-facts dt { white-space: nowrap; }
.company-facts ul { margin: 0; padding: 0; list-style: none; }
.company-facts li + li { margin-top: 5px; }

.join { padding: 112px 0; }
/* Figma 3051:5698: 1024px panel, 80px inset, 40px text/CTA gaps. */
.join-panel { position: relative; isolation: isolate; overflow: hidden; padding: 80px; border-radius: 16px; background: linear-gradient(to right, var(--red), var(--red-dark)); color: var(--paper); }
.join-art { position: absolute; z-index: 0; top: 28px; right: 3.7109375%; width: 42.099609375%; height: auto; max-width: none; pointer-events: none; }
.join-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.join h2 { margin: 0; font-family: var(--display-font); font-size: var(--heading-h2); line-height: 1; font-weight: 600; }
.join p { margin: 0; font-family: var(--ja-font); font-size: 24px; line-height: 1.8; letter-spacing: .09em; font-weight: 700; }
.join-cta { display: inline-block; width: 191px; padding: 12px 24px; border-radius: 8px; background: var(--paper); color: var(--red); font-family: var(--nav-font); font-size: var(--text-sm); font-weight: 700; line-height: 1.8; letter-spacing: .09em; text-align: center; white-space: nowrap; transition: transform .2s ease; }

.contact { position: relative; overflow: hidden; min-height: 1000px; padding: 270px 24px 80px; color: var(--paper); background: linear-gradient(to bottom, var(--paper) 0%, #e7cbc9 14%, #ad5f64 30%, var(--red) 52%, var(--red) 100%); }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); gap: 70px; align-items: center; width: min(100%, 976px); margin-inline: auto; }
.contact h2 { margin: 0; font-family: var(--display-font); font-size: var(--heading-contact); line-height: 1; font-weight: 600; }
.contact-jp { margin: 14px 0 52px !important; font-size: 24px !important; letter-spacing: .12em; }
.contact-copy > p:last-child { margin: 0; font-size: var(--text-base); line-height: 1.8; letter-spacing: .06em; }
#contact-form, .contact-email { padding: 48px; border: 1px solid rgba(255,250,245,.28); border-radius: 24px; background: rgba(255,250,245,.11); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.contact--email { min-height: 0; }
.contact-email p { margin: 0 0 20px; font-size: var(--text-base); line-height: 1.8; letter-spacing: .04em; }
.contact-email-link { max-width: 100%; font-family: var(--nav-font); font-size: clamp(20px,2vw,26px); line-height: 1.5; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.field { margin-bottom: 20px; }
.field label, fieldset legend { display: block; margin-bottom: 6px; font-size: var(--text-xs); line-height: 1.5; letter-spacing: .08em; }
.field em, fieldset em { display: inline-block; margin-left: 5px; padding: 1px 4px; border-radius: 2px; background: var(--paper); color: var(--red); font-size: var(--text-xxs); font-style: normal; }
.field input, .field textarea { display: block; width: 100%; min-height: 40px; border: 0; border-radius: 6px; padding: 10px 14px; background: #fff; color: #351619; font-size: var(--text-sm); line-height: 1.5; font-weight: 400; }
.contact .field input { min-height: 36px; padding-block: 7px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a99999; opacity: 1; }
fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.radio-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.radio-options label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); line-height: 1.5; white-space: nowrap; cursor: pointer; }
.radio-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.privacy-consent { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 2px 0 16px; font-size: var(--text-xs); line-height: 1.6; }
.privacy-consent input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--red); }
.privacy-consent label { cursor: pointer; }
.privacy-consent a { text-decoration: underline; text-underline-offset: 3px; }
#contact-submit { display: block; min-width: 124px; min-height: 47px; margin-inline: auto; border: 0; border-radius: 6px; background: var(--paper); color: var(--red); font-size: var(--text-sm); letter-spacing: .08em; }
.form-result { margin: 14px 0 0; font-size: var(--text-sm); line-height: 1.6; text-align: center; }

.site-footer { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; min-height: 190px; padding: 28px 32px 36px; border-top: 1px solid rgba(250,243,237,.25); background: var(--red); color: var(--paper); }
.site-footer > a img { width: 136px; height: 40px; }
.site-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-family: var(--nav-font); font-size: 14px; letter-spacing: .06em; }
.footer-contact { padding: 12px 24px; border-radius: 8px; background: var(--paper); color: var(--red); }
.site-footer small { grid-column: 1 / -1; text-align: center; font-family: var(--nav-font); font-size: 14px; letter-spacing: .07em; }

@media (max-width: 1100px) {
  :root { --heading-contact: 76px; }
  .hero-motif { left: 32%; }
  .hero-wordmark { width: calc(100% - 80px); }
  .section-inner { width: min(calc(100% - 48px), 976px); }
  .service-row { gap: 32px; }
  .contact-inner { gap: 34px; }
}

@media (max-width: 800px) {
  :root {
    --heading-concept: clamp(23px,3.4vw,31px);
    --heading-concept-pair: 30px;
    --heading-h3: 36px;
    --heading-h4: 22px;
    --heading-contact: 76px;
  }
  html { scroll-padding-top: 76px; }
  section[id] { scroll-margin-top: 76px; }
  .site-header { min-height: 62px; padding: 10px 24px; }
  .header-brand img { width: 110px; height: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 40px; margin-left: auto; border: 0; background: none; color: var(--red); }
  .menu-toggle span { display: block; height: 1px; width: 28px; margin-left: auto; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 24px; border-bottom: 1px solid var(--red); background: var(--paper); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 13px 0; font-size: 16px; }
  .site-header nav .nav-contact { margin-top: 12px; padding: 12px 20px; }
  .concept { min-height: 0; padding-block: 160px; }
  .concept-pair { gap: 40px; margin-block: 120px 170px; }
  .concept-pair p { font-size: var(--text-sm); }
  .service-detail > p { font-size: var(--text-sm); }
  .work-row { grid-template-columns: 40px 1fr; }
  .work-row p { grid-column: 2; margin-top: 0; }
  .about-identity img { width: 50%; }
  .about-identity p { font-size: 18px; }
  .about-identity small { font-size: var(--text-xxs); }
  .about-manifesto { gap: 24px; }
  .about-manifesto p { font-size: var(--text-sm); line-height: 2.2; }
  .member { gap: 40px; }
  .company-layout { gap: 36px; }
  .company-lead { font-size: 20px; }
  .company-facts > div { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
  .join-panel { padding: 56px; }
  .join p { font-size: 19px; }
  .contact { padding-top: 200px; }
  .contact-inner { grid-template-columns: 1fr; max-width: 620px; }
  .contact-copy { padding-bottom: 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .site-footer small { grid-column: 1; }
}

@media (max-width: 600px) {
  :root {
    --heading-h1: clamp(18px,5.4vw,27px);
    --heading-h2: 58px;
    --heading-h3: 34px;
    --heading-h4: 22px;
    --heading-concept: 20px;
    --heading-work: 18px;
    --heading-member: 22px;
    --heading-company: 48px;
    --heading-contact: 64px;
    --section-space: 100px;
  }
  .hero { height: 100svh; min-height: 640px; max-height: 820px; }
  .hero-motif { top: -150px; left: 20%; width: 780px; height: auto; }
  .hero h1 { top: 39%; left: 24px; line-height: 2.25; letter-spacing: .18em; }
  .hero-wordmark { bottom: 0; width: calc(100% - 24px); }
  .section-inner { width: min(calc(100% - 40px), 480px); }
  .concept { padding: 120px 0 135px; }
  .concept h2 { line-height: 2; letter-spacing: .04em; }
  .concept h2 br { display: none; }
  .concept-pair { flex-direction: column; align-items: center; gap: 72px; margin: 96px auto 112px; }
  .concept-pair > div { width: 100%; }
  .concept-art { width: min(100%,204px); margin-bottom: 24px; }
  .concept-pair h3 { margin-bottom: 12px; }
  .concept-pair p { font-size: var(--text-sm); }
  .concept-closing { font-size: var(--text-sm); }
  .services { padding: 100px 0; }
  .section-heading > p { margin-top: 24px; font-size: 24px; }
  .service-rows { margin-top: 42px; }
  .service-row, .service-row:last-child { display: block; min-height: 0; padding: 56px 0; border-top: 1px solid rgba(134,11,33,.24); }
  .service-row h3 { margin-bottom: 20px; }
  .service-detail h4 { margin-bottom: 14px; }
  .service-detail > p { margin-bottom: 28px; font-size: var(--text-sm); }
  .service-examples { padding: 22px; }
  .service-examples p { font-size: var(--text-xs); }
  .service-examples ul { font-size: var(--text-sm); }
  .works { padding: 90px 0 110px; }
  .works-list { margin-top: 48px; }
  .work-row { gap: 10px 15px; padding: 30px 0 34px; }
  .work-title { gap: 6px; }
  .work-category { font-size: var(--text-xs); }
  .work-row p { font-size: var(--text-sm); }
  .about { padding: 100px 0; }
  .about-identity { display: block; margin-top: 75px; text-align: center; }
  .about-identity img { width: min(100%,340px); margin-inline: auto; }
  .about-identity > div { width: fit-content; min-height: 0; margin: 36px auto 0; padding-left: 20px; text-align: left; }
  .about-manifesto { display: block; height: auto; margin-top: 72px; padding: 0; }
  .about-manifesto p { writing-mode: horizontal-tb; height: auto; margin: 0 0 24px; font-size: var(--text-sm); line-height: 2.2; }
  .members { margin-top: 120px; }
  .member { grid-template-columns: 94px 1fr; gap: 28px; align-items: start; margin-bottom: 64px; }
  .member-portrait { width: 94px; height: 94px; }
  .member-role { margin-bottom: 12px !important; font-size: var(--text-xs) !important; }
  .member p { font-size: var(--text-sm); }
  .company-overview { margin-top: 112px; padding-top: 60px; }
  .company-overview h3 { margin-bottom: 36px; }
  .company-layout { grid-template-columns: 1fr; gap: 36px; }
  .company-lead { margin-bottom: 30px; font-size: clamp(var(--text-base),5.1vw,20px); }
  .company-facts > div { grid-template-columns: 80px minmax(0,1fr); padding: 14px 0; }
  .company-facts dt, .company-facts dd { font-size: var(--text-sm); }
  .join { padding: 50px 0 110px; }
  .join-panel { padding: 40px 30px; }
  .join-art { top: 8px; right: -20px; width: clamp(99px,calc((100vw - 236px) * .9),138.6px); }
  .join-content { gap: 32px; }
  .join p { font-size: 16px; }
  .contact { min-height: 0; padding: 175px 20px 88px; background: linear-gradient(to bottom, var(--paper) 0%, #ca9393 14%, var(--red) 34%, var(--red) 100%); }
  .contact-inner { gap: 24px; }
  .contact-jp { margin: 6px 0 28px !important; font-size: 17px !important; }
  .contact-copy > p:last-child { font-size: var(--text-sm); }
  .contact-copy br { display: none; }
  #contact-form, .contact-email { padding: 25px 18px 30px; border-radius: 18px; }
  .radio-options { gap: 12px 16px; }
  .field textarea { min-height: 150px; }
  .site-footer { padding: 32px 22px; }
  .site-footer nav { gap: 8px 16px; font-size: var(--text-xs); }
  .footer-contact { padding: 10px 14px; }
  .site-footer small { font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Shared link and button hover motion. */
a:not(.skip-link) { display: inline-block; }
a:not(.skip-link), button { transition: translate .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:not(.skip-link):hover, button:not(:disabled):hover { translate: 0 -2px; }
}
a.nav-contact { display: inline-flex; }

.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#contact-submit:disabled { opacity: .6; cursor: wait; }
.form-result[data-error="true"] { color: #8b1b1b; }
/* SP composition follows Figma 3082:1361; menu follows 3082:1307. */
@media (max-width: 600px) {
  .hero { height: clamp(640px, 192vw, 820px); }
  .hero-motif { top: 6.528%; left: -18.667%; width: 167.2%; height: auto; }
  .hero h1 { top: 64.722%; left: 10%; font-size: 20px; line-height: 2.1; letter-spacing: .18em; }
  .hero-wordmark { width: 80%; bottom: 6.667%; }
}
@media (max-width: 800px) {
  html.menu-open { overflow: hidden; }
  .site-header nav.is-open { position: fixed; inset: 0; overflow-y: auto; min-height: 100svh; padding: max(150px, 34svh) 24px 48px; align-items: center; gap: 12px; background: var(--red); color: var(--paper); border: 0; isolation: isolate; }
  .site-header nav.is-open::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('./assets/figma-main-motif.png') center / auto 110% no-repeat; opacity: .2; }
  .site-header nav.is-open a { text-align: center; font-weight: 700; letter-spacing: .09em; }
  .site-header nav.is-open .nav-contact { width: min(100%, 327px); background: var(--paper); color: var(--red); margin-top: 12px; }
  .site-header.is-menu-open .menu-toggle { position: fixed; top: 11px; right: 24px; z-index: 52; color: var(--paper); }
  .site-header.is-menu-open .header-brand { position: fixed; top: 18px; left: 24px; z-index: 52; }
  .site-header.is-menu-open .header-brand img { content: url("./assets/figma-logo-footer.svg"); filter: none; }
}

@media (min-width: 801px) { .site-header nav .nav-privacy { display: none; } }

/* Native form semantics with shadcn-style controls in the project palette. */
.privacy-consent { align-items: center; }
.privacy-consent input,
.radio-options input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--red);
  background: transparent;
  cursor: pointer;
}
.privacy-consent input { border-radius: 4px; }
.privacy-consent input:checked {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23faf3ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.radio-options input { border-radius: 50%; }
.radio-options input:checked {
  background: radial-gradient(circle, var(--red) 0 4px, transparent 4.5px);
}
.privacy-consent input:focus-visible,
.radio-options input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.privacy-consent label { line-height: 1.6; }
@media (forced-colors: active) {
  .privacy-consent input, .radio-options input { appearance: auto; }
}

/* Keep the controls visible against Contact's primary-red background. */
.contact .radio-options input,
.contact .privacy-consent input { border-color: var(--paper); }
.contact .radio-options input:checked { background: radial-gradient(circle, var(--paper) 0 4px, transparent 4.5px); }
.contact .privacy-consent input:checked {
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23860b21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.contact .privacy-consent input:focus-visible,
.contact .radio-options input:focus-visible { outline-color: var(--paper); }

@media (max-width: 800px) {
  .site-header { transition: transform .24s ease; }
  .site-header.is-scroll-hidden { transform: translateY(-100%); pointer-events: none; }
  .site-header.is-menu-open { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* Full viewport hero and Figma member introduction. */
.hero { height: 100vh; height: 100dvh; min-height: 0; max-height: none; }
.hero h1 { top: 37.65%; }
.members { display: grid; grid-template-columns: minmax(0,1fr) clamp(160px,28.394%,360px) minmax(0,1fr); gap: 40px; align-items: center; padding-block: 40px; }
.member { display: block; min-width: 0; margin: 0; padding-block: 80px; }
.member h3 { text-align: center; font-size: 32px; line-height: 1.25; letter-spacing: .2em; margin-bottom: 8px; }
.member .member-role { text-align: center; font-size: 12px !important; margin-bottom: 24px !important; letter-spacing: .09em; }
.member p { letter-spacing: .09em; }
.members-illustration { width: 100%; min-width: 160px; max-width: 360px; height: auto; aspect-ratio: 277.127075 / 360; object-fit: contain; }
@media (max-width: 800px) {
  .members { grid-template-columns: 1fr; gap: 48px; }
  .members-illustration { grid-row: 1; justify-self: center; width: clamp(160px,74vw,360px); max-width: min(100%,360px); }
  .member { padding: 0; }
  .member h3 { font-size: 28px; }
}
@media (max-width: 600px) {
  .hero h1 { top: auto; bottom: 21%; font-size: clamp(16px,5.33vw,20px); }
}

/* SP rhythm: section 64px, related blocks 24–48px. */
.member-illustration { display: none; }
@media (max-width: 800px) {
  .members { gap: 48px; padding-block: 0; }
  .members > .members-illustration { display: none; }
  .member-illustration { display: block; position: relative; overflow: hidden; width: 118px; height: 320px; margin: 0 auto 24px; }
  .member-illustration img { position: absolute; top: 0; width: 246.33px; height: 320px; max-width: none; }
  .member-illustration--tanaka img { left: 0; }
  .member-illustration--nakatake { width: 128px; }
  .member-illustration--nakatake img { right: 0; }
}
@media (max-width: 600px) {
  :root { --section-space: 64px; }
  .concept { padding-block: 64px; }
  .concept-pair { gap: 48px; margin-block: 48px; }
  .concept-art { margin-bottom: 16px; }
  .services, .works, .about { padding-block: 64px; }
  .section-heading > p { margin-top: 20px; }
  .service-rows, .works-list { margin-top: 32px; }
  .service-row, .service-row:last-child { padding-block: 32px; }
  .service-detail > p { margin-bottom: 24px; }
  .about-identity { margin-top: 40px; }
  .about-identity > div { margin-top: 24px; }
  .about-manifesto { margin-top: 40px; }
  .about-manifesto p { margin-bottom: 20px; }
  .members { margin-top: 48px; }
  .member .member-role { margin-bottom: 16px !important; }
  .company-overview { margin-top: 64px; padding-top: 40px; }
  .company-overview h3 { margin-bottom: 24px; }
  .company-layout { gap: 24px; }
  .company-lead { margin-bottom: 24px; }
  .join { padding-block: 32px 64px; }
  .join-panel { padding: 32px 24px; }
  .join-content { gap: 24px; }
  .contact { padding-top: 112px; padding-bottom: 56px; }
  .contact-jp { margin-bottom: 20px !important; }
  .contact-inner { gap: 16px; }
}

/* Explicit mobile line breaks and one-link-per-row footer. */
.sp-break { display: none; }
@media (min-width: 601px) {
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer nav { justify-content: flex-end; flex-wrap: nowrap; gap: clamp(8px,1.7vw,24px); font-size: clamp(10px,1.3vw,14px); }
  .site-footer small { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sp-break, .concept h2 .sp-break, .concept h2 .all-break { display: initial; }
  .pc-break { display: none; }
  .concept h2 { font-size: clamp(16px,4.6vw,20px); letter-spacing: .02em; }
  .site-footer { gap: 24px; }
  .site-footer nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; font-size: 14px; }
  .site-footer nav a:not(.footer-contact) { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(250,243,237,.3); }
  .site-footer nav a:not(.footer-contact)::after { content: '→'; }
  .site-footer a.footer-contact { display: block; width: 100%; margin-top: 24px; padding: 14px 24px; text-align: center; }
}

/* Shown only after measurement is configured for the production domain. */
.measurement-consent { position: fixed; z-index: 80; inset: auto 20px 20px; display: flex; align-items: center; gap: 24px; max-width: 1000px; margin-inline: auto; padding: 24px; border: 1px solid var(--red); border-radius: 12px; background: var(--paper); color: var(--red); box-shadow: 0 8px 32px #35161922; }
.measurement-consent h2 { margin: 0 0 8px; font-size: 18px; }
.measurement-consent p { margin: 0; font-size: 12px; line-height: 1.8; }
.measurement-consent a { text-decoration: underline; }
.measurement-consent .measurement-change-note { margin-top: 8px; font-size: 11px; }
.measurement-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.measurement-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--red); border-radius: 6px; background: var(--paper); color: var(--red); font-size: 12px; }
.measurement-settings { position: fixed; z-index: 60; right: 16px; bottom: 16px; padding: 8px 12px; border: 1px solid var(--red); border-radius: 6px; background: var(--paper); color: var(--red); font-size: 11px; }
@media (max-width: 600px) {
  .measurement-consent { inset-inline: 12px; bottom: 12px; padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100dvh - 24px); overflow: auto; }
  .measurement-actions button { flex: 1; }
}
