/* =========================================================
   株式会社ひなた工務店 — style.css
   配色・フォント・余白は :root のトークンで一元管理する。
   新色を直値で書かず、必要ならトークンを :root に足して命名を揃えること。
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: hidden は body のみ。html 側に付けると二重スクロールコンテナになり sticky が崩れる */
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:      #2d6a4f;        /* 深い緑 — ひのきの森・誠実さ */
  --c-primary-deep: #1e4e39;        /* hover・ボタン地の深み */
  --c-primary-soft: #eaf3ee;        /* 薄い緑背景 */
  --c-accent:       #b8924a;        /* 木材アンバー — 木目・温かみ */

  --c-bg:           #ffffff;
  --c-bg-cream:     #f8f5ef;        /* 温かみのあるクリーム（白＋木目イメージ） */
  --c-text:         #2a261e;        /* 温かみのある濃色（純黒を避ける） */
  --c-text-muted:   #6b6050;        /* 補助テキスト（白地で約6.3:1確保） */
  --c-border:       #e6dfd3;        /* 温かみのある罫線 */
  --c-danger:       #c0392b;

  /* フォント（Noto Sans JP + Noto Serif JP を <head> で読み込み済み） */
  --f-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --f-disp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* レイアウト */
  --container:    1120px;
  --gutter:       24px;
  --header-h:     80px;
  --radius:       8px;
  --radius-pill:  999px;
  --shadow-soft:  0 8px 28px rgba(42,38,30,0.07);
  --shadow-card:  0 20px 60px rgba(42,38,30,0.11);

  /* グラデーション */
  --g-green: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 100%);
}

/* ---------- Base ---------- */
html, body {
  font-family: var(--f-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
}

h1, h2, h3, h4 { line-height: 1.4; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 96px 0; }
.section--cream { background: var(--c-bg-cream); }
.section--green {
  background: var(--g-green);
  color: #fff;
}

.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__label {
  display: block;
  font-family: var(--f-disp);
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section--green .section__label { color: rgba(255,255,255,0.7); }
.section__title {
  font-size: clamp(22px, 3.8vw, 30px);
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.section__lead { margin-top: 18px; color: var(--c-text-muted); font-size: 15px; line-height: 1.9; }
.section--green .section__lead { color: rgba(255,255,255,0.8); }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  background: var(--c-primary); color: #fff; font-weight: 600; font-size: 15px;
  letter-spacing: 0.06em; transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--c-primary-deep); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }

.btn--white {
  background: #fff;
  color: var(--c-primary-deep);
}
.btn--white:hover { background: var(--c-bg-cream); }

.btn--accent {
  background: var(--c-accent);
  color: #fff;
}
.btn--accent:hover { background: #9a7a3c; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--c-border);
}
/* backdrop-filter は ::before に分離（.hdr に持たせると position:fixed の子がヘッダーに閉じ込められる） */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.hdr__logo-img { width: auto; max-height: 44px; }
.hdr__logo-text {
  font-family: var(--f-disp);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-primary-deep);
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.hdr__logo-text span { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--c-text-muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav > a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav > a::after {
  content: "";
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--c-primary);
  transition: width 0.25s;
}
.nav > a:hover { color: var(--c-primary); }
.nav > a:hover::after { width: 100%; }

.hdr__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hdr__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-disp);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-primary-deep);
  line-height: 1.2;
}
.hdr__tel small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.12em; color: var(--c-text-muted); text-align: left; margin-top: 1px; }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--c-accent); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
}
.hdr__cta:hover { background: #9a7a3c; transform: translateY(-1px); }

/* SNS icons */
.sns-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sns-icon { width: 22px; height: 22px; }
.hdr__sns { display: inline-flex; gap: 10px; align-items: center; }
/* PC ではドロワー専用要素を非表示 */
.nav__sns { display: none; }
.nav__tel { display: none; }
.nav__cta-mobile { display: none; }

/* Burger */
.hdr__burger { display: none; width: 40px; height: 40px; position: relative; z-index: 96; flex-shrink: 0; }
.hdr__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--c-text);
  transition: transform 0.3s, opacity 0.2s;
}
.hdr__burger span:nth-child(1) { top: 13px; }
.hdr__burger span:nth-child(2) { top: 19px; }
.hdr__burger span:nth-child(3) { top: 25px; }
.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(0,0,0,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（フルスクリーンスライダー） ========== */
.slider {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  overflow: hidden;
  background: var(--c-bg-cream);
}
.slider__track { position: absolute; inset: 0; }
.slider__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slider__slide.is-active { opacity: 1; }

/* コンテンツオーバーレイ：中央光暈でテキスト可読性確保 */
.slider__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 80px;
  z-index: 2;
  text-align: center;
}
.slider__content::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,78,57,0.78) 0%,
    rgba(30,78,57,0.42) 36%,
    rgba(30,78,57,0.12) 62%,
    transparent 82%
  );
  z-index: 0;
}

.slider__label {
  position: relative; z-index: 1;
  font-family: var(--f-disp);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slider__title {
  position: relative; z-index: 1;
  font-family: var(--f-disp);
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.slider__actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

.slider__dots {
  position: absolute; left: 50%; bottom: 36px;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.slider__dot.is-active { background: var(--c-accent); transform: scale(1.3); border-color: var(--c-accent); }

/* スクロール誘導 */
.slider__scroll {
  position: absolute; bottom: 28px; right: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-disp); font-size: 10px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
}
.slider__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .slider { height: 86svh; min-height: 540px; }
  .slider__title { font-size: 26px; letter-spacing: 0.06em; }
  .slider__label { font-size: 11px; }
  .slider__content { padding-bottom: 64px; }
  .slider__actions .btn { padding: 13px 22px; font-size: 14px; }
  .slider__scroll { display: none; }
}

/* ========== 強み3本柱 ========== */
.strengths { padding: 96px 0; background: var(--c-bg); }
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-border);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.strength-item {
  background: var(--c-bg);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.strength-item:hover { transform: translateY(-4px); }
.strength-item::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--g-green);
}
.strength-item__num {
  font-family: var(--f-disp);
  font-size: 48px;
  font-weight: 700;
  color: var(--c-primary-soft);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.strength-item__icon {
  width: 52px; height: 52px;
  background: var(--c-primary-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.strength-item__icon svg { width: 26px; height: 26px; color: var(--c-primary); }
.strength-item__tag {
  display: inline-block;
  font-family: var(--f-disp);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.strength-item__title {
  font-size: 18px;
  font-family: var(--f-disp);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.strength-item__text { font-size: 14px; line-height: 1.95; color: var(--c-text-muted); }
.strength-item__spec {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--f-disp);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-primary);
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.strength-item__spec span { font-size: 13px; font-weight: 500; }

@media (max-width: 900px) {
  .strengths__grid { grid-template-columns: 1fr; background: none; border: none; gap: 16px; box-shadow: none; }
  .strength-item { border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
  .strength-item:hover { transform: none; }
  .strength-item { padding: 36px 28px; }
}

/* ========== 見学会CTA帯 ========== */
.event-cta {
  background: var(--g-green);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.event-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(184,146,74,0.12) 0%, transparent 50%);
}
.event-cta__inner { position: relative; z-index: 1; }
.event-cta__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-disp); font-size: 11px; letter-spacing: 0.3em;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 20px;
}
.event-cta__badge::before, .event-cta__badge::after {
  content: ""; width: 24px; height: 1px; background: var(--c-accent);
}
.event-cta__title {
  font-family: var(--f-disp);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  line-height: 1.5;
}
.event-cta__lead {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.9;
}
.event-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

@media (max-width: 768px) {
  .event-cta { padding: 56px 0; }
  .event-cta__actions .btn { width: 100%; max-width: 340px; justify-content: center; }
}

/* ========== 施工事例 ========== */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.work-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__body { padding: 24px 22px; }
.work-card__tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-bottom: 10px;
}
.work-card__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.work-card__meta { font-size: 13px; color: var(--c-text-muted); }

.works__more { text-align: center; }

@media (max-width: 900px) {
  .works__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 580px) {
  .works__grid { grid-template-columns: 1fr; }
}

/* ========== 家づくりの流れ ========== */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow__steps::before {
  content: "";
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  height: 2px;
  background: var(--c-border);
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}
.flow-step__num-wrap {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: border-color 0.2s;
}
.flow-step__num-wrap::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--g-green);
}
.flow-step__num {
  position: relative; z-index: 1;
  font-family: var(--f-disp);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.flow-step__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--f-disp);
}
.flow-step__text { font-size: 13px; color: var(--c-text-muted); line-height: 1.85; }
.flow-step__icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.flow__cta { text-align: center; margin-top: 48px; }

@media (max-width: 900px) {
  .flow__steps {
    grid-template-columns: 1fr 1fr;
    gap: 36px 0;
  }
  .flow__steps::before { display: none; }
}
@media (max-width: 560px) {
  .flow__steps { grid-template-columns: 1fr; gap: 24px; }
  .flow-step { display: flex; align-items: flex-start; gap: 20px; text-align: left; }
  .flow-step__num-wrap { flex-shrink: 0; margin: 0; }
  .flow-step__body { padding-top: 6px; flex: 1; }
}

/* ========== リフォーム誘導 ========== */
.reform-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.reform-teaser__img {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.reform-teaser__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.reform-teaser:hover .reform-teaser__img img { transform: scale(1.03); }
.reform-teaser__body {
  background: var(--c-primary-deep);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reform-teaser__label {
  font-family: var(--f-disp);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.reform-teaser__title {
  font-family: var(--f-disp);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  line-height: 1.5;
}
.reform-teaser__text {
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
}
.reform-teaser__menus {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.reform-teaser__menu-tag {
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 860px) {
  .reform-teaser { grid-template-columns: 1fr; }
  .reform-teaser__img { min-height: 260px; }
  .reform-teaser__body { padding: 40px 28px; }
}

/* ========== Page hero（サブページ共通の見出し帯） ========== */
.page-hero {
  background: var(--c-primary-soft);
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.page-hero__label {
  display: block;
  font-family: var(--f-disp);
  letter-spacing: 0.32em;
  color: var(--c-primary);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero__title { font-size: clamp(26px, 5vw, 36px); letter-spacing: 0.06em; font-family: var(--f-disp); }
.page-hero__lead { margin-top: 16px; color: var(--c-text-muted); font-size: 15px; }

/* ========== 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; cursor: pointer;
}
.news__date { font-family: var(--f-disp); color: var(--c-primary); font-size: 14px; letter-spacing: 0.08em; flex-shrink: 0; }
.news__cat {
  font-size: 11px; letter-spacing: 0.08em; color: var(--c-text-muted);
  border: 1px solid var(--c-border); border-radius: var(--radius-pill);
  padding: 3px 12px; flex-shrink: 0;
}
.news__title { flex: 1; font-size: 15px; font-weight: 500; }
.news__toggle { width: 14px; height: 14px; 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: 6px; left: 0; right: 0; height: 2px; }
.news__toggle::after  { left: 6px; 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: 14px; line-height: 1.9; }
.news__link { display: inline-flex; gap: 6px; margin-top: 12px; color: var(--c-primary); font-weight: 600; }
.news__empty { text-align: center; color: var(--c-text-muted); padding: 48px 0; }

/* ========== CTA cards ---------- */
.cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.cta-card {
  display: flex; flex-direction: column;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--g-green);
}
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cta-card__label { font-family: var(--f-disp); font-size: 11px; letter-spacing: 0.28em; color: var(--c-primary); text-transform: uppercase; margin-bottom: 12px; }
.cta-card__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; font-family: var(--f-disp); }
.cta-card__desc { font-size: 14px; line-height: 1.9; color: var(--c-text-muted); flex: 1; margin-bottom: 20px; }
.cta-card__btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-primary); font-size: 14px; }

/* ========== Form ---------- */
.form { max-width: 720px; margin: 0 auto; }
.form__intro { font-size: 13px; color: var(--c-text-muted); margin-bottom: 24px; line-height: 1.9; }
.form__intro strong { color: var(--c-danger); }
.form__field { margin-bottom: 22px; }
.form__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form__required { font-size: 11px; color: #fff; background: var(--c-danger); border-radius: 3px; padding: 2px 7px; margin-left: 6px; }
.form__optional { font-size: 11px; color: var(--c-text-muted); border: 1px solid var(--c-border); border-radius: 3px; padding: 2px 7px; margin-left: 6px; }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: #fff; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.form__textarea { min-height: 160px; resize: vertical; }
.form__hint { display: block; margin-top: 6px; font-size: 12px; 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: 5px; 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: 17px;
  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;
}
.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: 1px solid var(--c-primary); border-radius: var(--radius);
  background: var(--c-primary-soft); text-align: center;
}
.form__error {
  padding: 14px; 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: 10px 16px; border: 1px solid var(--c-border);
  border-radius: var(--radius-pill); cursor: pointer; margin: 0 8px 8px 0;
  font-size: 14px; transition: border-color 0.2s, background 0.2s;
}
.form__radio.is-checked { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* ========== FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { width: 100%; text-align: left; padding: 20px 8px; font-weight: 600; font-size: 15px; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--c-text-muted); font-size: 14px; }
.faq__item.is-open .faq__a { max-height: 500px; padding: 0 8px 20px; }

/* ========== Footer ---------- */
.ftr {
  background: #1a1a16;
  color: #d4cfc5;
  padding: 72px 0 36px;
}
.ftr__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ftr__brand { }
.ftr__logo-text {
  font-family: var(--f-disp);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 4px;
}
.ftr__logo-sub { font-size: 11px; letter-spacing: 0.2em; color: #8a8578; }
.ftr__tagline {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: #8a8578;
}
.ftr__address { font-size: 13px; color: #8a8578; margin-top: 12px; line-height: 1.9; }
.ftr__tel { margin-top: 10px; }
.ftr__tel a {
  font-family: var(--f-disp);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.ftr__tel-note { font-size: 11px; color: #8a8578; margin-top: 4px; }
.ftr__sns { display: flex; gap: 12px; margin-top: 20px; }
.ftr__sns .sns-icon { width: 28px; height: 28px; }
.ftr__sns a { opacity: 0.8; transition: opacity 0.2s; }
.ftr__sns a:hover { opacity: 1; }

.ftr__heading {
  font-family: var(--f-disp);
  letter-spacing: 0.22em;
  font-size: 12px;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.ftr__links { display: flex; flex-direction: column; gap: 10px; }
.ftr__links a {
  font-size: 13.5px;
  color: #8a8578;
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.ftr__links a::before {
  content: ""; width: 12px; height: 1px;
  background: var(--c-primary);
  flex-shrink: 0;
  transition: width 0.2s;
}
.ftr__links a:hover { color: #fff; }
.ftr__links a:hover::before { width: 18px; }

.ftr__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ftr__copy { font-size: 12px; color: #5a5750; letter-spacing: 0.06em; }
.ftr__bottom-links { display: flex; gap: 20px; }
.ftr__bottom-links a { font-size: 12px; color: #5a5750; transition: color 0.2s; }
.ftr__bottom-links a:hover { color: #fff; }

/* ========== Mobile sticky CTA bar ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}
.mobile-cta__inner { display: flex; }
.mobile-cta__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px;
  font-size: 10px; color: var(--c-text);
  letter-spacing: 0.06em;
  transition: background 0.15s;
}
.mobile-cta__btn:active { background: var(--c-bg-cream); }
.mobile-cta__btn--primary { background: var(--c-primary); color: #fff; }
.mobile-cta__btn--primary:active { background: var(--c-primary-deep); }
.mobile-cta__btn--accent { background: var(--c-accent); color: #fff; }
.mobile-cta__btn--accent:active { background: #9a7a3c; }
.mobile-cta__btn--line { background: #06C755; color: #fff; }
.mobile-cta__btn-icon svg { width: 22px; height: 22px; }

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

/* ========== Responsive ---------- */
@media (max-width: 1080px) {
  .hdr__tel { display: none; }
  .hdr__burger { display: block; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; 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(0,0,0,0.12); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a {
    width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 15px;
  }
  .nav > a::after { display: none; }
  .nav__sns { display: flex; gap: 16px; margin-top: 20px; }
  .nav__tel {
    display: block;
    margin-top: 20px;
    font-family: var(--f-disp);
    font-size: 20px;
    font-weight: 600;
    color: var(--c-primary-deep);
    letter-spacing: 0.04em;
  }
  .nav__tel a { color: inherit; }
  .nav__tel small { display: block; font-size: 11px; color: var(--c-text-muted); margin-top: 4px; letter-spacing: 0.1em; }
  .nav__cta-mobile {
    display: flex; flex-direction: column; gap: 10px; width: 100%;
    margin-top: 16px;
  }
  .nav__cta-mobile .btn { justify-content: center; width: 100%; padding: 13px; }

  .ftr__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .mobile-cta { display: block; }
  body { padding-bottom: 62px; }
  .news__head { flex-wrap: wrap; gap: 8px 12px; }
  .news__title { flex-basis: 100%; }
  .ftr__inner { grid-template-columns: 1fr; gap: 28px; }
  .ftr__bottom { flex-direction: column; align-items: center; text-align: center; }
  .cta-row { grid-template-columns: 1fr; gap: 16px; }
  .cta-card { padding: 32px 24px; }
}

/* ========== Accessibility：動きを抑える設定への配慮 ---------- */
@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; }
  .slider__slide { transition: none; }
}
