/* ============================================================
   soukyu.com コンセプトワーク事例（ケーススタディ型）試作 v1
   .case-* は再利用可能（緋彩を第1例。別事例も同じ型で追加可）
   トーン：白×生成り／見出し明朝・本文ゴシック／朱アクセント
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Noto Serif JP', serif; background: var(--bg); color: var(--sumi); }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 142px; }

/* ---------- 製図グリッド（背景の下地・白い部分にだけ見える・v5共通） ---------- */

/* ---------- ヘッダー（共通） ---------- */

/* ---------- フッター（共通） ---------- */

.footer-sub a:hover { color: #fff; }

.case-wrap { max-width: 1080px; margin: 0 auto; padding: 56px clamp(24px, 5vw, 72px) 90px; }
.back-link { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; color: #8a8378; text-decoration: none; display: inline-block; margin-bottom: 30px; }
.back-link:hover { color: var(--shu); }

.case-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--shu);
  margin-bottom: 14px;
}
/* v5: 十字マーク→朱の角マーカーに統一（＋は病院連想のため撤回） */
.case-label::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--shu); margin-right: 10px; vertical-align: middle; }

/* コンセプト宣言バナー（STEP01→02の橋渡し） */
.concept-banner {
  background: var(--cream);
  border-radius: 14px;
  padding: 32px clamp(24px, 4vw, 36px);
  margin: 0 0 clamp(72px, 7vw, 92px) 102px;
}
.concept-banner .case-label { margin-bottom: 10px; }
.concept-banner p:not(.case-label) {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.05;
  color: var(--ink-body);
}
.concept-banner strong { color: var(--shu); font-weight: 700; }

/* 工程の目次チップ（STEP01〜05へのアンカー） */
.case-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px 22px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 36px;
  padding: 10px 16px;
  overflow-x: auto;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31,31,31,0.08);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31,31,31,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.case-toc::-webkit-scrollbar { display: none; }
.case-toc a {
  font-size: 13.5px; font-weight: 700; color: #7a756a; text-decoration: none;
  padding: 0 2px 3px;
  white-space: nowrap;
  background-image: linear-gradient(var(--sumi), var(--sumi));
  background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%;
  transition: color 0.2s, background-size 0.3s ease;
}
.case-toc a:hover { color: var(--sumi); background-size: 100% 1px; }
.case-toc a.is-current {
  color: var(--shu);
  background-image: linear-gradient(var(--shu), var(--shu));
  background-size: 100% 1px;
}
.case-title {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 10px;
}
.case-title .yomi { font-size: 0.5em; color: #8a8378; margin-left: 12px; font-weight: 500; }
.case-sub { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17.5px); line-height: 2.05; color: var(--ink-body); margin-bottom: 20px; max-width: 38em; }
.case-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  color: #8a8378;
  background: var(--cream);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 40px;
  display: inline-block;
}

/* メインビジュアル（看板モックアップ） */
.case-hero { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: var(--cream); }
.case-hero .ph { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.case-cap { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: #8a8378; text-align: center; margin-bottom: 56px; }

/* セクション：番号列と本文列の2列をページ全体で統一 */
.case-sec {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 24px;
  margin-bottom: clamp(72px, 7vw, 92px);
}
.case-sec-intro { margin-bottom: 32px; }
.case-sec > .step-head { display: contents; }
.case-sec > .step-head .step-no { grid-column: 1; grid-row: 1; }
.case-sec > .step-head .step-head-text { grid-column: 2; grid-row: 1; }
.case-sec > :not(.step-head) { grid-column: 2; }
/* v5: エディトリアル見出し（process.htmlの.step-noと同じ言語＝STEP英字＋大きな明朝数字を縦積み） */
.step-no { flex: 0 0 auto; text-align: center; }
.step-no .word {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--shu);
  margin-bottom: 4px;
}
.step-no .n {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 600;
  color: var(--sumi);
  line-height: 1;
}
.step-head-text { min-width: 0; padding-top: 20px; }
.case-sec h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.05em;
  margin: 0 0 26px;
}
.case-sec p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.05;
  color: var(--ink-body);
  margin-bottom: 16px;
}
.case-sec p .em { color: var(--shu); font-weight: 700; }

/* 緋彩の2文字の意味（v5: ページの顔になるディスプレイ表示） */
.kanji-grid { display: flex; gap: 20px; margin: 8px 0 18px; }
.kanji-card { flex: 1 1 0; background: var(--cream); border-radius: 14px; padding: 40px 30px; text-align: center; }
.kanji-card .k { font-size: clamp(80px, 10vw, 110px); font-weight: 700; line-height: 1; margin-bottom: 16px; }
.kanji-card .k.shu { color: var(--shu); }
.kanji-card .kd { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; line-height: 1.85; color: var(--ink-body); text-align: left; }

/* コンセプトシート（STEP04） */
.sheet-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--shu);
  margin: 28px 0 12px !important;
}
.keywords { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.keywords span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sumi);
  background: var(--cream);
  border: 1px solid #e5e4e1;
  border-radius: 999px;
  padding: 8px 16px;
}
/* 設計書風：図面のタイトル欄 */
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream);
  padding: 14px 20px;
  border-bottom: 1px solid #e5e4e1;
  font-family: 'Noto Sans JP', sans-serif;
}
.sheet-head .sh-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--shu); }
.sheet-head .sh-label::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--shu); margin-right: 8px; vertical-align: middle; }
.sheet-head .sh-name { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--sumi); }
.sheet { border: 1px solid #e5e4e1; border-radius: 14px; overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid #edece9; }
.sheet-row:last-child { border-bottom: 0; }
.sheet-key {
  background: var(--cream);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sumi);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}
.sheet-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-body);
  padding: 22px 24px;
}
.sheet-val strong { color: var(--sumi); font-weight: 700; }
.sheet-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13.5px !important;
  color: #8a8378 !important;
  margin-top: 16px !important;
}
@media (max-width: 700px) {
  .sheet-row { grid-template-columns: 84px 1fr; }
  .sheet-key { padding: 14px 12px; font-size: 13px; }
  .sheet-val { padding: 14px 14px; }
}

/* 世界観の項目 */
/* v5: シート（STEP04）と同じ罫線の言語に統一したスペック表 */
.world-list {
  display: grid; grid-template-columns: 132px 1fr;
  margin-top: 12px;
  border: 1px solid #e5e4e1; border-radius: 14px; overflow: hidden;
}
.world-list dt {
  font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--sumi);
  background: var(--cream);
  padding: 20px; display: flex; align-items: center;
  border-bottom: 1px solid #edece9;
}
.world-list dd {
  font-family: 'Noto Sans JP', sans-serif; font-size: clamp(15px, 1.3vw, 16px); line-height: 1.9; color: var(--ink-body);
  margin: 0; padding: 20px 24px;
  border-bottom: 1px solid #edece9;
}
.world-list dt:last-of-type, .world-list dd:last-of-type { border-bottom: 0; }

/* 2案 */
.proposals { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px; }
.proposal-media { position: relative; margin-bottom: 18px; }
.proposal .ph,
.proposal img { width: 100%; border-radius: 10px; display: block; }
.proposal .ph { background: var(--cream); border: 1px solid #eae9e6; border-radius: 10px; display: flex; align-items: center; justify-content: center; height: auto; }
.type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-block;
  color: #fff;
  background: var(--shu);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}
.proposal p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17px); line-height: 2.05; color: var(--ink-body); max-width: 40em; }
.proposal-criteria {
  max-width: 52em;
  margin-top: clamp(28px, 3.5vw, 40px);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.1;
  color: var(--ink-body);
}
.proposal-criteria a {
  color: var(--shu);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.proposal-criteria a:hover { color: var(--sumi); }

/* 画像プレースホルダー */
.ph {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  color: #b6ae9b;
  text-align: center;
  line-height: 1.8;
  border-radius: 10px;
}

/* 実績への橋渡し段落 */
.case-sec > .case-bridge {
  /* 本文列ではなく、STEP番号列を含むコンテンツ全幅で見せる */
  grid-column: 1 / -1;
  margin-top: clamp(44px, 5vw, 56px);
  padding-top: clamp(36px, 4vw, 44px);
  border-top: 1px solid #eae9e6;
}
.case-bridge p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(15px, 1.3vw, 16.5px); line-height: 2; color: var(--ink-body); }
.case-bridge p .em { color: var(--shu); font-weight: 700; }

/* 橋渡しカード3枚（sample.htmlの.next-cardを流用） */
.next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.next-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 26px; background: #fff; border: 1px solid var(--link-card-border); border-radius: 14px;
  text-decoration: none; color: var(--sumi);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.next-card:hover { transform: translateY(-4px); border-color: var(--link-card-border-hover); box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08); }
.next-card .eyebrow { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--shu); }
.next-card strong { font-size: 17px; line-height: 1.5; letter-spacing: 0.02em; }
.next-card .sub { font-family: 'Noto Sans JP', sans-serif; font-size: 13px; line-height: 1.8; color: var(--ink-body); }
.next-card .arrow { margin-top: 6px; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 700; color: var(--sumi); }

/* CTA */
.case-cta { background: var(--cream); border-radius: 14px; padding: 48px 24px; text-align: center; margin-top: 24px; }
.case-cta h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; margin-bottom: 14px; border: 0; padding: 0; }
.case-cta p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17px); line-height: 2.05; color: var(--ink-body); margin-bottom: 26px; }

.case-cta .cta-note { width: 100%; font-family: 'Noto Sans JP', sans-serif; font-size: 12.5px; color: #777; margin-top: 4px; }

@media (max-width: 700px) {
  .case-wrap { padding: 32px 20px 64px; }
  section[id] { scroll-margin-top: 126px; }
  .case-toc {
    top: var(--header-h);
    width: 100%;
    gap: 16px;
    margin-bottom: 30px;
    padding: 9px 12px;
    border-radius: 12px;
  }
  .case-toc a { font-size: 12px; }
  .case-sec { display: block; margin-bottom: 68px; }
  .case-sec-intro { margin-bottom: 28px; }
  .case-sec > .step-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
  }
  .step-head-text { padding-top: 16px; }
  .case-sec h2 { font-size: clamp(21px, 6.4vw, 26px); line-height: 1.55; margin-bottom: 0; }
  .step-no .n { font-size: 36px; }
  .step-no .word { font-size: 9px; }
  .concept-banner { margin: 0 0 68px; padding: 26px 22px; }
  .kanji-grid { flex-direction: column; }
  .proposals { grid-template-columns: 1fr; }
  .world-list { grid-template-columns: 1fr; }
  .world-list dt { border-bottom: 0; padding: 10px 14px; line-height: 1.5; }
  .world-list dd { padding: 0 14px 16px; }
  .next-cards { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
