/* ============================================================
   大裕工務株式会社 リニューアルデモ B案
   デザインシステム「暮らしの温度」（craftcorp.jp 参考）
   - 温かいクリーム × 焦茶 × 琥珀オレンジ
   - 見出し: Noto Serif JP / 本文: Noto Sans JP / 英字: EB Garamond
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Noto+Serif+JP:wght@500;600&family=Noto+Sans+JP:wght@350;400;500;700&family=Great+Vibes&family=Marcellus&display=swap');

:root {
  --cream: #f3f4ef;       /* 基調のクリーム */
  --panel: #fdfdfb;       /* カード面 */
  --cha: #1c1b18;         /* 焦茶（文字） */
  --cha-usu: #7b766d;     /* 薄茶（補助文字） */
  --kohaku: #c9873a;      /* 琥珀オレンジ（アクセント） */
  --line: #e0e2dc;        /* 罫線 */
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --gara: "EB Garamond", serif;
  --script: "Great Vibes", cursive;
  --pad-x: clamp(20px, 5.5vw, 84px);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(40, 34, 24, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 350;
  background: var(--cream);
  color: var(--cha);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

p, .lead, h2, h3, td { word-break: auto-phrase; text-wrap: pretty; }

/* ============================================================
   ヘッダー（ロゴ＋MENUのみのミニマル構成）
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.header.is-scrolled {
  background: rgba(243, 244, 239, .92);
  backdrop-filter: blur(10px);
  padding: 14px var(--pad-x);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--cha);
  z-index: 130;
}
.logo small {
  display: block;
  font-family: var(--gara);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--cha-usu);
}
.header.on-photo .logo { color: #fff; }
.header.on-photo .logo small { color: rgba(255,255,255,.7); }

/* MENUボタン（常時ハンバーガー） */
.menu-btn {
  z-index: 130;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--gara);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--cha);
}
.header.on-photo .menu-btn { color: #fff; }
.menu-btn .lines {
  position: relative;
  width: 34px; height: 12px;
}
.menu-btn .lines::before,
.menu-btn .lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .35s ease, top .35s ease;
}
.menu-btn .lines::before { top: 0; }
.menu-btn .lines::after { top: 11px; }
body.menu-open .menu-btn { color: var(--cha); }
body.menu-open .menu-btn .lines::before { top: 6px; transform: rotate(20deg); }
body.menu-open .menu-btn .lines::after { top: 6px; transform: rotate(-20deg); }

/* フルスクリーンメニュー */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(243, 244, 239, .97);
  backdrop-filter: blur(12px);
  display: grid;
  place-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
body.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, color .3s ease;
}
.mnav a small {
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--kohaku);
}
.mnav a:hover { color: var(--kohaku); }
body.menu-open .mnav a { opacity: 1; transform: none; }
body.menu-open .mnav a:nth-child(1) { transition-delay: .08s; }
body.menu-open .mnav a:nth-child(2) { transition-delay: .14s; }
body.menu-open .mnav a:nth-child(3) { transition-delay: .2s; }
body.menu-open .mnav a:nth-child(4) { transition-delay: .26s; }
body.menu-open .mnav a:nth-child(5) { transition-delay: .32s; }
body.menu-open .mnav a:nth-child(6) { transition-delay: .38s; }
body.menu-open .mnav a:nth-child(7) { transition-delay: .44s; }
body.menu-open .mnav a:nth-child(8) { transition-delay: .5s; }

/* ============================================================
   ヒーロー（写真スライド＋左レール＋中央コピー＋巨大英字）
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #262119;
}
.kv-photos { position: absolute; inset: 0; }
.kv-photos img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.3s ease;
}
.kv-photos img.is-active {
  opacity: 1;
  z-index: 2;
  animation: kvDrift 9s ease-out forwards;
}
.kv-photos img.is-leaving { opacity: 0; z-index: 1; animation: kvDrift 9s ease-out forwards; }
@keyframes kvDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(20, 16, 10, .18), rgba(20, 16, 10, .42)),
    linear-gradient(to top, rgba(20, 16, 10, .5), transparent 40%);
}

/* 左のダークレール（スライド番号＋SCROLL） */
.hero-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: clamp(54px, 6vw, 76px);
  z-index: 3;
  background: rgba(22, 18, 12, .82);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: rgba(255,255,255,.75);
}
.hero-rail .idx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-rail .idx span {
  font-family: var(--gara);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: .4;
  transition: opacity .4s ease, color .4s ease;
}
.hero-rail .idx span.is-on { opacity: 1; color: var(--kohaku); }
.hero-rail .scroll-txt {
  margin-top: 30px;
  writing-mode: vertical-rl;
  font-family: var(--gara);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
}
.hero-rail .scroll-txt::after {
  content: "";
  display: block;
  width: 1px; height: 44px;
  margin: 12px auto 0;
  background: linear-gradient(to bottom, var(--kohaku), transparent);
  animation: scrollHint 2s ease infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 中央のコピー */
.hero-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 calc(var(--pad-x) + 40px);
}
.hero-copy {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  letter-spacing: 0.22em;
  line-height: 2;
  opacity: 0;
  animation: heroFade 1.6s ease .4s forwards;
}
.hero-sub {
  margin-top: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,.85);
  opacity: 0;
  animation: heroFade 1.4s ease .9s forwards;
}
.hero-sub .en {
  display: block;
  margin-bottom: 8px;
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,.7);
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* 巨大英字ウォーターマーク（下端で見切れる） */
.hero-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.24em;
  text-align: center;
  z-index: 3;
  font-family: var(--gara);
  font-size: clamp(4rem, 12.5vw, 11rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  animation: heroFade 1.8s ease 1.2s forwards;
  pointer-events: none;
}

/* ============================================================
   共通セクション
   ============================================================ */
.section { padding: clamp(90px, 13vw, 160px) var(--pad-x); position: relative; }
.section.bg-panel { background: var(--panel); }

.sec-head { text-align: center; margin-bottom: clamp(48px, 6vw, 76px); }
.sec-head .en {
  display: block;
  font-family: var(--gara);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--kohaku);
  margin-bottom: 10px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.16em;
  line-height: 1.8;
}
.sec-head .lead {
  margin-top: 22px;
  max-width: 660px;
  margin-inline: auto;
  font-size: 0.92rem;
  color: var(--cha-usu);
}

/* スクロール出現 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }

/* 写真の出現（下からやわらかく） */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e6dd;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reveal .ph img { transform: scale(1.08); transition: transform 1.5s cubic-bezier(.22,1,.36,1) .1s; }
.reveal.is-visible .ph img { transform: scale(1); }

/* ピル型ボタン */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 38px;
  border: 1px solid var(--cha);
  border-radius: 999px;
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn-pill::after { content: "→"; font-style: normal; transition: transform .3s ease; }
.btn-pill:hover {
  background: var(--kohaku);
  border-color: var(--kohaku);
  color: #fff;
  transform: translateY(-2px);
}
.btn-pill:hover::after { transform: translateX(4px); }
.btn-center { text-align: center; margin-top: clamp(44px, 5vw, 64px); }

/* タグチップ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cha-usu);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px;
}

/* ============================================================
   トップ：ブランドストーリー（理念）
   ============================================================ */
.story {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.story .catch {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: 0.2em;
  line-height: 2;
  margin-bottom: 34px;
}
.story p { color: var(--cha-usu); font-size: 0.95rem; }

/* ============================================================
   トップ：Movie
   ============================================================ */
.movie-wrap { max-width: 960px; margin: 0 auto; }
.movie-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #17150f;
  box-shadow: var(--shadow);
}
.movie-frame video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.movie-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cha-usu);
}

/* ============================================================
   トップ：施工事例（番号付きの大きなカード）
   ============================================================ */
.works-list {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.work-item {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.work-item:nth-child(even) .work-ph { order: 2; }
.work-ph .ph { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.work-body .no {
  font-family: var(--gara);
  font-style: italic;
  font-size: 2rem;
  color: var(--kohaku);
  line-height: 1;
}
.work-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0.12em;
  line-height: 1.9;
  margin: 12px 0 16px;
}
.work-body .tags { margin-bottom: 18px; }
.work-body .more {
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--cha-usu);
}
.work-body .more::after { content: " →"; }
.work-item:hover .more { color: var(--kohaku); }

/* シンプルなカードグリッド（下層 施工事例） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.work-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s ease;
}
.work-card:hover { transform: translateY(-6px); }
.work-card .ph { aspect-ratio: 4 / 3; border-radius: 0; }
.work-card .body { padding: 20px 22px 24px; }
.work-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* マーキー（イタリック英字） */
.marquee {
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: "Marcellus", serif;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(28, 27, 24, .2);
}
.marquee-track span i { font-style: normal; color: var(--kohaku); opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   会社案内・求人バナー（角丸カード）
   ============================================================ */
.banner-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding: 0 var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}
.banner-duo a {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow);
}
.banner-duo a .bg { position: absolute; inset: 0; border-radius: 0; transition: transform .6s ease; }
.banner-duo a:hover .bg { transform: scale(1.05); }
.banner-duo a .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 18, 12, .72), rgba(22, 18, 12, .12) 60%);
}
.banner-duo a { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.banner-duo .en {
  position: relative;
  font-family: var(--gara);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--kohaku);
  filter: brightness(1.25);
}
.banner-duo h3 {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  margin: 6px 0 8px;
}
.banner-duo p { position: relative; font-size: 0.82rem; color: rgba(255,255,255,.9); }
.banner-duo a::before {
  content: "→";
  position: absolute;
  right: 26px;
  bottom: 30px;
  z-index: 1;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  transition: background .3s ease, transform .3s ease;
}
.banner-duo a:hover::before { background: var(--kohaku); border-color: var(--kohaku); transform: translateX(4px); }

/* ============================================================
   下層ページ共通
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(160px, 20vw, 230px) var(--pad-x) clamp(56px, 7vw, 84px);
  text-align: center;
}
/* 同心円の背景線（右上に大きく） */
.page-hero::before {
  content: "";
  position: absolute;
  width: 1150px; height: 1150px;
  right: -280px; top: -380px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 108px, rgba(28, 27, 24, .06) 108px 109px);
  pointer-events: none;
}
/* 背後の巨大アウトライン英字（JSが .en の文言から自動生成） */
.page-hero .page-wm {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--gara);
  font-style: italic;
  font-size: clamp(4.6rem, 13vw, 10.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 135, 58, .3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: heroFade 1.4s ease .1s forwards;
}
/* 見出し下の琥珀ライン */
.page-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--kohaku);
  margin: 24px auto 0;
}
.page-hero .en {
  display: block;
  font-family: var(--gara);
  font-style: italic;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--kohaku);
  line-height: 1.2;
  opacity: 0;
  animation: heroFade .9s ease .15s forwards;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.22em;
  margin-top: 10px;
  opacity: 0;
  animation: heroFade 1s ease .4s forwards;
}
.page-hero .lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 0.9rem;
  color: var(--cha-usu);
  opacity: 0;
  animation: heroFade 1s ease .65s forwards;
}
.breadcrumb {
  text-align: center;
  padding: 0 var(--pad-x) 34px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cha-usu);
}
.breadcrumb a:hover { color: var(--kohaku); }
.breadcrumb .sep { margin: 0 10px; color: var(--line); }

/* 表組み（角丸パネル型） */
.def-table {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.def-table th,
.def-table td {
  text-align: left;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 350;
  font-size: 0.9rem;
}
.def-table tr:last-child th,
.def-table tr:last-child td { border-bottom: none; }
.def-table th {
  width: 200px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cha);
  background: rgba(201, 135, 58, .06);
  white-space: nowrap;
}
.def-table td { color: var(--cha-usu); }

/* CTA帯 */
.cta-band {
  text-align: center;
  padding: clamp(80px, 10vw, 130px) var(--pad-x);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.cta-band .en {
  display: block;
  font-family: var(--gara);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--kohaku);
  margin-bottom: 8px;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.cta-band p { font-size: 0.86rem; color: var(--cha-usu); margin-bottom: 34px; }
.cta-tel {
  display: inline-block;
  font-family: var(--gara);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.06em;
  padding: 16px 52px;
  border: 1px solid var(--cha);
  border-radius: 999px;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.cta-tel small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--cha-usu);
  margin-bottom: 4px;
  transition: color .3s ease;
}
.cta-tel:hover { background: var(--kohaku); border-color: var(--kohaku); color: #fff; }
.cta-tel:hover small { color: rgba(255,255,255,.8); }
.cta-mail {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--cha-usu);
  border-bottom: 1px solid var(--cha-usu);
  padding-bottom: 3px;
  transition: color .3s ease, border-color .3s ease;
}
.cta-mail::after { content: " →"; font-style: normal; color: var(--kohaku); }
.cta-mail:hover { color: var(--kohaku); border-color: var(--kohaku); }

/* ============================================================
   フッター
   ============================================================ */
.footer {
  padding: clamp(60px, 8vw, 90px) var(--pad-x) 30px;
  text-align: center;
}
.footer .logo { justify-content: center; }
.footer-addr {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 2.2;
  color: var(--cha-usu);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 34px 0 44px;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--kohaku); }
.copyright {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--gara);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cha-usu);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-ph { order: 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-duo { grid-template-columns: 1fr; }
  .hero-mark { font-size: clamp(3rem, 15vw, 6rem); }
  .def-table th { width: 140px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .page-hero .page-wm { font-size: 4rem; }
  /* ロゴの折り返し防止（社名を少し縮め、英字は非表示に） */
  .logo { font-size: 0.95rem; gap: 9px; }
  .logo small { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .hero-rail { width: 46px; }
  .hero-center { padding: 0 24px 0 70px; }
  .def-table th, .def-table td { display: block; width: 100%; padding: 12px 18px; }
  .def-table th { border-bottom: none; padding-bottom: 0; background: transparent; }
}

/* ============================================================
   固定UI（craftcorp参考）：丸CTA＋右端縦タブ
   ============================================================ */
.fab-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--kohaku);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  box-shadow: 0 14px 30px rgba(160, 100, 30, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fab-contact::before { content: "✉"; font-size: 1.1rem; line-height: 1; }
.fab-contact:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 40px rgba(160, 100, 30, .45); }

.side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  writing-mode: vertical-rl;
  background: #262119;
  color: #fff;
  padding: 26px 12px;
  border-radius: 12px 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .3s ease, padding-right .3s ease;
}
.side-tab small {
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--kohaku);
  filter: brightness(1.3);
}
.side-tab:hover { background: var(--kohaku); padding-right: 18px; }
.side-tab:hover small { color: #fff; }

/* ============================================================
   ブランドストーリー（斜め写真コラージュ×ダーク）
   ============================================================ */
.story-dark {
  position: relative;
  overflow: hidden;
  background: #262119;
  color: #fff;
  padding: clamp(110px, 15vw, 190px) var(--pad-x);
}
.story-collage { position: absolute; inset: -6%; pointer-events: none; z-index: 0; }
.story-collage img {
  position: absolute;
  width: 24%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.story-collage img:nth-child(1) { left: 2%; top: 4%; transform: rotate(-14deg); }
.story-collage img:nth-child(2) { left: 26%; top: -6%; transform: rotate(9deg); }
.story-collage img:nth-child(3) { left: 52%; top: 2%; transform: rotate(-7deg); width: 20%; }
.story-collage img:nth-child(4) { left: 76%; top: 10%; transform: rotate(12deg); }
.story-collage img:nth-child(5) { left: -3%; top: 55%; transform: rotate(8deg); width: 20%; }
.story-collage img:nth-child(6) { left: 22%; top: 62%; transform: rotate(-10deg); }
.story-collage img:nth-child(7) { left: 55%; top: 58%; transform: rotate(6deg); }
.story-collage img:nth-child(8) { left: 82%; top: 52%; transform: rotate(-9deg); width: 20%; }
.story-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(24, 20, 14, .66);
}
.story-body {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.story-body .en-label {
  display: block;
  font-family: var(--gara);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--kohaku);
  filter: brightness(1.3);
  margin-bottom: 14px;
}
.story-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.18em;
  line-height: 2;
  margin-bottom: 26px;
}
.story-body p { font-size: 0.95rem; color: rgba(255,255,255,.85); }
.story-mark {
  position: relative;
  z-index: 2;
  margin-top: clamp(50px, 7vw, 90px);
  font-family: var(--gara);
  font-size: clamp(2.4rem, 8.6vw, 9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  opacity: .95;
}

/* 丸矢印ボタン（白） */
.circle-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}
.circle-link .arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #262119;
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.circle-link:hover .arrow { background: var(--kohaku); color: #fff; transform: translateX(4px); }

/* ============================================================
   コンセプトブロック（縦書きタブ見出し×写真×同心円×縦英字）
   ============================================================ */
.rings-bg {
  position: relative;
  overflow: hidden;
}
.rings-bg::before {
  content: "";
  position: absolute;
  width: 1400px; height: 1400px;
  right: -300px; top: -200px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 118px, rgba(28, 27, 24, .06) 118px 119px);
  pointer-events: none;
}
.vwm {
  position: absolute;
  top: 0;
  right: clamp(-30px, -1vw, 0px);
  writing-mode: vertical-rl;
  font-family: var(--gara);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  color: #fff;
  opacity: .55;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}
.cblock {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto clamp(70px, 9vw, 120px);
}
.cblock:last-of-type { margin-bottom: 0; }
.cblock:nth-of-type(even) .cblock-ph { order: 2; }
.cblock-ph { position: relative; }
.cblock-ph .ph { aspect-ratio: 5 / 4; border-radius: 4px; box-shadow: var(--shadow); }
.tate-title {
  position: absolute;
  top: -28px;
  writing-mode: vertical-rl;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.cblock:nth-of-type(odd) .tate-title { left: -18px; }
.cblock:nth-of-type(even) .tate-title { right: -18px; }
.tate-title span {
  background: #fff;
  padding: 18px 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  letter-spacing: 0.22em;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(40, 34, 24, .12);
}
.cblock-body p { font-size: 0.94rem; color: var(--cha-usu); }
.view-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.view-more .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cha);
  display: grid;
  place-items: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.view-more:hover .arrow { background: var(--kohaku); border-color: var(--kohaku); color: #fff; transform: translateX(4px); }

/* ============================================================
   事例スライダー（OWNER'S VOICE参考）
   ============================================================ */
.voice {
  position: relative;
  overflow: hidden;
}
.voice-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.voice-nav { display: flex; align-items: center; gap: 14px; }
.voice-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--cha);
  background: transparent;
  color: var(--cha);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.voice-nav button:hover { background: var(--kohaku); border-color: var(--kohaku); color: #fff; }
.voice-count {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--gara);
  font-size: 0.85rem;
  color: var(--cha-usu);
}
.voice-count .line { width: 90px; height: 1px; background: var(--line); position: relative; }
.voice-count .line i { position: absolute; inset: 0; background: var(--kohaku); transform-origin: left; transition: transform .5s ease; }

.voice-viewport { position: relative; max-width: 1160px; margin: 0 auto; }
.voice-slide {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  position: absolute;
  inset: 0;
}
.voice-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.voice-slide .no {
  font-family: var(--gara);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--cha);
}
.voice-slide h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: 0.12em;
  line-height: 1.9;
  margin: 10px 0 18px;
}
.voice-slide .tags { margin-bottom: 22px; }
.voice-slide .tags span { background: #262119; color: #fff; border: none; }
.voice-spec { margin-bottom: 24px; }
.voice-spec .spec-label {
  font-family: var(--gara);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cha-usu);
  margin-bottom: 8px;
}
.voice-spec ul li {
  font-size: 0.88rem;
  color: var(--cha-usu);
  padding-left: 16px;
  position: relative;
  line-height: 2;
}
.voice-spec ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 6px; height: 1px;
  background: var(--kohaku);
}
/* 傾いたポラロイド写真 */
.voice-ph { position: relative; padding: 20px 0 46px; }
.voice-ph .polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 40px;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(40, 34, 24, .22);
  transform: rotate(4deg);
  transition: transform .5s ease;
}
.voice-slide:nth-child(even) .voice-ph .polaroid { transform: rotate(-4deg); }
.voice-ph .polaroid:hover { transform: rotate(0deg) scale(1.02); }
.voice-ph .polaroid .ph { aspect-ratio: 4 / 3; border-radius: 2px; }
.voice-ph .script {
  position: absolute;
  left: 0;
  bottom: -8px;
  z-index: 2;
  font-family: var(--script);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--kohaku);
  transform: rotate(-6deg);
  pointer-events: none;
  white-space: nowrap;
}

/* Keywords行（worksカード用） */
.keywords {
  font-size: 0.76rem;
  color: var(--cha-usu);
  line-height: 1.9;
}
.keywords em {
  font-family: var(--gara);
  font-style: italic;
  color: var(--cha);
  margin-right: 8px;
}

/* ============================================================
   CONTACT（フルブリード写真背景）
   ============================================================ */
.contact-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: clamp(110px, 15vw, 190px) var(--pad-x);
}
.contact-hero .bg {
  position: absolute;
  inset: 0;
}
.contact-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 14, .55);
}
.contact-hero .inner { position: relative; text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
.contact-hero .en-big {
  font-family: var(--gara);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.contact-hero .jp-small {
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,.8);
}
.contact-hero p.desc {
  margin: 22px auto 34px;
  max-width: 560px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
}
.contact-hero .cta-tel {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.contact-hero .cta-tel small { color: rgba(255,255,255,.7); }
.contact-hero .cta-tel:hover { background: var(--kohaku); border-color: var(--kohaku); }
.contact-hero .cta-mail { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.6); }
.contact-hero .cta-mail:hover { color: var(--kohaku); border-color: var(--kohaku); }

/* ============================================================
   固定UI・新セクションのレスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .fab-contact { width: 86px; height: 86px; font-size: 0.6rem; right: 14px; bottom: 14px; }
  /* 写真上の白文字対策：中央の陰りと暗幕を強化 */
  .hero::after {
    background:
      radial-gradient(120% 90% at 50% 50%, rgba(20, 16, 10, .38), rgba(20, 16, 10, .56)),
      linear-gradient(to top, rgba(20, 16, 10, .6), transparent 42%);
  }
  .contact-hero .bg::after { background: rgba(24, 20, 14, .68); }
  /* 見出しが潰れて縦文字にならないよう、ナビを下に回す */
  .voice-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .voice-head .sec-head h2 { white-space: normal; }
  .voice-nav { align-self: flex-end; }
  .side-tab { display: none; }
  .cblock { grid-template-columns: 1fr; }
  .cblock:nth-of-type(even) .cblock-ph { order: 0; }
  .tate-title span { font-size: 1rem; padding: 14px 7px; }
  .voice-slide { grid-template-columns: 1fr; }
  .story-collage img { width: 36%; }
  .story-dark::before { background: rgba(24, 20, 14, .74); }
  .story-mark { font-size: clamp(2rem, 7.8vw, 9rem); letter-spacing: 0; }
  .vwm { display: none; }
}

/* アクセシビリティ */
:focus-visible { outline: 2px solid var(--kohaku); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal .ph img { transform: none; }
  .hero-copy, .hero-sub, .hero-mark, .page-hero .en, .page-hero h1, .page-hero .lead { opacity: 1; transform: none; }
  .kv-photos img:first-child { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
