/* =========================================
   狩野川工房 ／ KANOGAWA KOUBOU
   モバイルファースト ＋ 和モダン
   v2: ヘッダー構造を修正
   ========================================= */

/* ------ Tokens ------ */
:root {
  /* 配色 */
  --c-paper:    #f6f1e6;          /* 和紙ベージュ */
  --c-paper-2:  #efe7d4;          /* ひと段濃い和紙 */
  --c-ink:      #1c1d1a;          /* 墨色 */
  --c-ink-2:    #4a4d44;
  --c-line:     #d6cfbf;
  --c-forest:   #2d3a2e;          /* 深緑（メイン） */
  --c-forest-d: #1e2820;
  --c-moss:     #5b6b4a;
  --c-bamboo:   #84915f;
  --c-vermilion:#a83a26;          /* 墨朱 */
  --c-clay:     #b88863;
  --c-white:    #ffffff;

  /* タイポ */
  --ff-serif:  "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-sans:   "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en:     "Cormorant Garamond", "Times New Roman", serif;

  /* レイアウト */
  --container: min(100% - 2rem, 1200px);
  --header-h: 60px;

  /* 影・トランジション */
  --shadow-soft: 0 8px 28px rgba(28, 29, 26, .08);
  --shadow-mid:  0 14px 40px rgba(28, 29, 26, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------ Reset ------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}
body.is-nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.4; }
p { margin: 0 0 1em; }
address { font-style: normal; }

::selection { background: var(--c-forest); color: var(--c-paper); }

/* 装飾的な背景 */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(168, 58, 38, .03) 0, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(45, 58, 46, .04) 0, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.container { width: var(--container); margin-inline: auto; }

/* ===========================================
   ヘッダー（モバイル基本）
   =========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
/* 背景・blur は疑似要素に分離。
   これは backdrop-filter が site-header 上にあると、内側の position:fixed
   要素（.global-nav）の包含ブロックがヘッダーになり、モバイルナビが
   ヘッダーの高さ内に閉じ込められて描画されないバグの根本原因対策。 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 241, 230, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  transition: background .4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
}
.site-header.is-scrolled::before {
  background: rgba(246, 241, 230, .96);
}

/* header-inner: モバイルでは brand と nav-toggle が両端 */
.header-inner {
  height: var(--header-h);
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* ブランドロゴ */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  flex: 0 0 auto;
  margin-right: auto;       /* モバイル：brand 左、ハンバーガー右に追いやる */
  position: relative;
  z-index: 2;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--c-forest);
  border: 1px solid var(--c-forest);
  border-radius: 50%;
  flex: 0 0 auto;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-jp { font-family: var(--ff-serif); font-size: 15px; letter-spacing: .14em; }
.brand-en { font-family: var(--ff-en); font-size: 8.5px; letter-spacing: .35em; color: var(--c-ink-2); margin-top: 4px; }

/* ヘッダー右側のCTA（モバイルでは非表示） */
.header-cta {
  display: none;
}

/* ハンバーガーボタン */
.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  position: relative;
  z-index: 110;            /* ナビより上 */
  flex: 0 0 auto;
}
.nav-toggle span {
  position: absolute;
  width: 22px; height: 1.5px;
  background: var(--c-ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle.is-open span { background: var(--c-paper); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* ===========================================
   グローバルナビ（モバイル：右からスライドインの全画面オーバーレイ）
   =========================================== */
.global-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  background: var(--c-forest);
  color: var(--c-paper);
  transform: translateX(100%);
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  visibility: hidden;
  z-index: 105;
  overflow: hidden;        /* スクロールは inner で */
}
.global-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s linear 0s;
}

/* ナビの装飾レイヤー */
.global-nav::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 110% -10%, rgba(184, 136, 99, .25) 0, transparent 45%),
    radial-gradient(circle at -10% 110%, rgba(168, 58, 38, .18) 0, transparent 50%);
  pointer-events: none;
}

.global-nav-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-h) + 28px) 28px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* バックドロップ（ナビ外側の暗幕）
   ※ z-index は site-header(100) より小さくする。
      site-header は position:fixed + z-index で
      新しいスタッキングコンテキストを作るため、内側の global-nav は
      グローバルでは header と同じレイヤー（100）に閉じ込められる。
      backdrop が 100 より上だと、ナビが暗幕の下に隠れて開いても見えない。 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 29, 26, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
  z-index: 92;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--ease), visibility 0s linear 0s;
}

/* ナビリスト */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(246, 241, 230, .15);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.nav-list a:hover {
  color: var(--c-clay);
  padding-left: 12px;
}
.nav-en {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--c-clay);
  min-width: 96px;
  flex: 0 0 auto;
}
.nav-jp {
  font-family: var(--ff-serif);
  font-size: 15px;
  letter-spacing: .12em;
}

/* ナビ下部の電話番号エリア */
.nav-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 241, 230, .2);
}
.nav-tel {
  display: block;
}
.nav-tel-label {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-clay);
  display: block;
  margin-bottom: 6px;
}
.nav-tel-num {
  font-family: var(--ff-en);
  font-size: 28px;
  letter-spacing: .04em;
  display: block;
}
.nav-tel-time {
  font-size: 11px;
  color: rgba(246, 241, 230, .7);
  display: block;
  margin-top: 4px;
}

/* ===========================================
   ヒーロー
   =========================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  color: var(--c-paper);
  display: flex; align-items: flex-end;
  padding: var(--header-h) 0 90px;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 29, 26, .25) 0%, rgba(28, 29, 26, .55) 60%, rgba(28, 29, 26, .75) 100%);
}

.hero-content {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--ff-en);
  font-size: 12px; letter-spacing: .35em;
  color: var(--c-clay);
  margin: 0 0 18px;
  display: inline-block;
  padding-left: 36px; position: relative;
}
.hero-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 26px; height: 1px; background: var(--c-clay);
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 9vw, 72px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title span:first-child { color: var(--c-clay); }

.hero-lead {
  font-family: var(--ff-serif);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 28px;
  max-width: 38ch;
  color: rgba(246, 241, 230, .9);
}

.hero-cta { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 16px; right: auto;
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .42em;
  color: rgba(246, 241, 230, .72);
  z-index: 2;
}
.hero-scroll > span:first-child {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--c-clay), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(.3); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(.3); transform-origin: bottom; }
}

.hero-dots {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 22px; height: 2px; background: rgba(246, 241, 230, .35);
  transition: background .3s var(--ease);
  padding: 0;
}
.hero-dot.is-active { background: var(--c-clay); }

/* ボタン共通 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  font-family: var(--ff-serif);
  font-size: 14px; letter-spacing: .15em;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--c-vermilion); color: var(--c-paper); }
.btn-primary:hover { background: #8e2d1c; transform: translateY(-2px); }
.btn-ghost { color: var(--c-paper); border: 1px solid rgba(246, 241, 230, .65); }
.btn-ghost:hover { background: rgba(246, 241, 230, .12); border-color: var(--c-paper); }
.btn-line { border: 1px solid var(--c-forest); color: var(--c-forest); }
.btn-line:hover { background: var(--c-forest); color: var(--c-paper); }

/* ===========================================
   ニュース ストリップ
   =========================================== */
.news-strip {
  background: var(--c-forest);
  color: var(--c-paper);
}
.news-strip-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  overflow: hidden;
}
.news-strip-label {
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .35em;
  color: var(--c-clay);
  flex: 0 0 auto;
  padding-right: 16px;
  border-right: 1px solid rgba(246, 241, 230, .25);
}
.news-strip-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  font-size: 12px;
  animation: newsScroll 36s linear infinite;
  flex: 1 1 0;
  min-width: 0;
}
.news-strip-track a:hover { color: var(--c-clay); }
@keyframes newsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================================
   セクション共通
   =========================================== */
.section { position: relative; padding: 72px 0; z-index: 1; }
.section-head { margin-bottom: 40px; }
.section-en {
  font-family: var(--ff-en);
  font-size: 13px; letter-spacing: .4em;
  color: var(--c-vermilion);
  margin: 0 0 14px;
  display: inline-block;
  padding-left: 36px; position: relative;
}
.section-en::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 26px; height: 1px; background: var(--c-vermilion);
}
.section-jp {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 5vw, 38px);
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-weight: 500;
}
.section-desc { color: var(--c-ink-2); max-width: 50ch; }

.section-head-light .section-en { color: var(--c-clay); }
.section-head-light .section-en::before { background: var(--c-clay); }
.section-head-light .section-jp { color: var(--c-paper); }

.section-foot { text-align: center; margin-top: 36px; }

.link-arrow {
  font-family: var(--ff-serif);
  font-size: 13px; letter-spacing: .15em;
  color: var(--c-forest);
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-forest);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--c-vermilion); border-color: var(--c-vermilion); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ===========================================
   About
   =========================================== */
.section-about { background: var(--c-paper); }
.about-grid { display: flex; flex-direction: column; gap: 36px; }
.about-text { font-size: 15px; }
.about-lead {
  font-family: var(--ff-serif);
  font-size: 18px;
  line-height: 1.95;
  margin-bottom: 18px;
  color: var(--c-forest-d);
}
.about-text strong { color: var(--c-vermilion); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.stat {
  background: var(--c-paper);
  padding: 24px 14px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--ff-en);
  font-size: 38px;
  color: var(--c-forest);
  letter-spacing: .02em;
  line-height: 1;
}
.stat-num span {
  font-family: var(--ff-serif);
  font-size: 12px;
  margin-left: 4px;
  color: var(--c-ink-2);
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-ink-2);
}

/* ===========================================
   Commitment
   =========================================== */
.section-commitment {
  background: var(--c-forest);
  color: var(--c-paper);
}
.section-commitment::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 136, 99, .15) 0, transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(168, 58, 38, .1) 0, transparent 40%);
  pointer-events: none;
}
.commit-list {
  display: grid;
  gap: 20px;
  position: relative;
}
.commit-item {
  background: rgba(246, 241, 230, .06);
  border: 1px solid rgba(246, 241, 230, .16);
  padding: 28px 22px;
  position: relative;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.commit-item:hover {
  background: rgba(246, 241, 230, .1);
  transform: translateY(-2px);
}
.commit-num {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--c-clay);
  display: block;
  margin-bottom: 14px;
}
.commit-title {
  font-family: var(--ff-serif);
  font-size: 19px;
  letter-spacing: .08em;
  margin-bottom: 12px;
  color: var(--c-paper);
}
.commit-item p {
  font-size: 14px;
  line-height: 2;
  color: rgba(246, 241, 230, .82);
  margin: 0;
}

/* ===========================================
   Services
   =========================================== */
.section-services { background: var(--c-paper-2); }
.services-grid { display: grid; gap: 24px; }
.service-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }
.service-img {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-bamboo);
  position: relative;
}
.service-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28, 29, 26, .35));
}
.service-body { padding: 22px 20px 24px; }
.service-en {
  font-family: var(--ff-en);
  font-size: 12px; letter-spacing: .3em;
  color: var(--c-vermilion);
  margin: 0 0 10px;
}
.service-title {
  font-family: var(--ff-serif);
  font-size: 20px; letter-spacing: .06em;
  margin-bottom: 12px;
}
.service-body p { font-size: 13.5px; color: var(--c-ink-2); margin-bottom: 18px; }

/* ===========================================
   Works
   =========================================== */
.section-works { background: var(--c-paper); }
.works-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 22px;
  /* モバイルでは横スクロール許容 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.works-tab {
  padding: 8px 16px;
  font-size: 12px; letter-spacing: .12em;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-ink-2);
  transition: all .3s var(--ease);
  white-space: nowrap;
  flex: 0 0 auto;
}
.works-tab:hover { color: var(--c-forest); border-color: var(--c-forest); }
.works-tab.is-active { background: var(--c-forest); color: var(--c-paper); border-color: var(--c-forest); }

.works-grid { display: grid; gap: 24px; }
.work-card {
  display: block;
  transition: transform .4s var(--ease);
}
.work-card:hover { transform: translateY(-4px); }
.work-img {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--c-bamboo);
  position: relative;
  overflow: hidden;
}
.work-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28, 29, 26, .35));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.work-card:hover .work-img::after { opacity: 1; }

.work-meta { padding: 16px 0 4px; }
.work-tag {
  display: inline-block;
  font-family: var(--ff-en);
  font-size: 10px; letter-spacing: .25em;
  color: var(--c-vermilion);
  margin-bottom: 10px;
}
.work-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  letter-spacing: .06em;
  margin-bottom: 6px;
  line-height: 1.55;
}
.work-place { font-size: 12px; color: var(--c-ink-2); margin: 0; letter-spacing: .1em; }

.work-card.is-hidden { display: none; }

/* ===========================================
   Voice
   =========================================== */
.section-voice {
  background: var(--c-forest-d);
  color: var(--c-paper);
}
.voice-grid { display: grid; gap: 18px; }
.voice-card {
  margin: 0;
  background: rgba(246, 241, 230, .04);
  border-left: 2px solid var(--c-clay);
  padding: 26px 22px;
  transition: background .4s var(--ease);
}
.voice-card:hover { background: rgba(246, 241, 230, .08); }
.voice-card blockquote {
  font-family: var(--ff-serif);
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
  color: var(--c-paper);
  position: relative;
  padding-left: 22px;
}
.voice-card blockquote::before {
  content: "“";
  position: absolute; left: -2px; top: -10px;
  font-family: var(--ff-en);
  font-size: 44px;
  color: var(--c-clay);
  line-height: 1;
}
.voice-card figcaption { font-size: 12px; }
.voice-name { display: block; color: var(--c-paper); letter-spacing: .1em; margin-bottom: 4px; }
.voice-tag { display: block; color: var(--c-clay); font-family: var(--ff-en); font-size: 11px; letter-spacing: .25em; }

/* ===========================================
   Flow
   =========================================== */
.section-flow { background: var(--c-paper-2); }
.flow-list {
  display: grid; gap: 16px;
  position: relative;
}
.flow-item {
  background: var(--c-paper);
  padding: 24px 20px;
  border-left: 3px solid var(--c-vermilion);
  position: relative;
}
.flow-step {
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .3em;
  color: var(--c-vermilion);
  margin-bottom: 8px;
}
.flow-item h3 {
  font-family: var(--ff-serif);
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: .06em;
}
.flow-item p { font-size: 13.5px; color: var(--c-ink-2); margin: 0; }

/* ===========================================
   FAQ
   =========================================== */
.section-faq { background: var(--c-paper); }
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding: 20px 4px;
  font-family: var(--ff-serif);
  font-size: 15px; letter-spacing: .06em;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  font-family: var(--ff-en);
  color: var(--c-vermilion);
  margin-right: 12px;
  font-size: 18px;
  flex: 0 0 auto;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--ff-en);
  font-size: 24px; color: var(--c-forest);
  flex: 0 0 auto;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 4px 22px 32px;
  font-size: 13.5px;
  color: var(--c-ink-2);
  position: relative;
}
.faq-body::before {
  content: "A";
  position: absolute;
  left: 4px; top: 0;
  font-family: var(--ff-en);
  font-size: 18px;
  color: var(--c-clay);
}

/* ===========================================
   Blog
   =========================================== */
.section-blog { background: var(--c-paper); }
.blog-grid { display: grid; gap: 26px; }
.blog-card {
  display: block;
  transition: transform .4s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-img {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-bamboo);
}
.blog-body { padding: 18px 0 4px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 11px; }
.blog-cat {
  display: inline-block;
  background: var(--c-forest);
  color: var(--c-paper);
  padding: 3px 10px;
  letter-spacing: .12em;
}
.blog-meta time { font-family: var(--ff-en); letter-spacing: .15em; color: var(--c-ink-2); }
.blog-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  letter-spacing: .06em;
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-excerpt { font-size: 13px; color: var(--c-ink-2); margin: 0; }

/* ===========================================
   Contact
   =========================================== */
.section-contact {
  background:
    linear-gradient(180deg, rgba(45, 58, 46, .92), rgba(30, 40, 32, .94)),
    url("https://images.unsplash.com/photo-1518780664697-55e3ad937233?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center;
  color: var(--c-paper);
  text-align: center;
}
.contact-en {
  font-family: var(--ff-en);
  font-size: 13px; letter-spacing: .4em;
  color: var(--c-clay);
  margin: 0 0 18px;
}
.contact-title {
  font-family: var(--ff-serif);
  font-size: clamp(26px, 6vw, 44px);
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.contact-lead {
  font-family: var(--ff-serif);
  font-size: 14px;
  line-height: 2;
  color: rgba(246, 241, 230, .85);
  margin-bottom: 32px;
}
.contact-actions {
  display: grid; gap: 12px;
  max-width: 480px;
  margin-inline: auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 24px 18px;
  background: rgba(246, 241, 230, .06);
  border: 1px solid rgba(246, 241, 230, .25);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { background: rgba(246, 241, 230, .12); border-color: var(--c-clay); }
.contact-card-tel { background: var(--c-vermilion); border-color: transparent; }
.contact-card-tel:hover { background: #8e2d1c; }
.contact-card-en {
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .35em;
  color: var(--c-clay);
}
.contact-card-tel .contact-card-en { color: rgba(246, 241, 230, .85); }
.contact-card-num {
  font-family: var(--ff-en);
  font-size: 26px;
  letter-spacing: .04em;
  margin-top: 6px;
}
.contact-card-time {
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(246, 241, 230, .7);
  margin-top: 4px;
}

/* ===========================================
   Footer
   =========================================== */
.site-footer {
  background: var(--c-ink);
  color: rgba(246, 241, 230, .8);
  padding: 50px 0 24px;
}
.footer-grid { display: grid; gap: 36px; }
.footer-brand .brand-jp {
  font-family: var(--ff-serif);
  font-size: 20px;
  letter-spacing: .15em;
  color: var(--c-paper);
  margin-bottom: 4px;
}
.footer-brand .brand-en-foot {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--c-clay);
  margin: 0 0 18px;
}
.footer-brand address {
  font-size: 13px;
  line-height: 2;
}
.footer-brand address a { color: var(--c-paper); }

.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .3s var(--ease);
}
.footer-nav a:hover { color: var(--c-clay); }

.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 230, .12);
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(246, 241, 230, .5);
}

/* ===========================================
   to-top ボタン
   =========================================== */
.to-top {
  position: fixed;
  right: 14px; bottom: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-paper);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--c-vermilion); }
.to-top svg { width: 18px; height: 18px; }

/* ===========================================
   フェードイン共通
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===========================================
   タブレット 〜 PC
   =========================================== */
@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 90px 0; }

  .hero-cta { flex-direction: row; gap: 16px; max-width: none; }

  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .commit-list { grid-template-columns: 1fr 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .blog-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-actions { grid-template-columns: 1fr 1fr; max-width: 720px; gap: 14px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-nav { gap: 30px; }
}

@media (min-width: 768px) {
  body { font-size: 16px; }
  :root { --header-h: 70px; }

  .section { padding: 110px 0; }
  .section-head { margin-bottom: 56px; }

  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-text {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .brand-jp { font-size: 17px; }
  .brand-en {
    font-size: 9px;
    margin-top: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(28, 29, 26, .22);
  }

  /* SCROLL インジケーターをタブレット以上で表示 */
  .hero-scroll { display: flex; }

  .about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .voice-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .voice-card { padding: 28px 24px; }
  .voice-card blockquote { font-size: 16px; }

  .commit-title { font-size: 21px; }
  .service-title { font-size: 22px; }
  .work-title { font-size: 17px; }
  .blog-title { font-size: 17px; }
  .flow-item h3 { font-size: 18px; }
  .faq-item summary { font-size: 16px; padding: 22px 4px; }
  .stat-num { font-size: 44px; }
  .about-lead { font-size: 19px; }

  .footer-brand .brand-jp { font-size: 22px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; --container: min(100% - 3rem, 1240px); }

  /* === ナビをヘッダー内に水平配置 === */
  .global-nav {
    position: static;
    width: auto;
    transform: none;
    visibility: visible;
    background: transparent;
    color: var(--c-ink);
    overflow: visible;
    flex: 1 1 auto;
    z-index: auto;
    transition: none;
  }
  .global-nav::before { display: none; }

  .global-nav-inner {
    width: 100%;
    height: auto;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 0;
    align-items: center;
  }
  .nav-list a {
    flex-direction: row;
    gap: 0;
    padding: 10px 7px;
    border-bottom: none;
    position: relative;
    transition: color .3s var(--ease);
  }
  .nav-list a:hover {
    color: var(--c-vermilion);
    padding-left: 7px;
  }
  /* ホバー時の下線アニメーション（中央から左右に伸びる） */
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 6px;
    height: 1px;
    background: var(--c-vermilion);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s var(--ease);
  }
  .nav-list a:hover::after { transform: scaleX(1); }

  /* PC では英語ラベルを非表示にして JP 1行に */
  .nav-en { display: none; }
  .nav-jp { font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; }

  .nav-foot { display: none; }

  /* === ヘッダー右のCTAボタン === */
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--c-vermilion);
    color: var(--c-paper);
    font-family: var(--ff-serif);
    flex: 0 0 auto;
    transition: background .3s var(--ease), transform .3s var(--ease);
    margin-left: 8px;
  }
  .header-cta:hover {
    background: #8e2d1c;
    transform: translateY(-1px);
  }
  /* 狭めPCでは CTA の英語表記を畳む */
  .header-cta-en { display: none; }
  .header-cta-jp {
    font-size: 13px;
    letter-spacing: .15em;
  }

  /* === ハンバーガーボタン非表示 === */
  .nav-toggle { display: none; }

  /* === バックドロップは PC では非表示固定 === */
  .nav-backdrop { display: none !important; }

  .header-inner { gap: 20px; }
  .brand { margin-right: 0; }
  /* PC ではナビの幅を確保するため、ブランドの英語表記は非表示 */
  .brand-en { display: none; }

  /* ヒーロー */
  .hero-cta { gap: 20px; }
  .hero-content { padding-bottom: 24px; }
  .hero-scroll { left: 28px; bottom: 44px; right: auto; }
  .hero-dots { left: auto; right: 64px; bottom: 40px; transform: none; }

  .commit-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flow-list { grid-template-columns: repeat(3, 1fr); }

  .footer-nav { grid-template-columns: 1fr 1fr; gap: 60px; justify-self: end; }

  .to-top { right: 32px; bottom: 32px; width: 50px; height: 50px; }
  .to-top svg { width: 20px; height: 20px; }
}

@media (min-width: 1280px) {
  .commit-list { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  /* 1280〜1439px: CTA の英語表記だけ復活させる。
     ブランド EN を入れるとコンテナ幅 1232px を超えるため 1440px に温存。 */
  .header-cta-en {
    display: inline;
    font-family: var(--ff-en);
    font-size: 11px;
    letter-spacing: .25em;
    opacity: .8;
  }
  .header-cta { padding: 0 18px; height: 42px; margin-left: 14px; }
  .header-inner { gap: 22px; }

  /* ナビをわずかに拡大 */
  .nav-list a { padding: 10px 9px; }
  .nav-list a::after { left: 9px; right: 9px; }
  .nav-list a:hover { padding-left: 9px; }
  .nav-jp { font-size: 12.5px; letter-spacing: .04em; }
}

@media (min-width: 1440px) {
  /* 余裕のあるワイドPC: ナビと CTA に少しゆとり
     ※ ブランドの EN はナビとの取り合いで無理が出るため、PC 全域で非表示のまま統一 */
  .header-cta { padding: 0 20px; height: 44px; margin-left: 20px; }
  .header-inner { gap: 28px; }
  .nav-list a { padding: 10px 12px; }
  .nav-list a::after { left: 12px; right: 12px; }
  .nav-list a:hover { padding-left: 12px; }
  .nav-jp { font-size: 13px; letter-spacing: .08em; }
}

/* モーション設定を抑える */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
