/* ==========================================================================
   Fujiwara Design 2026 – main.css
   1. reset / base   2. layout   3. header / nav   4. hero(page)   5. components
   6. sections   7. forms   8. footer   9. utilities / motion
   ========================================================================== */

/* 1. reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-water-deep); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-tight); margin: 0; color: var(--color-navy-deep); letter-spacing: .02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-water); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--color-navy); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* 2. layout ------------------------------------------------------------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - var(--gutter) * 2, var(--container-narrow)); margin-inline: auto; }
.container--wide { width: min(100% - var(--gutter) * 2, var(--container-wide)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--sm { padding-block: var(--section-sm); }
.section--surface { background: var(--color-surface); }
.section--tint { background: var(--color-navy-tint); }
.section--navy { background: var(--color-navy-deep); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--paper-deep { background: var(--color-paper-deep); }
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-media { grid-template-columns: 1.15fr 1fr; }
}

/* 方眼の地紋 */
.grid-bg { background-color: var(--color-paper); background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px); background-size: 28px 28px; }
.grid-bg--fade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--color-paper) 100%); pointer-events: none; }

/* 3. header / nav --------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgb(247 246 242 / .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-top: 3px solid var(--color-water); border-bottom: 1px solid rgb(31 52 80 / .1); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--color-navy-deep); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 52px; width: auto; display: block; } /* 三角マーク＋Since 1964（縦組み） */
.brand__word { height: 22px; width: auto; margin-left: .3rem; }
@media (max-width: 599px) { .brand__mark { height: 44px; } .brand__word { height: 18px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; }
.brand__sub { font-size: .65rem; letter-spacing: .12em; color: var(--color-muted); }
.nav-desktop { display: none; }
.nav-desktop__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav-desktop__list a { position: relative; color: var(--color-ink); font-weight: 500; font-size: .95rem; padding: .4rem 0; text-decoration: none; }
.nav-desktop__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-water); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-desktop__list a:hover::after, .nav-desktop__list .current-menu-item > a::after, .nav-desktop__list .current-page-ancestor > a::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.site-header__actions .header-recruit { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-sm); }
.nav-toggle span { display: block; height: 2px; background: var(--color-navy-deep); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-drawer); background: var(--color-paper); padding: var(--sp-6) var(--gutter) var(--sp-8); overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden; }
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }
.nav-drawer__list li + li { border-top: 1px solid var(--color-line-soft); }
.nav-drawer__list a { display: block; padding: 1rem .25rem; font-size: 1.1rem; font-weight: 500; color: var(--color-ink); text-decoration: none; }
.nav-drawer__list .sub-menu a { padding-left: 1.5rem; font-size: 1rem; font-weight: 400; color: var(--color-ink-soft); }
.nav-drawer__cta { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .site-header__actions .header-recruit { display: inline-flex; }
  .nav-toggle, .nav-drawer { display: none; }
}

/* 4. page hero (下層) ------------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; background: var(--color-navy-deep); color: #fff; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero__inner { position: relative; padding-block: clamp(3.5rem, 6vw, 6rem); min-height: clamp(220px, 32vw, 380px); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-3); }
.page-hero__label { font-family: var(--font-hand); color: var(--color-water-soft); font-size: var(--fs-lg); letter-spacing: .05em; }
.page-hero__title { color: #fff; font-size: var(--fs-3xl); }
.page-hero__lead { max-width: 40em; color: rgb(255 255 255 / .9); font-size: var(--fs-md); }
.page-hero--plain { background: var(--color-navy-tint); color: var(--color-ink); }
.page-hero--plain .page-hero__title { color: var(--color-navy-deep); }
.page-hero--plain .page-hero__label { color: var(--color-water-deep); }
.page-hero--plain .page-hero__lead { color: var(--color-ink-soft); }

/* breadcrumb */
.breadcrumb { font-size: var(--fs-xs); color: var(--color-muted); padding-block: var(--sp-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--color-line); }
.breadcrumb a { color: var(--color-muted); }

/* 5. components ----------------------------------------------------------- */
/* 見出し */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head--center { text-align: center; }
.sec-head__label { display: inline-block; font-family: var(--font-hand); color: var(--color-water-deep); font-size: var(--fs-lg); letter-spacing: .04em; margin-bottom: .35rem; }
.sec-head__title { font-size: var(--fs-2xl); }
.sec-head__lead { margin-top: var(--sp-4); color: var(--color-ink-soft); max-width: 44em; }
.sec-head--center .sec-head__lead { margin-inline: auto; }
.sec-head__title .hl { background: linear-gradient(transparent 62%, var(--color-water-soft) 62%); padding: 0 .1em; }
/* 手描き風下線 */
.underline-hand { position: relative; display: inline-block; }
.underline-hand::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.15em; height: .45em; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 C 40 2, 80 10, 120 6 S 180 4, 198 7' fill='none' stroke='%232f7fc1' stroke-width='3' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%; z-index: -1; opacity: .8; }

/* アイコン（スプライト） */
.icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.6rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; border: 2px solid transparent; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn__icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--primary { background: var(--color-cta); color: var(--color-cta-text); box-shadow: 0 6px 18px rgb(240 163 58 / .35); }
.btn--primary:hover { background: var(--color-cta-deep); box-shadow: 0 8px 22px rgb(240 163 58 / .45); }
.btn--navy { background: var(--color-navy); color: #fff; }
.btn--navy:hover { background: var(--color-navy-deep); }
.btn--outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--ghost { color: var(--color-navy-deep); background: transparent; padding-inline: .5rem; min-height: 40px; }
.btn--ghost:hover { transform: none; text-decoration: underline; }
.btn--white { background: #fff; color: var(--color-navy-deep); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }
.btn-row--center { justify-content: center; }

/* カード */
.card { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card--link { color: inherit; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; background: var(--color-navy-tint); }
.card__media--portrait { aspect-ratio: 4 / 5; }
.card__media--wide { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-size: var(--fs-lg); color: var(--color-navy-deep); }
.card__meta { font-size: var(--fs-sm); color: var(--color-muted); }
.card__text { color: var(--color-ink-soft); font-size: var(--fs-sm); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* メディア枠 */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-navy-tint); box-shadow: var(--shadow-1); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1; }
.media--auto { aspect-ratio: auto; }
.media--auto img { height: auto; }

/* 3本柱 */
.keywords { display: grid; gap: var(--sp-5); }
.keyword { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow-1); position: relative; }
.keyword__num { font-family: var(--font-hand); color: var(--color-water); font-size: var(--fs-xl); line-height: 1; }
.keyword__title { font-size: var(--fs-lg); margin-top: var(--sp-2); }
.keyword__text { margin-top: var(--sp-3); color: var(--color-ink-soft); font-size: var(--fs-sm); }
.keyword__icon { width: 56px; height: 56px; margin-bottom: var(--sp-3); }
@media (min-width: 720px) { .keywords { grid-template-columns: repeat(3, 1fr); } }

/* 強みカード（常に 2×2・中央寄せ） */
.strengths { display: grid; gap: var(--sp-6); max-width: 960px; margin-inline: auto; }
@media (min-width: 720px) { .strengths { grid-template-columns: repeat(2, 1fr); } }
.strength { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.strength__media { aspect-ratio: 16 / 10; background: var(--color-navy-tint); }
.strength__media img { width: 100%; height: 100%; object-fit: cover; }
.strength__body { padding: var(--sp-5); }
.strength__num { font-family: var(--font-hand); color: var(--color-water); font-size: var(--fs-lg); }
.strength__title { font-size: var(--fs-lg); margin: .25rem 0 var(--sp-3); }
.strength__list li { position: relative; padding-left: 1.4em; font-size: var(--fs-sm); color: var(--color-ink-soft); margin-top: .35rem; }
.strength__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8em; height: .8em; border-radius: 50%; background: var(--color-water-soft); border: 2px solid var(--color-water); box-sizing: border-box; }

/* ピル */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; padding: .35rem .9rem; border-radius: var(--radius-pill); background: var(--color-water-soft); color: var(--color-water-deep); font-weight: 700; font-size: var(--fs-sm); }

/* 数字（ファクト） */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
.fact { text-align: center; padding: var(--sp-5) var(--sp-3); background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.fact__value { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xl); color: var(--color-navy); line-height: 1.1; }
.fact__value small { font-size: .5em; margin-left: .1em; }
.fact__label { font-size: var(--fs-sm); color: var(--color-muted); margin-top: .35rem; }

/* お知らせ */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-5); align-items: baseline; padding: var(--sp-4) 0; border-bottom: 1px solid var(--color-line-soft); }
.news-item:first-child { border-top: 1px solid var(--color-line-soft); }
.news-item__date { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-muted); font-size: var(--fs-sm); white-space: nowrap; }
.news-item__title { font-weight: 500; }
.news-item__title a { color: var(--color-ink); }
.news-item__title a:hover { color: var(--color-water-deep); }
@media (max-width: 599px) { .news-item { grid-template-columns: 1fr; gap: .25rem; } }

/* 社長の想い ティーザー */
.president { display: grid; gap: var(--sp-6); align-items: center; }
.president__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 5; max-width: 420px; }
.president__photo img { width: 100%; height: 100%; object-fit: cover; }
.president__quote { font-family: var(--font-hand); font-size: var(--fs-xl); color: var(--color-navy-deep); line-height: 1.6; }
.president__quote::before { content: "“"; color: var(--color-water); margin-right: .1em; }
.president__quote::after { content: "”"; color: var(--color-water); margin-left: .1em; }
.president__name { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--color-muted); }
.president__name strong { display: block; font-size: var(--fs-lg); color: var(--color-ink); font-family: var(--font-display); }
.president__text { margin-top: var(--sp-4); color: var(--color-ink-soft); }
@media (min-width: 900px) { .president { grid-template-columns: 2fr 3fr; gap: var(--sp-8); } }

/* CTA（採用） */
.cta-recruit { position: relative; overflow: hidden; background: var(--color-navy-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); text-align: center; isolation: isolate; }
.cta-recruit::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 28px 28px; z-index: -1; }
.cta-recruit__label { font-family: var(--font-hand); color: var(--color-water-soft); font-size: var(--fs-lg); }
.cta-recruit__title { color: #fff; font-size: var(--fs-2xl); margin-top: .35rem; }
.cta-recruit__text { margin: var(--sp-4) auto 0; max-width: 34em; color: rgb(255 255 255 / .85); }
.cta-recruit__btns { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-4); }
.cta-recruit--compact { text-align: left; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: var(--sp-4); align-items: center; }
.cta-recruit--compact .cta-recruit__btns { margin-top: 0; justify-content: flex-start; }
@media (min-width: 900px) { .cta-recruit--compact { grid-template-columns: 1fr auto; } }
/* CTA（問い合わせ） */
.cta-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--color-line); }
.cta-contact__text { color: var(--color-ink-soft); }
.cta-contact__text strong { display: block; color: var(--color-navy-deep); font-family: var(--font-display); font-size: var(--fs-lg); }
/* 固定CTA（SP） */
.cta-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(247 246 242 / .92); backdrop-filter: blur(10px); border-top: 1px solid rgb(36 48 63 / .08); transform: translateY(110%); transition: transform .35s var(--ease); }
.cta-sticky.is-visible { transform: translateY(0); }
.cta-sticky .btn { min-height: 46px; font-size: .95rem; padding-inline: .8rem; border-radius: var(--radius-md); }
body.has-sticky-cta { padding-bottom: 70px; }
@media (min-width: 900px) { .cta-sticky { display: none; } body.has-sticky-cta { padding-bottom: 0; } }

/* タブ */
.tabs__list { display: flex; gap: .5rem; border-bottom: 2px solid var(--color-line); margin-bottom: var(--sp-6); }
.tabs__tab { padding: .8rem 1.4rem; font-family: var(--font-display); font-weight: 700; color: var(--color-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tabs__tab[aria-selected="true"] { color: var(--color-navy-deep); border-bottom-color: var(--color-water); background: var(--color-surface); }
.tabs__panel[hidden] { display: none; }

/* 定義テーブル */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: var(--sp-4); }
.def-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1); }
.def-table th, .def-table td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line-soft); font-size: var(--fs-sm); }
.def-table th { width: 9em; background: var(--color-navy-tint); color: var(--color-navy-deep); font-weight: 700; white-space: nowrap; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) { .def-table th, .def-table td { display: block; width: auto; } .def-table th { border-bottom: 0; padding-bottom: .25rem; } .def-table td { padding-top: .25rem; } }

/* 本文（the_content）スコープ */
.prose { max-width: var(--container-narrow); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; padding-bottom: .4em; border-bottom: 2px solid var(--color-water-soft); }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.8em; }
.prose ul { padding-left: 1.4em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: .3em; }
.prose img { border-radius: var(--radius-md); }
.prose figure { margin: 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--color-muted); margin-top: .5em; }
.prose table { background: var(--color-surface); box-shadow: var(--shadow-1); border-radius: var(--radius-md); overflow: hidden; }
.prose th, .prose td { padding: .8rem 1rem; border-bottom: 1px solid var(--color-line-soft); text-align: left; vertical-align: top; font-size: var(--fs-sm); }
.prose th { background: var(--color-navy-tint); color: var(--color-navy-deep); }
.prose td:first-child { white-space: nowrap; color: var(--color-muted); }
.prose blockquote { margin: 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--color-water); background: var(--color-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.prose a { text-decoration: underline; }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--color-line); }

/* 写真ストリップ（scroll-snap） */
.strip { position: relative; }
.strip__track { display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.strip__item { flex: 0 0 min(78%, 420px); scroll-snap-align: center; }
.strip__item figure { margin: 0; }
.strip__item .media { aspect-ratio: 4 / 3; }
.strip__caption { margin-top: .5rem; font-size: var(--fs-sm); color: var(--color-muted); text-align: center; }
.strip__nav { display: none; }
@media (min-width: 900px) {
  .strip__nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
  .strip__btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--color-navy); color: var(--color-navy); display: inline-flex; align-items: center; justify-content: center; }
  .strip__btn:hover { background: var(--color-navy); color: #fff; }
  .strip__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
}

/* YouTube facade */
.yt-facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-navy-deep); box-shadow: var(--shadow-2); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-facade__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.yt-facade__play span { width: 76px; height: 76px; border-radius: 50%; background: var(--color-cta); display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform .2s; }
.yt-facade__play:hover span { transform: scale(1.06); }
.yt-facade__play svg { width: 28px; height: 28px; fill: var(--color-cta-text); margin-left: 4px; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 自前動画ブロック */
.video-block { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #faf8f2; box-shadow: var(--shadow-2); }
.video-block__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-block__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.video-block__play span { width: 84px; height: 84px; border-radius: 50%; background: var(--color-cta); display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform .2s; }
.video-block__play:hover span { transform: scale(1.06); }
.video-block__play svg { width: 30px; height: 30px; fill: var(--color-cta-text); margin-left: 4px; }
.video-block.is-playing .video-block__play { display: none; }

/* サブナビ（採用） */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; }
.subnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-navy-deep); font-weight: 500; font-size: var(--fs-sm); text-decoration: none; }
.subnav a:hover { border-color: var(--color-water); color: var(--color-water-deep); }

/* 手描き丸付きリスト（求める人物像） */
.three { display: grid; gap: var(--sp-4); }
.three__item { position: relative; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5) var(--sp-5); text-align: center; box-shadow: var(--shadow-1); }
.three__num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--color-cta); color: var(--color-cta-text); font-family: var(--font-hand); font-size: 1.1rem; display: grid; place-items: center; }
.three__text { font-family: var(--font-display); font-weight: 700; color: var(--color-navy-deep); font-size: var(--fs-lg); line-height: 1.5; }
@media (min-width: 720px) { .three { grid-template-columns: repeat(3, 1fr); } }

/* 成長ステップ（縦タイムライン） */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; display: grid; gap: var(--sp-3); }
.timeline__item { position: relative; display: grid; grid-template-columns: 7em 1fr; gap: var(--sp-4); align-items: baseline; padding: var(--sp-4) var(--sp-5); background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-1); border-left: 4px solid var(--color-water); }
.timeline__label { font-family: var(--font-hand); color: var(--color-water-deep); font-size: var(--fs-md); white-space: nowrap; }
.timeline__title { font-size: var(--fs-md); font-weight: 700; color: var(--color-navy-deep); }
.timeline__text { margin-top: .25rem; font-size: var(--fs-sm); color: var(--color-ink-soft); }
@media (max-width: 479px) { .timeline__item { grid-template-columns: 1fr; gap: .25rem; } }

/* 6. sections ------------------------------------------------------------ */
.lead { font-size: var(--fs-lg); color: var(--color-ink-soft); max-width: 40em; }
.lead--center { margin-inline: auto; text-align: center; }
.quote-block { font-family: var(--font-hand); font-size: var(--fs-xl); color: var(--color-navy-deep); line-height: 1.7; text-align: center; }
.mottos { display: grid; gap: var(--sp-4); }
.motto { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); text-align: center; box-shadow: var(--shadow-1); font-family: var(--font-hand); font-size: var(--fs-lg); color: var(--color-navy-deep); line-height: 1.7; position: relative; }
.motto::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgb(47 127 193 / .18); }
@media (min-width: 720px) { .mottos { grid-template-columns: repeat(3, 1fr); } }

/* 7. forms（CF7） ------------------------------------------------------------ */
.form { max-width: var(--container-narrow); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form .hidden-fields-container { display: none; }
.form table, .form .table-res-form { width: 100%; background: transparent; box-shadow: none; border-radius: 0; }
.form table th, .form table td { background: transparent; border: 0; padding: 0; white-space: normal; color: inherit; }
.form table th { font-weight: 700; color: var(--color-navy-deep); font-size: var(--fs-sm); padding-top: var(--sp-4); }
.form .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .screen-reader-response.is-visible { position: static; width: auto; height: auto; clip: auto; }
.form .send { margin-top: var(--sp-5); text-align: center; }
.form .send input[type="submit"] { margin-top: 0; }
.form table, .form .table-res-form { width: 100%; }
.form th, .form td { display: block; padding: 0; border: 0; text-align: left; }
.form th { font-weight: 700; color: var(--color-navy-deep); font-size: var(--fs-sm); padding-top: var(--sp-4); }
.form td { padding-bottom: var(--sp-2); }
.form tr { display: block; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); font: inherit; color: inherit; margin-top: .35rem;
}
.form textarea { min-height: 160px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--color-water); outline: 2px solid var(--color-water-soft); }
.form .wpcf7-list-item { margin: .3rem 1rem .3rem 0; display: inline-block; }
.form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .4rem; }
.form .wpcf7-not-valid-tip { color: var(--color-error); font-size: var(--fs-xs); margin-top: .25rem; }
.form .wpcf7-response-output { margin: var(--sp-5) 0 0; padding: var(--sp-4); border: 2px solid var(--color-line); border-radius: var(--radius-sm); }
.form .wpcf7-response-output:empty { display: none; } /* 送信前の空の枠は出さない（CF7 の CSS は読み込んでいないため） */
.form .wpcf7-form.sent .wpcf7-response-output { border-color: var(--color-success); }
.form .wpcf7-form.invalid .wpcf7-response-output, .form .wpcf7-form.failed .wpcf7-response-output { border-color: var(--color-error); }
.form input[type="submit"], .form .wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: .9rem 2.4rem; margin-top: var(--sp-5); border: 0; border-radius: var(--radius-pill); background: var(--color-cta); color: var(--color-cta-text); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 18px rgb(240 163 58 / .35); transition: background-color .2s, transform .2s; }
.form input[type="submit"]:hover { background: var(--color-cta-deep); transform: translateY(-2px); }
.form .wpcf7-spinner { margin-left: .5rem; }
.form .required, .form .req { color: var(--color-error); font-size: .8em; margin-left: .3em; }
.form .reCAPTCHA, .form .t12 { display: none; }
.form-note { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--sp-4); }

/* 8. footer ------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%); color: rgb(255 255 255 / .88); margin-top: var(--section); border-top: 4px solid var(--color-water); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-water-soft); }
.footer-top { padding-block: clamp(3rem, 5vw, 4.5rem); display: grid; gap: var(--sp-7); }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.footer-brand__mark { height: 64px; width: auto; display: block; }
.footer-brand__word { height: 26px; width: auto; margin-left: .4rem; }
@media (max-width: 599px) { .footer-brand__mark { height: 56px; } .footer-brand__word { height: 22px; } }
.footer-brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.footer-brand__sub { display: block; font-size: .7rem; letter-spacing: .12em; opacity: .7; }
.footer-info { margin-top: var(--sp-4); font-size: var(--fs-sm); line-height: 1.8; }
.footer-info a { text-decoration: none; }
.footer-map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: rgb(255 255 255 / .06); }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.5rem; font-size: var(--fs-sm); }
.footer-nav a { text-decoration: none; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-nav .sub-menu { padding-left: 1em; }
.footer-cta { margin-top: var(--sp-5); }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); margin-top: var(--sp-4); text-decoration: none; }
.footer-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .14); padding-block: var(--sp-4); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between; align-items: center; opacity: .85; }
.footer-bottom a { text-decoration: none; }
.page-top { position: fixed; right: 16px; bottom: 84px; z-index: var(--z-sticky); width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); color: var(--color-navy); box-shadow: var(--shadow-2); display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.page-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.page-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .page-top { bottom: 24px; right: 24px; }
}

/* 404 */
.notfound { text-align: center; padding-block: var(--section); }
.notfound__code { font-family: var(--font-hand); font-size: var(--fs-4xl); color: var(--color-water); line-height: 1; }

/* 9. utilities / motion --------------------------------------------------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-6 { margin-bottom: var(--sp-6); }
.hand { font-family: var(--font-hand); }
.hide-sp { display: none; } @media (min-width: 720px) { .hide-sp { display: initial; } .hide-pc { display: none; } }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; } [data-reveal-delay="2"] { transition-delay: .2s; } [data-reveal-delay="3"] { transition-delay: .3s; } [data-reveal-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
