/* =========================================================
   株式会社ひなた工務店 - style.css
   Pure CSS / no framework。配色・フォント・余白は :root のトークンで一元管理する。
   コンセプト：日向（ひなた）。白い壁と木の床、朝の光。差し色は深い緑。黒は使わない。
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Design Tokens ---------- */
:root {
  /* 深い緑（差し色・主ボタン） */
  --c-primary: #2d5a43;
  --c-primary-deep: #214634;
  --c-primary-soft: #e9f0ea;
  /* 木（サブアクセント。淡い面と罫線に使う） */
  --c-wood: #b98a58;
  --c-wood-deep: #8a6038;
  --c-accent: #e3b36b;          /* 日向の光（装飾・暗い面の上の強調） */

  --c-bg: #fffdf9;              /* 白（わずかに温かい） */
  --c-bg-cream: #f6efe3;        /* 白木の面 */
  --c-text: #3a2f25;            /* 焦げ茶（黒を使わない） */
  --c-text-muted: #6b5d4f;      /* 白地で約6:1 */
  --c-border: #e6dccb;
  --c-danger: #b5392b;

  --f-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --f-disp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(90,60,30,0.08);
  --shadow-card: 0 24px 60px rgba(90,60,30,0.14);
  /* 木目の筋（区切りの装飾） */
  --grain: repeating-linear-gradient(90deg, rgba(185,138,88,0.35) 0 2px, transparent 2px 9px, rgba(185,138,88,0.2) 9px 10px, transparent 10px 22px);
}

/* ---------- Base ---------- */
html, body {
  font-family: var(--f-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 768px) { :root { --header-h: 64px; } }

h1, h2, h3 { font-family: var(--f-disp); line-height: 1.5; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

.section { padding: 104px 0; position: relative; }
.section--cream { background: var(--c-bg-cream); }
.section--green { background: var(--c-primary); color: #fff; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head--left { text-align: left; margin-left: 0; }
.section__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-size: 13px; font-weight: 700; letter-spacing: 0.24em; color: var(--c-wood-deep); text-transform: uppercase; margin-bottom: 14px; }
.section__label::before { content: ""; width: 26px; height: 2px; background: var(--c-wood); border-radius: 2px; }
.section__title { font-size: clamp(25px, 4.2vw, 36px); letter-spacing: 0.05em; }
.section__lead { margin-top: 18px; color: var(--c-text-muted); font-size: 15.5px; }
.section--green .section__label { color: var(--c-accent); }
.section--green .section__label::before { background: var(--c-accent); }
.section--green .section__lead { color: rgba(255,255,255,0.88); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-pill);
  background: var(--c-primary); color: #fff; font-weight: 700; font-size: 15.5px;
  letter-spacing: 0.06em; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(45,90,67,0.28); min-height: 52px;
}
.btn:hover { background: var(--c-primary-deep); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--c-primary-deep); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn--light:hover { background: var(--c-bg-cream); }
.btn--line { background: #06C755; box-shadow: 0 8px 20px rgba(6,199,85,0.28); }
.btn--line:hover { background: #05a847; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.14); }
.btn--outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); box-shadow: none; }
.btn--outline:hover { background: var(--c-primary-soft); }
.btn .sns-icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--c-border); }
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,253,249,0.94);
  -webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.hdr__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-weight: 700; flex-shrink: 0; }
.hdr__mark { width: 34px; height: 34px; color: var(--c-primary); }
.hdr__name { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__name b { font-size: 20px; letter-spacing: 0.08em; }
.hdr__name small { font-size: 10.5px; letter-spacing: 0.18em; color: var(--c-text-muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-size: 14.5px; font-weight: 500; letter-spacing: 0.04em; position: relative; padding: 6px 0; transition: color 0.2s; white-space: nowrap; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-wood); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav > a:hover { color: var(--c-primary); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"] { color: var(--c-primary); font-weight: 700; }
.nav__sns { display: none; }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.sns-icon { width: 22px; height: 22px; }
.sns-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 11px 22px; border-radius: var(--radius-pill);
  background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
  transition: background 0.2s;
}
.hdr__cta:hover { background: var(--c-primary-deep); }

.hdr__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 96; }
.hdr__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--c-text); transition: transform 0.3s, opacity 0.2s; }
.hdr__burger span:nth-child(1) { top: 15px; }
.hdr__burger span:nth-child(2) { top: 21px; }
.hdr__burger span:nth-child(3) { top: 27px; }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { opacity: 0; }
.hdr__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(58,47,37,0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 90; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero（トップ） ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); min-height: calc(100vh - var(--header-h)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--c-primary-deep); }
@supports (min-height: 100svh) { .hero { min-height: calc(100svh - var(--header-h)); } }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(33,70,52,0.30) 0%, rgba(33,70,52,0.10) 35%, rgba(46,32,18,0.78) 100%),
  linear-gradient(90deg, rgba(46,32,18,0.55) 0%, rgba(46,32,18,0) 70%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 128px; }
.hero__eyebrow { display: inline-block; font-family: var(--f-disp); font-size: 14px; font-weight: 700; letter-spacing: 0.22em; padding: 7px 18px; background: rgba(255,253,249,0.16); border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-pill); margin-bottom: 26px; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(34px, 6.6vw, 68px); line-height: 1.38; letter-spacing: 0.06em; text-shadow: 0 2px 24px rgba(40,25,10,0.45); max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero__lead { margin-top: 24px; font-size: clamp(15px, 2.2vw, 18px); max-width: 33em; text-shadow: 0 1px 12px rgba(40,25,10,0.5); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__sub { margin-top: 20px; font-size: 14px; }
.hero__sub a { border-bottom: 1px solid rgba(255,255,255,0.7); padding-bottom: 2px; }

/* 見学会ストリップ（ヒーロー下に重ねる） */
.event-strip { position: relative; z-index: 5; margin-top: -72px; }
.event-strip__card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; background: #fff; border-radius: var(--radius-lg); padding: 28px 36px; box-shadow: var(--shadow-card); border: 1px solid var(--c-border); }
.event-strip__badge { background: var(--c-primary); color: #fff; font-family: var(--f-disp); font-weight: 700; text-align: center; padding: 14px 20px; border-radius: 14px; line-height: 1.3; }
.event-strip__badge small { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--c-accent); }
.event-strip__badge b { font-size: 22px; letter-spacing: 0.06em; }
.event-strip__title { font-family: var(--f-disp); font-size: 20px; font-weight: 700; line-height: 1.5; }
.event-strip__text { margin-top: 4px; color: var(--c-text-muted); font-size: 14.5px; }

/* ---------- Split（写真＋文） ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--rev { grid-template-columns: 1fr 1.05fr; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-card); }
.split__media::after { content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 62%; height: 62%; border-radius: var(--radius-lg); background: var(--grain), var(--c-bg-cream); border: 1px solid var(--c-border); }
.split--rev .split__media::after { right: auto; left: -18px; }
.split__body .section__title { margin-bottom: 20px; }
.split__body p + p { margin-top: 1em; }
.split__body .btn { margin-top: 28px; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: calc(0.55em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- 3本柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 40px 32px 36px; position: relative; box-shadow: var(--shadow-soft); overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--grain), var(--c-wood); }
.pillar__no { font-family: var(--f-disp); font-weight: 700; color: var(--c-wood); font-size: 14px; letter-spacing: 0.2em; }
.pillar__fig { margin: 12px 0 10px; font-family: var(--f-disp); font-weight: 700; color: var(--c-primary); line-height: 1.15; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pillar__fig b { font-size: clamp(44px, 6vw, 60px); letter-spacing: 0.02em; }
.pillar__fig span { font-size: 16px; color: var(--c-text-muted); font-weight: 500; }
.pillar__fig--word b { font-size: clamp(30px, 4vw, 38px); }
.pillar h3 { font-size: 20px; margin-bottom: 12px; }
.pillar p { font-size: 15px; color: var(--c-text-muted); }

/* ---------- Cards（導線） ---------- */
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.link-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-soft); isolation: isolate; }
.link-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.link-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46,32,18,0.05) 20%, rgba(46,32,18,0.82) 100%); }
.link-card:hover img { transform: scale(1.05); }
.link-card__body { padding: 30px 32px; }
.link-card__label { font-family: var(--f-disp); font-size: 12px; letter-spacing: 0.22em; color: var(--c-accent); font-weight: 700; }
.link-card h3 { font-size: 24px; margin: 4px 0 8px; }
.link-card p { font-size: 14.5px; opacity: 0.94; }
.link-card__more { display: inline-block; margin-top: 12px; font-weight: 700; border-bottom: 2px solid var(--c-accent); }

/* ---------- 見学会 CTA（深緑の面） ---------- */
.visit { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--c-primary-deep); }
.visit__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(33,70,52,0.96) 20%, rgba(33,70,52,0.7) 100%); }
.visit__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.visit h2 { font-size: clamp(27px, 4.4vw, 38px); margin-bottom: 18px; }
.visit p { color: rgba(255,255,255,0.92); }
.visit__steps { display: grid; gap: 14px; margin-top: 26px; counter-reset: s; }
.visit__steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; font-weight: 500; }
.visit__steps li::before { content: counter(s); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary-deep); font-family: var(--f-disp); font-weight: 700; display: grid; place-items: center; }
.visit__panel { background: #fffdf9; color: var(--c-text); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.visit__panel h3 { font-size: 19px; margin-bottom: 6px; }
.visit__panel p { color: var(--c-text-muted); font-size: 14px; }
.visit__panel .btn { width: 100%; margin-top: 18px; }
.visit__panel .btn + .btn { margin-top: 12px; }

/* ---------- 採用帯 ---------- */
.recruit-band { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 112px 0; background: var(--c-wood-deep); }
.recruit-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.recruit-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(60,38,18,0.92) 0%, rgba(60,38,18,0.55) 100%); }
.recruit-band h2 { font-size: clamp(26px, 4.2vw, 38px); margin: 6px 0 18px; max-width: 16em; }
.recruit-band p { max-width: 34em; color: rgba(255,255,255,0.92); }
.recruit-band .btn { margin-top: 30px; }

/* ---------- 流れ（ステップ） ---------- */
.steps { max-width: 860px; margin: 0 auto; counter-reset: st; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--c-border); }
.step { counter-increment: st; position: relative; padding: 0 0 36px 84px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--c-bg); }
.section--cream .step::before { box-shadow: 0 0 0 6px var(--c-bg-cream); }
.step h3 { font-size: 20px; margin-bottom: 6px; padding-top: 12px; }
.step p { color: var(--c-text-muted); font-size: 15px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; padding: 96px 0 84px; overflow: hidden; isolation: isolate; background: var(--c-primary-deep); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(33,70,52,0.92) 15%, rgba(33,70,52,0.5) 100%); }
.page-hero--plain::before { background: linear-gradient(100deg, #214634, #2d5a43); }
.page-hero__label { display: block; font-family: var(--f-disp); letter-spacing: 0.26em; color: var(--c-accent); font-weight: 700; font-size: 13px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero__title { font-size: clamp(28px, 5.2vw, 44px); letter-spacing: 0.06em; }
.page-hero__lead { margin-top: 16px; max-width: 36em; font-size: 15.5px; color: rgba(255,255,255,0.92); }
.crumb { font-size: 12.5px; margin-bottom: 18px; color: rgba(255,255,255,0.8); }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 表（会社概要・募集要項） ---------- */
.dl-table { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.dl-table th, .dl-table td { text-align: left; padding: 20px 28px; border-bottom: 1px solid var(--c-border); vertical-align: top; font-size: 15px; }
.dl-table tr:last-child th, .dl-table tr:last-child td { border-bottom: none; }
.dl-table th { width: 200px; background: var(--c-bg-cream); font-weight: 700; color: var(--c-primary-deep); }
.dl-table td a { color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- メニュー（リフォーム等） ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.menu { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow-soft); }
.menu__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--c-primary); background: var(--c-primary-soft); padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.menu h3 { font-size: 21px; margin-bottom: 10px; }
.menu p { color: var(--c-text-muted); font-size: 15px; }

/* ---------- イベントカード ---------- */
.event { display: grid; grid-template-columns: 240px 1fr; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); max-width: 920px; margin: 0 auto; }
.event__date { background: var(--c-primary); color: #fff; padding: 36px 24px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-family: var(--f-disp); }
.event__date small { color: var(--c-accent); letter-spacing: 0.18em; font-size: 12px; font-weight: 700; }
.event__date b { font-size: 26px; line-height: 1.3; letter-spacing: 0.04em; }
.event__body { padding: 34px 38px; }
.event__body h3 { font-size: 22px; margin-bottom: 12px; }
.event__meta { margin-top: 16px; display: grid; gap: 6px; font-size: 14.5px; }
.event__meta div { display: flex; gap: 14px; }
.event__meta dt { flex: 0 0 5.5em; font-weight: 700; color: var(--c-primary-deep); }

/* ---------- News ---------- */
.news__list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--c-border); }
.news__item { border-bottom: 1px solid var(--c-border); }
.news__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 22px 8px; text-align: left; }
.news__date { font-family: var(--f-disp); color: var(--c-wood-deep); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; flex-shrink: 0; }
.news__cat { font-size: 11.5px; letter-spacing: 0.08em; color: var(--c-primary); background: var(--c-primary-soft); border-radius: var(--radius-pill); padding: 3px 12px; flex-shrink: 0; font-weight: 700; }
.news__title { flex: 1; font-size: 15.5px; font-weight: 500; }
.news__toggle { width: 12px; height: 12px; position: relative; flex-shrink: 0; }
.news__toggle::before, .news__toggle::after { content: ""; position: absolute; background: var(--c-text-muted); transition: transform 0.3s; }
.news__toggle::before { top: 5px; left: 0; right: 0; height: 2px; }
.news__toggle::after { left: 5px; top: 0; bottom: 0; width: 2px; }
.news__item.is-open .news__toggle::after { transform: scaleY(0); }
.news__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.news__item.is-open .news__body { max-height: 600px; }
.news__body-inner { padding: 0 8px 24px; color: var(--c-text-muted); font-size: 14.5px; }
.news__link { display: inline-flex; gap: 6px; margin-top: 12px; color: var(--c-primary); font-weight: 700; }
.news__empty { text-align: center; color: var(--c-text-muted); padding: 40px 0; }

/* ---------- Cards / CTA ---------- */
.cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 32px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: transform 0.2s, box-shadow 0.2s; }
.cta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cta-card__label { font-family: var(--f-disp); letter-spacing: 0.2em; color: var(--c-wood-deep); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.cta-card__title { margin: 8px 0 10px; font-size: 21px; }
.cta-card__desc { color: var(--c-text-muted); font-size: 14.5px; flex: 1; }
.cta-card .btn { margin-top: 20px; }
.cta-card__tel { margin-top: 16px; font-family: var(--f-disp); font-size: 26px; font-weight: 700; color: var(--c-primary-deep); letter-spacing: 0.06em; }

/* ---------- Form ---------- */
.form { max-width: 720px; margin: 0 auto; background: #fff; padding: 44px 44px 40px; border-radius: var(--radius-lg); border: 1px solid var(--c-border); box-shadow: var(--shadow-soft); }
.form__intro { font-size: 13.5px; color: var(--c-text-muted); margin-bottom: 26px; }
.form__intro strong { color: var(--c-danger); }
.form__field { margin-bottom: 24px; }
.form__label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.form__required { font-size: 11px; color: #fff; background: var(--c-danger); border-radius: 4px; padding: 2px 8px; margin-left: 8px; font-weight: 500; }
.form__optional { font-size: 11px; color: var(--c-text-muted); border: 1px solid var(--c-border); border-radius: 4px; padding: 2px 8px; margin-left: 8px; font-weight: 500; }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg); font-size: 16px; font-family: inherit; color: var(--c-text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; min-height: 50px;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.form__textarea { min-height: 160px; resize: vertical; }
.form__hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--c-text-muted); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.form__check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.08em; transition: background 0.2s; box-shadow: 0 8px 20px rgba(45,90,67,0.28); }
.form__submit:hover { background: var(--c-primary-deep); }
.form__submit:disabled { opacity: 0.6; cursor: default; }
.form__success { max-width: 720px; margin: 0 auto 24px; padding: 32px; border: 1.5px solid var(--c-primary); border-radius: var(--radius-lg); background: var(--c-primary-soft); text-align: center; }
.form__success h3 { margin-bottom: 8px; }
.form__error { padding: 14px 16px; border: 1px solid var(--c-danger); border-radius: var(--radius); background: #fdecea; color: var(--c-danger); font-size: 14px; margin-bottom: 20px; }
.form__radio { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill); cursor: pointer; margin: 0 8px 8px 0; background: var(--c-bg); font-size: 15px; min-height: 46px; }
.form__radio input { accent-color: var(--c-primary); }
.form__radio.is-checked { border-color: var(--c-primary); background: var(--c-primary-soft); font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { width: 100%; text-align: left; padding: 22px 40px 22px 8px; font-weight: 700; position: relative; font-size: 16px; }
.faq__q::after { content: "＋"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--c-wood-deep); font-weight: 700; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--c-text-muted); font-size: 15px; }
.faq__item.is-open .faq__a { max-height: 500px; padding: 0 8px 22px; }

/* ---------- Prose（プライバシー等） ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 20px; margin: 40px 0 10px; padding-left: 14px; border-left: 5px solid var(--c-wood); }
.prose p, .prose li { font-size: 15px; color: var(--c-text-muted); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-top: 8px; }

/* ---------- Footer（黒でなく深緑） ---------- */
.ftr { background: var(--c-primary-deep); color: #e8efe9; padding: 72px 0 32px; position: relative; }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--grain), var(--c-wood); }
.ftr__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ftr__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-weight: 700; font-size: 21px; letter-spacing: 0.08em; color: #fff; }
.ftr__logo svg { width: 34px; height: 34px; color: var(--c-accent); }
.ftr__about, .ftr__address { font-size: 13.5px; color: #c9d8cd; margin-top: 14px; line-height: 1.9; }
.ftr__tel a { font-family: var(--f-disp); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; margin-top: 10px; display: inline-block; color: #fff; }
.ftr__heading { font-family: var(--f-disp); letter-spacing: 0.2em; font-size: 13px; color: var(--c-accent); margin-bottom: 16px; text-transform: uppercase; font-weight: 700; }
.ftr__links { display: flex; flex-direction: column; gap: 10px; }
.ftr__links a { font-size: 14.5px; color: #dbe6de; transition: color 0.2s; }
.ftr__links a:hover { color: #fff; text-decoration: underline; }
.ftr__bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 48px; padding-top: 24px; text-align: center; }
.ftr__copy { font-size: 12.5px; color: #b9cbbe; letter-spacing: 0.06em; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: rgba(255,253,249,0.97); border-top: 1px solid var(--c-border); backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.mobile-cta__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 4px; font-size: 11.5px; font-weight: 700; color: var(--c-text); min-height: 58px; }
.mobile-cta__btn--primary { background: var(--c-primary); color: #fff; }
.mobile-cta__btn svg { width: 22px; height: 22px; }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hdr__burger { display: block; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 330px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--c-bg); padding: calc(var(--header-h) + 16px) 28px 28px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 95;
    box-shadow: -10px 0 40px rgba(58,47,37,0.2); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--c-border); font-size: 16px; }
  .nav > a::after { display: none; }
  .nav__sns { display: flex; gap: 16px; margin-top: 20px; }
}

@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 40px; }
  .split--rev .split__media { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .visit__inner { grid-template-columns: 1fr; gap: 36px; }
  .event-strip__card { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; text-align: center; }
  .event-strip__badge { justify-self: center; }
  .event { grid-template-columns: 1fr; }
  .event__date { padding: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .section__head { margin-bottom: 40px; }
  .hero__inner { padding-bottom: 104px; padding-top: 56px; }
  .hero__cta .btn { width: 100%; }
  .event-strip { margin-top: -56px; }
  .ftr__inner { grid-template-columns: 1fr; gap: 32px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 66px; }
  .news__head { flex-wrap: wrap; gap: 8px 12px; }
  .news__title { flex-basis: 100%; }
  .dl-table th, .dl-table td { display: block; width: 100%; padding: 12px 20px; }
  .dl-table th { border-bottom: none; padding-bottom: 4px; }
  .dl-table td { padding-top: 6px; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .step { padding-left: 72px; }
  .steps::before { left: 23px; }
  .step::before { width: 48px; height: 48px; font-size: 16px; }
  .recruit-band { padding: 76px 0; }
  .page-hero { padding: 64px 0 56px; }
  .link-card { min-height: 280px; }
  .menu { padding: 28px 24px; }
  .visit__panel { padding: 28px 22px; }
  .event__body { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ---------- 仕上げ：見出しの折り返しと、ヒーロー文字の可読性 ---------- */
h1, h2, h3, .section__title, .event-strip__title { text-wrap: balance; word-break: auto-phrase; }
.hero__lead, .section__lead, .split__body p { text-wrap: pretty; }
.hero::before { background:
  linear-gradient(180deg, rgba(33,70,52,0.34) 0%, rgba(33,70,52,0.16) 30%, rgba(46,32,18,0.82) 100%),
  linear-gradient(90deg, rgba(46,32,18,0.66) 0%, rgba(46,32,18,0.1) 78%); }

/* ---------- 審査対応：モバイル固定バー・ドロワー・GUIDE・動き ---------- */
/* 閉じたドロワーの影が画面端に出ないよう、閉じている間は不可視にする */
@media (max-width: 1080px) {
  .nav { visibility: hidden; box-shadow: none; transition: transform 0.35s ease, visibility 0s linear 0.35s; }
  .nav.is-open { visibility: visible; box-shadow: -10px 0 40px rgba(58,47,37,0.2); transition: transform 0.35s ease, visibility 0s; }
}
/* 固定バーはヒーローを過ぎてから表示（main.js が is-shown を付ける） */
@media (max-width: 768px) {
  .mobile-cta { transform: translateY(105%); transition: transform 0.3s ease; }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta__btn { min-height: 56px; }
  body { padding-bottom: 0; }
  .ftr { padding-bottom: 88px; }
  .hero__eyebrow { font-size: 13px; letter-spacing: 0.12em; padding: 6px 14px; }
  .event-strip { margin-top: -40px; }
}
/* GUIDE：写真を使わない文字主体カード */
.link-card--text { min-height: 280px; background: var(--c-primary); isolation: isolate; align-items: stretch; }
.link-card--text:nth-child(2) { background: var(--c-wood-deep); }
.link-card--text::before { background: var(--grain); opacity: 0.25; z-index: 0; }
.link-card--text .link-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; }
.link-card__no { position: absolute; right: 24px; top: 8px; font-family: var(--f-disp); font-weight: 700; font-size: clamp(88px, 14vw, 140px); line-height: 1; color: rgba(255,255,255,0.14); }
.link-card--text:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.link-card--text { transition: transform 0.25s, box-shadow 0.25s; }

/* ヒーローの動き：見出しを文節ごとにせり上げ、背景はゆっくりズーム */
@keyframes hl-rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes underline-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__bg { animation: hero-zoom 22s ease-out both; transform-origin: 50% 60%; }
.hero h1 .hl { display: inline-block; opacity: 0; animation: hl-rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .hl:nth-child(1) { animation-delay: 0.15s; }
.hero h1 .hl:nth-of-type(2) { animation-delay: 0.3s; }
.hero h1 .hl:nth-of-type(3) { animation-delay: 0.45s; }
.hero h1 em { position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.09em; background: var(--c-accent); transform-origin: left; transform: scaleX(0); animation: underline-grow 0.9s 1.0s ease-out forwards; }
.hero__eyebrow, .hero__lead, .hero__cta { opacity: 0; animation: hero-fade 0.8s ease-out forwards; }
.hero__eyebrow { animation-delay: 0.05s; }
.hero__lead { animation-delay: 0.7s; }
.hero__cta { animation-delay: 0.9s; }
/* 出現の主従：カードは順にずらす */
.pillars .fade-in:nth-child(2), .link-cards .fade-in:nth-child(2), .cta-row .fade-in:nth-child(2) { transition-delay: 0.14s; }
.pillars .fade-in:nth-child(3) { transition-delay: 0.28s; }
/* キーボード操作 */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(45,90,67,0.55); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero h1 .hl, .hero h1 em::after, .hero__eyebrow, .hero__lead, .hero__cta { animation: none !important; opacity: 1; transform: none; }
  .hero h1 em::after { transform: scaleX(1); }
}

/* ---------- 審査2巡目：ヒーロー再構成・レイアウトの緩急・固定バー廃止 ---------- */
.mobile-cta { display: none !important; }
body { padding-bottom: 0 !important; }
.ftr { padding-bottom: 32px !important; }
/* スマホではヘッダーに「見学会を予約」を常設（固定バーの代わり） */
@media (max-width: 1080px) {
  .hdr__cta { display: inline-flex; padding: 9px 14px; font-size: 13px; }
  .hdr__cta span { display: none; }
}
@media (max-width: 400px) { .hdr__name small { display: none; } .hdr__inner { gap: 8px; } }

/* ヒーロー：白地に文字、写真は暗幕なしで額装 */
.hero { background: var(--c-bg); color: var(--c-text); min-height: 0; display: block; padding: 56px 0 120px; overflow: visible; }
.hero::before { display: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__inner { padding: 0; width: auto; }
.hero h1 { text-shadow: none; color: var(--c-primary-deep); font-size: clamp(32px, 5vw, 58px); }
.hero h1 em { color: var(--c-wood-deep); }
.hero h1 em::after { background: var(--c-accent); }
.hero__lead { text-shadow: none; color: var(--c-text); font-size: 16.5px; max-width: 30em; }
.hero__eyebrow { background: var(--c-primary-soft); border: none; color: var(--c-primary-deep); backdrop-filter: none; }
.hero__photo { margin: 0; position: relative; }
.hero__photo .hero__bg { position: static; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 80%; border-radius: var(--radius-lg) var(--radius-lg) 160px var(--radius-lg); box-shadow: var(--shadow-card); animation: none; filter: saturate(1.05) sepia(0.12); }
.hero__photo::before { content: ""; position: absolute; z-index: -1; left: -22px; top: 22px; right: 22px; bottom: -22px; border-radius: var(--radius-lg); background: var(--grain), var(--c-bg-cream); }
.hero__cta .btn { box-shadow: 0 8px 20px rgba(45,90,67,0.28); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 84px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo .hero__bg { aspect-ratio: 4 / 3; border-radius: var(--radius-lg) var(--radius-lg) 80px var(--radius-lg); }
  .hero__cta .btn { width: 100%; }
}
.event-strip__card { grid-template-columns: auto 1fr auto; padding: 22px 30px; }
.event-strip__title { font-size: 19px; }
@media (max-width: 900px) { .event-strip__card { padding: 22px 20px; } .event-strip__card .btn { width: 100%; } }

/* 余白の緩急 */
.section--tall { padding: 148px 0; }
.section--short { padding: 80px 0; }
@media (max-width: 768px) { .section--tall { padding: 80px 0; } .section--short { padding: 56px 0; } }

/* 3つの柱：左に見出し、右に縦リスト */
.strengths { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 64px; align-items: start; }
.strengths .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.pillars--list { grid-template-columns: 1fr; gap: 20px; }
.pillars--list .pillar { display: grid; grid-template-columns: 190px 1fr; column-gap: 28px; padding: 30px 32px 28px; }
.pillars--list .pillar::before { top: 0; bottom: 0; right: auto; width: 8px; height: auto; }
.pillars--list .pillar__no { grid-column: 1; grid-row: 1; }
.pillars--list .pillar__fig { grid-column: 1; grid-row: 2 / span 2; margin: 0; align-self: center; }
.pillars--list .pillar h3 { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 6px; }
.pillars--list .pillar p:not(.pillar__no):not(.pillar__fig) { grid-column: 2; grid-row: 2; }
.pillar p { font-size: 15.5px; color: var(--c-text); }
@media (max-width: 900px) {
  .strengths { grid-template-columns: 1fr; gap: 36px; }
  .strengths .section__head { position: static; }
  .pillars--list .pillar { grid-template-columns: 1fr; }
  .pillars--list .pillar > * { grid-column: 1 !important; grid-row: auto !important; }
  .pillars--list .pillar h3 { margin: 6px 0; }
}
/* GUIDE：2枚を高さ違いにずらす */
@media (min-width: 901px) { .link-cards .link-card:nth-child(2) { margin-top: 56px; min-height: 300px; } .link-cards .link-card:nth-child(1) { min-height: 380px; } }
/* お知らせ：左見出し・右リスト */
.news-wrap { display: grid; grid-template-columns: 0.7fr 1.6fr; gap: 56px; align-items: start; }
.news-wrap .section__head { margin-bottom: 0; }
.news-wrap .news__list { max-width: none; }
.news__head { min-height: 56px; }
@media (max-width: 900px) { .news-wrap { grid-template-columns: 1fr; gap: 28px; } }
/* 下層ヒーロー：木目の筋で単色を脱する */
.page-hero--plain::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: 0.35; }
.pillars--list .pillar { grid-template-columns: 220px 1fr; }
.pillars--list .pillar__fig--word b { font-size: 28px; white-space: nowrap; }
.pillars--list .pillar__fig b { font-size: 48px; }
@media (max-width: 900px) { .pillars--list .pillar { grid-template-columns: 1fr; } }
