/* ---- 共通CSSからの差分（現状維持のための上書き） ---- */
.footer-sub .sns { flex-wrap: nowrap; }

/* ============================================================
   soukyu.com「デザイン書道とは」v2（誌面エディトリアル）
   現行/designsho/の内容をベースにした解説ページ
   トーン：白×紙グレー／見出し明朝・本文ゴシック#4a4a46／朱アクセント
   v2変更：ブログ記事型 → 誌面型（連番エントリ・大リード・
   サイト共通ヘッダー/フッター）。
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Noto Serif JP', serif; background: var(--bg); color: var(--sumi); overflow-x: hidden; }
img { max-width: 100%; display: block; }
section[id], div[id] { scroll-margin-top: 78px; }

/* ---------- 製図グリッド（v5共通） ---------- */

/* ---------- ヘッダー（index.html と共通） ---------- */

/* ---------- 本文ラッパ ---------- */
.ds-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px) 96px; }

/* ---------- ヒーロー（誌面マストヘッド） ---------- */
.ds-hero { padding: clamp(44px, 7vw, 88px) 0 clamp(30px, 4vw, 52px); }
.ds-kicker { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--shu); margin-bottom: 20px; }
/* v5: 他ページの見出しラベルと同じ朱の角マーカー */
.ds-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--shu);
  margin-right: 10px;
  vertical-align: middle;
}
.ds-hero h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 700; letter-spacing: 0.05em; line-height: 1.35; margin-bottom: 22px; }
.ds-lead { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17.5px); font-weight: 400; line-height: 2.1; color: var(--ink-body); }
.ds-lead strong { color: var(--sumi); font-weight: 700; }

/* ---------- 本文の連番エントリ（脱ブログ） ---------- */
.ds-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-top: 1px solid #ece7da;
}
.ds-body { min-width: 0; }
.ds-no { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1; color: var(--sumi); letter-spacing: 0.02em; }
.ds-no .en { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--shu); margin-top: 10px; }
/* v5: 左に大きな数字(.ds-no)があり区切りの役目を果たすため、見出し自体のバーは付けない */
.ds-entry h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: 0.05em; line-height: 1.5; margin-bottom: 18px; }
.ds-entry p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17.5px); line-height: 2.1; color: var(--ink-body); margin-bottom: 16px; }
.ds-entry p .em { color: var(--shu); font-weight: 700; }
.ds-entry p .em-link {
  color: var(--shu);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.ds-entry p .em-link:hover { color: var(--sumi); }

/* 書き分けサンプル枠 */
.style-samples {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 18px;
  max-width: 760px;
  margin: 30px auto 38px;
}
.style-sample-item {
  grid-column: span 2;
  min-width: 0;
  margin: 0;
}
.style-sample-item:nth-child(4) { grid-column: 2 / span 2; }
.style-sample-item:nth-child(5) { grid-column: 4 / span 2; }
.style-sample {
  min-height: 138px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfaf6;
  border: 1px dashed #d8d1c2;
  border-radius: 10px;
  overflow: hidden;
}
img.style-sample {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eeedea;
  border-radius: 10px;
}
.style-caption {
  margin-top: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  line-height: 1.6;
}
.style-caption strong,
.style-caption span {
  display: block;
}
.style-caption strong {
  font-size: 16px;
  color: var(--sumi);
}
.style-caption span {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-body);
}

.ds-inline-btn {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sumi);
  text-decoration: none;
  border: 1.5px solid #d8d2c4;
  border-radius: 999px;
  padding: 11px 26px;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ds-inline-btn:hover { background: var(--sumi); color: #fff; border-color: var(--sumi); }

.designsho-case-guide { margin-top: 24px; }

/* 動画埋め込み */
.ds-video { max-width: 860px; margin: 0 auto clamp(24px, 4vw, 44px); }
.ds-video .frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: var(--cream); }
.ds-video .frame iframe, .ds-video .ph-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ds-video .ph-video { display: flex; align-items: center; justify-content: center; text-align: center; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; color: #b6ae9b; border: 1px dashed #d9d2c0; line-height: 1.8; }
.ds-video .v-cap { font-family: 'Noto Sans JP', sans-serif; font-size: 12.5px; color: #8a8378; text-align: center; margin-top: 12px; }

/* 箇条書き */
.ds-list { list-style: none; margin: 8px 0 6px; }
.ds-list li { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17px); line-height: 2; color: var(--ink-body); padding-left: 1.4em; position: relative; }
/* v5: 他ページのリスト項目（.trust/.plan-feats等）と同じ線マーカーに統一 */
.ds-list li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 10px; height: 2px; background: var(--shu); }
.ds-subhead { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--sumi); margin: 18px 0 6px; }

/* 書道 vs デザイン書道 比較表 */
.cmp-scroll { width: 100%; max-width: 100%; margin: 12px 0 26px; overflow-x: auto; overflow-y: hidden; border: 1px solid #ece7da; border-radius: 12px; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.cmp-scroll:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-family: 'Noto Sans JP', sans-serif; font-size: 14px; background: #fff; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid #efeadd; text-align: left; vertical-align: top; line-height: 1.7; }
.cmp thead th { background: var(--cream); font-weight: 700; font-size: 13px; }
.cmp th[scope="row"] { font-weight: 700; color: var(--sumi); width: 24%; background: #fbfaf6; }
.cmp td.ds { color: var(--sumi); font-weight: 500; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* 位置付けスケール */
.scale-scroll { width: 100%; max-width: 100%; margin: 28px 0 26px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.scale-scroll:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.scale { padding: 24px clamp(20px, 3vw, 28px); background: var(--cream); border-radius: 14px; }
.scale-bar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #d8d6d2, #cf3a2b); margin-bottom: 10px; }
.scale-ends { display: flex; justify-content: space-between; font-family: 'Noto Sans JP', sans-serif; font-size: 12.5px; color: #8a8378; }
.scale-items { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; }
.scale-items span { background: #fff; border-radius: 999px; padding: 6px 14px; color: var(--ink-body); }
.scale-items span.now { background: var(--shu); color: #fff; font-weight: 700; }

/* 得られたもの */
.gains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.gains div { background: #fff; border: 1px solid #ece7da; border-radius: 10px; padding: 16px 18px; font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; line-height: 1.7; color: var(--ink-body); }
.gains div strong { display: block; color: var(--sumi); font-size: 15px; margin-bottom: 5px; }

/* Q&A */
.qa { margin-top: 8px; }
.qa dt { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 700; color: var(--sumi); margin-top: 18px; }
.qa dt::before { content: "Q. "; color: var(--shu); }
.qa dd { font-family: 'Noto Sans JP', sans-serif; font-size: 14px; line-height: 1.95; color: var(--ink-body); margin: 6px 0 0; }

/* ---------- CTA ---------- */
.ds-cta { background: var(--cream); border-radius: 18px; padding: clamp(46px, 6vw, 72px) 24px; text-align: center; max-width: 880px; margin: clamp(40px, 5vw, 64px) auto 0; }
.ds-cta h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; margin-bottom: 16px; }
.ds-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: 28px; }

/* ---------- フッター（index.html と共通） ---------- */

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

/* タブレット〜スマホ */
@media (max-width: 820px) {
  .footer-inner { flex-direction: column; gap: 22px; }
}

@media (max-width: 700px) {
  .ds-wrap { padding: 0 20px 64px; }
  .ds-entry { grid-template-columns: 1fr; gap: 8px; }
  .ds-no { font-size: 30px; }
  .ds-no .en { display: inline; margin-top: 0; margin-left: 10px; }
  .style-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    margin: 24px auto 34px;
  }
  .style-sample-item,
  .style-sample-item:nth-child(4) { grid-column: auto; }
  .style-sample-item:nth-child(5) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .style-caption strong { font-size: 15px; }
  .style-caption span { font-size: 13px; }
  .scale { min-width: 620px; }
  .scale-items { flex-wrap: nowrap; }
  .btn { width: 100%; text-align: center; }
}
