@charset "utf-8";

/* ============================================================
   斉藤壮馬さんインタビュー LP
   CMS静的ページ用 / 全スタイルは #page-cms 配下にスコープ
   ============================================================ */

/* リセット（:where で詳細度0・クラス側の margin/padding を殺さない） */
:where(#page-cms, #page-cms *) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- ラッパー / スケール土台 ---------- */
#page-wrap-cms {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

#page-cms {
  width: 375px;
  height: 6889.484px;
  position: relative;
  transform-origin: top left;
  background: #31578c;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Chrome の CJK 約物アキ詰めを無効化（Figma のレンダリングと字送りを一致させる） */
  text-spacing-trim: space-all;
  text-autospace: no-autospace;
}

#page-cms img {
  display: block;
  max-width: none;
}

/* ============================================================
   目次のページ内アンカー：CMS固定ヘッダー分のオフセット
   ヘッダー高さを変えるときは --header-height-cms の2値だけ直す
   ============================================================ */
#page-cms {
  --header-height-cms: 58px;              /* スマホ：.h-header-sp の実測値 */
  --anchor-gap-cms: 16px;                 /* 見出しとヘッダーの余白 */
  --scroll-offset-cms: calc(var(--header-height-cms) + var(--anchor-gap-cms));
}
@media (min-width: 768px) {
  #page-cms { --header-height-cms: 76px; } /* PC：.h-header-pc の実測値 */
}

/* スムーススクロール自体は index.html の JS が担当する。
   html { scroll-behavior } はCMS環境で効かず即時ジャンプになったため使わない
   （グローバルセレクタ禁止の規約にも抵触する）。 */

/* オフセットは見出し側の scroll-margin-top だけで持たせる。
   html { scroll-padding-top } と併用すると両方が加算されて2倍ずれるため、
   LP スコープ側に一本化している（html にCSSが効かないCMSでも同じ位置に止まる）。 */
#page-cms h2[id],
#page-cms h3[id] {
  scroll-margin-top: var(--scroll-offset-cms);
}

/* ---------- 共通ユーティリティ ---------- */
.abs-cms { position: absolute; }

.hidden-cms { display: none; }

/* ---------- 見出し（白→金グラデーション・ライブテキスト） ---------- */
.sec-head-cms {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  background-image: linear-gradient(90deg, #ffffff 0%, #9e8d46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 本文 ---------- */
.body-txt-cms {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.8;
  color: #ffffff;
  word-break: break-word;
}

/* 質問ラベル（グレー帯・帯は文字自身の背景） */
.q-label-cms {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  background: #cacaca;
  color: #000000;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.7;
  white-space: nowrap;
}

/* 写真キャプション */
.cap-cms {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

/* ---------- ヒーロー ---------- */
.hero-cms { left: 0; top: 0; width: 375px; height: 281px; }
.hero-cms img { width: 375px; height: 281px; }

.hero-lead-cms {
  left: 20px;
  top: 297px;
  width: 335px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.8;
  color: #ffffff;
  text-align: center;
  word-break: break-word;
}

/* ---------- 装飾ライン（金の唐草） ---------- */
.ornament-cms { width: 335px; height: 12.868px; }
.ornament-cms img { width: 335px; height: 12.868px; }
.ornament-flip-cms img { transform: scaleY(-1); }

/* ---------- 囲みボックス（CONTENTS / INFORMATION） ---------- */
.frame-box-cms {
  background: #e4dfd9;
  border: 2px solid #9e8d46;
}

.box-title-en-cms {
  font-family: 'Uncial Antiqua', 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: #9e8d46;
  text-align: center;
}
.box-title-ja-cms {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
  color: #9e8d46;
  text-align: center;
}

/* ---------- 目次リスト ---------- */
.toc-item-cms {
  display: flex;
  align-items: center;
  gap: 8.237px;
  height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease;
}
/* 行全体がリンク。translateY は使わない（ボックス内の座標がズレるため） */
.toc-item-cms:hover { opacity: .7; }
.toc-num-cms {
  flex: 0 0 auto;
  width: 16.119px;
  height: 15.119px;
  background: #c11920;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: 11.326px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}
.toc-label-cms {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: 12.689px;
  line-height: 1.6;
  color: #000000;
  white-space: nowrap;
}
/* 破線（Figma: stroke 0.515px / dash 2.06px・黒） */
.toc-line-cms {
  left: 42px;
  width: 291px;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, .42) 2.06px,
    rgba(0, 0, 0, 0) 2.06px, rgba(0, 0, 0, 0) 4.12px
  );
}

/* ---------- プロフィール ---------- */
.prof-photo-cms {
  left: 20px;
  top: 6084.648px;
  width: 100px;
  height: 118px;
  background: #ffffff;
  overflow: hidden;
}
.prof-photo-cms img { width: 100px; height: 118px; }

.prof-name-cms {
  left: 128px;
  top: 6084.648px;
  width: 227px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
}
.prof-body-cms {
  left: 128px;
  top: 6104.648px;
  width: 227px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 1.8;
  color: #ffffff;
  word-break: break-word;
}

.prof-link-cms {
  left: 128px;
  top: 6192.648px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: max-content;
  height: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.prof-link-cms span {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 9.612px;
  line-height: 1;
  color: #ffffff;
  text-decoration: underline;
  text-underline-position: from-font;
  white-space: nowrap;
}
/* レタリング/アイコンSVGは width・height を必ず両方px明示（片側autoは崩壊） */
.prof-link-cms img.icon-cms {
  width: 8.709px;
  height: 8.463px;
  margin-bottom: 0.5px;
}
.prof-link-cms:hover { opacity: .8; transform: translateY(-2px); }

/* ---------- INFORMATION ---------- */
.info-lead-cms {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  color: #000000;
  text-align: center;
}
.info-title-cms {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  color: #c11920;
  text-align: center;
  word-break: break-word;
}
.info-body-cms {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 1.8;
  color: #000000;
  word-break: break-word;
}
.book-cms { width: 88.899px; height: 140px; }
.book-cms img { width: 88.899px; height: 140px; }

/* ---------- ボタン ---------- */
.btn-cms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 231.778px;
  height: 35.484px;
  padding: 3.919px 7.838px;
  background: #6c0102;
  border: 0.755px solid #6c0102;
  border-radius: 41.896px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 12.08px;
  line-height: 18.874px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn-cms:hover {
  opacity: .8;
  transform: translateY(-2px);
}
