@charset "UTF-8";

:root {
  color-scheme: light dark;
  --navy: #1a2b5e;
  --teal: #1a8c8c;
  --green: #2b6a59;
  --background: #f7f8f6;
  --surface: #edf0ed;
  --text: #252d35;
  --muted: #57616b;
  --line: #cdd3d4;
  --accent: var(--navy);
  --accent-ink: var(--navy);
  --on-accent: #ffffff;
  --footer: var(--navy);
  --footer-text: #f7f8f6;
  --radius: 3px;
  --font-body: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
  --font-heading: "Shippori Mincho", "Yu Mincho", serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --content-width: 1200px;
  --gutter: clamp(24px, 6.1vw, 84px);
  --section-space: clamp(80px, 9.4vw, 128px);
  --shadow: 0 18px 48px rgb(26 43 94 / 10%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font-body); font-size: 17px; font-weight: 400; line-height: 1.95; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
body.page-marketing { --accent: var(--teal); --accent-ink: #126c6c; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.65; letter-spacing: .055em; overflow-wrap: normal; }
h2 { font-size: clamp(28px, 2.65vw, 38px); }
h3 { font-size: 25px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
button { font: inherit; color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 6px; }
[hidden] { display: none !important; }
ul, ol { padding: 0; margin: 0; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.surface-section { background: var(--surface); }
.latin, .step-number { font-family: var(--font-display); }
.ph { display: inline-block; width: 1em; flex-shrink: 0; font-size: 24px; line-height: 1; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 20px; background: var(--background); color: var(--accent-ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 144px; display: flex; align-items: flex-start; justify-content: space-between; padding-top: 30px; gap: 32px; }
.brand { display: block; width: 196px; flex-shrink: 0; border-radius: var(--radius); }
.brand img { width: 100%; }
.primary-nav { display: flex; align-items: flex-start; gap: 30px; }
.primary-nav > a { writing-mode: vertical-rl; min-width: 30px; min-height: 44px; padding-inline: 3px; letter-spacing: .12em; font-size: 17px; line-height: 1.65; }
.primary-nav > a[aria-current="page"] { color: var(--accent-ink); border-right: 2px solid var(--accent); }
.primary-nav > .language-link { writing-mode: horizontal-tb; border: 1px solid var(--line); padding: 3px 13px; min-width: 84px; display: grid; place-items: center; letter-spacing: 0; }
.menu-toggle { display: none; }
.hero-home { text-align: center; padding-top: 24px; padding-bottom: 76px; }
.eyebrow { color: var(--accent-ink); font-size: 17px; font-weight: 500; letter-spacing: .1em; margin-bottom: 23px; }
.hero-home h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.55; letter-spacing: .085em; }
.hero-emphasis { color: var(--accent-ink); font-size: 1.2em; }
.hero-emphasis .latin { font-size: 1.24em; font-weight: 500; }
.hero-sub { font-size: 21px; line-height: 1.95; margin-top: 22px; }
.hero-note { color: var(--muted); margin: 20px auto 0; max-width: 680px; }
.button-group { display: flex; justify-content: center; align-items: stretch; gap: 16px; margin-top: 30px; }
.button { border: 1px solid transparent; border-radius: var(--radius); min-height: 58px; padding: 13px 25px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; font-weight: 700; line-height: 1.7; }
.button-primary { background: var(--accent); color: var(--on-accent); }
/* The specified teal is too light for white body-sized labels; dark ink keeps the brand color intact. */
.page-marketing { --on-accent: #061010; }
.button-secondary { border-color: var(--line); color: var(--accent-ink); }
.button .ph { font-size: 20px; }
.divisions { border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; margin-bottom: 64px; }
.section-intro > p { color: var(--muted); max-width: 520px; }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.division-card { display: flex; flex-direction: column; min-width: 0; }
.division-label { font-size: 17px; border-left: 3px solid var(--teal); padding-left: 15px; line-height: 1.65; }
.division-backoffice .division-label { border-color: var(--green); }
.division-card h3 { font-size: clamp(28px, 2.6vw, 36px); margin: 24px 0 28px; }
.division-card figure img { width: 100%; aspect-ratio: 1.6; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { font-size: 17px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.service-list { list-style: none; margin: 23px 0 30px; }
.service-list li { padding-block: 13px; border-bottom: 1px solid var(--line); }
.service-list li span { display: block; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--accent-ink); padding: 10px 0; border-bottom: 1px solid var(--accent-ink); font-weight: 500; line-height: 1.7; min-height: 44px; }
.text-link .ph { font-size: 21px; }
.division-card .text-link { margin-top: auto; align-self: flex-start; min-width: 180px; }

.photo-scene { height: 100svh; min-height: 540px; position: relative; }
.scene-window { width: 100%; height: 100%; position: relative; overflow: hidden; isolation: isolate; }
.scene-window > img { width: 100%; height: 100%; object-fit: cover; }
.scene-shade { position: absolute; inset: 0; background: rgb(8 16 20 / 58%); }
.scene-copy { position: absolute; inset: 0; padding: 48px 24px; display: grid; align-content: center; text-align: center; color: #fff; font: 500 clamp(30px, 3.5vw, 48px)/1.9 var(--font-heading); letter-spacing: .12em; }
.scene-note { position: absolute; bottom: 25px; left: var(--gutter); right: var(--gutter); color: #fff; font-size: 17px; }
.scene-salon img { object-position: center 55%; }
.mobile-break { display: none; }
/* Motion consumes only the photo's entrance, without a pinned section or extra scroll length. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene-window { animation: scene-open linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes scene-open { from { clip-path: inset(8% 6% round 3px); } to { clip-path: inset(0 round 3px); } }
  }
}

.section-heading { margin-bottom: 48px; }
.section-heading p { margin-top: 22px; color: var(--muted); }
.heading-rule { display: block; width: 44px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.steps { list-style: none; display: grid; gap: 36px; }
.steps-three { grid-template-columns: repeat(3, 1fr); }
.steps-four { grid-template-columns: repeat(4, 1fr); gap: 30px; }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; }
.step-number { display: block; font-size: 52px; color: var(--accent-ink); line-height: 1.15; font-weight: 400; }
.steps h3 { margin: 18px 0 16px; }
.steps p { color: var(--muted); }
.editorial-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.promise-list article { display: flex; gap: 26px; padding-block: 29px; border-top: 1px solid var(--line); }
.promise-list article:last-child { border-bottom: 1px solid var(--line); }
.promise-list .ph { font-size: 28px; color: var(--accent-ink); padding-top: 8px; }
.promise-list h3 { font-size: 24px; margin-bottom: 10px; }
.promise-list p { color: var(--muted); }
.founder-name { font-family: var(--font-heading); font-size: 32px; line-height: 1.8; }
.founder-name span { display: block; font-family: var(--font-body); font-size: 17px; color: var(--muted); margin-top: 7px; }
.credential { color: var(--accent-ink); font-weight: 500; margin: 22px 0 16px; }
.career-list { list-style: none; color: var(--muted); }
.career-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.career-list li::before { content: ""; width: 4px; height: 4px; background: var(--accent-ink); position: absolute; top: 16px; left: 0; }
.founder-statement { font: 500 23px/1.9 var(--font-heading); padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.heading-with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.heading-with-link > .text-link { flex-shrink: 0; }
.works-grid { display: grid; }
.works-three { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.works-two { grid-template-columns: 1fr 1fr; gap: 64px 36px; }
.work-card { min-width: 0; }
.work-card > img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.work-card figcaption { color: var(--text); font-family: var(--font-heading); font-size: 20px; margin-top: 20px; }
.work-card h3 { margin: 22px 0 12px; font-size: 23px; }
.work-card p { color: var(--muted); }
.examples-note { color: var(--muted); padding-top: 36px; margin-top: 44px; border-top: 1px solid var(--line); }
.entrances { display: grid; grid-template-columns: 1fr 1fr; padding-block: 64px; gap: 48px; }
.entrances > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); padding-block: 28px; }
.entrances h2 { font-size: 23px; }
.entrances p { color: var(--muted); margin-top: 8px; }
.entrances .ph { color: var(--accent-ink); }
.contact-section { text-align: center; padding-block: 80px 116px; }
.contact-section .heading-rule { margin-inline: auto; }
.contact-section h2 { font-size: clamp(30px, 3.4vw, 46px); }
.contact-section p { margin: 24px auto 32px; color: var(--muted); max-width: 720px; }
.contact-section .button { min-width: 250px; }
.site-footer { background: var(--footer); color: var(--footer-text); padding: 56px 0 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 15px; font-size: 20px; flex-shrink: 0; }
.footer-brand img { width: 44px; height: 44px; }
.footer-nav { display: flex; gap: 12px 26px; flex-wrap: wrap; }
.footer-nav a, .footer-bottom a { padding-block: 8px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 25%); margin-top: 42px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-bottom small { font-size: 17px; }
.footer-bottom > div { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer :focus-visible { outline-color: #fff; }
.floating-contact { position: fixed; bottom: 24px; right: 24px; z-index: 10; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 60px; padding: 15px 24px; border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow); }
/* Focus always wins over observer state, so a keyboard user never loses their active link. */
.floating-contact.is-hidden:not(:focus-within) { visibility: hidden; }
.floating-contact .ph { font-size: 20px; }

.hero-marketing { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; padding-block: 30px 60px; }
.hero-marketing h1 { font-size: clamp(38px, 3.7vw, 53px); line-height: 1.65; }
.hero-marketing .hero-sub { font-size: 18px; margin-top: 24px; }
.hero-marketing .button-group { justify-content: flex-start; }
.hero-marketing .button { padding-inline: 21px; gap: 20px; }
.hero-marketing .eyebrow { letter-spacing: .04em; }
.device-composition { padding-top: 35px; }
.device-stage { position: relative; padding: 0 0 75px 40px; }
.desktop-preview { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.phone-preview { position: absolute; left: 0; bottom: 0; width: 25%; border: 5px solid #252d35; border-radius: var(--radius); box-shadow: var(--shadow); }
.device-composition figcaption { margin-top: 20px; text-align: right; }
.pain-section { padding-block: 80px; }
.pain-section h2 { text-align: center; }
.pain-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.pain-list li { text-align: center; padding-inline: 20px; }
.pain-list li + li { border-left: 1px solid var(--line); }
.pain-list .ph { color: var(--accent-ink); display: block; font-size: 32px; margin-bottom: 20px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 64px; }
.service-item { border-top: 1px solid var(--line); padding-top: 24px; }
.service-top { display: flex; justify-content: space-between; align-items: center; color: var(--accent-ink); margin-bottom: 22px; }
.service-top .ph { font-size: 32px; }
.service-item h3 { font-size: 27px; margin-bottom: 18px; }
.service-item > p { color: var(--muted); }
.service-item .service-note { border-left: 2px solid var(--accent); padding-left: 18px; margin-top: 22px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 24px 34px 24px 0; position: relative; list-style: none; font-weight: 500; font-size: 19px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; position: absolute; top: 24px; right: 5px; color: var(--accent-ink); font-size: 24px; line-height: 1.5; }
.faq-list details[open] summary::after { content: "−" / ""; }
.faq-list details p { padding-bottom: 26px; color: var(--muted); }
.bridge { display: flex; justify-content: space-between; align-items: center; padding-block: 30px; gap: 32px; border-block: 1px solid var(--line); }
.bridge p { font-family: var(--font-heading); font-size: 25px; }
.bridge .text-link { flex-shrink: 0; }

@media (hover: hover) {
  .primary-nav a:hover, .footer-nav a:hover, .footer-bottom a:hover { text-decoration: underline; }
  .button-primary:hover, .floating-contact:hover { filter: brightness(1.12); }
  .button-secondary:hover { background: var(--surface); border-color: var(--accent-ink); }
  .text-link:hover { border-bottom-width: 2px; padding-bottom: 9px; }
  .entrances > a:hover h2 { text-decoration: underline; }
  .faq-list summary:hover { color: var(--accent-ink); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .floating-contact { transition: background-color .2s, filter .2s; }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #141a21; --surface: #1c242d; --text: #edf0f3; --muted: #b6bfc8; --line: #46515d; --accent: #adbef0; --accent-ink: #adbef0; --on-accent: #141e39; --footer: #101723; --shadow: 0 18px 48px rgb(0 0 0 / 20%); --teal: #4fb8b8; --green: #6fb9a3; }
  body.page-marketing { --accent: #75ceca; --accent-ink: #75ceca; --on-accent: #102a2a; }
}
@media (min-width: 1440px) {
  .hero-home { padding-block: 44px 100px; }
}
@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .hero-marketing { gap: 24px; }
  .hero-marketing h1 { font-size: 40px; }
  .hero-marketing .button-group { gap: 10px; }
  .hero-marketing .button { padding-inline: 15px; gap: 12px; }
  .editorial-grid { gap: 48px; grid-template-columns: .7fr 1.3fr; }
  .section-intro { gap: 40px; }
  .division-grid { gap: 32px; }
  .steps-four { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column-reverse; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .hero-marketing { grid-template-columns: 1fr; }
  .device-composition { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --section-space: 80px; }
  html { scroll-padding-bottom: 84px; }
  body { padding-bottom: 72px; }
  .site-header { min-height: 100px; padding-top: 24px; flex-wrap: wrap; gap: 24px; align-items: flex-start; position: relative; }
  .brand { width: 160px; margin-top: 4px; }
  .primary-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); padding-bottom: 24px; }
  .primary-nav > a { writing-mode: horizontal-tb; padding: 12px 8px; min-height: 48px; border-bottom: 1px solid var(--line); letter-spacing: 0; }
  .primary-nav > a[aria-current="page"] { border-right: 0; border-bottom: 2px solid var(--accent); }
  .primary-nav > .language-link { border: 0; border-bottom: 1px solid var(--line); display: block; }
  .site-header.menu-ready .menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; padding: 5px 10px; cursor: pointer; }
  .site-header.menu-ready .primary-nav:not(.is-open) { display: none; }
  .hero-home { padding-top: 34px; padding-bottom: 64px; }
  .hero-home h1 { font-size: clamp(25px, 5.9vw, 43px); letter-spacing: .045em; }
  .hero-emphasis { font-size: 1.7em; }
  .hero-home .hero-sub { font-size: 20px; margin-top: 24px; text-wrap: balance; }
  .hero-note { text-wrap: pretty; margin-top: 24px; }
  .hero-note br { display: none; }
  .eyebrow { margin-bottom: 26px; font-size: 17px; }
  .button-group { gap: 12px; margin-top: 28px; }
  .button { padding: 13px 16px; gap: 17px; }
  .hero-home .button { flex: 1; padding-inline: 10px; gap: 10px; white-space: nowrap; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .division-grid { grid-template-columns: 1fr; gap: 64px; }
  .division-card h3 { font-size: 30px; }
  .division-label { font-size: 17px; padding-left: 12px; }
  .division-card .text-link { min-width: 180px; }
  .photo-scene { min-height: 480px; }
  .scene-copy { font-size: clamp(26px, 5vw, 34px); letter-spacing: .06em; }
  .scene-note { bottom: 24px; font-size: 17px; }
  .mobile-break { display: initial; }
  .section-heading { margin-bottom: 36px; }
  .steps-three, .steps-four { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; }
  .steps .step-number { grid-row: span 2; font-size: 44px; }
  .steps h3 { margin: 0 0 14px; }
  .steps p { grid-column: 2; }
  .editorial-grid { grid-template-columns: 1fr; gap: 0; }
  .promise-list article { gap: 18px; padding-block: 24px; }
  .promise-list h3 { font-size: 22px; }
  .founder-name { font-size: 30px; }
  .founder-statement { font-size: 21px; }
  .heading-with-link { align-items: flex-start; flex-direction: column; gap: 20px; }
  .works-three, .works-two { grid-template-columns: 1fr; gap: 44px; }
  .work-card h3 { font-size: 22px; }
  .entrances { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .entrances h2 { font-size: 21px; }
  .contact-section { padding-block: 56px 80px; }
  .contact-section h2 { font-size: 29px; letter-spacing: .025em; }
  .contact-section p br { display: none; }
  .site-footer { padding-top: 40px; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; width: 100%; }
  .footer-bottom { margin-top: 28px; gap: 24px; }
  .footer-bottom > div { flex-direction: column; gap: 8px; }
  .floating-contact { bottom: 0; right: 0; width: 100%; min-height: 64px; padding-bottom: max(18px, env(safe-area-inset-bottom)); border-radius: 0; }
  .hero-marketing { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 64px; }
  .hero-marketing h1 { font-size: clamp(35px, 7.2vw, 48px); }
  .hero-marketing .eyebrow { font-size: 17px; }
  .hero-marketing .hero-sub { font-size: 17px; }
  .hero-marketing .hero-sub br { display: none; }
  .hero-marketing .button { flex: 1; padding-inline: 10px; gap: 12px; }
  .hero-marketing .button-group { display: grid; grid-template-columns: .85fr 1.15fr; }
  .hero-marketing .button { padding-inline: 8px; gap: 8px; white-space: nowrap; }
  .device-composition { padding-top: 12px; }
  .device-stage { padding: 0 0 58px 32px; }
  .phone-preview { width: 26%; border-width: 3px; }
  .device-composition figcaption { text-align: left; }
  .pain-section { padding-block: 64px; }
  .pain-section h2 { text-align: left; font-size: 27px; }
  .pain-list { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .pain-list li { display: flex; gap: 20px; text-align: left; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
  .pain-list li + li { border-left: 0; }
  .pain-list .ph { margin: 0; }
  .pain-list p br { display: none; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-item h3 { font-size: 24px; }
  .faq-list summary { font-size: 18px; }
  .bridge { flex-direction: column; align-items: flex-start; gap: 20px; }
  .bridge p { font-size: 23px; }
}

/* Japanese body copy breaks at phrase boundaries on narrow screens (Chrome/Edge), so lines never split mid-word like 「あなたにし／かできない」. */
:lang(ja) :is(h2, h3, p, li, dt, dd, summary, figcaption) { word-break: auto-phrase; }
/* Keep keyboard focus from landing under the floating contact button at any width (WCAG 2.4.11). */
html { scroll-padding-bottom: 100px; }

/* Round 2 keeps the same spacing and typography, with narrower measures for long reading. */
body.page-backoffice { --accent: #2b6a59; --accent-ink: #2b6a59; }
.page-hero { padding-block: 42px 72px; }
.page-hero h1 { font-size: clamp(32px, 3.8vw, 52px); }
.page-lead { max-width: 800px; margin-top: 26px; color: var(--muted); font-size: 19px; }
.page-content { padding-bottom: var(--section-space); }
.section-ruled { border-top: 1px solid var(--line); }
.hero-photo img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: 16px; }
.hero-backoffice h1 { font-size: clamp(34px, 3.2vw, 46px); }
.services-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.role-grid, .next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.role-card, .content-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.role-nodavis { border-top: 3px solid var(--accent); padding-top: 30px; background: var(--surface); }
.role-card h3, .content-card h3 { margin-bottom: 20px; }
.content-list { padding-left: 1.3em; }
.content-list li + li { margin-top: 10px; }
.component-note { color: var(--muted); margin-top: 26px; }
.content-card p { color: var(--muted); margin-bottom: 26px; }
.prose > * + * { margin-top: 24px; }
.statement { font: 500 clamp(24px, 2.3vw, 32px)/1.85 var(--font-heading); }
.works-gallery .work-card h2 { font-size: 23px; margin: 22px 0 12px; }
.info-table { border-collapse: collapse; table-layout: fixed; width: 100%; text-align: left; }
.info-table th, .info-table td { padding: 25px 28px; border-block: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 30%; font-weight: 500; background: var(--surface); }
.info-table td { overflow-wrap: anywhere; }
.info-table br { display: block; content: ""; margin-top: 12px; }
.inline-link { color: var(--accent-ink); text-decoration: underline; }
.empty-state { display: flex; gap: 20px; align-items: center; padding: 32px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state .ph { color: var(--accent-ink); font-size: 30px; }
.checklist, .fact-list { list-style: none; }
.checklist li { display: flex; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .ph { color: var(--accent-ink); margin-top: 6px; }
.fact-list li { padding-block: 22px; border-top: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.link-stack { display: grid; gap: 20px; justify-items: start; }
.legal-content { max-width: 840px; }
.legal-content section { padding-block: 36px; border-top: 1px solid var(--line); }
.legal-content h2 { font-size: 25px; margin-bottom: 18px; }
.policy-date { margin-top: 28px; color: var(--muted); }
.job-card { padding: 48px; margin-top: 40px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.job-card h3 { font-size: clamp(26px, 3vw, 36px); }
.job-lead { margin-top: 24px; max-width: 800px; }
.job-details { margin: 36px 0; }
.job-details > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.job-details > div:last-child { border-bottom: 1px solid var(--line); }
.job-details dt { color: var(--accent-ink); font-weight: 700; }
.job-details dd { margin: 0; }
.job-card .button { text-align: left; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-container { max-width: 800px; }
.contact-form { border-top: 1px solid var(--line); padding-top: 40px; }
.form-field { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.form-field > label, .form-field legend { display: block; font-weight: 500; margin-bottom: 12px; padding: 0; }
.field-status { display: inline-block; margin-left: 14px; color: var(--muted); font-size: 17px; font-weight: 400; }
input, textarea { font: inherit; color: var(--text); accent-color: var(--accent); }
.form-field > input, .form-field textarea { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 12px 15px; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--background); line-height: 1.7; }
.form-field textarea { resize: vertical; }
.radio-options { display: grid; gap: 8px; }
.choice-label { display: flex; gap: 14px; align-items: flex-start; min-height: 44px; padding-block: 6px; cursor: pointer; }
.choice-label input { flex: 0 0 22px; width: 22px; height: 22px; margin: 6px 0 0; cursor: pointer; }
.privacy-choice label { cursor: pointer; }
.field-error { color: #a32f2b; margin-top: 10px; }
[aria-invalid="true"] { border-color: #a32f2b !important; }
.form-submit { border-top: 1px solid var(--line); padding-top: 8px; }
.form-submit .button { min-width: 240px; margin-top: 24px; cursor: pointer; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; color: #a32f2b; }
.form-followup { margin-top: 40px; color: var(--muted); }
:lang(ja) :is(h1, th, td, label, legend) { word-break: auto-phrase; }
@media (prefers-color-scheme: dark) {
  body.page-backoffice { --accent: #6fb9a3; --accent-ink: #6fb9a3; --on-accent: #102b23; }
  .field-error, .form-status { color: #ffaaa4; }
  [aria-invalid="true"] { border-color: #ffaaa4 !important; }
}
@media (max-width: 960px) {
  .services-three { grid-template-columns: 1fr; }
  .hero-photo { max-width: 640px; width: 100%; margin-inline: auto; }
  .hero-photo img { aspect-ratio: 1.5; }
}
@media (max-width: 760px) {
  .page-hero { padding-block: 32px 48px; }
  .page-hero h1 { font-size: clamp(30px, 7vw, 42px); letter-spacing: .035em; }
  .page-lead { font-size: 17px; margin-top: 22px; }
  .role-grid, .next-grid { grid-template-columns: 1fr; gap: 24px; }
  .role-card, .content-card { padding: 24px; }
  .role-nodavis { padding-top: 22px; }
  .works-gallery .work-card h2 { font-size: 22px; }
  /* Stack each row without a sideways scroller; HTML keeps row headers associated with values. */
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding: 18px 20px 10px; }
  .info-table td { border: 0; padding: 12px 20px 24px; }
  .info-table tr:last-child { border-bottom: 1px solid var(--line); }
  .empty-state { align-items: flex-start; padding: 24px; }
  .empty-state .ph { margin-top: 5px; }
  .legal-content h2 { font-size: 23px; }
  .job-card { padding: 28px 20px; }
  .job-details > div { grid-template-columns: 1fr; gap: 14px; }
  .job-card .button { width: 100%; gap: 16px; padding-inline: 14px; }
  .form-submit .button { width: 100%; }
  body.page-contact { padding-bottom: 0; }
}

/* English shares the components, but needs horizontal navigation and a Latin reading rhythm. */
html:lang(en) { --font-heading: var(--font-display); }
html:lang(en) body { --font-body: "Zen Kaku Gothic New", Arial, sans-serif; line-height: 1.8; }
html:lang(en) :is(h1, h2, h3, .scene-copy, .statement, .founder-statement) { letter-spacing: 0; line-height: 1.25; text-wrap: pretty; }
html:lang(en) .primary-nav > a { writing-mode: horizontal-tb; letter-spacing: 0; }
html:lang(en) .primary-nav > a[aria-current="page"] { border-right: 0; border-bottom: 2px solid var(--accent); }
html:lang(en) .primary-nav { gap: clamp(16px, 2vw, 28px); }
html:lang(en) .primary-nav > a { padding-block: 8px; }
html:lang(en) .hero-home h1 { font-size: clamp(48px, 6vw, 82px); line-height: 1.08; }
html:lang(en) .hero-emphasis { font-size: 1em; }
html:lang(en) .hero-marketing h1 { font-size: clamp(40px, 4.2vw, 58px); line-height: 1.12; }
html:lang(en) .hero-marketing .button { gap: 16px; }
html:lang(en) .hero-note { max-width: 620px; }
html:lang(en) .scene-copy { line-height: 1.4; }
html:lang(en) .statement, html:lang(en) .founder-statement { line-height: 1.5; }
html:lang(en) .footer-nav { justify-content: flex-end; }
@media (min-width: 761px) and (max-width: 1100px) {
  html:lang(en) .site-header { flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
  html:lang(en) .primary-nav { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  html:lang(en) .primary-nav { gap: 0; }
  html:lang(en) .primary-nav > a { padding: 12px 8px; }
  html:lang(en) .hero-home .button-group,
  html:lang(en) .hero-marketing .button-group { display: flex; flex-direction: column; }
  html:lang(en) .hero-home h1 { font-size: clamp(48px, 10vw, 72px); }
  html:lang(en) .hero-marketing h1 { font-size: clamp(40px, 8vw, 54px); }
  html:lang(en) .footer-nav { justify-content: start; }
}

/* Founder name is an image (owner wants it visible but not searchable); height in em matches the line box it replaces. */
.name-img { display: inline-block; vertical-align: top; width: auto; height: 1.8em; }
.info-table .name-img { height: 1.95em; }
html:lang(en) .info-table .name-img { height: 1.8em; }

/* Keep the desk visible and reserve the dark wall for the back-office copy. */
.page-backoffice .backoffice-scene { height: clamp(480px, 48vw, 680px); min-height: 0; }
.page-backoffice .backoffice-scene .scene-shade { background: linear-gradient(90deg, rgb(8 16 20 / 22%), transparent 65%), linear-gradient(0deg, rgb(8 16 20 / 65%), transparent 24%); }
.page-backoffice .backoffice-scene .scene-copy { inset: 22% auto auto max(var(--gutter), calc((100% - var(--content-width)) / 2)); width: 42%; padding: 0; text-align: left; font-size: clamp(28px, 3vw, 40px); }
/* Phrase segmentation splits 慌てない|日に on phones; keep the phrase whole. */
.page-backoffice .backoffice-scene .scene-copy span { display: inline-block; }
.page-backoffice .backoffice-scene .scene-note { left: max(var(--gutter), calc((100% - var(--content-width)) / 2)); }
.page-backoffice .backoffice-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 72px); }
.page-backoffice .backoffice-review > * { min-width: 0; }
.page-backoffice .backoffice-review .section-heading { margin-bottom: 28px; }
.page-backoffice .backoffice-review-photo img { width: 100%; height: auto; border-radius: var(--radius); }

@media (max-width: 760px) {
  /* A full-width photograph below the copy avoids cropping out the desk on phones. */
  .page-backoffice .backoffice-scene { height: auto; }
  .page-backoffice .backoffice-scene .scene-window { display: grid; height: auto; background: #101d29; }
  .page-backoffice .backoffice-scene .scene-window > img { grid-row: 2; height: auto; }
  .page-backoffice .backoffice-scene .scene-shade { display: none; }
  .page-backoffice .backoffice-scene .scene-copy { position: static; grid-row: 1; width: auto; padding: 40px var(--gutter) 32px; font-size: 28px; }
  .page-backoffice .backoffice-scene .scene-note { position: static; grid-row: 3; padding: 16px var(--gutter) 24px; }
  .page-backoffice .backoffice-review { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* Mobile reading adjustments; desktop typography and composition stay unchanged. */
@media (max-width: 760px) {
  :root { --section-space: 56px; --muted: #4b5560; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* The button hides while the footer is on screen, so a bottom gap would only show as a strip under the footer. */
  body { padding-bottom: 0; }

  :lang(ja) :is(p, li, dt, dd, summary, figcaption, th, td, label, legend) {
    word-break: normal;
    line-break: strict;
    text-wrap: pretty;
  }
  /* Centered lines expose mid-word breaks, so they keep phrase-based wrapping. */
  :lang(ja) :is(.hero-home, .contact-section) p { word-break: auto-phrase; }
  :is(h1, h2, h3) { text-wrap: balance; overflow-wrap: anywhere; }
  html:lang(en) :is(h1, h2, h3) { text-wrap: balance; }
  h2 { font-size: 26px; letter-spacing: .025em; }
  .mobile-phrase { display: inline-block; }
  .pain-section h2 { font-size: clamp(23px, 6.1vw, 27px); letter-spacing: .02em; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 42px); }
  html:lang(ja) .hero-backoffice h1 { font-size: clamp(29px, 7.5vw, 40px); letter-spacing: .025em; }
  .contact-section h2 { font-size: clamp(26px, 6.7vw, 29px); letter-spacing: .015em; }
  .entrances h2 { letter-spacing: .02em; }
  .job-card h3 { font-size: 24px; letter-spacing: .02em; }
  .primary-nav { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; gap: 0; }
  .footer-nav a { min-height: 44px; }
  .button, .text-link { max-width: 100%; }
  .editorial-grid > *, .promise-list article > div, .entrances > a > div { min-width: 0; }

  .hero-home { padding-block: 24px 44px; }
  .hero-marketing { padding-block: 24px 44px; gap: 28px; }
  .page-hero { padding-block: 24px 36px; }
  .eyebrow { margin-bottom: 18px; }
  .section-intro { margin-bottom: 28px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading p { margin-top: 16px; }
  .heading-rule { margin-bottom: 16px; }
  .division-grid { gap: 40px; }
  .division-card h3 { margin-block: 18px 20px; }
  .works-grid { gap: 32px; }
  .examples-note { margin-top: 28px; padding-top: 24px; }
  .entrances { padding-block: 36px; gap: 20px; }
  .entrances > a { padding-block: 22px; }
  .contact-section { padding-block: 44px 56px; }
  .pain-section { padding-block: 48px; }
  .pain-list { margin-top: 24px; }
  .service-top { margin-bottom: 16px; }
  .service-top .step-number { font-size: 36px; }
  .steps { gap: 24px; }
  .steps li { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .steps .step-number { grid-row: auto; font-size: 32px; margin-bottom: 8px; }
  .steps h3 { margin-bottom: 10px; }
  .steps p { grid-column: 1; }

  /* A square crop enlarges the desktop design, keeping its top-left identity visible. */
  .work-card > img, .division-card:not(.division-backoffice) figure img, .desktop-preview {
    width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: left top;
  }
  .device-stage { padding: 0 0 36px 0; }
  .phone-preview { left: auto; right: 0; width: 30%; }

  /* Separate copy from the photo, as on the existing back-office scene. */
  .photo-scene:not(.backoffice-scene) { height: auto; min-height: 0; }
  .photo-scene:not(.backoffice-scene) .scene-window { display: grid; height: auto; background: #101d29; }
  .photo-scene:not(.backoffice-scene) .scene-window > img {
    grid-row: 2; height: auto; aspect-ratio: 3 / 2; object-position: center;
  }
  .photo-scene:not(.backoffice-scene) .scene-shade { display: none; }
  .photo-scene:not(.backoffice-scene) .scene-copy {
    position: static; grid-row: 1; padding: 28px var(--gutter); font-size: 24px;
    line-height: 1.65; letter-spacing: .025em; text-wrap: balance;
  }
  .photo-scene:not(.backoffice-scene) .scene-note { position: static; grid-row: 3; padding: 16px var(--gutter) 24px; }
  .photo-scene.scene-salon .scene-window > img { aspect-ratio: 4 / 3; object-position: center 55%; }
  .scene-window { animation: none; clip-path: none; }

  .floating-contact {
    bottom: calc(12px + env(safe-area-inset-bottom)); right: 16px; width: auto;
    min-height: 48px; padding: 8px 16px; gap: 12px; border-radius: var(--radius);
  }
  /* Hide only once JS manages the button: without JS it is the only contact link on some pages (recruit). */
  .floating-contact.is-managed:not(.is-mobile-visible):not(:focus-within) { visibility: hidden; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  :root { --muted: #c0c8d0; }
}
