@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");
/* ==========================================================================
   base.css — 令王将棋教室 デザインの決まり（2026-11-25）
   - 文字・色・線・ボタン・札・鍵の出し方を、全ページでそろえるためのファイル
   - 各ページの CSS より「後」に読み込む（<link> を一番最後に置く）
   - 決まりの説明：reiou-control-tower/docs/site/design-plan.md
   ルール：角の丸み＝カード・入力欄 8px／ボタン 6px／小さい札 3px／紺の帯・表の区切り・サムネの膜は 0（Sugar 11/25「全部四角は変」）
   影は使わない（線で区切る）／色は下の変数だけ使う
   ========================================================================== */

:root {
  /* 色（LP 案E と同じ。11/25 Sugar「デザインは1つに」） */
  --r-navy: #004097;        /* メインの青（ロゴの青・今までのサイトの色）：ヘッダー・フッター・大きな帯。11/25 Sugar「暗い青にしないで」で #003366 から戻した */
  --r-blue: #0056b3;        /* 青：リンク・選択中・枠のボタン */
  --r-blue-2: #0056b3;
  --r-blue-pale: #eef4fb;   /* 薄い青（背景の帯・選択中の背景） */
  --r-yellow: #ffcc00;      /* 黄：いちばん押してほしいボタンだけ */
  --r-yellow-d: #e6b800;
  --r-ink: #1d2d40;         /* 文字 */
  --r-sub: #4a5b70;         /* 薄い文字（注記） */
  --r-line: #d3dfec;        /* 線 */
  --r-bg: #f5f7fb;          /* ページの背景 */
  --r-white: #fff;
  --r-red: #c8352e;         /* 注意・エラー */
  /* プランの色（今の札の色を単色に） */
  --r-plan-free: #3f9b4a;
  --r-plan-basic: #1e7bd6;
  --r-plan-standard: #f08a24;
  --r-plan-premium: #8e44c9;
  /* 文字 */
  --r-font: "Zen Kaku Gothic New", "Hiragino Sans", "ヒラギノ角ゴ ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --r-font-shogi: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif; /* 将棋の盤・符号の文字だけ */
  --r-h1: 28px; --r-h2: 22px; --r-h3: 18px; --r-body: 16px; --r-note: 13px;
  /* 形 */
  --r-radius: 8px;          /* カード・入力欄・講座のカード */
  --r-radius-s: 6px;        /* ボタン・選択肢 */
  --r-radius-xs: 3px;       /* 小さい札（プラン・タグ） */
  --r-gap: 16px;
  --r-max: 1120px;          /* 本文の最大の幅 */
}
@media (max-width: 640px) {
  :root { --r-h1: 23px; --r-h2: 19px; --r-h3: 16.5px; --r-body: 15px; --r-gap: 12px; }
}

/* ---- 文字 ---- */
html, body { font-family: var(--r-font); }
body { color: var(--r-ink); background-color: var(--r-bg); -webkit-font-smoothing: antialiased; }
.r-h1 { font-size: var(--r-h1); font-weight: 800; line-height: 1.4; letter-spacing: .03em; margin: 0 0 .5em; }
.r-h2 { font-size: var(--r-h2); font-weight: 800; line-height: 1.45; margin: 0 0 .6em; padding-left: 12px; border-left: 4px solid var(--r-blue); }
.r-h3 { font-size: var(--r-h3); font-weight: 700; line-height: 1.5; margin: 0 0 .5em; }
.r-text { font-size: var(--r-body); line-height: 1.9; }
.r-note { font-size: var(--r-note); color: var(--r-sub); line-height: 1.7; }
.r-shogi { font-family: var(--r-font-shogi); }

/* ---- 入れ物 ---- */
.r-wrap { max-width: var(--r-max); margin: 0 auto; padding: 0 16px; }
.r-card { background: var(--r-white); border: 1px solid var(--r-line); border-radius: var(--r-radius); }
.r-band { background: var(--r-blue-pale); border-left: 4px solid var(--r-blue); padding: 12px 16px; }

/* ---- ボタン（3種類だけ：黄＝いちばん押してほしい1つ／枠＝ほか／紺の上では白枠） ---- */
.r-btn, .r-btn-line, .r-btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; font: 700 16px/1 var(--r-font); letter-spacing: .04em;
  border-radius: var(--r-radius-s); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.r-btn { background: var(--r-yellow); color: var(--r-navy); border: 2px solid var(--r-yellow); }
.r-btn:hover { background: var(--r-yellow-d); border-color: var(--r-yellow-d); }
.r-btn-line { background: #fff; color: var(--r-blue); border: 2px solid var(--r-blue); }
.r-btn-line:hover { background: var(--r-blue); color: #fff; }
.r-btn-dark { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.r-btn-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 640px) { .r-btn, .r-btn-line, .r-btn-dark { min-height: 48px; padding: 0 20px; font-size: 15px; } }
/* 紺の帯（うっすら将棋盤のマス目） */
.r-navy-band { background-color: var(--r-navy); color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; }

/* ---- 札（四角・小さい） ---- */
.r-tag { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: var(--r-radius-xs); color: #fff; background: var(--r-blue); }
.r-tag-line { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 0 7px; border: 1px solid var(--r-line); color: var(--r-sub); border-radius: var(--r-radius-xs); }
.r-tag.free { background: var(--r-plan-free); } .r-tag.basic { background: var(--r-plan-basic); }
.r-tag.standard { background: var(--r-plan-standard); } .r-tag.premium { background: var(--r-plan-premium); }

/* ---- 戦法ページの上の説明（案3：左の太い線＋将棋盤のマス目・全文を出す） ---- */
.r-intro {
  position: relative; border-radius: 0; padding: 24px 28px 22px 34px; border: 1px solid var(--r-line); background-color: #fff;
  background-image: linear-gradient(#eef2f8 1px, transparent 1px), linear-gradient(90deg, #eef2f8 1px, transparent 1px);
  background-size: 36px 36px;
}
.r-intro::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--r-navy); }
.r-intro .r-intro-cat { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--r-navy); padding: 2px 8px; }
.r-intro h1, .r-intro .r-intro-title { font-size: var(--r-h1); font-weight: 800; margin: 8px 0 10px; }
.r-intro p { font-size: var(--r-body); line-height: 1.95; margin: 0; background: rgba(255,255,255,.88); }
.r-intro .r-intro-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--r-sub); margin-top: 12px; }
.r-intro .r-intro-meta b { color: var(--r-ink); }
@media (max-width: 640px) { .r-intro { padding: 18px 16px 16px 22px; background-size: 28px 28px; } }

/* ==========================================================================
   講座のカード（ホーム・戦法のページの .strategy-card）
   角を小さく・影をやめて線に。鍵は「案F」：暗い膜はサムネだけ・鍵＋プランの色の札・「プランを見る」
   ========================================================================== */
.strategy-card-inner, .product-list a { border-radius: var(--r-radius) !important; }
.strategy-card-inner { box-shadow: none !important; border: 1px solid var(--r-line); }
.strategy-card:hover .strategy-card-inner { transform: none !important; border-color: var(--r-blue-2); box-shadow: none !important; }
.strategy-card:hover .logo > div { transform: none !important; }
.strategy-badge { border-radius: var(--r-radius-xs) !important; background-image: none !important; box-shadow: none !important; }
.strategy-badge.badge-free { background-color: var(--r-plan-free) !important; }
.strategy-badge.badge-basic { background-color: var(--r-plan-basic) !important; }
.strategy-badge.badge-standard { background-color: var(--r-plan-standard) !important; }
.strategy-badge.badge-premium { background-color: var(--r-plan-premium) !important; }

/* 鍵（案F）：膜はサムネの範囲（16:9）だけ。講座名は普通に読める */
.strategy-card.locked .strategy-card-inner { background-color: #fff !important; }
.strategy-card .strategy-lock-overlay {
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important;
  aspect-ratio: 16 / 9; height: auto !important; padding: 0 !important;
  background: rgba(8, 16, 30, .66) !important; border-radius: 0 !important;
  flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 7px !important;
}
.strategy-card .strategy-lock-overlay i { font-size: 24px !important; margin: 0 !important; padding: 0 !important; background: none !important; color: #fff !important; border-radius: 0 !important; }
.strategy-card .lock-message {
  font-size: 11.5px !important; font-weight: 800 !important; color: #fff !important; line-height: 1.5 !important;
  background: var(--r-navy) !important; padding: 2px 10px !important; border-radius: var(--r-radius-xs) !important;
  max-width: none !important; white-space: nowrap; text-align: center !important;
}
.strategy-card[data-required-plan="basic"] .lock-message { background: var(--r-plan-basic) !important; }
.strategy-card[data-required-plan="standard"] .lock-message { background: var(--r-plan-standard) !important; }
.strategy-card[data-required-plan="premium"] .lock-message { background: var(--r-plan-premium) !important; }
.strategy-card .strategy-lock-overlay::after { content: "プランを見る"; font-size: 10.5px; color: #fff; opacity: .85; }
.strategy-card .strategy-lock-overlay:hover { background: rgba(8, 16, 30, .78) !important; }
.strategy-card .strategy-lock-overlay:hover::after { text-decoration: underline; opacity: 1; }

/* 絞り込みのボタン（すべて・居飛車…） */
.filter-btn { border-radius: var(--r-radius-s) !important; box-shadow: none !important; }
.filter-btn.active { background: var(--r-navy) !important; border-color: var(--r-navy) !important; color: #fff !important; }

/* 講座のカード（catalog.css の .rc-card：棋風診断の結果・講座一覧） */
.rc-card { border-radius: var(--r-radius) !important; box-shadow: none !important; border: 1px solid var(--r-line); }
.rc-card:hover { transform: none !important; border-color: var(--r-blue); }
.rc-tag { border-radius: var(--r-radius-xs) !important; }

/* ヘッダー・フッター（js/reiou-header.js・reiou-footer.js の部品）の色を LP 案E の紺・青に。
   部品の中の :host の色より、外から部品に付けた指定のほうが強いので、ここで上書きできる */
reiou-header, reiou-footer { --main-color: var(--r-navy); --sub-color: var(--r-blue); }
reiou-footer { background-color: var(--r-navy) !important; }

/* 戦法のページ（strategies の各戦法の index.html・senpou.css）：説明（案3）を上に全幅・講座は格子に並べる */
#top.wrapper { flex-direction: column; max-width: 1120px; padding-top: 32px; }
.sp-intro { margin: 0 0 24px; width: 100%; box-sizing: border-box; }
#top .product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; justify-content: stretch; }
#top .product-list li { width: auto; }
#top .product-list > li > div { background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-radius); overflow: hidden; box-shadow: none !important; height: 100%; }
#top .product-list > li:hover > div { border-color: var(--r-blue); }
#top .product-list a { padding: 0; }
#top .product-list-title { padding: 12px 14px 14px; align-items: flex-start; gap: 6px; }
#top .product-list p, #top .senpou-auther p { font-family: var(--r-font); letter-spacing: .02em; }
#top .product-list-title > p { font-size: 15px; font-weight: 700; color: var(--r-ink); white-space: normal; text-align: left; }
#top .senpou-auther { justify-content: flex-start; }
#top .product-list-tag { gap: 0; }
#top .product-list-tag > div { gap: 6px; flex-wrap: wrap; }
#top .product-list-tag .tag, #top .product-list-tag .plan-label { width: auto; height: auto; margin: 0; white-space: nowrap; padding: 1px 8px; font-size: 11.5px; line-height: 1.6; }
#top .product-list-tag .tag { border-color: var(--r-line); color: var(--r-sub); }
#top .product-list-tag .tag span, #top .product-list-tag .plan-label span { font-size: inherit; }
#top .product-list .tag, #top .product-list .plan-label { border-radius: var(--r-radius-xs) !important; }
#top .plan-label.power-up-tag { background: var(--r-plan-standard); }
@media (max-width: 767px) {
  #top.wrapper { padding-top: 20px; }
  /* 11/29 幅 320px で右の列が画面の外に出ていた（特殊戦法）。原因：1fr は中身（折り返さない札など）の最小幅より縮まないため。minmax(0, 1fr) で画面に合わせる */
  #top .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #top .product-list li { min-width: 0; }
  #top .product-list-title > p { font-size: 13.5px; }
}

/* 料金プラン（plan.html・plan-page.css）：ピンクと赤をやめて紺・黄に。おすすめは紺の太枠＋黄色の札 */
.tab { font-family: var(--r-font); }
.tab.active { background-color: var(--r-navy) !important; color: #fff; font-weight: 700; }
.plan-card { border: 1px solid var(--r-line) !important; border-radius: var(--r-radius) !important; box-shadow: none !important; }
.plan-card-recommended { position: relative; background-color: #fdf2f5 !important; border: 3px solid #fc5376 !important; border-radius: var(--r-radius) !important; }
/* 「おすすめ!」は元の飛び出す手書きのピンクのまま（Sugar 11/25「ピンクが好み」）。サイトでピンクを使うのはここだけ＝いちばん目立たせたい1か所の色 */
.plan-card-recommended .recommended { display: inline !important; }
.subscribe-btn, .subscribe-btn-red { background-color: var(--r-navy) !important; color: #fff !important; font-weight: 700; border-radius: var(--r-radius-s) !important; padding: 12px 26px !important; }
.subscribe-btn:hover, .subscribe-btn-red:hover { background-color: #00347b !important; }
.plan-note { border: 0 !important; border-left: 4px solid var(--r-navy) !important; border-radius: 0 var(--r-radius) var(--r-radius) 0 !important; background: var(--r-blue-pale) !important; box-shadow: none !important; }
.waiting { border: 1px solid var(--r-line) !important; border-radius: var(--r-radius) !important; }
.faq-item { border-radius: var(--r-radius); }

/* 講師の一覧（instructors-page）：名前の札の青いグラデーションと影をやめる */
.teacher-card { background: #fff; border: 1px solid var(--r-line) !important; border-radius: var(--r-radius) !important; box-shadow: none !important; overflow: hidden; transition: border-color .15s; }
.teacher-card:hover { transform: none !important; border-color: var(--r-blue) !important; }
.teacher-card h3 { height: auto !important; padding: 12px 10px !important; background: var(--r-navy) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; font-family: var(--r-font); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.teacher-image { display: block; margin: 0 auto; }

/* 講師の一覧（11/25 作り直し・LP 案E の講師カードと同じ形） */
.instructor-container.it-wrap { display: block !important; width: auto !important; }
.it-wrap { max-width: 1120px; margin: 0 auto; padding: 96px 16px 64px; box-sizing: border-box; }
.it-head h1 { font-size: var(--r-h1); font-weight: 700; color: var(--r-navy); margin: 0 0 8px; }
.it-head p { color: var(--r-sub); line-height: 1.8; margin: 0 0 28px; }
.it-group + .it-group { margin-top: 36px; }
.it-group h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: var(--r-navy); margin: 0 0 14px; }
.it-group h2::after { content: ""; flex: 1; height: 1px; background: var(--r-line); }
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.it-card a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-radius); text-decoration: none; color: var(--r-ink); height: 100%; box-sizing: border-box; transition: border-color .15s; }
.it-card a:hover { border-color: var(--r-blue); }
.it-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 1px solid var(--r-line); background: #fff; }  /* 講師の顔は全員まる（YouTube・X のアイコンと同じ形。丸前提のアイコンもそのまま合う・Sugar 11/25） */
.it-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.it-kind { align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: var(--r-navy); padding: 1px 8px; border-radius: var(--r-radius-xs); }
.it-body b { font-size: 18px; color: var(--r-navy); line-height: 1.4; }
.it-cred { font-size: 12.5px; color: var(--r-sub); line-height: 1.6; }
.it-go { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--r-blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .it-wrap { padding-top: 80px; } .it-grid { grid-template-columns: 1fr; } .it-card a { grid-template-columns: 80px 1fr; } .it-card img { width: 80px; height: 80px; } }


/* 無料で見られる講座の札（11/26 Sugar「無料の講座は鍵を外し、無料で体験できる見た目に」）。緑は料金表の無料プランと同じ色 */
.strategy-card.is-free .logo { position: relative; }
.strategy-card.is-free .logo::after { content: "無料で体験できる"; position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--r-plan-free); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1; padding: 6px 10px; border-radius: var(--r-radius-xs); letter-spacing: .04em; }
/* 講座カードのプランの札を料金表と同じ色に（無料＝緑・基礎＝青）。11/26：無料が水色・基礎が緑で、料金表と逆だった */
#top .plan-label.free-plan { background: var(--r-plan-free); color: #fff; }
#top .plan-label.basic-plan { background: var(--r-plan-basic); color: #fff; }

/* ==========================================================================
   2026/11/26 デザインの見直し（試作）：料金プラン
   - 見出し・切り替え・金額の並び・ピンクの「おすすめ!」・紺の申し込みボタンはそのまま（Sugar 11/25）
   - できること：3枚とも同じ4行をくり返していた → 上のプランは「下のプランの内容すべて＋増える分」に。名前は太字、説明は小さく
   - スマホ：おすすめ（実力養成）をいちばん上に
   - 利用者の声：スライドの形は残し、両脇を薄くするのだけやめる
   元に戻すときは、この下を全部消す（plan.html の .pf も元の .val に戻す）
   ========================================================================== */
.plan-list { align-items: stretch; }
.pf { list-style: none; margin: 0; padding: 0 4px; text-align: left; display: grid; gap: 12px; }
.tab-content .pf li { position: relative; padding: 0 0 0 24px; width: auto; line-height: 1.6; }   /* .tab-content li の余白（30px 20px）を打ち消す */
.pf li svg { position: absolute; left: 0; top: 4px; }
.pf li b { display: block; font-size: 15px; font-weight: 700; color: var(--r-ink); }
.pf li span { display: block; font-size: 12.5px; color: var(--r-sub); line-height: 1.7; }
.pf-base { margin: 0 0 12px; padding: 9px 12px; text-align: left; font-size: 13.5px; font-weight: 700; color: var(--r-navy); background: var(--r-blue-pale); border-radius: var(--r-radius-xs); line-height: 1.5; }
.plan-card-recommended .pf-base { background: #fff; border: 1px solid #f6c9d4; }
.pf-base small { display: block; font-size: 11.5px; font-weight: 400; color: var(--r-sub); margin-top: 2px; }
.pf-plus li b { font-size: 16px; }
.pf-plus li b::before { content: "＋ "; color: var(--r-navy); }
.plan-card .plan-note { margin-top: 14px; }
/* 利用者の声：横にずらして真ん中で読む形はそのまま。両脇の人を薄くするのだけやめる（どの声も同じ濃さで読める・Sugar 11/26） */
.users-voice .card { opacity: 1 !important; }   /* 影（立体感）は元のまま残す（Sugar 11/26 11:04） */
/* 2026/11/29 利用者の声のカードが右にずれて、右端のカードが画面の外に切れていた。
   原因：.slider-container の justify-content: center でカードの列がすでに真ん中に寄っているのに、
   plan.html のスライダーの JS は「列が左端から始まる」前提で真ん中に寄せる量を足しているため、二重にずれていた。
   列を左端から始めて、JS の計算どおりに真ん中へ寄るようにする。 */
.users-voice .slider-container { justify-content: flex-start; }
.users-voice .cards { margin-left: -10px; }   /* カードの左の余白（10px）の分も JS の計算に入っていないので、その分だけ戻してちょうど真ん中にする */
/* よくある質問：影をやめて線で区切る */
.faq-item { box-shadow: none !important; border: 1px solid var(--r-line); background: #fff; }
.faq-question { text-align: left; }   /* 11/29 スマホで2行になる Q6 だけ真ん中寄せになり、ほかの質問とそろっていなかった */
@media screen and (max-width: 768px) {
  .plan-card-recommended { order: -1; }   /* スマホはおすすめを先頭に */
}

/* 2026/11/26：鍵（案F）はサムネの色を変えない（白黒は講座の魅力が消える・Sugar）。鍵の絵と「プランを見る」に影を付けて、サムネの大きな字の上でも読めるようにするだけ */
.strategy-card .strategy-lock-overlay i { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.strategy-card .strategy-lock-overlay::after { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); opacity: 1; }
