@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");
/* AceDo design prototype — one type scale, no section-specific emphasis overrides. */
:root {
  color-scheme: light;
  --ink: #12263f;
  --paper: #fff;
  --orange: #1f78d1;          /* 旧オレンジの位置。いまは海の青（線・下線・印に使う） */
  --sea: #1f78d1;
  --sea-deep: #0c3f78;
  --sky-wash: #eef6fd;
  --text: #2b4259;
  --line: #cfe0ef;
  --dark-line: #b7d1e8;
  --font-cool: "Montserrat", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --body: 1.125rem;
  --chapter: 1.375rem;
  --heading: clamp(2rem, 3.25vw, 3rem);
  --subheading: 1.5rem;
  --label: 1rem;
  --action: 1.0625rem;
  --meta: 1rem;
  --gutter: clamp(28px, 8vw, 180px);
  --wrap-max: 1200px;
  --section-space: 136px;
  --chapter-space: 72px;
  --item-space: 104px;
  --label-space: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 28px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-cool);
  font-feature-settings: "palt";
  letter-spacing: .02em;
  font-size: var(--body);
  font-weight: 400;
  line-height: 2.05;
  overflow-wrap: anywhere;
}
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px white; }
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap-max)); margin-inline: auto; }
.phrase { display: inline-block; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 20; }
.skip:focus { top: 15px; }

/* Chapter titles, major headlines, supporting titles, and body emphasis. */
.chapter {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: var(--chapter-space);
  font-size: var(--chapter);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.chapter > span:first-child {
  flex-shrink: 0;
  min-width: 28px;
  border-top: 2px solid currentColor;
  padding-top: 7px;
  font-size: var(--meta);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .04em;
}
.story-row h3, .founder-copy h3, .partnership-invitation {
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.experience h3, .subheading, .person-name strong {
  font-size: var(--subheading);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.025em;
}
.context-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--label-space);
  font-size: var(--label);
  font-weight: 700;
  line-height: 1.6;
}
.story-heading > .context-label::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 3px;
  background: var(--orange);
}
.prose { min-width: 0; font-size: var(--body); }
.prose p + p, .experience p + p { margin-top: 1.1em; }
.statement, .key-line, .town-principle { font-size: var(--body); font-weight: 700; }

/* Navigation and controls share their own readable scale. */
.review-banner { background: var(--ink); color: white; }
.review-inner { display: flex; align-items: center; gap: 20px; padding-block: 8px; font-size: var(--meta); line-height: 1.6; }
.review-inner strong { white-space: nowrap; }
.review-inner a { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 102px; padding-block: 8px; }
.brand { display: block; flex-shrink: 0; width: 174px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.site-header nav .nav-contact { background: var(--ink); color: white; padding: 13px 18px; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  max-width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: var(--action);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.button span { flex-shrink: 0; }
.outline { background: transparent; }
.outline:hover { background: var(--ink); color: white; text-decoration: none; }
.primary { background: var(--ink); color: white; border-color: var(--ink); }
.primary:hover { background: white; color: var(--ink); text-decoration: none; }
.prose > .button { margin-top: 32px; }

/* The hero is the only extra-large type exception. */
.hero { background: var(--orange); padding: 48px 0 26px; }
.hero h1 { font-size: clamp(2.1rem, 6.55vw, 6rem); line-height: 1.4; letter-spacing: -.05em; }
.hero h1 > span { display: block; }
.hero-bottom { display: grid; grid-template-columns: 1.05fr 1fr; gap: 7%; align-items: start; margin-top: 52px; }
.hero-vision { font-weight: 700; }
.hero-vision p + p { margin-top: 20px; }
.hero-definition { font-size: var(--body); font-weight: 400; }
.hero-about .button { margin-top: 28px; }
.hero-foot { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #18181880; padding-top: 17px; margin-top: 44px; font-size: var(--meta); }

/* Shared section and story layout. */
.section { padding-block: var(--section-space); }
.story-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr); gap: 7%; }
.divided { border-top: 1px solid var(--line); padding-top: var(--item-space); margin-top: var(--item-space); }
.town-principle { margin-top: 32px; }
.belief { background: var(--ink); color: white; }
.founder-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 8%; align-items: start; }
.person-space { min-width: 0; }
.founder-photo { max-width: 400px; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 610 / 656; object-fit: contain; }
.person-name { margin-top: 24px; }
.person-name strong { display: inline-block; margin-top: 4px; }
.experience { max-width: 400px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--dark-line); }
.experience h3 { margin-bottom: 24px; }
.founder-copy h3 { margin-block: 32px; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; border-top: 1px solid var(--dark-line); margin-top: 64px; padding-top: 32px; }
.team-row .button { flex-shrink: 0; }
.belief .outline:hover { color: var(--ink); background: white; }
.village-photo { margin-top: 56px; }
.village-photo img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: center; }
.village-photo figcaption { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: var(--label); line-height: 1.7; }
.partnership { background: var(--orange); }
.partnership-invitation { margin-bottom: var(--chapter-space); }
.partnership .story-row { border-top: 1px solid #18181880; padding-top: 44px; }
.contact-zone { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 48px; }
.contact-zone .primary { width: 100%; }
.secondary-contacts { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.secondary-contacts button, .secondary-contacts a, .footer-links button, .footer-links a { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 8px 0; font-size: var(--action); font-weight: 700; line-height: 1.7; }
.site-footer { padding-block: 32px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; font-size: var(--meta); }
.site-footer .brand { width: 160px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { min-height: 44px; }
.village-photo figcaption a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.contact-hint a, .company-facts a { display: inline-flex; align-items: center; min-height: 44px; }

/* Dialogs retain focus visibility without decorative stripes. */
dialog { border: 0; padding: 0; width: min(740px, calc(100% - 40px)); max-height: 85dvh; color: var(--ink); background: white; box-shadow: 0 20px 100px #0006; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
.dialog-inner { padding: 40px; }
.dialog-inner h2 { font-size: var(--chapter); line-height: 1.5; margin-bottom: 24px; }
.dialog-inner ul { padding-left: 1.2em; margin-block: 24px; }
.dialog-inner li + li { margin-top: 10px; }
.dialog-note { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 24px; }
.dialog-inner .button { width: 100%; justify-content: center; }

@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .site-header .brand { width: 150px; }
  .site-header nav { gap: 15px; }
  .story-row, .founder-grid, .hero-bottom { gap: 40px; }
  .team-row, .contact-zone { display: block; }
  .team-row .button, .secondary-contacts { margin-top: 24px; }
  .secondary-contacts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root {
    --gutter: 28px;
    --body: 1.0625rem;
    --chapter: 1.25rem;
    --heading: 1.75rem;
    --subheading: 1.375rem;
    --label: 1rem;
    --action: 1.0625rem;
    --section-space: 80px;
    --chapter-space: 44px;
    --item-space: 64px;
    --label-space: 16px;
  }
  .review-inner { flex-wrap: wrap; gap: 4px 14px; padding-block: 9px; }
  .review-inner span { display: none; }
  .site-header { display: block; min-height: 0; padding-block: 4px 15px; }
  .site-header nav { gap: 8px 18px; }
  .site-header nav a { padding-block: 6px; }
  .site-header nav .nav-contact { padding: 6px 12px; }
  .chapter { align-items: baseline; gap: 14px; }
  .chapter > span:first-child { min-width: 23px; }
  .context-label { gap: 10px; }
  .story-heading > .context-label::before { width: 20px; }
  .button { min-height: 60px; padding: 17px 20px; gap: 24px; }
  .hero { padding-block: 36px 24px; }
  .hero h1 { font-size: clamp(1.875rem, 8.5vw, 3.5rem); letter-spacing: -.065em; line-height: 1.55; }
  .hero-bottom { display: block; margin-top: 32px; }
  .hero-about { margin-top: 30px; padding-top: 26px; border-top: 1px solid #18181880; }
  .hero-about .button { margin-top: 24px; }
  .hero-foot { display: block; margin-top: 32px; padding-top: 18px; }
  .hero-foot > span:first-child, .desktop-break { display: none; }
  .story-row { display: block; }
  .story-row > .prose { margin-top: 28px; }
  .prose > .button { margin-top: 26px; }
  .town-principle { margin-top: 28px; }
  .founder-grid { display: flex; flex-direction: column; gap: 40px; }
  .founder-copy { order: 0; }
  .founder-copy h3 { margin-block: 28px; }
  .person-space { order: 1; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 20px; width: 100%; }
  .founder-photo { grid-column: 1; grid-row: 1; width: 104px; }
  .person-name { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .experience { grid-column: 1 / -1; max-width: none; margin-top: 28px; padding-top: 28px; }
  .team-row { margin-top: 36px; padding-top: 28px; }
  .village-photo { margin-top: 34px; }
  .village-photo img { max-height: none; object-fit: contain; }
  .village-photo figcaption { display: block; padding-block: 16px; }
  .village-photo figcaption span { display: block; margin-top: 4px; }
  .partnership .story-row { padding-top: 30px; }
  .contact-zone { margin-top: 30px; }
  .secondary-contacts { margin-top: 20px; gap: 12px 24px; }
  .footer-row { display: block; }
  .footer-links { margin-block: 14px 20px; gap: 16px 24px; }
  .dialog-inner { padding: 28px 24px; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 6px 12px; }
  .person-space { grid-template-columns: 80px minmax(0, 1fr); gap: 0 16px; }
  .founder-photo { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
@media print {
  .review-banner, .site-header nav, .button, .secondary-contacts, .footer-links, dialog { display: none !important; }
  .wrap { width: 100%; }
  .section { padding-block: 30px; }
  .story-row, .founder-grid { display: block; }
  .chapter { break-after: avoid; }
}

/* ヒーロー画像（2026-10-13）: 画面いっぱいに表示し、ゆっくり動かす */
.hero-visual { position: relative; overflow: hidden; height: 100svh; min-height: 480px; background: #0d4f95; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 55%; animation: hero-drift 28s ease-in-out infinite alternate; }
.hero-cue { position: absolute; left: 50%; bottom: 22px; width: 52px; height: 52px; margin-left: -26px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #18181866; }
.hero-cue span { width: 14px; height: 14px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-3px) rotate(45deg); }
.hero-cue:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-aspect-ratio: 9/10) {
  .hero-visual img { object-position: 50% 48%; transform-origin: 50% 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; transform: none; }
}

/* トップだけ: メニューを画像の上に重ねる（2026-10-13）。ロゴ画像は置かず、白い文字の「AceDo」だけを左上に置く */
.site-header--over { position: absolute; top: 0; left: 0; right: 0; z-index: 10; width: min(100% - var(--gutter) * 2, var(--wrap-max)); margin-inline: auto; min-height: 0; padding-block: 24px; justify-content: space-between; }
.hero-visual::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgb(4 24 56 / .55), rgb(4 24 56 / 0)); }
.hero-visual > .hero-cue { z-index: 2; }
.site-header--over nav a { color: #fff; text-shadow: 0 1px 8px rgb(0 20 50 / .55); }
.site-header--over nav .nav-contact { background: var(--ink); color: #fff; text-shadow: none; }
.site-wordmark { position: relative; z-index: 31; font-family: "Montserrat", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; color: #fff; text-shadow: 0 1px 10px rgb(0 20 50 / .5); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .site-header--over { display: flex; padding-block: 16px; }
  .menu-toggle { display: block; position: relative; z-index: 31; width: 48px; height: 48px; border: 0; background: #fff; cursor: pointer; }
  .menu-toggle span { position: absolute; left: 12px; width: 24px; height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 23px; }
  .menu-toggle span:nth-child(3) { top: 31px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
  .site-header--over nav { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 96px var(--gutter) 48px; background: #fff; visibility: hidden; opacity: 0; transition: opacity .2s; }
  .site-header--over nav.is-open { visibility: visible; opacity: 1; }
  .site-header--over nav a { color: var(--ink); text-shadow: none; font-size: 1.5rem; min-height: 60px; border-bottom: 1px solid var(--line); }
  .site-header--over nav .nav-contact { justify-content: center; margin-top: 20px; border-bottom: 0; color: #fff; }
  .menu-open { overflow: hidden; }
  .site-wordmark { font-size: 1.75rem; }
  .menu-open .site-wordmark { color: var(--ink); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .site-header--over nav { transition: none; }
}

/* ===== トップページ（body.home）だけの見た目（2026-10-13）=====
   白を基調に、ヒーローの海と空の色でそろえる。赤・オレンジは使わない。他のページには影響しない。 */
.home {
  --ink: #12263f;
  --orange: #1f78d1;          /* 既存の「オレンジの線」の位置を、海の青に置き換える */
  --sea: #1f78d1;
  --sea-deep: #0c3f78;
  --sky-wash: #eef6fd;
  --line: #cfe0ef;
  --dark-line: #b7d1e8;
  background: #fff;
}
.home a:focus-visible, .home button:focus-visible { outline-color: var(--sea-deep); }
.home .button { border-radius: 999px; }
.home .outline { border-color: var(--sea-deep); color: var(--sea-deep); }
.home .outline:hover { background: var(--sea-deep); color: #fff; }
.home .primary { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.home .primary:hover { background: #fff; color: var(--sea-deep); }
.home .site-header--over nav .nav-contact { background: #fff; color: var(--sea-deep); border-radius: 999px; padding: 13px 22px; }
.home .menu-toggle { border-radius: 12px; }

/* 海の帯: 画面の下端に、うっすら波を敷く */
.home .hero, .home .partnership { position: relative; overflow: hidden; isolation: isolate; }
.home .hero > .wrap, .home .partnership > .wrap { position: relative; z-index: 1; }
.home .hero::after, .home .partnership::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 0; pointer-events: none;
  background: url("sea-band.webp") center bottom / cover no-repeat; opacity: .2;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%); mask-image: linear-gradient(to bottom, transparent, #000 85%);
}

/* 01 ヒーロー直下の宣言 */
.home .hero { background: linear-gradient(to bottom, var(--sky-wash), #fff 62%); padding: 72px 0 120px; }
.home .hero h1 > span:last-child { color: var(--sea); }
.home .hero-foot { border-top-color: #12263f33; }
.home .hero-about { border-color: #12263f33; }

/* 02・04 白の面 */
.home .divided { border-top-color: var(--line); }
.home .village-photo figcaption { border-bottom-color: var(--line); }

/* 03 創業の想い: 黒い面をやめ、空の色の淡い面にする */
.home .belief { background: var(--sky-wash); color: var(--ink); }
.home .team-row, .home .experience { border-top-color: var(--dark-line); }
.home .belief .outline:hover { background: var(--sea-deep); color: #fff; }

/* 05 パートナー募集: オレンジをやめ、空から海へ */
.home .partnership { background: linear-gradient(to bottom, #fff, #dcecfa 70%); padding-bottom: 180px; }
.home .partnership .story-row { border-top-color: #12263f33; }

/* フッター */
.home .site-footer { border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 760px) {
  .home .hero { padding: 48px 0 90px; }
  .home .partnership { padding-bottom: 130px; }
  .home .hero::after, .home .partnership::after { height: 170px; }
}

/* ===== トップ: 洗練（2026-10-13）余白・文字・ボタン・写真・動き ===== */
.home {
  --body: 1.125rem;
  --chapter: 1.375rem;
  --label: 1rem;
  --action: 1.0625rem;
  --section-space: 136px;
  --chapter-space: 72px;
  --item-space: 104px;
  --label-space: 20px;
  --text: #2b4259;
  letter-spacing: .02em;
}
.home .prose, .home .hero-definition, .home .experience p { color: var(--text); line-height: 2.1; }
.home .prose { max-width: 34em; }
.home .statement, .home .key-line, .home .town-principle, .home .hero-vision { color: var(--ink); }

/* 章の見出し: 小さく静かに。番号は海の青 */
.home .chapter { letter-spacing: .06em; margin-bottom: var(--chapter-space); }
.home .chapter > span:first-child { color: var(--sea); border-top-color: var(--sea); min-width: 36px; letter-spacing: .12em; }
.home .context-label { color: var(--sea); letter-spacing: .12em; }
.home .story-heading > .context-label::before { width: 28px; height: 2px; }

/* 見出しは大きく、行間はゆったり */
.home .story-row h3, .home .founder-copy h3, .home .partnership-invitation { font-weight: 700; letter-spacing: -.03em; line-height: 1.6; }
.home .story-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8%; }
.home .divided { padding-top: var(--item-space); margin-top: var(--item-space); }

/* ヒーロー直下: 余白を広く、飾りを減らす */
.home .hero { padding: 120px 0 160px; }
.home .hero .chapter { margin-bottom: 40px; }
.home .hero-bottom { margin-top: 72px; align-items: end; }
.home .hero-vision { font-size: 1.25rem; line-height: 2.1; }
.home .hero-about { border: 0; padding: 0; margin: 0; }

/* ボタン: 控えめな「文字＋丸い矢印」にする。主なボタンだけ塗りつぶし */
.home .button.outline { border: 0; padding: 0; min-height: 0; background: none; border-radius: 0; gap: 16px; justify-content: flex-start; color: var(--sea-deep); }
.home .button.outline:hover { background: none; color: var(--sea-deep); text-decoration: none; }
.home .button.outline span { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--sea-deep); border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: background-color .2s, color .2s, transform .2s; }
.home .button.outline:hover span { background: var(--sea-deep); color: #fff; transform: translateX(4px); }
.home .prose > .button, .home .hero-about .button { margin-top: 40px; }
.home .hero-about .button { margin-top: 32px; }
.home .team-row .button.outline { flex-shrink: 0; }
.home .primary { min-height: 68px; padding: 18px 32px; box-shadow: 0 12px 32px rgb(12 63 120 / .22); transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
.home .primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgb(12 63 120 / .28); }

/* 03 創業の想い */
.home .belief { padding-block: var(--section-space); }
.home .founder-photo img { border-radius: 24px; background: var(--sky-wash); }
.home .team-row { margin-top: 88px; padding-top: 40px; }
.home .experience { border-top-color: var(--dark-line); }

/* 04 写真は大きく、角を丸く */
.home .village-photo { margin-top: 72px; }
.home .village-photo img { border-radius: 28px; max-height: 640px; }

/* 05 */
.home .partnership-invitation { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.5; }
.home .partnership .story-row { padding-top: 56px; }
.home .contact-zone { margin-top: 64px; }
.home .secondary-contacts a { border-bottom-color: #12263f55; font-size: 1rem; }
.home .site-footer { padding-block: 40px; }
.home .footer-links a { font-size: .9375rem; font-weight: 500; border-bottom-color: transparent; }
.home .footer-links a:hover { border-bottom-color: currentColor; }

/* ゆっくり現れる（JSがあるときだけ。動きを減らす設定では出さない） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1100px) {
  .home .story-row { gap: 40px; }
}
@media (max-width: 760px) {
  .home {
    --body: 1.0625rem;
    --chapter: 1.25rem;
    --section-space: 80px;
    --chapter-space: 44px;
    --item-space: 64px;
  }
  .home .hero { padding: 72px 0 110px; }
  .home .hero-bottom { margin-top: 44px; }
  .home .hero-vision { font-size: 1.125rem; }
  .home .hero-about { margin-top: 36px; }
  .home .story-row { display: block; }
  .home .team-row { margin-top: 56px; padding-top: 32px; }
  .home .village-photo { margin-top: 44px; }
  .home .village-photo img { border-radius: 18px; max-height: 420px; object-fit: cover; }
  .home .founder-photo img { border-radius: 16px; }
  .home .partnership-invitation { font-size: 1.875rem; }
}

/* ===== トップ: 書体（2026-10-13）英字は Montserrat、日本語は Zen Kaku Gothic New。読み込めないときは従来のゴシック体 ===== */
.home {
  --font-cool: "Montserrat", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-family: var(--font-cool);
  font-feature-settings: "palt";
}
.home button, .home input, .home textarea, .home select { font-family: inherit; }
.home .site-wordmark { font-family: "Montserrat", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif; }
.home .site-header nav { letter-spacing: .06em; }
.home h1, .home h2, .home h3 { font-weight: 700; }

/* ===== 全ページ共通（2026-10-13）トップと同じ色・書体・ボタン・余白 =====
   トップだけの指定は上の body.home のブロック。ここは、他のページにも効く共通部分。 */
body button, body input, body textarea, body select { font-family: inherit; }
body a:focus-visible, body button:focus-visible { outline-color: var(--sea-deep); }
body .prose, body .experience p { color: var(--text); line-height: 2.1; }
body .prose { max-width: 34em; }
body .statement, body .key-line, body .town-principle { color: var(--ink); }

/* 見出し・ラベル */
body .chapter { letter-spacing: .06em; }
body .chapter > span:first-child { color: var(--sea); border-top-color: var(--sea); min-width: 36px; letter-spacing: .12em; }
body .context-label { color: var(--sea); letter-spacing: .12em; }
body .story-heading > .context-label::before { width: 28px; height: 2px; }
body .story-row h3, body .founder-copy h3, body .page-title, body .member-name { letter-spacing: -.03em; line-height: 1.6; }

/* ボタン: 「文字＋丸い矢印」。主なボタンだけ紺の塗りつぶし */
body .button { border-radius: 999px; }
body .button.outline { border: 0; padding: 0; min-height: 0; background: none; border-radius: 0; gap: 16px; justify-content: flex-start; color: var(--sea-deep); }
body .button.outline:hover { background: none; color: var(--sea-deep); text-decoration: none; }
body .button.outline span { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--sea-deep); border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: background-color .2s, color .2s, transform .2s; }
body .button.outline:hover span { background: var(--sea-deep); color: #fff; transform: translateX(4px); }
body .primary { min-height: 68px; padding: 18px 32px; background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; box-shadow: 0 12px 32px rgb(12 63 120 / .22); transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
body .primary:hover { background: #fff; color: var(--sea-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgb(12 63 120 / .28); text-decoration: none; }

/* ヘッダー・フッター */
body .site-header nav { letter-spacing: .06em; }
body .site-header nav .nav-contact { background: var(--sea-deep); color: #fff; border-radius: 999px; padding: 13px 22px; }
body .site-footer { border-top: 1px solid var(--line); }
body .footer-links a { font-size: .9375rem; font-weight: 500; border-bottom-color: transparent; }
body .footer-links a:hover { border-bottom-color: currentColor; }

/* 旧オレンジの面・黒い面を、空と海の色に */
body .company-contact, body .service-page .band { color: var(--ink); background: linear-gradient(to bottom, #fff, #dcecfa 75%); }
body .company-overview, body .detail-dark { color: var(--ink); background: var(--sky-wash); }
body .detail-dark .divided { border-color: var(--dark-line); }
body .detail-dark .outline:hover, body .detail-dark .button.outline:hover { color: var(--sea-deep); background: none; }
body .company-facts > div, body .company-facts > div:last-child { border-color: var(--dark-line); }
body .service-page .band .context-label::before { background: var(--sea); }
body .service-page .band .flow > div { border-color: var(--dark-line); }
body .contact-required { border-bottom-color: var(--sea); }

/* ページの先頭の余白 */
body .company-intro { padding-bottom: var(--section-space); }

/* お問い合わせフォーム: 入力欄をやわらかく（動作は変えない） */
body .contact-form input:not([type="checkbox"]), body .contact-form select, body .contact-form textarea { border-color: #9dbddb; border-radius: 12px; font-size: 1.0625rem; }
body .contact-form input:focus-visible, body .contact-form select:focus-visible, body .contact-form textarea:focus-visible,
body .contact-error:focus, body .contact-status:focus { outline: 3px solid var(--sea); outline-offset: 3px; }
body .contact-error:not([hidden]), body .contact-status:not(:empty) { border-color: var(--sea-deep); border-radius: 12px; }
body .contact-consent input { accent-color: var(--sea-deep); }

/* 他のページのハンバーガー（menu.js が .has-menu を付ける）。トップの body.home と同じ見た目 */
@media (max-width: 960px) {
  body .site-header.has-menu { display: flex; align-items: center; justify-content: space-between; min-height: 0; padding-block: 16px; }
  body .site-header.has-menu .brand { position: relative; z-index: 31; width: 140px; }
  body .site-header.has-menu .menu-toggle { background: var(--sky-wash); border-radius: 12px; }
  body .site-header.has-menu nav { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: stretch; justify-content: center; flex-wrap: nowrap; gap: 4px; padding: 96px var(--gutter) 48px; background: #fff; visibility: hidden; opacity: 0; transition: opacity .2s; }
  body .site-header.has-menu nav.is-open { visibility: visible; opacity: 1; }
  body .site-header.has-menu nav a { color: var(--ink); font-size: 1.5rem; min-height: 60px; border-bottom: 1px solid var(--line); }
  body .site-header.has-menu nav .nav-contact { justify-content: center; margin-top: 20px; border-bottom: 0; color: #fff; padding: 13px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body .site-header.has-menu nav { transition: none; }
}

/* ===== トップ以外のページを、トップと同じ雰囲気に（2026-10-13）=====
   ヘッダーは文字の「AceDo」。ページの冒頭は空の色から白へ、冒頭の下端に薄い海。 */
body:not(.home) { background: linear-gradient(to bottom, var(--sky-wash), #fff) top / 100% 640px no-repeat, #fff; }

/* ヘッダー左: ロゴ画像のかわりに、文字の「AceDo」（トップと同じ） */
body:not(.home) .site-header .brand { display: block; width: auto; }
body:not(.home) .site-header .brand img { display: none; }
body:not(.home) .site-header .brand::after { content: "AceDo"; font-family: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; color: var(--ink); }
body:not(.home) .site-header.has-menu .brand { width: auto; }
@media (max-width: 960px) {
  body:not(.home) .site-header .brand::after { font-size: 1.75rem; }
}

/* 冒頭（パンくず＋タイトル）の下端に、薄い海 */
body .company-intro, body .service-intro { position: relative; overflow: hidden; isolation: isolate; }
body .company-intro > .wrap, body .service-intro > .wrap { position: relative; z-index: 1; }
body .company-intro::after, body .service-intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 0; pointer-events: none;
  background: url("sea-band.webp") center bottom / cover no-repeat; opacity: .16;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%); mask-image: linear-gradient(to bottom, transparent, #000 85%);
}
body .company-intro { border-bottom: 0; padding-top: 40px; }
body .service-intro { padding-top: 40px; }

/* 写真・パンくず・タイトル */
body .profile-photo img { border-radius: 24px; background: var(--sky-wash); }
body .founder-photo img { border-radius: 24px; background: var(--sky-wash); }
body .village-photo img { border-radius: 28px; }
body .breadcrumb { letter-spacing: .06em; }
body .page-title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
body .service-page .service-intro h1 { letter-spacing: -.03em; }

/* 代表・チーム: 人物ごとの区切りをやわらかく */
body .member-profile { padding-block: 24px; }
body .member-role { color: var(--sea); letter-spacing: .1em; }
body .member-name { font-size: clamp(2rem, 3.4vw, 2.75rem); }
body .member-statement { color: var(--ink); }
body .company-team .divided { border-top-color: var(--line); }

/* ゆっくり現れる（トップと同じ。menu.js が .reveal を付ける） */
@media (max-width: 760px) {
  body .company-intro::after, body .service-intro::after { height: 120px; }
  body:not(.home) { background-size: 100% 520px; }
}

/* ===== 文字を小さく、余白をつめる（2026-10-13・全ページ）===== */
:root, .home {
  --body: 1rem;
  --chapter: 1.125rem;
  --heading: clamp(1.625rem, 2.4vw, 2.125rem);
  --subheading: 1.25rem;
  --label: .875rem;
  --action: .9375rem;
  --meta: .8125rem;
  --section-space: 88px;
  --chapter-space: 44px;
  --item-space: 64px;
  --label-space: 14px;
}
body, .home { line-height: 1.85; letter-spacing: .01em; }
.prose p + p, .experience p + p { margin-top: .8em; }
body .prose, body .experience p, .home .prose, .home .hero-definition, .home .experience p { line-height: 1.9; }
body .prose, .home .prose { max-width: 38em; }
body .story-row h3, body .founder-copy h3, body .page-title, body .member-name, body .partnership-invitation,
.home .story-row h3, .home .founder-copy h3, .home .partnership-invitation { line-height: 1.45; }

/* 大きな見出し */
.hero h1 { font-size: clamp(2rem, 4.8vw, 4rem); line-height: 1.35; }
.home .hero { padding: 96px 0 120px; }
.home .hero .chapter { margin-bottom: 28px; }
.home .hero-bottom { margin-top: 48px; }
.home .hero-vision { font-size: 1.0625rem; line-height: 1.9; }
.home .partnership-invitation, body .partnership-invitation { font-size: clamp(1.625rem, 3vw, 2.5rem); }
body .page-title { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
body .member-name { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }

/* ヘッダーとボタン */
.site-header nav { font-size: 1rem; }
body .site-header nav, .home .site-header nav { letter-spacing: .04em; }
.site-wordmark { font-size: 1.5rem; }
body:not(.home) .site-header .brand::after { font-size: 1.5rem; }
body .button, .home .button { min-height: 56px; padding: 14px 22px; }
body .primary, .home .primary { min-height: 56px; padding: 14px 26px; }
body .button.outline, .home .button.outline { min-height: 0; padding: 0; }
body .button.outline span, .home .button.outline span { width: 40px; height: 40px; font-size: 1rem; }
.home .prose > .button, .home .hero-about .button, .prose > .button { margin-top: 28px; }
.home .site-header--over nav .nav-contact, body .site-header nav .nav-contact { padding: 10px 20px; }

/* ブロック間の余白 */
.home .village-photo, body .village-photo { margin-top: 48px; }
.home .team-row { margin-top: 56px; padding-top: 28px; }
.home .contact-zone { margin-top: 40px; }
.home .partnership .story-row { padding-top: 36px; }
body .company-intro, body .service-intro { padding-top: 24px; }
body .member-profile { padding-block: 12px; }
.home .site-footer, body .site-footer { padding-block: 28px; }
.home .footer-links a, body .footer-links a { font-size: .875rem; }

@media (max-width: 760px) {
  :root, .home {
    --body: .9375rem;
    --chapter: 1.0625rem;
    --heading: 1.5rem;
    --subheading: 1.125rem;
    --label: .8125rem;
    --action: .9375rem;
    --section-space: 56px;
    --chapter-space: 32px;
    --item-space: 44px;
    --label-space: 12px;
  }
  .hero h1 { font-size: clamp(1.625rem, 7vw, 2.5rem); }
  .home .hero { padding: 56px 0 80px; }
  .home .hero-bottom { margin-top: 32px; }
  .home .hero-vision { font-size: 1rem; }
  .home .partnership-invitation, body .partnership-invitation { font-size: 1.5rem; }
  .site-wordmark, body:not(.home) .site-header .brand::after { font-size: 1.375rem; }
  .site-header--over nav a, body .site-header.has-menu nav a { font-size: 1.125rem; min-height: 52px; }
  .home .team-row { margin-top: 40px; padding-top: 24px; }
  .home .village-photo, body .village-photo { margin-top: 32px; }
}

/* ===== 左右の余白を全ページでそろえる（2026-10-13）=====
   サービス・FAQ・プライバシー等は、外枠 .wrap の幅を1050pxに狭めて中央に置いていたため、
   ヘッダー・パンくず（左端65px）と本文の左端（195px）がずれていた。
   外枠は全ページ同じ幅（左右の余白＝--gutter）にし、読みやすい行の長さは中身側で制限して、左端にそろえる。 */
body.service-page .service-intro > .wrap,
body.service-page .wrap.col,
body.service-page .wrap.doc,
body.service-page .wrap { max-width: var(--wrap-max); width: min(100% - var(--gutter) * 2, var(--wrap-max)); margin-inline: auto; }
body.service-page .service-intro > .wrap > p,
body.service-page .service-intro > .wrap > .sub,
body.service-page .service-intro > .wrap > .to { max-width: 44em; }
body.service-page .wrap.col > *,
body.service-page .wrap.doc > * { max-width: 52em; }
body.service-page .faq { max-width: 56em; }
body.service-page .tbl, body.service-page .scroller { max-width: none; }

/* 「ご相談」の面（.band / .company-contact）: 後から読まれる services.css に負けないよう、body.service-page で指定する */
body.service-page .band, body .company-contact { color: var(--ink); background: linear-gradient(to bottom, #fff, #dcecfa 75%); border-top: 0; }
body.service-page .band .context-label::before { background: var(--sea); }
body.service-page .band .flow > div { border-color: var(--dark-line); }

/* 代表の写真を小さく（2026-10-13） */
body .founder-photo, body .profile-photo { max-width: 240px; }
body .founder-photo img, body .profile-photo img { border-radius: 18px; }
@media (max-width: 760px) {
  body .profile-photo { width: min(100%, 160px); }
  body .person-space { grid-template-columns: 84px minmax(0, 1fr); }
  body .founder-photo { width: 84px; }
}
@media (max-width: 360px) {
  body .person-space { grid-template-columns: 72px minmax(0, 1fr); }
  body .founder-photo { width: 72px; }
}

/* ===== トップ 03 創業の想い: 引用を大きく、本文は2列、最後に署名（2026-10-13）===== */
.home .founder-lead { max-width: 56rem; }
.home .founder-intro { color: var(--text); font-size: var(--body); }
.home .founder-quote { margin-top: 20px; font-size: clamp(1.875rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.4; letter-spacing: -.03em; color: var(--sea-deep); text-indent: -.5em; }
.home .founder-quote .phrase { text-indent: 0; }
.home .founder-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8%; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--dark-line); }
.home .founder-col { color: var(--text); }
.home .founder-col p + p { margin-top: .9em; }
.home .founder-col .key-line { color: var(--ink); }
.home .founder-sign { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--dark-line); }
.home .founder-closing { font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--ink); }
.home .founder-person { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.home .founder-person .founder-photo { width: 72px; max-width: 72px; margin: 0; }
.home .founder-person .founder-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
.home .founder-person .person-name { margin: 0; line-height: 1.5; font-size: .875rem; color: var(--text); }
.home .founder-person .person-name strong { display: block; margin-top: 2px; font-size: 1.125rem; color: var(--ink); }
.home .belief .team-row { margin-top: 40px; padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .home .founder-quote { font-size: 1.75rem; }
  .home .founder-body { grid-template-columns: 1fr; margin-top: 36px; padding-top: 28px; }
  .home .founder-col + .founder-col { margin-top: .9em; }
  .home .founder-sign { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 36px; padding-top: 24px; }
}

/* トップ 03: 代表コメントは、飾りのない本文として並べる（2026-10-13）*/
.home .founder-comment { max-width: 38rem; }
.home .founder-comment .context-label { margin-bottom: 20px; }
.home .founder-comment p + p { margin-top: 1.1em; }
.home .founder-comment p { color: var(--text); font-size: var(--body); font-weight: 400; line-height: 2; }
.home .founder-comment .founder-person { margin-top: 36px; }
@media (max-width: 760px) { .home .founder-comment .founder-person { margin-top: 28px; } }
.home .founder-comment p.context-label { color: var(--sea); font-weight: 700; font-size: var(--label); }

/* ヒーロー直下の文: パソコンでは2行（1文＝1行）。スマホは従来どおり折り返す（2026-10-13）*/
@media (min-width: 761px) {
  .home .hero-bottom { display: block; }
  .home .hero-vision br { display: none; }
  .home .hero-vision p { white-space: nowrap; }
  .home .hero-about { margin-top: 28px; }
}

/* トップ 03: 左に代表の写真、右にコメント（2026-10-13）*/
.home .founder-comment { max-width: none; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 8%; align-items: start; }
.home .founder-comment .founder-person { display: block; margin: 0; }
.home .founder-comment .founder-photo { width: 100%; max-width: 240px; margin: 0; }
.home .founder-comment .founder-photo img { aspect-ratio: 610 / 656; object-fit: cover; border-radius: 18px; }
.home .founder-comment .person-name { margin-top: 16px; line-height: 1.6; font-size: .875rem; color: var(--text); }
.home .founder-comment .person-name strong { display: block; margin-top: 2px; font-size: 1.125rem; color: var(--ink); }
.home .founder-text { max-width: 36rem; }
.home .founder-text .context-label { margin-bottom: 20px; }
.home .founder-text p + p { margin-top: 1.1em; }
.home .founder-text p { color: var(--text); font-size: var(--body); font-weight: 400; line-height: 2; }
.home .founder-text p.context-label { color: var(--sea); font-weight: 700; font-size: var(--label); }
@media (max-width: 760px) {
  .home .founder-comment { grid-template-columns: 1fr; gap: 28px; }
  .home .founder-comment .founder-person { display: flex; align-items: center; gap: 16px; }
  .home .founder-comment .founder-photo { width: 84px; max-width: 84px; }
  .home .founder-comment .person-name { margin-top: 0; }
}

/* トップ 04 事業内容: 3つの箱を横並び（2026-10-13）*/
.home .biz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home .biz-card { display: flex; flex-direction: column; padding: 32px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 30px rgb(12 63 120 / .06); transition: transform .25s, box-shadow .25s, border-color .25s; }
.home .biz-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(12 63 120 / .14); border-color: var(--sea); text-decoration: none; }
.home .biz-label { color: var(--sea); font-size: var(--label); font-weight: 700; letter-spacing: .1em; }
.home .biz-card h3 { margin-top: 14px; font-size: var(--subheading); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.home .biz-card > p:not(.biz-label) { margin-top: 16px; color: var(--text); font-size: var(--body); line-height: 1.9; }
.home .biz-go { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--sea-deep); font-size: var(--action); font-weight: 700; }
.home .biz-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sea-deep); border-radius: 50%; line-height: 1; transition: background-color .2s, color .2s, transform .2s; }
.home .biz-card:hover .biz-arrow { background: var(--sea-deep); color: #fff; transform: translateX(4px); }
.home .biz-card:focus-visible { outline: 3px solid var(--sea-deep); outline-offset: 3px; }
@media (max-width: 960px) { .home .biz-cards { grid-template-columns: 1fr; } .home .biz-card { padding: 28px 24px 24px; } }
@media (prefers-reduced-motion: reduce) { .home .biz-card, .home .biz-arrow { transition: none; } .home .biz-card:hover { transform: none; } }
.home .hero-vision p + p { margin-top: 0; }

.home .founder-text p.founder-emphasis { color: var(--sea); font-weight: 700; }

/* 事業内容の箱: 上にLPのヒーロー画像（2026-10-13）*/
.home .biz-card { padding: 0; overflow: hidden; }
.home .biz-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky-wash); }
.home .biz-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.home .biz-card:hover .biz-thumb img { transform: scale(1.04); }
.home .biz-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
@media (max-width: 960px) { .home .biz-card { padding: 0; } .home .biz-body { padding: 22px 24px 24px; } }
@media (prefers-reduced-motion: reduce) { .home .biz-thumb img { transition: none; } .home .biz-card:hover .biz-thumb img { transform: none; } }
.home .biz-body > p:not(.biz-label) { margin-top: 14px; color: var(--text); font-size: var(--body); line-height: 1.9; }
.home .biz-body .biz-label { margin-top: 0; }
.home .biz-body h3 { margin-top: 12px; }

/* ===== トップ: スクロールするとメニューが白いヘッダーになり、画面上部に追従（2026-10-13）=====
   透明のうちは今までどおり画像の上。.is-scrolled は index.html の小さなスクリプトが付ける。
   背景は ::before に持たせる（header 自体に backdrop-filter を付けると、スマホの全画面メニューが枠内に閉じ込められるため）。 */
.site-header--over { position: fixed; top: 0; left: 0; right: 0; width: auto; margin: 0; padding-inline: max(var(--gutter), calc((100% - var(--wrap-max)) / 2)); transition: padding .25s; }
.site-header--over::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(12 63 120 / .08); opacity: 0; transition: opacity .25s; pointer-events: none; }
.site-header--over.is-scrolled::before { opacity: 1; }
.site-header--over.is-scrolled { padding-block: 12px; }
.site-header--over.is-scrolled .site-wordmark { color: var(--ink); text-shadow: none; }
.site-header--over.is-scrolled nav a { color: var(--ink); text-shadow: none; }
.site-header--over.is-scrolled nav .nav-contact { background: var(--sea-deep); color: #fff; }
.site-header--over.is-scrolled .menu-toggle { background: var(--sky-wash); }
.home { scroll-padding-top: 84px; }
html:has(.home) { scroll-padding-top: 84px; }
@media (max-width: 960px) {
  .site-header--over.is-scrolled nav a { color: var(--ink); }
  .site-header--over.is-scrolled nav .nav-contact { color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .site-header--over, .site-header--over::before { transition: none; } }

/* ===== チームメンバー: 2列のコンパクトなカード（2026-10-13）===== */
body .company-team > .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
body .company-team > .wrap > .chapter, body .company-team > .wrap > .profile-note { grid-column: 1 / -1; }
body .company-team > .wrap > .chapter { margin-bottom: 20px; }
body .company-team .member-profile.company-grid { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgb(12 63 120 / .05); text-align: left; }
body .company-team .member-profile.divided { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 0; }
body .company-team .member-identity { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; margin: 0; }
body .company-team .member-identity > div, body .company-team .member-identity > p, body .company-team .member-identity > h3 { margin: 0; }
body .company-team .member-role { margin: 0 0 4px; font-size: .8125rem; letter-spacing: .1em; }
body .company-team .member-name { margin: 0; font-size: 1.5rem; line-height: 1.3; }
body .company-team .profile-photo { width: 72px; max-width: 72px; margin: 0; flex-shrink: 0; }
body .company-team .profile-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }
body .company-team .member-copy { margin: 0; }
body .company-team .member-statement { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
body .company-team .member-copy .prose { max-width: none; }
body .company-team .member-copy .prose p { font-size: .9375rem; line-height: 1.85; color: var(--text); }
body .company-team .member-copy .prose p + p { margin-top: .6em; }
body .company-team .member-copy .prose > .button { margin-top: 16px; }
body .company-team .profile-note { margin-top: 8px; padding-top: 20px; font-size: .8125rem; color: var(--text); }
@media (max-width: 760px) {
  body .company-team > .wrap { grid-template-columns: 1fr; gap: 16px; }
  body .company-team .member-profile.company-grid { padding: 22px 20px; }
}
@media (max-width: 760px) {
  body .company-team .member-identity { display: grid; grid-template-columns: 1fr; align-items: center; }
  body .company-team .member-identity:has(.profile-photo) { grid-template-columns: 64px 1fr; column-gap: 14px; }
  body .company-team .member-identity .profile-photo { grid-column: 1; grid-row: 1 / span 2; width: 64px; max-width: 64px; }
  body .company-team .member-identity:has(.profile-photo) .member-role { grid-column: 2; grid-row: 1; align-self: end; }
  body .company-team .member-identity:has(.profile-photo) .member-name { grid-column: 2; grid-row: 2; align-self: start; white-space: nowrap; }
  body .company-team .member-identity:not(:has(.profile-photo)) { gap: 2px; }
}

/* 写真が未登録のメンバー: 丸い枠だけ置く（写真が入ったら .profile-photo--empty を外して img に差し替える）*/
body .profile-photo--empty { display: grid; place-items: center; background: var(--sky-wash); border-radius: 50%; overflow: hidden; aspect-ratio: 1 / 1; }
body .profile-photo--empty svg { width: 78%; height: 78%; fill: #c4d8ec; }
body .company-team .profile-photo--empty { width: 72px; max-width: 72px; }
@media (max-width: 760px) {
  body .company-team .member-identity:has(.profile-photo--empty) { grid-template-columns: 64px 1fr; column-gap: 14px; }
  body .company-team .member-identity:has(.profile-photo--empty) .profile-photo { grid-column: 1; grid-row: 1 / span 2; width: 64px; max-width: 64px; }
  body .company-team .member-identity:has(.profile-photo--empty) .member-role { grid-column: 2; grid-row: 1; align-self: end; }
  body .company-team .member-identity:has(.profile-photo--empty) .member-name { grid-column: 2; grid-row: 2; align-self: start; white-space: nowrap; }
}

/* トップ 05 よくある質問（2026-10-13）: FAQページと同じ作りを、トップの幅と色に合わせる */
.home .faq-section .faq { max-width: 56rem; }
.home .faq-section details { border-top: 1px solid var(--line); }
.home .faq-section details:last-child { border-bottom: 1px solid var(--line); }
.home .faq-section summary { cursor: pointer; padding-block: 20px; font-weight: 700; font-size: var(--body); color: var(--ink); }
.home .faq-section .a { padding-bottom: 22px; color: var(--text); font-size: var(--body); line-height: 1.95; }
.home .faq-section .a a { text-decoration: underline; text-underline-offset: 4px; }
html:has(.home) #faq { scroll-margin-top: 84px; }
