/* ==========================================
   0. CSS変数（サイト全体で繰り返し使う値を一元管理）
   ※ 値を変更すると、参照している全箇所に一括で反映されます
========================================== */
:root {
  --color-text: #482715;          /* 本文テキスト色 */
  --color-highlight: #c80000;     /* 強調テキスト色（赤） */
  --color-title-text: #f3d97d;    /* 見出しテキスト色 */
  --color-title-stroke: #040000;  /* 見出しテキスト縁取り色 */
  --color-bg-outer: #8fe2ff;      /* ページ外側の背景色 */
  --spacing-content: 32px;        /* 本文の左パディング（テキスト・画像共通） */
  --spacing-block: 20px;          /* ブロック間の余白 */
  --bg-main: #f0eedf;             /* セクション背景色 */
}

/* ==========================================
   1. リセット & ページ全体
========================================== */
/* ブラウザのデフォルトスタイルをリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ページ全体（＝コンテンツの外側の左右の余白）の背景色と背景画像を設定 */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1;
  background-color: var(--color-bg-outer);
  background-image:
    url('../img/bg_right.png'),   /* 右端はみ出し画像 */
    url('../img/bg_ptrn.gif'),    /* 中央の繰り返しパターン */
    url('../img/bg.png');         /* 中央の背景画像 */
  background-position:
    right calc((50% - (34px / 2)) - 464px) top,
    center top,
    center top;
  background-repeat: no-repeat, repeat-y, no-repeat;
}

/* コンテンツ全体の中央カラム */
#wrapper {
  margin: 0 auto;
  width: 930px;
}

/* ==========================================
   2. 基本設定
========================================== */
/* メインエリアの背景色 */
.bg-main {
  background-color: var(--bg-main);
}

/* 画像の基本設定：ブロック要素化＋中央揃え＋はみ出し防止 */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* MV（メインビジュアル）全幅画像 — 横幅を親要素いっぱいに引き伸ばす */
section > img {
  width: 100%;
}

/* サブタイトル画像の下余白 */
.sub_title {
  margin-bottom: 10px;
}

/* ==========================================
   3. 期間テキスト（DATE セクション）
========================================== */
/* 全体のコンテナ */
.banner-container {
  padding: 0 0 var(--spacing-block) var(--spacing-content);
}

/* 1行目：日付ロゴ全体 */
.text-logo {
  font-family: "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", "UD デジタル 教科書体 N-B", sans-serif;
  display: inline-flex;
  align-items: flex-end; /* 大小の文字の下端を揃える */
  white-space: nowrap;
  /* scaleXによる長体（横圧縮）設定 */
  -webkit-transform: scaleX(0.85);
  transform: scaleX(0.85);
  transform-origin: left bottom;
}

/* 各パーツ（span）共通：3層テキストの中間層（紫の縁取り） */
.text-logo span {
  position: relative;
  display: block;
  font-weight: 700;
  line-height: 1.0;
  /* 中層：紫（#400e60）の縁取り */
  -webkit-text-stroke: 6px #400e60;
  text-stroke: 6px #400e60;
  -webkit-text-fill-color: #400e60;
  /* 角を丸くし、トゲトゲの飛び出しをカット */
  stroke-linejoin: round;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
}

/* 【最背面】白（#ffffff）の縁取り */
.text-logo span::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  -webkit-text-stroke: 12px #ffffff;
  text-stroke: 12px #ffffff;
  -webkit-text-fill-color: #ffffff;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
}

/* 【最前面】グラデーション文字 */
.text-logo span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(to bottom, #91dcff 0%, #c4cdff 66%, #cff8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0 transparent;
  text-stroke: 0 transparent;
}

/* 大きい数字 */
.text-logo .txt-lg {
  font-size: 45px;
}

/* 小さい文字（年・月・日など） */
.text-logo .txt-sm {
  font-size: 26px;
}

/* 下部の注釈テキスト */
.text-sub {
  font-size: 13px;
  color: #2c1d11;
  font-weight: bold;
  margin-top: 14px;
}

/* ==========================================
   4. セクションボックス（その1～4共通）
========================================== */
/* ボックス外枠 */
.section-box {
  width: 864px;
  margin: 0 auto var(--spacing-block) auto;
  position: relative; /* キャラクターを絶対配置するための基準点 */
  border: 4px solid #a5caf3;
  box-shadow: inset 0 0 0 2px #5d7fcf; /* 内側の青色枠 */
  border-radius: 8px;
  background-color: #f2f6fc;
  padding: 14px 24px;
  box-sizing: border-box;
}

/* ------------------------------------------
   4-1. 見出し（小タイトル）
------------------------------------------ */
.title {
  font-family: "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", "UD デジタル 教科書体 N-B", sans-serif;
  width: auto;
  height: auto;
  max-width: none;
  position: relative;
  margin-bottom: 20px;
}

/* 見出し背景画像（帯） */
.title-bg {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  margin-right: auto;
}

/* 見出しテキスト：3層構造（白縁 → 紫縁 → グラデーション） */
.title p {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.0;
  -webkit-text-stroke: 6px #400e60;
  text-stroke: 6px #400e60;
  -webkit-text-fill-color: #400e60;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
  position: absolute;
  top: 44%;
  left: 32px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.title p::before,
.title p::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
}

/* 最背面：白の縁取り */
.title p::before {
  z-index: -1;
  -webkit-text-stroke: 12px #ffffff;
  text-stroke: 12px #ffffff;
  -webkit-text-color: #ffffff;
}

/* 最前面：グラデーション文字 */
.title p::after {
  z-index: 1;
  background: linear-gradient(to bottom, #91dcff 0%, #c4cdff 66%, #cff8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0 transparent;
  text-stroke: 0 transparent;
}

/* ------------------------------------------
   4-2. 本文エリア
------------------------------------------ */
.campaign-body {
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.6;
  padding-right: 180px; /* 右側キャラクターとの重なりを防ぐ余白 */
}

/* リード文（本文冒頭の太字テキスト） */
.lead-text {
  font-weight: 700;
  margin: 0 0 10px 0;
}

/* ------------------------------------------
   4-3. 番号付きリスト（①②③…）
------------------------------------------ */
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  display: flex;
  align-items: baseline; /* 文字サイズが異なっても下端を揃える */
  margin-bottom: 6px;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

/* 番号部分（①など） */
.list-num {
  flex-shrink: 0;
  font-weight: 700;
  margin-right: 6px;
}

/* テキスト部分 */
.list-content {
  font-weight: 700;
}

/* 強調文字（赤・一回り大きいサイズ） */
.red-lg {
  color: #b80000;
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 2px;
}

/* ==========================================
   5. セクション01：武将のレベルやランクをあげよう！
========================================== */
/* ボックスの高さ固定 */
.box-sec01 {
  height: 380px;
}

/* キャラクター画像（右下配置） */
.chara-sd {
  position: absolute;
  right: 20px;
  bottom: -6px;
  max-width: 320px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   6. セクション02：武将に強力なスキルを付与しよう！
========================================== */
/* ボックスの高さ固定 */
.box-sec02 {
  height: 700px;
}

/* 見出しの右寄せレイアウト用ラッパー */
.title-right-wrap {
  display: flex;
  justify-content: flex-end;
}

/* 左側にキャラを配置するための本文余白設定 */
.body-pad-left {
  padding-right: 0;
  padding-left: 260px;
}

/* 注釈テキスト（※）のぶら下げインデント */
.note-text {
  display: block;
  margin-top: 4px;
  padding-left: 1em;
  text-indent: -1em;
}

/* 追加の注意事項ブロック（「さらに！」） */
.extra-notice {
  margin-top: 24px;
  font-weight: 700;
  line-height: 1.6;
}

/* キャラクター画像（左上） */
.chara-sd-left-top {
  position: absolute;
  left: -30px;
  top: 80px;
  max-width: 320px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* キャラクター画像（左下） */
.chara-sd-left-bottom {
  position: absolute;
  left: -20px;
  bottom: -10px;
  max-width: 340px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   7. セクション03：武将のスキルレベルをあげよう！
========================================== */
/* ボックスの高さ固定 */
.box-sec03 {
  height: 260px;
}

/* キャラクター画像（右下） */
.chara-sd-03 {
  position: absolute;
  right: 10px;
  bottom: -16px;
  max-width: 380px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   8. セクション04：スキル道場で武将を修行させよう！
========================================== */
/* ボックスの高さ固定 */
.box-sec04 {
  height: 420px;
}

/* キャラクター画像（左下） */
.chara-sd-left-only {
  position: absolute;
  left: 20px;
  bottom: 16px;
  max-width: 480px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   9. 注意事項
========================================== */
/* 注意事項ボックス */
.attention-box {
  width: 864px;
  margin: 0 auto var(--spacing-block) auto;
  background-color: #e0dece;
  border-style: solid;
  border-color: #afab90;
  border-width: 3px 1px 1px 1px; /* 上のみ3px、他は1px */
  border-radius: 8px;
  padding: 6px 24px 24px 24px;
  box-sizing: border-box;
}

/* ヘッダー（アイコン + テキスト） */
.attention-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

/* 警告アイコン */
.attention-icon {
  display: flex;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));
}

/* 「注意事項」テキスト */
.attention-text {
  position: relative;
  font-size: 20px;
  font-weight: 900;
  color: #cc0000;
  margin: 0;
  line-height: 1.0;
  white-space: nowrap;
  z-index: 1;
}

/* 「注意事項」テキストの白縁取り */
.attention-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 4px #ffffff;
  text-stroke: 4px #ffffff;
  -webkit-text-fill-color: #ffffff;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));
}

/* 注意事項本文 */
.attention-body {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-align: left;
}

/* ぶら下げインデント（※で始まる段落） */
.attention-body p {
  margin: 0 0 6px 0;
  padding-left: 1em;
  text-indent: -1em;
}

/* (例)の行：一回り小さく、インデント調整 */
.attention-body p.ex-text {
  font-size: 12.5px;
  padding-left: 2.4em;
  text-indent: -1.4em;
}

.attention-body p:last-child {
  margin-bottom: 0;
}
