/* ============================================================
   Kijika 特設サイト スタイル
   トーン：ゴールド #EDBF56 / ブラウン #B7732A / ブラック / クリーム白
   （資料のトンマナを踏襲）
============================================================ */

:root {
  --gold: #edbf56;
  --gold-deep: #e0a93a;
  --brown: #b7732a;
  --brown-deep: #8a5620;
  --ink: #1c150b;          /* 温かみのある黒 */
  --text: #3a3025;         /* 本文 */
  --muted: #8a7f70;        /* 補助テキスト */
  --cream: #faf5ea;        /* オフホワイト背景 */
  --white: #ffffff;
  --line: #ece4d3;
  --max: 1256px;
  --gutter: 24px;   /* 左右の余白（1024px以上で32px） */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(28, 21, 11, 0.10);
}

/* 1024px以上はコーポレートサイトと同じ左右32px */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.serif {
  font-family: 'Noto Serif JP', 'Times New Roman', serif;
}

/* ===== ヘッダー ===== */
.sp-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 左右の余白をコンテンツ幅（.sp-container）の内側に合わせる */
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: rgba(250, 245, 234, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sp-logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sp-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin-left: auto;
}
.sp-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.sp-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.sp-nav a:hover { color: var(--brown); }
.sp-nav a:hover::after { transform: scaleX(1); }
/* 現在地 */
.sp-nav a.is-current { color: var(--brown); }
.sp-nav a.is-current::after { transform: scaleX(1); }

/* Contact はピル型CTAとして表示 */
.sp-nav a.sp-nav-cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 11px 26px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.sp-nav a.sp-nav-cta::after { display: none; }
.sp-nav a.sp-nav-cta:hover { background: var(--brown); color: var(--white); transform: translateY(-1px); }
.sp-nav a.sp-nav-cta.is-current { background: var(--brown); }

/* コーポレートサイトへの導線（アウトラインのピル） */
.sp-nav a.sp-nav-corp {
  /* Contactボタンとの間隔だけを詰める（nav共通のgapを打ち消して12pxにする） */
  margin-left: calc(12px - clamp(18px, 2.6vw, 38px));
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sp-nav a.sp-nav-corp::after { display: none; }
.sp-nav a.sp-nav-corp:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }

/* ハンバーガー（モバイル） */
.sp-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.sp-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.sp-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sp-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== KV / ヒーロー ===== */
.sp-kv {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* 上部はヘッダー＋最新ニュースバーの分の余白 */
  flex-direction: column;
  padding: 96px var(--gutter) 80px;
  background: var(--gold);
  overflow: hidden;
}
.sp-kv-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  /* ニュースバーを除いた残りスペースの中央に置く */
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 0.5vw, 12px);
}
.sp-kv-copy { text-align: left; }
.sp-kv-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.sp-kv-catch {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}
/* 「話せば、すぐ記事化」を1文字ずつ左から表示 */
.sp-kv-catch .ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(8px);
  animation: kvChar 0.36s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.09s);
}
@keyframes kvChar { to { opacity: 1; transform: none; } }
.sp-kv-logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(4.6rem, 14.5vw, 9.5rem);
  line-height: 1;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}
/* 「Kijika」もキャッチ完了後に1文字ずつ出現 */
.sp-kv-logo .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: kvChar 0.42s var(--ease) forwards;
  animation-delay: calc(1.15s + var(--i) * 0.12s);
}
.sp-kv-visual {
  position: relative;
  flex-shrink: 0;
  /* 「Kijika」が出そろってから出現 */
  opacity: 0;
  animation: kvRise 0.8s var(--ease) 2.25s forwards;
}
@keyframes kvRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.sp-kv-visual img {
  position: relative;
  z-index: 2;
  width: clamp(230px, 30vw, 380px);
  filter: drop-shadow(0 18px 36px rgba(138, 86, 32, 0.25));
  animation: floaty 5s var(--ease) infinite;
}
/* マスコット背面の淡いパネル */
.sp-kv-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% 6% 2%;
  background: var(--gold);
  border-radius: 24px;
  z-index: 1;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== ボタン ===== */
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* button要素で使う場合にも見た目を揃える */
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sp-btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-2px); }
.sp-btn--ghost {
  background: transparent;
  color: var(--ink);
}
/* 縦幅を抑えた小さめのボタン（横幅は広めに） */
.sp-btn--sm {
  padding: 10px 52px;
  font-size: 0.88rem;
}
.sp-btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ===== セクション共通 ===== */
.sp-section { padding: clamp(72px, 11vw, 128px) var(--gutter); scroll-margin-top: 72px; }
.sp-section--cream { background: var(--cream); }
.sp-section--white { background: var(--white); }
.sp-section--gold { background: var(--gold); }
.sp-section--ink { background: var(--ink); color: var(--cream); }
.sp-container { max-width: var(--max); margin: 0 auto; }
.sp-center { text-align: center; }

.sp-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--brown);
  /* 見出しとの間隔（line-height 1.9 のままだと行box分の余白が乗るため 1.4 に） */
  line-height: 1.4;
  margin: 0 0 14px;
}
.sp-section--ink .sp-eyebrow { color: var(--gold); }
.sp-heading {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 20px;
}
.sp-section--ink .sp-heading { color: var(--white); }
.sp-heading .hl { color: var(--brown); }
.sp-section--ink .sp-heading .hl { color: var(--gold); }
.sp-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  max-width: 40em;
  margin: 0 0 8px;
}
.sp-center .sp-lead { margin-left: auto; margin-right: auto; }
/* 1行で見せたいリード文（狭い画面では自然に折り返す） */
.sp-lead--wide { max-width: none; }

/* ===== フロー（4ステップ） ===== */
.sp-br-pc { display: inline; }
.sp-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.sp-flow-item {
  background: var(--gold);
  border-radius: 18px;
  padding: 14px 16px 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(138, 86, 32, 0.14);
}
.sp-flow-step {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.sp-flow-img {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 8px;
}
/* イラストを小さくしてカードの縦幅を抑える */
.sp-flow-img img { width: 60%; display: block; margin: 0 auto; }
.sp-flow-item h3 { font-size: 1rem; color: var(--ink); margin: 0 0 5px; }
.sp-flow-item p { font-size: 0.74rem; color: rgba(255, 255, 255, 0.95); font-weight: 700; margin: 0; }

/* 01〜04 の出現：ゆっくり＆間隔広めに順次フェード */
.sp-flow-item.reveal { transition-duration: 1.1s; transition-delay: 0s; }
.sp-flow-item.reveal[data-delay="1"] { transition-delay: 0.3s; }
.sp-flow-item.reveal[data-delay="2"] { transition-delay: 0.6s; }
.sp-flow-item.reveal[data-delay="3"] { transition-delay: 0.9s; }

/* ===== カード（3カラム） ===== */
.sp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.sp-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sp-section--ink .sp-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sp-card-num {
  font-family: 'Noto Serif JP', serif;
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.sp-card h3 { font-size: 1.15rem; color: var(--ink); margin: 0 0 12px; }
.sp-section--ink .sp-card h3 { color: var(--white); }
.sp-card p { font-size: 0.9rem; margin: 0; }
.sp-section--ink .sp-card p { color: rgba(250, 245, 234, 0.78); }

/* ===== 用途タグ（BEST CASE） ===== */
.sp-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.sp-usecase {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.sp-usecase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--brown);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sp-usecase h3 { font-size: 1.05rem; color: var(--ink); margin: 0; line-height: 1.7; }

/* ===== 数値ハイライト ===== */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.sp-stat { text-align: center; }
.sp-stat-num {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.sp-stat-num small { font-size: 0.45em; }
.sp-stat-label { font-size: 0.9rem; margin-top: 10px; color: rgba(250, 245, 234, 0.8); }

/* ===== 比較（従来 vs Kijika） ===== */
.sp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.sp-compare-col {
  border-radius: 16px;
  padding: 32px 28px;
}
.sp-compare-col--old { background: var(--cream); border: 1px solid var(--line); color: var(--text); }
.sp-compare-col--new { background: var(--ink); color: var(--cream); }
.sp-compare-col h3 {
  font-size: 1rem;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}
.sp-compare-col--old h3 { color: var(--muted); }
.sp-compare-col--new h3 { color: var(--gold); border-color: rgba(237, 191, 86, 0.4); }
.sp-steps { list-style: none; margin: 0; padding: 0; }
.sp-steps li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(138, 127, 112, 0.3);
}
.sp-compare-col--new .sp-steps li { border-color: rgba(255, 255, 255, 0.14); }
.sp-steps li span:last-child { font-weight: 700; white-space: nowrap; }
.sp-compare-note {
  text-align: center;
  margin-top: 28px;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 900;
  color: var(--brown);
}

/* ===== USP ===== */
.usp-heading {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.6;
  color: var(--white);
  margin: 0 0 48px;
}
.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.usp-card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 30px 34px;
  box-shadow: 0 18px 44px rgba(138, 86, 32, 0.16);
}
.usp-card-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 900;
  color: var(--ink);
  text-align: center;
  margin: 0 0 22px;
}
.usp-kikuvi {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* --- 右カード：既存記事→Kijika 図 --- */
.usp-diagram {
  display: flex;
  align-items: center;
  gap: 10px;
}
.usp-wire {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.usp-wire-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.usp-wire-canvas {
  background: #f3f0ea;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wire-block {
  background: #cfc7b8;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #6b6252;
  padding: 8px 6px;
  white-space: nowrap;
}
.wire-block--wide { align-self: stretch; padding: 12px 6px; }
.wire-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wire-row .wire-block { flex: 0 0 auto; }
.wire-lines {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wire-lines i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #ddd6c8;
}
.wire-lines i:last-child { width: 70%; }
.usp-wire-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  padding: 5px 12px;
}
.usp-wire-tag--out { background: var(--gold); }
.usp-gear {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
}
.usp-gear-arrow { width: 62px; height: 16px; }
.usp-gear-ic { font-size: 1.5rem; line-height: 1; color: var(--ink); }
.usp-gear-tx {
  font-size: 10px;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}

/* ===== VALUE（白→ゴールドの2トーンにカードが跨る） ===== */
.value-sec {
  position: relative;
  background: var(--white);
  padding: clamp(64px, 10vw, 110px) var(--gutter) 0;
  overflow: hidden;
  scroll-margin-top: 72px;
}
.value-sec::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 172px;
  background: var(--gold);
  z-index: 0;
}
.value-sec > .sp-container { position: relative; z-index: 1; }
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding-bottom: 72px;
}
/* VALUE と BEST CASE の間隔を詰める */
#case { padding-top: clamp(30px, 4vw, 52px); }
.value-card {
  background: var(--white);
  border: 1px solid rgba(224, 169, 58, 0.55);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(138, 86, 32, 0.10);
}
.value-card-ic {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto 22px;
}
.value-card h3 { font-size: 1.2rem; font-weight: 900; color: var(--ink); margin: 0 0 14px; }
.value-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.9; margin: 0; }

/* ===== BEST CASE（画像＋テキストのジグザグ） ===== */
.sp-eyebrow--light { color: var(--white); }
.case-row {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 64px);
}
.case-row--rev { flex-direction: row-reverse; }
.case-img {
  flex: 0 0 44%;
  aspect-ratio: 3 / 2;
  background: #e9e9e9;
  border-radius: 6px;
}
.case-text { flex: 1 1 0; min-width: 0; }
.case-title {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 18px;
}
.case-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 2;
  margin: 0;
}

/* ===== 創出した時間を注力へ（マスコット＋訴求ボックス） ===== */
.focus-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 44px);
}
.focus-visual { flex: 0 0 26%; text-align: center; }
.focus-visual img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(138, 86, 32, 0.18));
}
.focus-body { flex: 1 1 0; min-width: 0; }
.focus-heading { margin: 0 0 26px; }
.focus-heading .l1 {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
}
.focus-heading .l2 {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.5;
}
.focus-notes { display: flex; flex-direction: column; gap: 16px; }
.focus-note {
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 26px;
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}
/* 1行に収まる幅があるときだけ改行なしにする */
@media (min-width: 1100px) {
  .focus-note { white-space: nowrap; }
}
/* PCでは行内の改行を無効化（モバイルのみ改行） */
.sp-br-sp { display: none; }

/* ===== CTA ===== */
.sp-cta { text-align: center; }
.sp-cta .sp-btn { margin-top: 12px; }
.sp-contact-persons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  font-size: 0.9rem;
}
.sp-contact-persons a { color: var(--gold); text-decoration: underline; }
.sp-contact-persons .role { color: rgba(250, 245, 234, 0.7); font-size: 0.8rem; }

/* ===== フッター ===== */
.sp-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px var(--gutter);
  text-align: center;
  font-size: 13px;
}
.sp-footer p { margin: 0 0 14px; opacity: 0.7; }
.sp-footer-nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.sp-footer-nav a { opacity: 0.75; transition: opacity 0.3s; }
.sp-footer-nav a:hover { opacity: 1; }

/* ===== スクロールアニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-shown { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sp-kv-visual img { animation: none; }
  .sp-kv-catch .ch, .sp-kv-logo .ch, .sp-kv-logo, .sp-kv-visual, .kv-cta-sp, .kv-news { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .sp-nav-toggle { display: block; }
  /* ドロワーを開いてもロゴは前面に残す */
  .sp-logo { position: relative; z-index: 120; }
  .sp-nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 84px var(--gutter) 32px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.38s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .sp-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .sp-nav a {
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .sp-nav a::after { display: none; }
  .sp-nav a.sp-nav-cta {
    margin-top: 20px;
    padding: 15px 26px;
    text-align: center;
    font-size: 15px;
    border-bottom: 0;
  }
  .sp-nav a.sp-nav-corp {
    margin-left: 0;
    margin-top: 10px;
    padding: 14px 26px;
    text-align: center;
    font-size: 14px;
    border: 1.5px solid var(--ink);
  }
}
@media (max-width: 860px) {
  .sp-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sp-br-pc { display: none; }
  .sp-kv-inner { flex-direction: column; text-align: center; gap: 20px; }
  .sp-kv-copy { text-align: center; }
  .sp-kv-logo { font-size: clamp(5.5rem, 22vw, 7rem); }  /* スマホのみ大きく */
  .sp-kv-visual { order: -1; width: 230px; }
  .sp-kv-visual img { width: 190px; margin: 0 auto; }
  .sp-cards, .sp-usecases, .sp-stats, .sp-compare { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; padding-bottom: 60px; }
  .value-sec::after { height: 120px; }
  .case-row, .case-row--rev { flex-direction: column; gap: 20px; }
  .case-img { flex: none; width: 100%; }
  .focus-inner { flex-direction: column; gap: 24px; }
  .focus-visual { flex: none; }
  .focus-visual img { max-width: 220px; }
  .focus-note { white-space: normal; }
  .sp-br-sp { display: inline; }
}

/* ============================================================
   下層ページ共通（Use Case / Works / News / Contact）
============================================================ */

/* ===== ページヒーロー ===== */
.page-hero {
  background: var(--gold);
  /* 上パディングは固定ヘッダー（約76px）の下に収める分だけ確保する */
  padding: clamp(124px, 11vw, 140px) var(--gutter) clamp(46px, 5.2vw, 66px);
  text-align: center;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
/* 見出しの既定マージンで余白が増えるのを防ぐ */
.page-hero-inner h1 { margin: 0; }
.page-hero-en {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}
.page-hero-ja {
  display: block;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brown-deep);
  margin: 0;
}
.page-hero-lead {
  max-width: 42em;
  margin: 16px auto 0;
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  color: var(--ink);
}

/* ===== パンくず ===== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
}
.breadcrumb ol {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
/* 記事詳細など、本文幅が狭いページ用 */
.breadcrumb--narrow ol { max-width: 760px; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--brown); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ===== セクション見出し（下層） ===== */
.page-section { padding: clamp(56px, 9vw, 100px) var(--gutter); }
/* パンくず直下のセクションは上余白を詰める */
.breadcrumb + .page-section { padding-top: clamp(36px, 4.6vw, 58px); }
.page-section--white { background: var(--white); }
.page-section--cream { background: var(--cream); }
.page-section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.page-section-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 12px;
}

/* ===== 準備中プレースホルダ ===== */
.empty-state {
  border: 2px dashed rgba(224, 169, 58, 0.55);
  border-radius: 16px;
  background: var(--white);
  padding: clamp(48px, 8vw, 84px) var(--gutter);
  text-align: center;
}
.page-section--white .empty-state { background: var(--cream); }
.empty-state-ic {
  display: block;
  width: 88px;
  margin: 0 auto 20px;
  opacity: 0.9;
}
.empty-state-title {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}
.empty-state-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.9;
}

/* ===== Use Case：カード ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 30px);
}
.usecase-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.usecase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.usecase-card-img {
  aspect-ratio: 3 / 2;
  background: #e9e9e9;
  display: block;
  width: 100%;
  object-fit: cover;
}
.usecase-card-body { padding: 26px 26px 30px; flex: 1 1 auto; }
.usecase-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--brown);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.usecase-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 12px;
}
.usecase-card p { font-size: 0.88rem; color: var(--text); line-height: 1.95; margin: 0; }

/* ===== Works：制作実績グリッド ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 28px);
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card-img {
  aspect-ratio: 16 / 10;
  background: #e9e9e9;
  width: 100%;
  object-fit: cover;
  display: block;
}
.work-card-body { padding: 20px 22px 24px; }
.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.work-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown);
  border: 1px solid rgba(183, 115, 42, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}
.work-card-client { font-size: 11px; color: var(--muted); font-weight: 700; }
.work-card h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

/* ===== News：記事リスト ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item a {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  /* サムネイル以降をまとめて右へ寄せる（区切り線は全幅のまま） */
  padding: 26px 8px 26px 32px;
  transition: background 0.3s var(--ease);
}
.news-item a:hover { background: rgba(237, 191, 86, 0.12); }

/* サムネイル */
.news-thumb {
  flex: 0 0 auto;
  width: clamp(140px, 20vw, 220px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #e9e6e1;
  position: relative;
  display: grid;
  place-items: center;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item a:hover .news-thumb img { transform: scale(1.04); }
.news-thumb img { transition: transform 0.5s var(--ease); }
/* P-DRIVERS ブランドサムネイル（キービジュアル＋ロゴタイプ） */
.news-thumb--brand::after {
  content: attr(data-logo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(15px, 2.1vw, 24px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* 本文 */
.news-body { flex: 1 1 auto; min-width: 0; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.news-date {
  flex: 0 0 auto;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
}
.news-cat {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
/* 一覧はタイトルが上、サブコピーが下 */
.news-title {
  display: block;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 4px;
}
.news-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   News 詳細（記事ページ）
============================================================ */
.news-article { max-width: 760px; margin: 0 auto; }

/* 記事ヘッダー */
.news-article-head { margin-bottom: clamp(28px, 4vw, 40px); }
.news-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.news-article-sub {
  display: block;
  font-size: clamp(0.85rem, 1.7vw, 0.95rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.8;
  margin: 0 0 8px;
}
.news-article-title {
  /* 本文幅760pxに長めのタイトルが1行で収まるサイズに調整 */
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

/* 記事のメインビジュアル */
.news-article-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e9e6e1;
  margin: 0 0 clamp(32px, 5vw, 48px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.news-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.news-article-hero--brand::after {
  content: attr(data-logo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(30px, 6vw, 62px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* 本文 */
.news-article-body { font-size: clamp(0.92rem, 1.7vw, 1rem); line-height: 2.1; color: var(--text); }
.news-article-body > * + * { margin-top: 1.6em; }
.news-article-body h2 {
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 2.4em;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.news-article-body p { margin-bottom: 0; }
.news-article-body a { color: var(--brown); text-decoration: underline; }
.news-article-body a:hover { color: var(--brown-deep); }
/* バナーはカードなので下線を出さない */
.news-article-body a.news-banner { text-decoration: none; color: inherit; }
.news-article-body strong { font-weight: 900; color: var(--ink); }

/* 媒体概要などの定義リスト */
.news-spec {
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.news-spec div {
  display: flex;
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.news-spec div:last-child { border-bottom: 0; }
.news-spec dt {
  flex: 0 0 clamp(90px, 22%, 140px);
  font-weight: 700;
  color: var(--ink);
}
.news-spec dd { margin: 0; flex: 1 1 auto; min-width: 0; }

/* 記事内バナー（外部サイトへの導線） */
.news-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.news-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-banner-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-banner-title {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.news-banner-arrow {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}

/* 記事誘導バナー（サムネイル付き） */
.news-banner--article {
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}
.news-banner-thumb {
  flex: 0 0 clamp(150px, 34%, 260px);
  width: clamp(150px, 34%, 260px);
  align-self: stretch;
  object-fit: cover;
  background: #e9e6e1;
}
.news-banner-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px;
}
.news-banner-heading {
  display: block;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
}
.news-banner-note { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 700; }

/* 記事フッター（一覧へ戻る） */
.news-article-foot {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}
.pagination a:hover { background: var(--gold); border-color: var(--gold); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ============================================================
   Contact（Kijika専用フォーム）
============================================================ */
.kj-form { max-width: 760px; margin: 0 auto; }
.kj-form-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 28px; }
.kj-required { color: #c0392b; font-weight: 700; }

.kj-row { margin-bottom: 26px; }
.kj-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.kj-input, .kj-textarea, .kj-select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.7;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.kj-textarea { resize: vertical; min-height: 190px; }
.kj-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.kj-input:focus, .kj-textarea:focus, .kj-select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(237, 191, 86, 0.28);
}
.kj-input::placeholder, .kj-textarea::placeholder { color: #bdb4a5; }
.kj-input.is-error, .kj-textarea.is-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }

.kj-error {
  display: none;
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c0392b;
}
.kj-error.is-visible { display: block; }

/* ハニーポット（人には見えない） */
.kj-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.kj-privacy {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.9;
  margin: 0 0 28px;
}
.kj-privacy a { color: var(--brown); text-decoration: underline; }

.kj-submit { text-align: center; margin-top: 8px; }
.kj-submit .sp-btn { border: 0; }
.kj-submit .sp-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.sp-btn.is-loading { position: relative; color: transparent; }
.sp-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: kjSpin 0.8s linear infinite;
}
@keyframes kjSpin { to { transform: rotate(360deg); } }

.kj-recaptcha-note {
  margin: 24px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.kj-recaptcha-note a { color: var(--brown); text-decoration: underline; }

/* 問い合わせ先の補足 */
.kj-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.kj-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  text-align: center;
}
.kj-info-card h3 { font-size: 0.95rem; font-weight: 900; color: var(--ink); margin: 0 0 8px; }
.kj-info-card p { font-size: 0.83rem; color: var(--muted); margin: 0; line-height: 1.9; }

/* ===== サンクスページ ===== */
.kj-thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.kj-thanks-ic { width: 150px; margin: 0 auto 26px; }
.kj-thanks h1 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.5;
}
.kj-thanks p { font-size: 0.92rem; line-height: 2; margin: 0 0 32px; }

/* ===== 下層ページ用CTA ===== */
.page-cta { text-align: center; }
.page-cta .sp-btn { margin-top: 20px; }
.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.page-cta-actions .sp-btn { margin-top: 0; }

/* ===== フッター（下層追加分） ===== */
.sp-footer-sitenav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(250, 245, 234, 0.16);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sp-footer-sitenav a { opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.sp-footer-sitenav a:hover { opacity: 1; color: var(--gold); }

/* ===== 下層ページ レスポンシブ ===== */
@media (max-width: 860px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .usecase-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .kj-info { grid-template-columns: 1fr; }
  .news-item a { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 4px; }
  .news-thumb { width: 100%; }
  .news-thumb--brand::after { font-size: 26px; }
  .news-spec div { flex-direction: column; gap: 4px; }
  .news-spec dt { flex: none; }
  .news-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 24px; }
  .news-banner--article { gap: 0; padding: 0; align-items: stretch; }
  .news-banner-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .news-banner-body { padding: 18px 20px 22px; }
}

/* ============================================================
   Use Case（カード一覧 / 絞り込み / モーダル）
============================================================ */

/* ===== 絞り込みUI ===== */
.uc-filter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.uc-filter-row + .uc-filter-row { margin-top: 20px; }
.uc-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.uc-filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-filter-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.uc-filter-btn:hover { border-color: var(--gold-deep); background: rgba(237, 191, 86, 0.18); }
.uc-filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.uc-filter-btn:focus-visible { outline: 3px solid rgba(237, 191, 86, 0.6); outline-offset: 2px; }

.uc-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.uc-count { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin: 0; }
.uc-count b { color: var(--brown); font-size: 1.1em; }
.uc-reset {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  text-decoration: underline;
}
.uc-reset:hover { color: var(--brown); }

/* ===== カードグリッド（PC:3カラム / SP:2カラム） ===== */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.uc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 26px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.uc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(224, 169, 58, 0.6); }
.uc-card[hidden] { display: none; }

/* カード上のタグは非表示（絞り込み用のデータとモーダル表示用に保持している） */
.uc-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.uc-card-tags[hidden] { display: none; }
.uc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.uc-tag--cat { color: var(--white); background: var(--brown); }
.uc-tag--ind { color: var(--brown-deep); background: rgba(237, 191, 86, 0.32); }

.uc-card-title {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 10px;
}
.uc-card-lead {
  font-size: clamp(0.74rem, 1.1vw, 0.83rem);
  color: var(--text);
  line-height: 1.85;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* モーダルがあることを示すボタン（カード全体がクリック領域） */
.uc-card-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.uc-card-btn::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.uc-card-btn-ic {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.uc-card:hover .uc-card-btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.uc-card:hover .uc-card-btn-ic { transform: rotate(90deg); }
.uc-card-btn:focus-visible { outline: 3px solid rgba(237, 191, 86, 0.6); outline-offset: 2px; }

/* 該当なし */
.uc-empty {
  display: none;
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 24px;
  border: 2px dashed rgba(224, 169, 58, 0.55);
  border-radius: 16px;
  background: var(--white);
}
.uc-empty.is-shown { display: block; }
.uc-empty p { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }

/* ===== モーダル ===== */
.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.uc-modal[hidden] { display: none; }
.uc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 11, 0.55);
  backdrop-filter: blur(2px);
  animation: ucFade 0.25s var(--ease);
}
@keyframes ucFade { from { opacity: 0; } to { opacity: 1; } }
.uc-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 800px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 80px rgba(28, 21, 11, 0.32);
  animation: ucRise 0.3s var(--ease);
}
@keyframes ucRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.uc-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.uc-modal-close:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.uc-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 44px 16px 0; }
.uc-modal-title {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
}
.uc-modal-lead {
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.9;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.uc-modal-body h4 {
  position: relative;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 10px;
  padding-left: 14px;
}
.uc-modal-body h4::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--gold);
}
.uc-modal-body p {
  font-size: clamp(0.85rem, 1.5vw, 0.93rem);
  line-height: 2;
  margin: 0 0 26px;
}
.uc-modal-body p:last-child { margin-bottom: 0; }
.uc-modal-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
body.uc-modal-open { overflow: hidden; }

/* ===== レスポンシブ（スマホは2カラム） ===== */
@media (max-width: 900px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .uc-card { padding: 14px 13px 16px; border-radius: 13px; }
  .uc-card-tags { gap: 4px; margin-bottom: 9px; }
  .uc-tag { font-size: 9px; padding: 2px 8px; white-space: normal; }
  .uc-card-title { font-size: 0.86rem; line-height: 1.55; margin-bottom: 8px; }
  .uc-card-lead { font-size: 0.72rem; line-height: 1.75; margin-bottom: 14px; -webkit-line-clamp: 5; line-clamp: 5; }
  .uc-card-btn { font-size: 0.68rem; padding: 7px 11px; gap: 6px; }
  .uc-filter-btn { font-size: 0.74rem; padding: 7px 13px; }
  .uc-modal { padding: 14px; }
  .uc-modal-panel { max-height: 90vh; }
}

/* ===== Works：注目実績（1本を大きく見せるレイアウト） ===== */
.work-featured {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.work-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 169, 58, 0.6);
}
.work-featured-thumb {
  position: relative;
  flex: 0 0 46%;
  align-self: stretch;
  min-height: 240px;
  background: #e9e6e1;
  overflow: hidden;
}
.work-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-featured:hover .work-featured-thumb img { transform: scale(1.04); }
/* キービジュアル上にロゴタイプを重ねる */
.work-featured-thumb--brand::after {
  content: attr(data-logo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.work-featured-body {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(24px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-featured-title {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
}
.work-featured-text {
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  color: var(--text);
  line-height: 2;
  margin: 0 0 20px;
}
.work-featured-more {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown);
}
.work-featured:hover .work-featured-more { color: var(--brown-deep); }

@media (max-width: 720px) {
  .work-featured { flex-direction: column; }
  .work-featured-thumb { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .work-featured-thumb--brand::after { font-size: 30px; }
}

/* ============================================================
   Concept（コンセプト）
============================================================ */
/* TOPのService Visionエリアは他セクションより縦を抑える */
#service-vision {
  padding-top: clamp(52px, 6.6vw, 80px);
  padding-bottom: clamp(52px, 6.6vw, 80px);
}
/* TOPは段落間を空けず、続けて読ませる */
#service-vision .concept-statement p { margin-bottom: 0; }

.concept-statement { text-align: center; max-width: 900px; margin: 0 auto; }
/* .concept-statement p より詳細度を上げないと文字サイズが効かない */
.concept-statement .concept-catch {
  /* .sp-heading（「AIとの会話のみで、〜」）と同じ級数 */
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.concept-catch .hl { color: var(--brown); }
.concept-statement p {
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  line-height: 2.2;
  margin: 0 0 1.4em;
}
.concept-statement p:last-child { margin-bottom: 0; }

/* 背景の課題（Before / After） */
.concept-shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(32px, 5vw, 48px);
}
.concept-shift-box {
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  height: 100%;
}
.concept-shift-box--before { background: var(--cream); border: 1px solid var(--line); }
.concept-shift-box--after { background: var(--ink); color: var(--cream); }
.concept-shift-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}
.concept-shift-box--after .concept-shift-label { color: var(--gold); }
.concept-shift-box h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 12px;
}
.concept-shift-box--after h3 { color: var(--white); }
.concept-shift-box p { font-size: 0.86rem; line-height: 2; margin: 0; }
.concept-shift-box--after p { color: rgba(250, 245, 234, 0.82); }
.concept-shift-arrow {
  font-size: 1.6rem;
  color: var(--brown);
  line-height: 1;
}

/* 大切にしていること（3項目） */
.concept-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.8vw, 30px);
}
.concept-principle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 36px);
}
.concept-principle-num {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 14px;
}
.concept-principle h3 {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 12px;
}
.concept-principle p { font-size: 0.86rem; color: var(--text); line-height: 2; margin: 0; }

/* 目指す姿 */
.concept-vision {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
/* .concept-vision p より詳細度を上げる（同数だと後勝ちで打ち消されるため） */
.concept-vision .concept-vision-copy {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 22px;
}
.concept-vision p { font-size: clamp(0.88rem, 1.6vw, 0.96rem); line-height: 2.1; margin: 0; }
.concept-vision-mascot {
  width: clamp(140px, 20vw, 200px);
  margin: 0 auto clamp(24px, 3vw, 32px);
  filter: drop-shadow(0 16px 32px rgba(138, 86, 32, 0.18));
}

@media (max-width: 900px) {
  .concept-principles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .concept-shift { grid-template-columns: 1fr; }
  .concept-shift-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ============================================================
   KV 左下の最新ニュース
============================================================ */
.kv-news {
  /* PC：ヘッダー直下・コンテンツ幅いっぱいの横長バー */
  position: relative;
  z-index: 3;
  order: -1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 8px 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(138, 86, 32, 0.14);
  /* KVのアニメーションが出そろってから表示 */
  opacity: 0;
  animation: kvRise 0.7s var(--ease) 2.8s forwards;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.kv-news:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.9); }

.kv-news-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #e9e6e1;
}
.kv-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kv-news-thumb--brand::after {
  content: attr(data-logo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* PCはタイトルとサブコピーを続けて1行に並べる */
.kv-news-body {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
/* 文字サイズ・色はタイトルとサブコピーで統一 */
.kv-news-title,
.kv-news-sub {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kv-news-title { flex: 0 0 auto; font-weight: 900; }
.kv-news-sub { flex: 0 1 auto; min-width: 0; font-weight: 700; }

/* 右端のアテンション（テキスト＋矢印） */
.kv-news-more {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.kv-news:hover .kv-news-more { color: var(--brown-deep); }

@media (max-width: 720px) {
  /* スマホは従来どおりKVの左下。ニュースの分だけ下部に余白を確保する */
  .sp-kv { padding: 120px var(--gutter) 190px; }
  .kv-news {
    position: absolute;
    order: 0;
    left: var(--gutter);
    bottom: 28px;
    flex-wrap: wrap;
    width: calc(100% - var(--gutter) * 2);
    max-width: none;
    margin: 0;
    gap: 10px;
    padding: 9px 14px 9px 8px;
    border-radius: 14px;
  }
  /* スマホではアテンションボタンを出さない（カード全体がリンク） */
  .kv-news-more { display: none; }
  .kv-news-thumb { flex: 0 0 74px; width: 74px; border-radius: 10px; }
  .kv-news-thumb--brand::after { font-size: 8px; }
  /* タイトルとサブコピーを地続きの1文として流し込み、幅なりに折り返す */
  /* 行の高さはブロック側の line-height が基準になるため、こちらにも指定する */
  .kv-news-body { display: block; flex: 1 1 0; min-width: 0; font-size: 0.73rem; line-height: 1.6; }
  .kv-news-title,
  .kv-news-sub {
    display: inline;
    font-size: 0.73rem;
    line-height: 1.6;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .kv-news-sub { margin-top: 0; }
}

/* ===== TOP：Use Case ティーザー ===== */
.uc-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(32px, 4.6vw, 48px);
  text-align: left;
}
.uc-teaser-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 12px 30px rgba(138, 86, 32, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.uc-teaser-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.uc-teaser-count {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.uc-teaser-count small { font-size: 0.42em; margin-left: 2px; }
.uc-teaser-card h3 {
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 8px;
}
.uc-teaser-card p {
  font-size: clamp(0.74rem, 1.2vw, 0.82rem);
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 900px) {
  .uc-teaser { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .uc-teaser-card { padding: 16px 15px 18px; border-radius: 13px; }
  .uc-teaser-count { font-size: 1.4rem; margin-bottom: 8px; }
}

/* ===== TOP：特長ブロック（アイコン＋見出し＋説明） ===== */
.benefit-list {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  /* 4ステップカードの下に置くため上に間隔を取る */
  margin-top: clamp(20px, 2.8vw, 32px);
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  /* 白セクションの中に置くため背景はクリーム */
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  /* 縦幅を抑えるため上下は控えめに */
  padding: clamp(14px, 1.5vw, 20px) clamp(20px, 2.6vw, 32px);
}
.benefit-ic {
  flex: 0 0 clamp(56px, 5.6vw, 72px);
  width: clamp(56px, 5.6vw, 72px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  /* %指定はカード幅基準になってしまうため固定値で内側の余白を取る */
  padding: clamp(12px, 1.3vw, 16px);
  background: var(--gold);
  border-radius: 50%;
}
.benefit-ic img { width: 100%; height: auto; }
.benefit-body { flex: 1 1 0; min-width: 0; text-align: left; }
.benefit-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 6px;
}
.benefit-text {
  font-size: clamp(0.8rem, 1.35vw, 0.88rem);
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 720px) {
  .benefit-item { flex-direction: column; text-align: center; gap: 12px; padding: 18px 16px 20px; }
  .benefit-body { text-align: center; }
  .benefit-ic { flex: none; }
}

/* ===== TOP：活用シーンの自動スクロール（右→左） ===== */
.uc-marquee {
  margin-top: clamp(26px, 3.4vw, 40px);
  overflow: hidden;
  /* 両端をフェードさせて切れ目を目立たせない */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.uc-marquee-track {
  display: flex;
  width: max-content;
  /* gap を使うと2セットの折り返しが半ギャップ分ずれるので margin で間隔を取る */
  animation: ucMarquee 38s linear infinite;
}
.uc-marquee:hover .uc-marquee-track { animation-play-state: paused; }
@keyframes ucMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.uc-mq-card {
  flex: 0 0 auto;
  /* 縦長のカード */
  width: clamp(178px, 15vw, 208px);
  min-height: clamp(212px, 18vw, 244px);
  margin-right: clamp(12px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 15px;
}
.uc-mq-cat {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--white);
  background: var(--brown);
  border-radius: 999px;
  padding: 3px 10px;
}
.uc-mq-title {
  font-size: clamp(0.88rem, 1.45vw, 1rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
}
.uc-mq-lead {
  font-size: clamp(0.7rem, 1.05vw, 0.76rem);
  color: var(--muted);
  line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  .uc-marquee-track { animation: none; }
}

/* ===== TOP：Service Vision エリアのボタン2つ ===== */
.sv-actions {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(26px, 3.4vw, 40px);
}
.sv-actions .sp-btn {
  flex: 0 0 auto;
  min-width: 340px;
  padding-top: 8px;
  padding-bottom: 8px;
  justify-content: center;
  /* 罫線と文字は黒だと強いのでブラウンに */
  color: var(--brown);
  border-color: var(--brown);
}
.sv-actions .sp-btn:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}
@media (max-width: 720px) {
  .sv-actions { flex-direction: column; align-items: center; }
  .sv-actions .sp-btn { width: 100%; max-width: 320px; min-width: 0; }
}

/* ===== TOP：共同開発（Kikuvi） ===== */
#collabo {
  padding-top: clamp(34px, 4vw, 48px);
  padding-bottom: clamp(34px, 4vw, 48px);
}
.collabo-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: clamp(14px, 1.8vw, 20px);
}
.collabo-visual {
  flex: 0 0 34%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 21, 11, 0.14);
}
.collabo-visual img { width: 100%; height: auto; display: block; }
.collabo-body { flex: 1 1 0; min-width: 0; }
.collabo-title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
}
.collabo-text {
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  color: var(--text);
  line-height: 2;
  margin: 0;
}

@media (max-width: 720px) {
  .collabo-inner { flex-direction: column; gap: 20px; }
  .collabo-visual { flex: none; width: 100%; }
}

/* 白背景のセクションに置く場合のUse Caseティーザー */
.uc-teaser-card { border: 1px solid var(--line); }
.usp-heading--ink { color: var(--ink); }

/* ============================================================
   TOP：Works / News ブロックバナー
============================================================ */
#pagelinks { padding-top: clamp(40px, 5vw, 60px); padding-bottom: clamp(40px, 5vw, 60px); }
.link-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.link-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: clamp(132px, 12vw, 164px);
  padding: clamp(24px, 3vw, 36px) clamp(64px, 6vw, 88px) clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.link-banner:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.link-banner-en {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--ink);
}
.link-banner-ja { font-size: clamp(.8rem, 1.3vw, .88rem); color: var(--muted); line-height: 1.7; }
.link-banner-arrow {
  position: absolute;
  top: 50%;
  right: clamp(22px, 2.6vw, 32px);
  transform: translateY(-50%);
  width: clamp(38px, 3.4vw, 46px);
  height: clamp(38px, 3.4vw, 46px);
  display: grid;
  place-items: center;
  font-size: .95rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  transition: transform .3s var(--ease);
}
.link-banner:hover .link-banner-arrow { transform: translateY(-50%) translateX(4px); }
@media (max-width: 720px) {
  .link-banners { grid-template-columns: 1fr; }
  .link-banner { min-height: 0; padding: 22px 68px 22px 22px; }
}
.link-banners--3 { grid-template-columns: repeat(3, 1fr); }
.link-banners--3 .link-banner-en { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
@media (max-width: 900px) { .link-banners--3 { grid-template-columns: 1fr; } }

/* ============================================================
   TOPマーキー：カード内「詳しく見る」ボタン
   Use Caseページのカードボタン（.uc-card-btn）と同じ意匠を流用する
============================================================ */
.uc-mq-card { min-height: clamp(216px, 17.5vw, 248px); }
/* ボタンは下端に揃えたいが、テキストとの間が開きすぎないよう余白を詰める */
.uc-mq-card .uc-card-btn { margin-top: auto; padding: 7px 13px; }
/* .uc-card-btn::after はカード全面を覆うクリック領域だが、
   マーキーではボタンだけを押せるようにしたいので無効化する */
.uc-mq-card .uc-card-btn::after { display: none; }
.uc-mq-card:hover .uc-card-btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.uc-mq-card:hover .uc-card-btn-ic { transform: rotate(90deg); }
.uc-detail[hidden] { display: none; }
/* モーダル表示中はスクロールを止める（ホバー以外でも止まるように） */
.uc-marquee-track.is-paused { animation-play-state: paused; }

/* ============================================================
   TOP：Kijika USE CASE のケース紹介
   PC＝カードの縦積み／スマホ＝横スクロールのカルーセル
   .uc-case を追加していくだけで増やせる（全ケースとも画像左・テキスト右）
============================================================ */
.uc-case-head { margin-bottom: clamp(22px, 3vw, 34px); }
.uc-case-head .usp-heading { margin-bottom: 0; }

.uc-case-list {
  display: grid;
  gap: clamp(22px, 2.8vw, 36px);
  text-align: left;
}

.uc-case {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 18px 44px rgba(28, 21, 11, 0.10);
}
.uc-case-visual {
  flex: 0 0 46%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}
.uc-case-visual img { display: block; width: 100%; height: auto; }
.uc-case-body { flex: 1 1 0; min-width: 0; padding-right: clamp(0px, 1vw, 14px); }
.uc-case-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--brown);
  margin-bottom: 10px;
}
.uc-case-title {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 16px;
}
.uc-case-text {
  font-size: clamp(0.8rem, 1.35vw, 0.88rem);
  line-height: 2;
  margin: 0 0 14px;
}
.uc-case-text:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   スマホ：横スクロールのカルーセル
   セクションの左右パディングぶんだけ外へ出して画面端まで流し、
   スナップさせる。次のカードが少し覗くので横に送れることが分かる。
------------------------------------------------------------ */
@media (max-width: 900px) {
  .uc-case-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* スナップの基準位置を左端に固定する（.uc-case の scroll-snap-align: start と対）*/
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    /* 最後のカードも先頭と同じ位置までスクロールできるように余白を足す。
       これが無いと最終カードのスナップ位置に到達できず、
       ブラウザが手前のカードへ引き戻して挙動が不安定になる。
       カード幅を 100vw - gutter*3 にしているので、必要な余白は gutter*2 で一致する。 */
    padding-right: calc(var(--gutter) * 2);
    scrollbar-width: none;
  }
  .uc-case-list::-webkit-scrollbar { display: none; }
  .uc-case {
    /* 幅はビューポート基準。コンテナのpaddingに影響されないため、
       スナップ位置の計算が崩れない */
    flex: 0 0 calc(100vw - var(--gutter) * 3);
    /* center だと1枚目を中央に寄せようとして読み込み時に横位置がずれるため start にする */
    scroll-snap-align: start;
    /* 1スワイプ＝1枚。行き過ぎて中途半端な位置で止まるのを防ぐ */
    scroll-snap-stop: always;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 22px;
    border-radius: 16px;
  }
  /* カルーセル内のカードはフェードイン（縦方向のtransform）を無効化。
     横スワイプ中に上下へ動いてスナップ位置が再計算され、
     カードがずれる原因になるため。 */
  .uc-case-list .reveal,
  .uc-case-list .reveal.is-shown {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .uc-case-visual { flex: none; width: 100%; }
  .uc-case-body { padding-right: 0; }
  /* タイトルは強制改行せず、カード幅で折り返す */
  .uc-case-title br { display: none; }
}

/* WHAT IS Kijika? の下側の余白を詰める */
/* 上のissue-bridgeの矢印から続くので、上余白は詰める */
#about { padding-top: clamp(30px, 3.6vw, 44px); padding-bottom: clamp(72px, 8.2vw, 105px); }


/* ============================================================
   KV：スマホのみ表示するお問い合わせボタン
============================================================ */
.kv-cta-sp { display: none; }
@media (max-width: 720px) {
  .kv-cta-sp {
    display: inline-flex;
    margin-top: clamp(38px, 10vw, 54px);
    padding: 8px 32px;
    font-size: 0.84rem;
    /* 鹿（.sp-kv-visual）と同じタイミング・同じ動きで出現させる */
    opacity: 0;
    animation: kvRise 0.8s var(--ease) 2.25s forwards;
  }
}

/* ============================================================
   TOP：KVのニュースが出るまでスクロールを止める
   （JSが .kv-lock を付け外しする。JSが動かない場合は
     クラスが付かないので、スクロールできないままにはならない）
============================================================ */
html.kv-lock,
html.kv-lock body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/* ============================================================
   TOP：ISSUE（Service Visionの直下・小さめのエリア）
   上のクリーム、下の白と区別するため濃色（ink）の帯にする
============================================================ */
#issue {
  padding-top: clamp(38px, 4.6vw, 56px);
  padding-bottom: clamp(38px, 4.6vw, 56px);
}
.issue-heading {
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.6;
  margin: 0 0 clamp(12px, 1.6vw, 18px);
}
.issue-text {
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  line-height: 2;
  color: rgba(250, 245, 234, 0.82);
  margin: 0;
}
/* ISSUE：課題の箇条書き（縦積み） */
.issue-list {
  list-style: none;
  /* PCは2列×2行。エリアを縦に伸ばさず4項目を収める */
  max-width: 880px;
  margin: clamp(20px, 2.6vw, 28px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.2vw, 14px) clamp(14px, 1.6vw, 20px);
  text-align: left;
}
.issue-list li {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 14px);
  padding: clamp(13px, 1.5vw, 17px) clamp(16px, 1.8vw, 20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  line-height: 1.7;
  color: rgba(250, 245, 234, 0.92);
}
/* ✕マークはゴールドの小さな円で受ける */
.issue-list li::before {
  content: "✕";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: rgba(237, 191, 86, 0.14);
  color: var(--gold);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 720px) {
  /* スマホは1列の縦積み */
  .issue-list { grid-template-columns: 1fr; max-width: 520px; }
}

/* ============================================================
   ISSUE → WHAT IS Kijika? をつなぐ矢印
   濃色のISSUEから白いWHAT ISへ、線が伸びて課題が解決へ向かう表現。
   線の色は ink → gold のグラデーションで「課題→解決」を示す。
============================================================ */
.issue-bridge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding-bottom: clamp(22px, 2.6vw, 32px);
}
/* 上の線：ISSUEの下端から伸ばすため margin なしで密着させる */
.issue-bridge-line {
  width: 2px;
  height: clamp(34px, 4.4vw, 54px);
  background: linear-gradient(to bottom, var(--ink), var(--brown));
}
.issue-bridge-text {
  margin: 0;
  padding: clamp(11px, 1.3vw, 15px) clamp(22px, 2.6vw, 34px);
  background: var(--gold);
  color: var(--ink);
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.5;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(138, 86, 32, 0.18);
}
/* 下の線＋矢じり */
.issue-bridge-tail {
  position: relative;
  width: 2px;
  height: clamp(30px, 3.8vw, 46px);
  background: linear-gradient(to bottom, var(--brown), var(--gold-deep));
}
.issue-bridge-tail::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(13px, 1.5vw, 17px);
  height: clamp(13px, 1.5vw, 17px);
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: translate(-50%, 30%) rotate(45deg);
}
@media (max-width: 720px) {
  .issue-bridge-text { padding: 10px 20px; }
}

/* ============================================================
   4ステップ：スマホのみ、中央に「順に進む」円形矢印を重ねる
============================================================ */
.sp-flow-cycle { display: none; }
@media (max-width: 720px) {
  .sp-flow { position: relative; }
  .sp-flow-cycle {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(50px, 14vw, 60px);
    height: clamp(50px, 14vw, 60px);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 5px 14px rgba(28, 21, 11, 0.22));
  }
  /* ベタはISSUEエリアと同じ濃色、矢印は白 */
  .sp-flow-cycle-bg { fill: var(--ink); }
  .sp-flow-cycle-arc {
    fill: none;
    stroke: var(--white);
    stroke-width: 5;
    stroke-linecap: round;
  }
  .sp-flow-cycle-head { fill: var(--white); }
}
@media (max-width: 720px) {
  /* 03と04の表示位置を入れ替え、01→02→03→04 を時計回りに並べる
     （HTMLの順序は 01→02→03→04 のままなので読み上げ順は変わらない）
     .sp-flow の1番目の子は矢印SVGのため、03は4番目・04は5番目 */
  .sp-flow-item:nth-child(5) { order: 1; }  /* 04 を左下へ */
  .sp-flow-item:nth-child(4) { order: 2; }  /* 03 を右下へ */
}
