@charset "utf-8";
/* =========================================================
   ところざわサクラタウン×リアル謎解きゲーム 特設サイト
   Figma: ZbaA5inejug7ZNwWVVJCJQ / page 0:1「特設サイト_CP用」
   1920幅のPCレイアウト。中央750pxが本文列、左右は本棚の装飾。
   ========================================================= */

:root {
  --crimson:  #AE353E;   /* 見出し帯・ボタン・強調 */
  --cream:    #FFF6DE;   /* ストーリー・FAQ の地色 */
  --pale:     #FFF2B3;   /* 臙脂地の上のラベル帯 */
  --green:    #00A181;   /* 初心者向けパネル */
  --ink:      #5B5B5B;   /* 本文 */
  --gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --col: 750px;          /* 本文列の幅 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--gothic);
  color: var(--ink);
  background: #E29A62;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  min-width: var(--col);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

/* =========================================================
   ヘッダー
   ========================================================= */
.gnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
/* ナビで飛んだとき、固定ヘッダー(80px)に見出しが隠れないよう
   その分だけ手前で止める。セクション上部の余白も少し見せる。 */
#story, #howto, #info, #about, #faq, #schedule, #collab {
  scroll-margin-top: 96px;
}
.gnav__inner {
  position: relative; height: 100%;
  max-width: 1920px; margin: 0 auto;
  display: flex; align-items: center;
}
.gnav__list { display: flex; align-items: center; gap: 46px; margin-left: 310px; }
.gnav__list a { display: block; text-align: center; color: var(--crimson); font-weight: 700; }
.gnav__en { display: block; font-family: var(--mincho); font-size: 22px; letter-spacing: .04em; line-height: 1.2; }
.gnav__ja { display: block; font-size: 13px; letter-spacing: .04em; color: var(--crimson); }
.gnav__ja--solo { font-family: var(--mincho); font-size: 20px; color: var(--crimson); line-height: 1.25; }
/* 通常時が臙脂になったので、hoverは少し濃くして変化を出す */
.gnav__list a:hover { color: #8C232B; }
.gnav__list a:hover .gnav__ja,
.gnav__list a:hover .gnav__ja--solo { color: #8C232B; }

.gnav__sns { position: absolute; right: 290px; display: flex; gap: 20px; }
.gnav__sns img { width: 60px; }

.gnav__burger {
  position: absolute; right: 80px; top: 0;
  width: 80px; height: 80px; background: var(--crimson);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px;
}
.gnav__burger span { display: block; width: 38px; height: 4px; background: #fff; border-radius: 2px; }

/* =========================================================
   本体（背景＝本棚）
   ========================================================= */
.stage {
  position: relative;
  padding-top: 80px;
  /* 背景＝Figmaの本棚パターン（585×585でシームレスに繰り返す）＋ 羽根のレイヤー */
  background:
    url("../img/feathers.png") repeat-y center top / 1920px auto,
    /* 中央基準で並べる（画面幅やズームが変わっても本棚の線と本文列の位置関係が変わらない）。
       1920幅のとき左端0から並べたのと同じ見え方になるオフセット */
    url("../img/bg_shelf.jpg") repeat calc(50% - 82.5px) top / 585px 585px,
    #F3C79B;
  /* 羽根はFigmaどおり「スクリーン」で重ねる（画像の黒い影が背景に溶けて消え、羽が白く見える） */
  background-blend-mode: screen, normal;
}
.col {
  position: relative; z-index: 2;
  width: var(--col); margin: 0 auto;
  background: #fff;
}

/* 左右の装飾（1920幅を再現できる画面だけ） */
.deco { display: none; }
@media screen and (min-width: 1500px) {
  .deco { display: block; position: absolute; top: 80px; left: 50%; width: 1920px; margin-left: -960px; height: 1100px; pointer-events: none; z-index: 1; }
  /* 1列ごとの白帯（位置は maincopy.png 254×599 の各列の実測値） */
  .deco__copy {
    position: absolute; left: 285px; top: 133px; width: 254px;
    --w: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92));
    background: var(--w), var(--w), var(--w), var(--w), var(--w);
    background-repeat: no-repeat;
    background-position: 3px 0, 56px 2px, 108px 0, 160px 1px, 211px 3px;
    background-size: 38px 596px, 37px 298px, 37px 443px, 37px 362px, 39px 422px;
  }
  .deco__peju { position: absolute; left: 1412px; top: 53px; width: 463px; }
}

/* 本のイラスト（各セクションの端に置く） */
.bookdeco { position: absolute; z-index: 3; pointer-events: none; display: none; }
@media screen and (min-width: 1500px) { .bookdeco { display: block; } }

/* =========================================================
   セクション共通
   ========================================================= */
.sec { position: relative; padding: 48px 0 60px; }
.sec__head { text-align: center; margin-bottom: 44px; }
.sec__head img { width: 279px; margin: 0 auto; }
.sec__head--about img { width: 373px; }

/* =========================================================
   メインビジュアル
   ========================================================= */
.mv img { width: var(--col); }

/* メインコピーの赤帯（Figma 特設サイト_SP用 270:1347：750×288）。
   PCで左右にメインコピー・ページュくんを出す幅（1500px以上）では出さない */
.mcopy { position: relative; height: 288px; background: var(--crimson); overflow: hidden; }
.mcopy__text { position: absolute; left: 53px; top: 31px; width: 465px; }
.mcopy__peju { position: absolute; left: 412px; top: 0; width: 322px; }
@media screen and (min-width: 1500px) { .mcopy { display: none; } }

/* =========================================================
   開催期間 / 開催情報 共通のスペック表
   ========================================================= */
.kikan__date {
  font-family: var(--mincho); font-weight: 700;
  font-size: 46px; color: #5B5B5B; text-align: center;
  letter-spacing: .02em; margin-bottom: 32px;
}
/* 「11」「5」だけ大きく見せる */
.kikan__date em { font-style: normal; font-size: 78px; }

/* 開催期間パネルの右上に本を差し込む */
.kikan__book {
  position: absolute;
  top: 18px; right: 24px;
  width: 128px;
  z-index: 2;
  pointer-events: none;
}
/* PCでは外側の大きい本（.bookdeco）だけ残す */
@media screen and (min-width: 1500px) { .kikan__book { display: none; } }
.kikan__date--onred { color: #fff; }

.spec { width: 666px; margin: 0 auto; }
/* 開催期間・開催情報の表だけフォントを変える。近い順に並べたフォールバック */
.sec--kikan .spec,
.sec--info .spec {
  font-family: "Zen Kaku Gothic New", "IBM Plex Sans JP", "M PLUS 1p", "BIZ UDPGothic", "Zen Maru Gothic", "Shippori Mincho B1", sans-serif;
}
.spec dt {
  /* 開催期間・遊び方: 臙脂の帯に白文字 */
  background: var(--crimson); color: #FFFFFF;
  font-size: 24px; font-weight: 700; text-align: center;
  padding: 6px 10px; letter-spacing: .04em;
}
.spec dd { text-align: center; padding: 14px 0 26px; }
.spec dd strong { display: block; font-size: 34px; font-weight: 500; color: #5B5B5B; letter-spacing: .02em; }
.spec dd .strong--2line { font-size: 30px; line-height: 1.5; }
.spec dd .note { display: block; font-size: 20px; color: var(--ink); line-height: 1.5; margin-top: 6px; }
.spec dd .note--big { font-size: 26px; color: #5B5B5B; }

/* 臙脂地（開催情報）の中では白抜き */
/* 開催情報は臙脂地なので、ラベルは淡黄の帯にグレー文字（帯が背景に溶けないように） */
.spec--onred dt { background: var(--pale); color: #5B5B5B; }
.spec--onred dd strong,
.spec--onred dd .note,
.spec--onred dd .note--big { color: #fff; }

/* 星（難易度・ボリューム） */
.stars { width: 248px; margin: 0 auto; }
.stars__label { display: block; font-size: 24px; color: #5B5B5B; margin-top: 6px; }

/* =========================================================
   開催期間
   ========================================================= */
.sec--kikan { background: #fff; }

/* =========================================================
   ストーリー
   ========================================================= */
.sec--story { background: var(--cream); position: relative; }
/* 見出しの左上に本を差し込む */
.story__book {
  position: absolute;
  top: 46px; left: 40px;
  width: 128px;
  z-index: 2;
  pointer-events: none;
}
/* PCでは外側の大きい本（.bookdeco）だけ残す */
@media screen and (min-width: 1500px) { .story__book { display: none; } }
.story__text {
  font-size: 24px; line-height: 2.1; color: var(--ink);
  text-align: center; white-space: pre-wrap;
}

/* =========================================================
   遊び方
   ========================================================= */
.sec--howto { background: #fff; position: relative; }
/* 見出しの右上に本を差し込む */
.howto__book {
  position: absolute;
  top: 40px; right: 34px;
  width: 132px;
  z-index: 2;
  pointer-events: none;
}
/* PCでは大きくして列の右端からはみ出させる（Figma準拠） */
@media screen and (min-width: 1500px) {
  .howto__book { top: 110px; right: -100px; width: 220px; z-index: 3; }
}

/* 初心者向け案内 */
.beginner {
  /* 角丸なし・外枠は緑のベタ塗り（中の白カードが浮いて見える作り） */
  width: 666px; margin: 72px auto 0;
  background: var(--green);
  border: 0; border-radius: 0;
  padding: 0 14px 14px; position: relative;
}
.beginner__title {
  background: var(--green); color: #fff;
  font-size: 30px; font-weight: 700; text-align: center;
  /* 上にはみ出した丸のぶん、上側に余白を取る */
  margin: 0 -14px 14px; padding: 56px 10px 16px;
  border-radius: 0;
}
.beginner__item {
  /* 各カードは白地・角丸なし。枠線も不要（緑地との境で分かれる）。
     3枚ともアイコン・本文の左端が揃うように、左寄せで固定幅にする。 */
  display: flex; gap: 26px; align-items: center;
  background: #fff;
  border: 0; border-radius: 0;
  padding: 18px 18px 18px 46px; margin-bottom: 12px;
}
.beginner__item:last-child { margin-bottom: 0; }
.beginner__icon {
  /* 丸は元の大きさに戻し、中のイラスト（電球・！・虫めがね）を大きく見せる。
     padding を小さくするほど、中のイラストが丸いっぱいに広がる。 */
  flex: 0 0 116px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--green); padding: 8px;
}
/* しおり（初心者マーク）は緑の丸に入れて、パネルの上端から半分はみ出させる。
   丸が緑なので、白い背景の上に出ても形が見える。 */
.beginner__pin {
  position: absolute;
  top: -68px; left: 50%; margin-left: -48px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
}
.beginner__pin img { width: 44px; height: 67px; display: block; }
/* パネルの左上にかかる本の装飾 */
.beginner__book {
  /* 本文列(750px)の外へ出すと、幅が狭いとき本棚の上に乗って崩れる。
     列の内側に収めて、どの幅でも同じ見え方にする。 */
  position: absolute;
  top: -48px; left: -18px;
  width: 140px;
  z-index: 3;
  pointer-events: none;
}
/* PCでは大きくして左へ50pxずらす（列の外にはみ出してよい幅のときだけ） */
@media screen and (min-width: 1500px) {
  .beginner__book { top: 50px; left: -98px; width: 200px; }
}
/* 見出しは全体を緑に（一部だけ緑にしていたのをやめる） */
.beginner__lead {
  font-size: 24px; font-weight: 700; color: var(--green); line-height: 1.3;
  white-space: nowrap;   /* 「手がかりが見られます!!」が2行に割れないように */
}
/* 強調部分は黄色のマーカーを敷く（下半分だけ塗って蛍光ペン風に） */
.beginner__lead em {
  font-style: normal; color: var(--green);
  background: linear-gradient(transparent 55%, #FFF352 55%);
  padding: 0 2px;
}
.beginner__body { font-size: 20px; line-height: 1.55; margin-top: 6px; }

/* ステップ */
.steps { width: 666px; margin: 44px auto 0; }
.step {
  /* 奇数番（チケット予約・探索…）= 明るい茶 / 偶数番（キット購入…）= 臙脂 */
  position: relative; display: flex; align-items: stretch;
  background: #AD5944; color: #fff;
  margin-bottom: 30px; min-height: 230px;
}
.step:nth-child(even) { background: var(--crimson); }
.step__img { width: 306px; height: 230px; object-fit: cover; flex: 0 0 306px; }
.step--right { flex-direction: row-reverse; }
.step__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; text-align: center; }
.step__title { font-family: var(--mincho); font-size: 34px; font-weight: 700; margin-bottom: 10px; letter-spacing: .06em; }
.step__text { font-size: 21px; line-height: 1.6; }
.step__note { font-size: 16px; margin-top: 8px; }

/* =========================================================
   開催情報
   ========================================================= */
.sec--info { background: var(--crimson); position: relative; }
/* 見出しの右上に本を差し込む */
.info__book {
  position: absolute;
  top: 24px; right: 30px;
  width: 136px;
  z-index: 2;
  pointer-events: none;
}
/* PCでは、Figma（特設サイト_CP用 56:279）どおり
   大きくして列の右端からはみ出させる（列の左端から604px・セクション上端から45px・幅282px） */
@media screen and (min-width: 1500px) {
  .info__book { top: 45px; right: -136px; width: 282px; z-index: 3; }
}
/* 見出し画像の下側は透明の余白なので、日付を少し食い込ませて間を詰める（Figma SP用 267:954） */
.sec--info .sec__head { margin-bottom: -36px; }

/* 白いピル型ボタン */
.pill {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 666px; height: 80px; margin: 24px auto;
  background: #fff; border-radius: 999px;
  color: var(--crimson); font-family: var(--mincho); font-size: 30px; font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 0 20px rgba(255, 226, 130, .75);
}
/* ボタンごとの色。文字と矢印の丸を同じ色で揃える */
.pill--ticket   { color: #229FC3; }
.pill--ticket   .pill__arw { background-image: url("../img/arrow_blue.png"); }
.pill--official { color: #FC5592; }
.pill--official .pill__arw { background-image: url("../img/arrow_pink.png"); }

/* 矢印は支給画像（丸＋矢印の一体型 40×40） */
.pill__arw {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: url("../img/arrow_white.png") center / contain no-repeat;
}
/* 練習問題ボタンは文字を中央、矢印をボタンの右端に寄せる */
.sec--about .pill .pill__arw { position: absolute; right: 34px; top: 50%; margin-top: -20px; }

/* 白いカード（チケ得／コラボ） */
.card {
  width: 666px; margin: 30px auto; background: #fff;
  border: 3px solid #D9C89B; padding: 34px 30px 38px; text-align: center;
}
.card--ticket { border-color: #FC5592; }
.card--collab { border-color: #3C4C8C; }
.card__title { font-size: 34px; font-weight: 700; color: var(--crimson); margin-bottom: 22px; }
.card__title--collab { color: #3C4C8C; line-height: 1.4; }
/* チケ得サービス（すぐ下の公式HPボタンと同じ色で揃える） */
.card__title--ticket { color: #FC5592; }
.card__body { font-size: 22px; line-height: 1.8; white-space: pre-wrap; }
.card__body--left { text-align: left; }
.card--collab .card__body { font-size: 24px; }
/* コラボメニュー欄（帯・メニュー名・注意書き）はさらに+2px */
.card--collab .card__ribbon { font-size: 24px; }
.card--collab .card__body:not(.card__body--left) { font-size: 26px; }
.card--collab .card__note { font-size: 21px; }
.card__shop { font-size: 24px; font-weight: 700; color: #3C4C8C; margin: 22px 0 8px; }
.card__photo { width: 573px; margin: 26px auto; }
.card__ribbon {
  background: #3C4C8C; color: #fff; font-size: 22px; font-weight: 700;
  padding: 8px; margin-bottom: 18px;
}
.card__note { font-size: 19px; line-height: 1.7; margin-top: 18px; white-space: pre-wrap; }

/* =========================================================
   リアル謎解きゲームとは
   ========================================================= */
.sec--about { background: #fff; }
.about__banner { display: block; width: 663px; margin: 0 auto 26px; transition: transform .15s ease; }
.about__banner:hover { transform: scale(1.02); }
.about__text { width: 666px; margin: 0 auto; font-size: 22px; line-height: 1.85; }
/* 黄色の縁＋外側にぼかし */
.sec--about .pill { position: relative; background: var(--crimson); color: #fff; box-shadow: 0 0 0 3px #FFEB8C, 0 0 18px 4px rgba(255, 226, 130, .85); }

/* =========================================================
   よくあるご質問
   ========================================================= */
.sec--faq { background: var(--cream); position: relative; }
/* 見出しの左上に本を差し込む */
.faq__book {
  position: absolute;
  top: 26px; left: 34px;
  width: 132px;
  z-index: 2;
  pointer-events: none;
}
/* PCでは大きくして列の左上からはみ出させる */
@media screen and (min-width: 1500px) {
  .faq__book { top: -94px; left: -125px; width: 230px; z-index: 3; }
}
.faq { width: 666px; margin: 0 auto; }
.faq__item {
  background: #fff; border-radius: 5px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .1);
  margin-bottom: 40px; overflow: hidden;
}
.faq__q {
  /* 質問は1行に収める（最長28文字が入る大きさ・左右の余白も詰める） */
  display: block; width: 100%; position: relative;
  font-size: 23px; font-weight: 700; color: var(--crimson);
  text-align: center; line-height: 1.35;
  padding: 20px 52px;
  white-space: nowrap;
}
.faq__q::after {
  content: ""; position: absolute; right: 26px; top: 50%;
  width: 20px; height: 11px; margin-top: -5px;
  background: var(--crimson);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transition: transform .2s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(180deg); }
.faq__a { display: none; border-top: 1px solid #E0D8C4; padding: 16px 24px 24px; }
.faq__item.is-open .faq__a { display: block; }
.faq__a p { font-size: 24px; line-height: 36px; text-align: center; }

/* =========================================================
   注意事項
   ========================================================= */
.sec--chui { background: #fff; padding-bottom: 80px; }
.chui {
  width: 670px; margin: 0 auto;
  font-size: 24px; line-height: 35px; letter-spacing: -.02em;
  white-space: pre-wrap;
}

/* =========================================================
   フッター
   ========================================================= */
.foot { background: #fff; padding: 26px 0 0; }
/* ロゴ3段：上段=主催・共催（左）＋SNS（右）、下段=協力・後援・企画制作を横並び */
.foot__inner { width: 690px; margin: 0 auto; }
.foot__top { display: flex; justify-content: space-between; align-items: flex-start; }
.foot__credits div,
.foot__row div { display: flex; align-items: center; gap: 12px; }
.foot__credits div { margin-bottom: 14px; }
.foot__credits dt,
.foot__row dt { font-size: 16px; color: #2B2B2B; white-space: nowrap; }
.foot__credits dt { flex: 0 0 34px; }
.foot__logo-kmh      { width: 310px; }
.foot__logo-kadokawa { width: 200px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; }
.foot__row div:first-child dt { flex: 0 0 34px; }
.foot__logo-museum { width: 200px; }
.foot__logo-toko   { width: 140px; }
.foot__logo        { width: 90px; }
.foot__sns { display: flex; gap: 16px; }
.foot__sns img { width: 48px; }
.foot__copy { background: #EEEEEE; text-align: center; font-size: 12px; color: #555; padding: 12px 0; }
.foot__copy a:hover, .foot a:hover img { opacity: .75; }

/* スマホ用デザイン（Figma 特設サイト_SP用 267:18：750×290＋コピーライト帯30）。
   各ロゴを Figma の座標どおりに置く（数値はフッター左上からの位置） */
@media screen and (max-width: 1499px) {
  .foot { padding: 0; }
  .foot__inner { position: relative; width: 750px; height: 290px; }
  .foot__top, .foot__credits, .foot__row { display: contents; }
  .foot__item { position: absolute; margin: 0; }
  .foot__credits .foot__item { margin-bottom: 0; }
  .foot__credits dt, .foot__row dt { flex: none; font-size: 16px; }
  .foot__item--kmh      { left: 42px; top: 23px;  gap: 18px; }
  .foot__item--kadokawa { left: 41px; top: 83px;  gap: 19px; }
  .foot__item--museum   { left: 404px; top: 89px; gap: 19px; }
  .foot__item--toko     { left: 42px; top: 144px; gap: 4px; }
  .foot__item--nazo     { left: 41px; top: 224px; gap: 7px; }
  .foot__logo-kmh      { width: 398px; }
  .foot__logo-kadokawa { width: 257px; }
  .foot__logo-museum   { width: 256px; }
  .foot__logo-toko     { width: 196px; }
  .foot__logo          { width: 117px; }
  /* SNSはFigma（60px）より一回り大きく72px。右端（711px）と縦の中心はFigmaに合わせる */
  .foot__sns { position: absolute; left: 455px; top: 199px; gap: 20px; }
  .foot__sns img { width: 72px; }
}

/* 1500px未満はスマホ用デザイン（Figma 特設サイト_SP用 267:1236）のヘッダー：
   左にSNS（X・LINE・Facebook）、右端にハンバーガー。ナビの項目はドロワーから開く */
@media screen and (max-width: 1499px) {
  .gnav__list { display: none; }
  .gnav__sns { right: auto; left: 40px; }
  .gnav__burger { right: 0; }
}

/* =========================================================
   追従する入場チケットボタン
   ========================================================= */
.ticket {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  width: 164px; display: block;
  transition: transform .15s ease;
}
.ticket:hover { transform: scale(1.04); }
/* 本棚の金の縦線（画面中央から+795px）の上に中心を合わせる。
   中央基準なのでズームしても線との位置関係は変わらない。
   線が画面内に収まらない幅では右下に戻す */
@media screen and (min-width: 1760px) {
  .ticket { right: auto; left: calc(50% + 553px); }
  /* 練習問題ページだけ100px左 */
  .ticket--practice { left: calc(50% + 453px); }
}
/* スマホ用デザイン（Figma 特設サイト_SP用 267:1260）では、
   開いた時にメインビジュアルの右下（列の左端から544px・画面上端から809px）に来る位置で追従させる。
   画面の高さが足りないとき（横向き・小さいウィンドウ）は、下端から30pxの位置まで上げて画面内に収める。
   練習問題ページはメインビジュアルが無いので、右下に追従するまま */
@media screen and (max-width: 1499px) {
  .ticket:not(.ticket--practice) {
    bottom: auto; right: auto; left: calc(50% + 169px);
    top: min(809px, calc(100vh - 194px));
    top: min(809px, calc(100dvh - 194px));
  }
}

/* =========================================================
   ドロワー
   ========================================================= */
.drawer {
  /* Figma menu 750×900：臙脂ベタに白文字、各行の右に矢印 */
  position: fixed; top: 0; right: 0; z-index: 120;
  width: 750px; max-width: 100%; background: #AE353E;
  padding: 200px 25px 120px;
  transform: translateY(-110%); transition: transform .3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.drawer.is-open { transform: translateY(0); }
.drawer__close {
  position: absolute; top: 0; right: 0; width: 90px; height: 90px;
  background: none;
}
.drawer__close::before,
.drawer__close::after {
  content: ""; position: absolute; left: 20px; top: 43px;
  width: 50px; height: 5px; background: #fff;
}
.drawer__close::before { transform: rotate(45deg); }
.drawer__close::after  { transform: rotate(-45deg); }
.drawer__sns { position: absolute; top: 10px; left: 25px; display: flex; gap: 20px; }
.drawer__sns img { width: 60px; }
.drawer__list li { border-bottom: 1px solid rgba(255, 255, 255, .7); }
.drawer__list li:last-child { border-bottom: 0; }
/* 行の高さを揃える（小見出しの有無で高さが変わらないように） */
.drawer__list a { display: flex; flex-direction: column; justify-content: center; min-height: 100px; position: relative; padding: 0 90px 0 25px; }
.drawer__list a::after {
  content: ""; position: absolute; right: 20px; top: 50%; margin-top: -20px;
  width: 40px; height: 40px;
  background: url("../img/arrow_gray.png") center / contain no-repeat;
}
.drawer__en { display: block; font-family: var(--mincho); font-size: 44px; font-weight: 700; color: #fff; line-height: 1.2; }
.drawer__ja { display: block; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.drawer__list a:hover { opacity: .8; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0, 0, 0, .5); display: none;
}
.drawer-overlay.is-open { display: block; }

/* =========================================================
   練習問題ページ
   ========================================================= */
.practice { width: var(--col); margin: 0 auto; background: #fff; padding: 40px 0 70px; }
.practice__head { text-align: center; margin-bottom: 30px; }
.practice__head img { width: 279px; margin: 0 auto; }
.practice__q { position: relative; width: var(--col); margin: 0 auto 26px; }
/* 第1問の仕掛け（開いた絵の上に、閉じた本と、ダブルタップを受ける透明ボタンを重ねる） */
.q1board { position: absolute; inset: 0; }
.q1book {
  position: absolute; pointer-events: none;
  background: url("../img/q1_closed.png?v=20261015a") no-repeat; background-size: 750px auto;
  opacity: 0; transform: scale(1.04); transition: opacity .25s ease, transform .25s ease;
}
.q1book.is-closed { opacity: 1; transform: none; }
/* touch-action: manipulation … ダブルタップで画面が拡大されないようにする */
.q1hit {
  position: absolute; background: transparent; border-radius: 6px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.q1hit:focus-visible { outline: 3px solid #FFEB8C; }
/* 背表紙の「×」で本を閉じる（閉じると背表紙 750×120 だけになる） */
/* 本をダブルタップで開け閉めする（本全体を覆う透明ボタン。閉じたときは背表紙全体）。
   touch-action: manipulation … ダブルタップで画面が拡大されないようにする */
.qclose {
  position: absolute; inset: 0; z-index: 5; background: transparent; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.qclose:focus-visible { outline: 3px solid #FFEB8C; outline-offset: -3px; }
/* 本を閉じられるのは、その問題に正解してから。
   まとめは「ー」の札を見るのに閉じる必要があるので、最初から閉じられる */
.pq:not(.is-solved):not(.pq--last) .qclose { display: none; }
.practice__q.is-closed img { animation: q-close .3s ease; }
.practice__q.is-closed .q1board,
.practice__q.is-closed .q3board { display: none; }
.practice__q.is-closed + .q3reset { display: none; }
/* 閉じた問題は入力欄・正解表示も畳み、背表紙どうしを詰めて並べる。
   まとめ（最後の問題）は答えを入れるので入力欄を残す */
.pq.is-closed:not(.pq--last) .practice__row,
.pq.is-closed:not(.pq--last) .practice__result { display: none; }
.pq.is-closed { padding-top: 8px; }
.pq.is-closed .practice__q { margin-bottom: 0; }
.pq + .pq.is-open.is-closed { margin-top: 0; border-top: 0; }
@keyframes q-close { from { opacity: 0; transform: scaleY(1.6); transform-origin: top; } to { opacity: 1; transform: none; } }
/* 第3問：星をつなぐ線 */
.q3board { position: absolute; inset: 0; }
.q3lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.q3lines line { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.q3star { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: transparent; touch-action: none; cursor: crosshair; }
.q3lines line.is-drawing { stroke-opacity: .8; stroke-dasharray: 10 8; }
.q3star:hover { background: rgba(255, 255, 255, .2); }
.q3star.is-selected { background: rgba(255, 235, 140, .45); box-shadow: 0 0 0 3px #FFEB8C; }
.q3star:focus-visible { outline: 3px solid #FFEB8C; }
.q3reset {
  display: block; margin: -10px auto 20px; padding: 8px 36px;
  border: 2px solid var(--crimson); border-radius: 999px;
  color: var(--crimson); font-size: 22px; font-weight: 700; background: #fff;
}
.q3reset:hover { background: var(--crimson); color: #fff; }
/* 順番違い：ゆらしてから全部開き直す */
.q1board.is-resetting { animation: q1-shake .45s ease; }
@keyframes q1-shake { 0%,100% { transform: none; } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.practice__row { display: flex; width: 560px; margin: 0 auto; height: 80px; border: 2px solid var(--crimson); }
.practice__input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: var(--input-fs, 26px); font-family: var(--gothic); color: #333; }
.practice__submit { flex: 0 0 126px; background: var(--crimson); color: #fff; font-family: var(--mincho); font-size: 30px; font-weight: 700; }
.practice__result { text-align: center; font-size: 22px; min-height: 1.6em; margin-top: 12px; }
.practice__result.is-error { color: var(--crimson); font-weight: 700; }
/* 1問ずつ開く */
.pq { display: none; padding-top: 30px; scroll-margin-top: 90px; }
.pq.is-open { display: block; animation: clear-in .4s ease; }
.pq + .pq.is-open { margin-top: 40px; border-top: 2px dashed #E3D6C2; }
.practice__result.is-ok { color: #0A9A6E; font-weight: 700; font-size: 30px; }
.practice__input:disabled { background: #F5F5F5; color: #888; }
.practice__submit:disabled { opacity: .5; cursor: default; }

/* 正解ポップアップ */
/* 全問正解ポップアップ（Figma 正解POPUP 700×800：焦げ茶の地に生成り色の明朝） */
.popup { position: fixed; inset: 0; z-index: 130; background: rgba(0, 0, 0, .6); display: none; align-items: center; justify-content: center; padding: 20px; }
.popup.is-open { display: flex; animation: clear-in .35s ease; }
@keyframes clear-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.popup__inner { width: 700px; max-width: 100%; max-height: 100%; overflow-y: auto; background: #61340B; border-radius: 24px; position: relative; padding: 20px 20px 40px; text-align: center; }
.popup__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; z-index: 2; }
.popup__close::before, .popup__close::after { content: ""; position: absolute; left: 6px; top: 20px; width: 32px; height: 4px; border-radius: 2px; background: #fff; }
.popup__close::before { transform: rotate(45deg); }
.popup__close::after { transform: rotate(-45deg); }
.popup__img { width: 661px; max-width: 100%; margin: 0 auto 18px; }
.popup__text { font-family: var(--mincho); font-size: 26px; line-height: 1.75; color: #F3E7D3; }
.popup__sns { display: flex; justify-content: center; gap: 20px; margin: 22px 0 28px; }
.popup__sns img { width: 60px; }
/* スマホ（指で操作する端末）だけアイコンを一回り大きく。
   このサイトは幅750px固定なので、画面幅ではなく操作方法で判定する */
@media (hover: none) and (pointer: coarse) {
  .popup__sns { gap: 26px; }
  .popup__sns img { width: 80px; }
}
.pill--popup { width: 600px; max-width: 100%; margin: 0 auto; box-shadow: 0 0 0 3px #FFEB8C, 0 0 18px 4px rgba(255, 226, 130, .85); position: relative; }
.pill--popup .pill__arw { position: absolute; right: 30px; top: 50%; margin-top: -20px; background-image: url("../img/arrow_crimson.png"); }

/* 列の中に置く本（*__book）は、PCの広い画面（1500px以上）でだけ出す。
   それより狭い画面はスマホ用デザイン（Figma 特設サイト_SP用）に合わせ、本の飾りは出さない */
@media screen and (max-width: 1499px) {
  .kikan__book, .story__book, .howto__book, .beginner__book, .info__book, .faq__book { display: none; }
}
