/* 共通スタイル（型 v0.3／建設業種向け調整） */
:root {
  --base: #f8f7f4;
  --surface: #ffffff;
  --alt: #eceae3;
  --ink: #2c2824;
  --main: #2e3a42;
  --accent: #bc7a35;
  --line: #d9d5c9;
  --cta: #9e3b26;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background: var(--base);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }

.sample-banner {
  background: #44403a;
  color: #f5efe4;
  font-size: 0.78rem;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.04em;
}

/* ヘッダー */
header {
  background: var(--base);
  border-bottom: 1px solid var(--line);
  padding: 18px 16px 12px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}
header .logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.08em; margin: 0; }
header .logo a { color: var(--main); text-decoration: none; }
header .logo small { display: block; font-size: 0.6rem; letter-spacing: 0.32em; color: var(--accent); font-weight: 400; }
.header-cta { margin: 0; }
.header-cta a {
  display: inline-block;
  border: 1px solid var(--main);
  color: var(--main);
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface);
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 12px auto 4px;
  padding: 0;
  max-width: 1080px;
}
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--accent); text-decoration: underline; }

/* ファーストビュー */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,24,18,0.40), rgba(30,24,18,0.66));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14vh 20px 12vh;
}
.hero-en { font-family: var(--serif); letter-spacing: 0.4em; font-size: 0.75rem; color: #ecdfc6; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; letter-spacing: 0.1em; margin: 0 0 10px; border: none; }
.hero-concept { font-family: var(--serif); font-size: 1.65rem; letter-spacing: 0.05em; margin: 10px 0 18px; }
.hero-facts { font-size: 0.9rem; color: #f2ecdd; margin: 0 0 26px; }
.hero-actions { margin: 0; }
.photo-note { font-size: 0.72rem; color: #ded4bf; margin: 26px 0 0; }

/* サブページ見出し帯 */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero img { width: 100%; height: 240px; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(30,24,18,0.48); }
.page-hero-inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 16px; }
.page-hero .sec-label { color: #ecdfc6; }
.page-hero h1 { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.08em; margin: 0; border: none; color: #fff; }

/* セクション */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section.block { padding: 88px 0; }
section.block.alt { background: var(--alt); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.sec-label {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--accent);
  text-align: center;
  margin: 0 0 10px;
}
h1 { font-family: var(--serif); font-size: 1.8rem; }
h2.sec-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--main);
  text-align: center;
  margin: 0 0 14px;
}
.sec-rule { width: 48px; border: none; border-top: 2px solid var(--accent); margin: 0 auto 36px; }
.lead-center { text-align: center; max-width: 740px; margin: 0 auto 36px; }
h3.sub { font-family: var(--serif); color: var(--main); font-size: 1.2rem; margin: 34px 0 10px; }

/* コンセプト */
.concept-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.concept-grid img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.concept-grid p { margin: 0 0 1em; }

/* カード共通 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.menu-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.menu-card-body { padding: 18px 20px 20px; }
.menu-card h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 6px; color: var(--main); }
.menu-card p { margin: 0 0 10px; font-size: 0.92rem; }
.menu-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
.menu-time { font-size: 0.82rem; color: #7a6c58; }
.menu-price { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--main); white-space: nowrap; }

/* 施工事例カード */
.works-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 28px;
}
.works-card img.main-photo { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.works-body { padding: 22px 24px 24px; }
.works-body h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--main); margin: 0 0 12px; }
.spec-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.spec-list div { background: var(--alt); border-radius: 6px; padding: 8px 12px; }
.spec-list dt { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.12em; font-weight: bold; }
.spec-list dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: bold; color: var(--main); }
.works-body p { font-size: 0.94rem; margin: 0 0 8px; }
.works-body p b { color: var(--main); }

/* Before/After */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 0 0 14px; }
.ba-grid figure { margin: 0; position: relative; }
.ba-grid img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ba-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(30,24,18,0.78); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.15em; padding: 3px 12px; border-radius: 999px;
}
.ba-tag.after { background: var(--cta); }
.ba-arrow { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }

/* スタッフ */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.staff-card img { aspect-ratio: 3 / 2.2; object-fit: cover; width: 100%; }
.staff-body { padding: 20px 22px 22px; }
.staff-body h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 2px; color: var(--main); }
.staff-role { font-size: 0.82rem; color: var(--accent); letter-spacing: 0.15em; margin: 0 0 10px; }
.staff-career { font-size: 0.88rem; margin: 0 0 10px; }
.tag { display: inline-block; border: 1px solid var(--accent); color: var(--main); border-radius: 999px; font-size: 0.78rem; padding: 1px 10px; margin: 0 6px 8px 0; }
.staff-comment { font-family: var(--serif); border-left: 3px solid var(--accent); padding-left: 12px; margin: 12px 0; }
.staff-bio { font-size: 0.92rem; margin: 0; }
.staff-full { display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 0 0 24px; }
.staff-full img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 6px; }

/* 流れ */
.flow { list-style: none; counter-reset: step; margin: 0 auto; padding: 0; max-width: 820px; }
.flow li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 16px 74px;
  margin: 0 0 12px;
  position: relative;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--main); color: #fff;
  font-family: var(--serif); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.flow b { color: var(--main); font-family: var(--serif); }
.flow p { margin: 2px 0 0; font-size: 0.92rem; }

/* 情報ボックス */
.info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.info-box h3 { font-family: var(--serif); color: var(--main); margin: 0 0 8px; font-size: 1.1rem; }
.info-box p { margin: 0 0 6px; font-size: 0.94rem; }
.permit-box { border-left-color: var(--main); }
.subsidy-box { border-left-color: var(--cta); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 24px; max-width: 820px; margin: 0 auto; }
.faq dt { font-weight: bold; color: var(--main); margin-top: 14px; }
.faq dd { margin: 4px 0 14px; }

/* 表 */
table { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
th { background: var(--alt); width: 32%; font-weight: bold; color: var(--main); }
.price { text-align: right; white-space: nowrap; font-weight: bold; color: var(--main); }
.access-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.access-grid img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* 採用バナー */
.recruit-banner {
  background: var(--main); color: #fff;
  border-radius: 10px; padding: 28px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.recruit-banner h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.3rem; }
.recruit-banner p { margin: 0; font-size: 0.92rem; color: #efe9db; }

/* ボタン・電話ボックス */
.btn {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--main);
  color: var(--main);
  padding: 11px 26px;
  border-radius: 4px;
  text-decoration: none;
  margin: 6px 6px 6px 0;
  font-weight: bold;
}
.btn-main { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--main); }
.center { text-align: center; }
.tel-box {
  background: var(--main);
  color: #fff;
  border-radius: 10px;
  padding: 26px 16px;
  text-align: center;
  margin: 8px 0 88px;
}
.tel-box p { margin: 0 0 6px; }
.tel-box a { color: #ffd9a0; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: 0.05em; }
.tel-box .small { font-size: 0.85rem; color: #e9e1d2; }

/* フッター */
footer {
  background: var(--main);
  color: #e9e1d2;
  padding: 44px 20px 36px;
  font-size: 0.9rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-logo { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.08em; color: #fff; margin: 0 0 8px; }
footer nav ul { margin: 14px 0; }
footer nav a { color: #e9e1d2; }
.credits { font-size: 0.72rem; color: #c9bda6; margin-top: 22px; line-height: 1.7; }
.credits a { color: #c9bda6; }

/* スマホ固定CTAバー */
.cta-bar { display: none; }
@media (max-width: 720px) {
  section.block { padding: 56px 0; }
  .hero-inner { padding: 11vh 16px 9vh; }
  .hero h1 { font-size: 1.85rem; }
  .hero-concept { font-size: 1.25rem; }
  .card-grid, .card-grid.two, .staff-grid, .concept-grid, .access-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); text-align: center; }
  .staff-full { grid-template-columns: 1fr; }
  .page-hero img { height: 180px; }
  th, td { padding: 9px 10px; font-size: 0.92rem; }
  .tel-box a { font-size: 1.3rem; }
  .header-cta a { padding: 6px 10px; font-size: 0.88rem; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: var(--main);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  }
  .cta-bar a { flex: 1; text-align: center; color: #fff; font-weight: bold; padding: 14px 4px; text-decoration: none; }
  .cta-bar .cta-tel { background: var(--cta); }
  .cta-bar .cta-map { background: var(--main); }
}

/* ================================================================
   インタラクション・フィードバック標準 v1（IF-STD v1 / 2026-11-18）
   仕様の正本: templates/motion-parts.md「インタラクション・フィードバック標準」
   押せる要素すべてに「触っているのが分かる」反応を付ける共通ルール。
   骨格（0.2秒・イージング・変化量）は全サイト統一。色は各サイトの変数を使う。
   ================================================================ */
:root {
  --if-dur: .2s;
  --if-ease: cubic-bezier(.25, .7, .3, 1);
  --if-focus: var(--cta, #9e3b26);
  --if-shadow: 0 8px 20px rgba(43, 36, 28, .16);
  --if-shadow-sm: 0 3px 8px rgba(43, 36, 28, .14);
}

/* 下地：色・影・透明度・下線は常になめらかに変化させる（動き自体は付けない） */
a, button, [role="button"], summary {
  -webkit-tap-highlight-color: transparent;
  transition: color var(--if-dur) var(--if-ease),
    background-color var(--if-dur) var(--if-ease),
    border-color var(--if-dur) var(--if-ease),
    box-shadow var(--if-dur) var(--if-ease),
    opacity var(--if-dur) var(--if-ease),
    text-decoration-color var(--if-dur) var(--if-ease);
}

/* 本文中テキストリンク：動きでなく、下線の太さで反応する */
a:hover { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* 押した瞬間の反応（スマホのタップでも効く） */
a:active, button:active, [role="button"]:active { opacity: .72; }

/* キーボード操作時の位置表示（消さない） */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
summary:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--if-focus);
  outline-offset: 2px;
}

/* ボタン・カードの「浮く／沈む」は、動きを減らす設定でない環境でのみ付ける */
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-main, .btn-sub, .btn-ghost, .btn-tel, .btn-light,
  .cta-tel, .cta-map, .cta-mail, .cta-price, .mail-big,
  button, input[type="submit"], input[type="button"], [role="button"],
  .card, .sample-card, .works-card, .staff-card, .feature-card,
  .svc-card, .stock-card, .set-card, .trio-card, .class-card {
    transition: color var(--if-dur) var(--if-ease),
      background-color var(--if-dur) var(--if-ease),
      border-color var(--if-dur) var(--if-ease),
      box-shadow var(--if-dur) var(--if-ease),
      opacity var(--if-dur) var(--if-ease),
      transform var(--if-dur) var(--if-ease);
  }
  .btn:hover, .btn-main:hover, .btn-sub:hover, .btn-ghost:hover,
  .btn-tel:hover, .btn-light:hover,
  .cta-tel:hover, .cta-map:hover, .cta-mail:hover, .cta-price:hover,
  .mail-big:hover, button:hover, [role="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--if-shadow);
  }
  .btn:active, .btn-main:active, .btn-sub:active, .btn-ghost:active,
  .btn-tel:active, .btn-light:active,
  .cta-tel:active, .cta-map:active, .cta-mail:active, .cta-price:active,
  .mail-big:active, button:active, [role="button"]:active {
    transform: translateY(0) scale(.98);
    box-shadow: var(--if-shadow-sm);
    opacity: 1;
  }
  .card:hover, .sample-card:hover, .works-card:hover, .staff-card:hover,
  .feature-card:hover, .svc-card:hover, .stock-card:hover, .set-card:hover,
  .trio-card:hover, .class-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--if-shadow);
  }
}

/* 動きを減らす設定：動きは止め、色の変化だけを即時に効かせる */
@media (prefers-reduced-motion: reduce) {
  a, button, [role="button"], summary,
  .card, .sample-card, .works-card, .staff-card, .feature-card,
  .svc-card, .stock-card, .set-card, .trio-card, .class-card {
    transition: none;
  }
}
