/* ============================================================
   craft-04-chiiki  v2 — 丁寧に暮らす人の家
   地域密着の温かみ / 家族経営工務店（雑誌『住む。』のような温かさ）
   温かさは「クリーム色の面の重なり・丸ゴシックの見出し・写真の暖色」で出す。
   bg #fbf6ee / ink #4a3b2a / brown #8c5a2b / orange #e0813f / green #7a8f5a
   ============================================================ */

:root {
  --bg: #fbf6ee;
  --bg-soft: #f4ecdc;
  --bg-warm: #f7efe1;
  --ink: #4a3b2a;
  --ink-soft: #7a6a55;
  --brown: #8c5a2b;
  --orange: #e0813f;
  --green: #7a8f5a;
  --line: #e4d8c2;
  --white: #fffdf8;
  --radius: 12px;
  --maru: "Zen Maru Gothic", sans-serif;
  --en: "Karla", sans-serif;
  --sans: "Noto Sans JP", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
}

.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

img { border-radius: var(--radius); }

::selection { background: var(--orange); color: var(--white); }

/* ---------- 共通パーツ ---------- */
.section-label {
  display: block;
  font-family: var(--en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }

.section-title {
  font-family: var(--maru);
  font-weight: 700;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section { padding: clamp(84px, 11vw, 128px) 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 16px 30px;
  font-family: var(--maru);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 32%, transparent); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--brown);
}

.btn-ghost-label {
  font-size: 11px;
  color: var(--ink-soft);
  margin-right: 2px;
}

.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

body.is-scrolled .site-header {
  padding: 13px 32px;
  background: rgba(247, 239, 225, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-logo-mark {
  font-family: var(--maru);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.header-logo-en {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--brown);
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.site-nav a:hover { color: var(--orange); }

.nav-cta a {
  font-family: var(--maru);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  background: var(--orange);
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 32%, transparent); color: var(--white); }

.nav-toggle { display: none; }

/* ---------- Hero — 左右分割（文字はクリームの無地面 / 写真は写真として） ---------- */
.hero {
  position: relative;
  padding: clamp(132px, 18vw, 184px) 0 clamp(72px, 10vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.06);
}

/* 温かいアクセント：写真に薄いクリームの額を1枚だけ敷く（ウォッシュではない） */
.hero-media::after {
  content: "";
  position: absolute;
  top: 20px; right: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-sub {
  display: inline-block;
  font-family: var(--maru);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--maru);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-title-mark {
  position: relative;
  display: inline-block;
}

.hero-underline {
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.28em;
  width: 102%;
  height: 0.34em;
  color: var(--orange);
  overflow: visible;
}

.hero-en {
  margin-top: 24px;
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- News ---------- */
.news {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}

.news-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
}

.news-label {
  font-family: var(--en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
}

.news-list { flex: 1; display: flex; flex-wrap: wrap; gap: 10px 32px; }

.news-list li {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

.news-list time {
  font-family: var(--en);
  color: var(--brown);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- People（雑誌のインタビュー頁） ---------- */
.people { padding-top: clamp(72px, 10vw, 112px); }

.people-list {
  display: grid;
  gap: clamp(64px, 8vw, 104px);
}

.people-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.people-item:nth-child(even) .people-media { order: 2; }

.people-media {
  position: relative;
}

.people-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.05);
}

.people-role {
  display: inline-block;
  font-family: var(--maru);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brown);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.people-name {
  font-family: var(--maru);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 16px 0 20px;
  color: var(--ink);
}

.people-bio {
  position: relative;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2.15;
  max-width: 38em;
  padding-left: 22px;
  border-left: 2px solid var(--orange);
}

/* ---------- Concept ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.concept-para {
  color: var(--ink-soft);
  line-height: 2.15;
  margin-bottom: 1.5em;
  max-width: 34em;
}

.concept-area {
  font-family: var(--maru);
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  margin-top: 22px;
}

.concept-media {
  position: relative;
}

.concept-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.05);
}

/* ---------- Menu ---------- */
.menu { background: var(--bg-soft); border-radius: var(--radius); margin-top: 40px; }

.menu-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.menu-category {
  font-family: var(--maru);
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-item { padding: 13px 0; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }

.menu-item-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.menu-name { font-size: 14px; font-weight: 500; }

.menu-price {
  font-family: var(--en);
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.menu-note {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-soft);
}

.menu-foot {
  margin-top: 34px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.menu > .inner { padding-top: clamp(56px, 7vw, 80px); padding-bottom: clamp(56px, 7vw, 80px); }

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.works-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.works-media { overflow: hidden; }

.works-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(1.05);
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-item:hover .works-media img { transform: scale(1.04); }

.works-text { padding: 22px 24px 26px; }

.works-tag {
  display: inline-block;
  font-family: var(--maru);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  padding: 4px 12px;
  border-radius: 999px;
}

.works-title {
  font-family: var(--maru);
  font-size: 17px;
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.55;
}

.works-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.9;
}

/* ---------- Voices ---------- */
.voices-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voices-item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  border: 1px solid var(--line);
}

.voices-item::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 22px;
  font-family: var(--maru);
  font-size: 48px;
  line-height: 1;
  color: color-mix(in srgb, var(--orange) 55%, transparent);
}

.voices-text {
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.voices-author {
  margin-top: 18px;
  font-family: var(--maru);
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
}

/* ---------- Flow（大きめ番号 + 短文） ---------- */
.flow { background: var(--bg-soft); border-radius: var(--radius); margin-top: 40px; }
.flow > .inner { padding-top: clamp(56px, 7vw, 80px); padding-bottom: clamp(56px, 7vw, 80px); }

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.flow-item {
  position: relative;
}

.flow-step {
  display: block;
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.flow-step::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--line);
  margin: 16px 0 18px;
}

.flow-title {
  font-family: var(--maru);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.faq-item + .faq-item { margin-top: 16px; }

.faq-q {
  font-family: var(--maru);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  gap: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.faq-q::before {
  content: "Q";
  flex-shrink: 0;
  font-family: var(--en);
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
  line-height: 1.4;
}

.faq-a {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  line-height: 1.95;
}

.faq-a::before {
  content: "A";
  flex-shrink: 0;
  font-family: var(--en);
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  line-height: 1.4;
}

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.access-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 28px;
}

.access-info div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 15px 0;
  font-size: 13.5px;
}

.access-info div + div { border-top: 1px solid var(--line); }

.access-info dt {
  font-family: var(--maru);
  font-weight: 700;
  color: var(--brown);
}

.access-info dd a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- CTA ---------- */
.cta {
  margin-top: clamp(96px, 13vw, 152px);
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cta-inner {
  padding-top: clamp(72px, 9vw, 100px);
  padding-bottom: clamp(72px, 9vw, 100px);
  text-align: center;
}

.cta-label { color: #f0d9bd; }

.cta-title {
  font-family: var(--maru);
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 700;
  margin: 4px 0 16px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.cta-text {
  font-size: 14px;
  color: #f0e2cf;
  margin-bottom: 38px;
  max-width: 44em;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta .btn-primary { box-shadow: none; }
.cta .btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

.cta .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta .btn-ghost .btn-ghost-label { color: #f0e2cf; }

.cta .btn-ghost:hover { border-color: var(--white); color: var(--white); }

.cta-sns {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.cta-sns a {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cta-sns a:hover { color: #f0d9bd; border-color: #f0d9bd; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: var(--white);
  padding: 40px 24px 44px;
  text-align: center;
}

.footer-logo {
  font-family: var(--maru);
  font-size: 16px;
  font-weight: 700;
}

.footer-en {
  margin-top: 4px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #e8d3b8;
  text-transform: uppercase;
}

.footer-copy {
  margin-top: 16px;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #cbb08c;
}

/* ---------- Demo bar ---------- */
.demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  border-top: 1px solid var(--orange);
}

.demo-bar p { max-width: 900px; }

.demo-bar button.js-demo-close {
  flex-shrink: 0;
  font-family: var(--maru);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- Reveal ---------- */
[data-reveal]:not([data-reveal="curtain"]) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal]:not([data-reveal="curtain"]).is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not([data-reveal="curtain"]) { opacity: 1; transform: none; transition: none; }
}

/* ---------- Skin（店舗別差別化 / TEMPLATE_SPEC §9） ---------- */
.u-alt-font .section-title,
.u-alt-font .hero-title,
.u-alt-font .people-name,
.u-alt-font .works-title,
.u-alt-font .flow-title,
.u-alt-font .cta-title {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

body.u-btn-square .btn, body.u-btn-square .nav-cta a { border-radius: 0; }
body.u-btn-round .btn, body.u-btn-round .nav-cta a { border-radius: 8px; }
body.u-btn-pill .btn, body.u-btn-pill .nav-cta a { border-radius: 999px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .people-item,
  .people-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .people-item:nth-child(even) .people-media { order: 0; }
  .people-media img { aspect-ratio: 4 / 3; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: none; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .hero-media::after { top: 14px; right: -14px; }

  .concept-grid { grid-template-columns: 1fr; gap: 36px; }
  .menu-groups { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .voices-list { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 20px; }
  body.is-scrolled .site-header { padding: 10px 20px; }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 60px;
    background: var(--bg);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }

  .site-nav a { font-size: 16px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 110;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform 0.35s ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(20deg); }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }

  .inner { padding: 0 18px; }
  .hero { padding: 110px 0 56px; }
  .hero-media::after { right: -10px; }
  .section { padding-top: 64px; }
  .menu > .inner,
  .flow > .inner { padding-top: 48px; padding-bottom: 48px; }

  .flow-list { grid-template-columns: 1fr 1fr; gap: 24px; }

  .cta { margin-top: 80px; }
  .btn { min-width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
