@charset "UTF-8";
/* ============================================================
   thaigo-portal 公開サイト — 共通スタイル
   old（yuya-thaigo）踏襲：配色・フォント・固定サイドナビ＋モバイルドロワー構成
   ============================================================ */

:root {
  --bg: #FFF3EA;              /* 背景色 */
  --main: #FF8E3C;            /* メインカラー */
  --main-c: #D9376E;          /* メインカラー差色 */
  --basic-txt: #333;          /* 基本テキスト */
  --glnv-txt: #0D0D0D;        /* サイドナビテキスト */
  --link-txt: #3CB5D7;        /* リンクテキスト */
  --border: #e9ded2;
  --card-bg: #fff;
  --box-rod: 8px;             /* 角丸 */
  --main-c-txt: #9423FF;      /* メインカラー差色テキスト（old: --app-main-c-txt。rdBTボタン等） */
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-sub: "fot-tsukuardgothic-std", "Zen Maru Gothic", var(--font-main); /* 見出し用。fot-tsukuardgothic-stdはold専用Typekit契約のためthaigoでは読み込めず、丸ゴシックのGoogle Fonts代替にフォールバック（layout.php参照） */
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--basic-txt);
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--link-txt); text-decoration: none; }
a:hover { opacity: .75; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }

/* ── ページ見出し（花装飾。old: title_flower.png） ─────────────── */
.page-title {
  position: relative;
  font-family: var(--font-sub);
  font-weight: 900;
  font-size: 26px;
  margin: 0 0 20px;
  color: var(--basic-txt);
  min-height: 34px;
  display: flex;
  align-items: center;
}
.page-title::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
  height: auto;
  aspect-ratio: 1;
  background: url(/images/main/title_flower.png) no-repeat center / contain;
}

@media (max-width: 540px) {
  .page-title {font-size: 22px;}
  .page-title::before {width: 50px; left: -20px;}
}
.page-title .page-title-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--main-c);
  letter-spacing: .04em;
}
.section-title {
  position: relative;
  padding-left: 30px;
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  background: url(/images/main/title_flower2.png) no-repeat center / contain;
}

/* ── カテゴリ一覧・FAQトップ用バナー見出し（old: .con_list_cate_title 踏襲） ──
   一覧の種類（archive/text）やFAQに関わらず、この見出しコンポーネント自体は共通。
   背景画像だけ文脈で差し替える（既定=contitle-bg-main.png／FAQ=contitle-bg-faq.png）。 */
.cate-banner {
  /* 画面いっぱいに広げるが、他の要素（サイドバー分の余白・下に続く要素の位置）は動かさない
     ブリードテクニック：margin-leftの「-50vw + 50%」で.site-content内での中央寄せ幅を打ち消し、
     desktop（サイドバー分オフセットあり）はさらに --sidebar-w の半分を補正する。 */
  width: 100vw;
  margin: -36px 0 28px calc(-50vw + 50%);
  padding: 1px 40px 40px;
  background: url(/images/main/contitle-bg-main.png) no-repeat center / cover;
}
@media (min-width: 1024px) {
  .cate-banner {
    width: calc(100vw - var(--sidebar-w));
    margin-left: calc(-50vw + 50% + (var(--sidebar-w) / 2));
  }
}
.cate-banner.is-faq { background-image: url(/images/main/contitle-bg-faq.png); }
.cate-banner h1 {
  margin: 0;
  padding-top: 30px;
  text-align: left;
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 42px;
  color: #fff;
}
.cate-banner h1 .cate-banner-sub {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
@media (max-width: 540px) {
  .cate-banner { padding: 1px 24px 20px; margin: -24px 0 20px calc(-50vw + 50%); }
  .cate-banner h1 { font-size: 21px; padding-top: 16px; }
  .cate-banner h1 .cate-banner-sub { font-size: 14px; margin-bottom: 10px; }
}

/* ── プレーン見出し（old: h1.conTitle 踏襲。FAQ個別カテゴリのタイトルはバナー無し） ── */
.plain-title { margin: 0 0 20px; font-family: var(--font-sub); font-weight: 400; font-size: 42px; color: var(--basic-txt); }
.plain-title .plain-title-sub { display: block; font-size: 18px; }
@media (max-width: 540px) {
  .plain-title { font-size: 21px; font-weight: 700; }
  .plain-title .plain-title-sub { font-size: 13px; }
}

/* ── 戻るボタン（old: con_backbt 踏襲） ─────────────────────────────── */
.back-btn { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--basic-txt); position: relative; padding-left: 22px; }
.back-btn::before { content: ''; position: absolute; left: 0; top: 50%; width: 16px; height: 4px; background: url(/images/main/backbt-icon.png) no-repeat center / contain; transform: translateY(-50%); }

/* ============================================================
   FAQ（/faq, /faq/{slug}。2026-09-06、管理画面修正点0906より刷新）
   トピック一覧＝帯リスト、質問一覧＝ページ遷移せず開閉するアコーディオン。
   どちらもQ/Aバッジは共通で薄いオレンジ（--main）の丸抜き/塗りで統一する。
   ============================================================ */
.faq-topic-list { display: flex; flex-direction: column; gap: 12px; }
.faq-topic-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); color: inherit;
}
.faq-topic-badge {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: #FFEAD9; color: #B35A15;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sub); font-weight: 700; font-size: 20px;
}
.faq-topic-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.faq-topic-title { font-family: var(--font-sub); font-weight: 700; font-size: 16px; }
.faq-topic-desc { font-size: 12.5px; color: #7a6f60; }
.faq-topic-count {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #B35A15; background: #FFEAD9;
  padding: 4px 10px; border-radius: 50px;
}
.faq-topic-chevron {
  flex-shrink: 0; width: 8px; height: 8px;
  border-top: 2px solid #c9bda9; border-right: 2px solid #c9bda9; transform: rotate(45deg);
}

/* 質問一覧（アコーディオン）。ネイティブ<details>/<summary>で開閉・キーボード操作に対応。 */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: transparent; }
.faq-q {
  list-style: none; cursor: pointer; user-select: none;
  background: var(--card-bg); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex; align-items: center; gap: 14px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-badge {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sub); font-weight: 700; font-size: 15px;
  border: 2px solid var(--main);
}
.faq-badge.is-q { color: var(--main); border-color: var(--main); }
.faq-badge.is-a { color: var(--main-c); border-color: var(--main-c); }
.faq-q-title { font-size: 14.5px; font-weight: 700; margin: 0; flex: 1; }
.faq-q-state {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #8a7a68;
  background: #f1e8dc; border-radius: 50px; padding: 6px 14px;
}
/* 開閉状態に応じてラベルを出し分ける（JS不要、CSSのみ）。 */
.faq-item .faq-q-state.is-open { display: none; }
.faq-item[open] .faq-q-state.is-closed { display: none; }
.faq-item[open] .faq-q-state.is-open { display: inline-block; background: #eee; }
.faq-a {
  margin-top: 12px; background: var(--card-bg); border-radius: 14px; padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex; gap: 14px; align-items: flex-start;
}
.faq-a-body { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.8; color: #4a4038; }
.faq-a-locked { margin: 0; }

/* ── コース選択プルダウン（archive_list.php / category_list.phpの/archive/category/{slug}経路
   専用。旧: .course-nav-pill + .cate-nav-chips によるクリック開閉アコーディオンは廃止し、
   ネイティブ<select>にしてクリック不要で選択肢一覧を出す。選択した瞬間そのカテゴリへ遷移） ── */
.course-nav-select-wrap { position: relative; display: inline-block; margin-top: 16px; }
.course-nav-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  padding: 10px 34px 10px 22px;
  border: 1px solid #fff;
  border-radius: 40px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  background: rgba(255,255,255,.08);
}
.course-nav-select option { color: var(--basic-txt); }
.course-nav-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
}

/* ── カテゴリのビジュアル画像（old: con_list_visual 踏襲） ─────────────── */
.cate-visual { margin-bottom: 24px; }
.cate-visual img { width: 100%; border-radius: var(--box-rod); aspect-ratio: 21/9; object-fit: cover; }

/* ── レイアウト骨格 ────────────────────────────────────────── */
#app-shell { min-height: 100vh; }

.site-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  padding: 24px 20px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 40;
}
.site-logo { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f1e8dc; }
.site-logo a {display: block;font-family: var(--font-sub);font-weight: 500;font-size: 23px;color: var(--glnv-txt);}

.site-nav { flex: 0 0 auto; }
.site-nav li a {
  display: block;
  padding: 10px 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--glnv-txt);
}
.site-nav li a:hover { opacity: .6; }

.site-account {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glnv-txt);
}
.site-account-label {
  position: relative;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--glnv-txt);
  cursor: pointer;
  padding-right: 20px;
}
/* +/− アイコン（old: .gnavisToggle 踏襲。開いている時は横棒だけ残して「−」にする） */
.site-account-label::before,
.site-account-label::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%; right: 2px;
  background: var(--main);
  transition: opacity .2s ease;
}
.site-account-label::before { width: 10px; height: 2px; transform: translateY(-50%); }
.site-account-label::after  { width: 2px; height: 10px; right: 6px; transform: translateY(-50%); }
.site-account.is-open .site-account-label::after { opacity: 0; }

.site-account-body { margin-top: 10px; }
.site-account-name { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.site-account li a { display: block; padding: 6px 2px; font-size: 13.5px; color: var(--glnv-txt); }
.site-account .btn { width: 100%; text-align: center; margin-top: 4px; }

.site-copyright { margin-top: auto; padding-top: 16px; font-size: 11px; color: #a89b8c; }

.mobile-topbar { display: none; }
.site-overlay { display: none; }

/* 銀行振込の入金未確認オーバーレイ（ホーム限定、2026-09-06新設）。
   サイドバー・トップバーより手前に出す必要があるため、既存z-indexの最大値(40)より高くする。 */
.bank-transfer-pending-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 36, 48, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.bank-transfer-pending-box {
  max-width: 420px; width: 100%;
  background: #fff; border-radius: 12px;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.bank-transfer-pending-box p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--basic-txt); }

.site-main { min-height: 100vh; display: flex; flex-direction: column; }
.site-content {flex: 1;max-width: 900px;width: 90%;margin: 0 auto;padding: 36px 24px 56px;}
/* ホーム（body.home-page。renderPublic()がpublic/mypage.phpのときだけ自動付与）のみ幅を広げる */
body.home-page .site-content { max-width: 1200px; }

@media (min-width: 1024px) {
  .site-main { margin-left: var(--sidebar-w); }
}

@media (max-width: 1023px) {
  .site-sidebar {
    /* 2026-09-06：開く方向・静止位置を左→右から右→左に変更。デスクトップ（base rule）の
       left:0は上書きし、右寄せで待機させ、開くときは画面右端から左向きにスライドインする。 */
    left: auto;
    right: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    width: 82%;
    max-width: 320px;
    box-shadow: 0 0 24px rgba(0,0,0,.12);
  }
  .site-sidebar.is-open { transform: translateX(0); }
  .site-overlay {
    display: block;
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
    z-index: 39;
  }
  .site-overlay.is-open { opacity: 1; pointer-events: auto; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
    background: #fff; padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-topbar-title { font-family: var(--font-sub); font-weight: 900; font-size: 15px; color: var(--glnv-txt); }
  .hamburger-btn {
    width: 34px; height: 34px; border: none; background: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  }
  .hamburger-btn span { display: block; width: 22px; height: 2px; background: var(--glnv-txt); }

  .site-content { padding: 24px 16px 48px; }
}

/* ── フッター ─────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 28px 24px; margin-top: auto; }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 16px; }
.site-footer-nav a { font-size: 12.5px; color: #666; }
.site-copyright-main { text-align: center; font-size: 11px; color: #a89b8c; }
.pagetop-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--main); color: #fff; font-size: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.pagetop-btn.is-visible { opacity: 1; pointer-events: auto; }

/* ── 共通コンポーネント ───────────────────────────────────── */
.card { background: var(--card-bg); border-radius: var(--box-rod); padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.card + .card { margin-top: 16px; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 14px; font-weight: 700;
  background: var(--main); color: #fff; border: 2px solid var(--main);
  cursor: pointer; text-align: center;
}
.btn:hover { opacity: .85; }
.btn-outline { background: none; color: var(--main-c); border: 2px solid var(--main-c); }
.btn-dark { background: none; color: var(--glnv-txt); border: 2px solid var(--glnv-txt); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 12.5px; }

.flash { background: #eaf7ee; border: 1px solid #a9dcb8; color: #1c6b34; padding: 12px 16px; border-radius: var(--box-rod); margin-bottom: 18px; font-size: 13.5px; }
.errors { background: #fdecec; border: 1px solid #f2b8b8; color: #a12a2a; padding: 12px 16px; border-radius: var(--box-rod); margin-bottom: 18px; font-size: 13.5px; }
.errors ul { margin: 0; padding-left: 18px; }

/* 会員向けお知らせバナー（spec/20-member-notices.md §6.1）。
   error は .errors と同じ赤で、従来のバナーの見た目を変えない。
   退会予定やカード期限切れの予告まで赤で出すと強すぎるため、warning と info を足している。 */
.notice { padding: 12px 16px; border-radius: var(--box-rod); margin-bottom: 18px; font-size: 13.5px; border: 1px solid; }
.notice + .notice { margin-top: -6px; }
.notice a { color: inherit; text-decoration: underline; margin-left: 4px; }
.notice-error   { background: #fdecec; border-color: #f2b8b8; color: #a12a2a; }
.notice-warning { background: #fdf4e3; border-color: #ecd49a; color: #8a5a12; }
.notice-info    { background: #eef4fb; border-color: #bcd3ee; color: #2a5580; }

label { display: block; font-size: 12.5px; color: #8a7a68; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff;
}
textarea { min-height: 110px; }

.muted { color: #8a7a68; font-size: 13px; }
.required-mark { color: #d9376e; margin-left: 2px; }
.form-section-title {
  font-family: var(--font-sub); font-size: 14px; font-weight: 700; color: var(--basic-txt);
  margin: 24px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .form-row-2col { grid-template-columns: 1fr; } }
.form-row-2col .is-full { grid-column: 1 / -1; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; background: #f1e8dc; color: #8a7a68; }

/* ── 狭幅センター寄せカード（フォーム系ページ共通、2026-08-29新設） ────────── */
.card-narrow { max-width: 480px; margin: 0 auto; }
.card-narrow.is-sm { max-width: 420px; }   /* 認証系の短いフォーム用 */

.card-title { font-size: 18px; margin: 0 0 16px; }

.form-actions { margin-top: 20px; }
.form-actions.is-row { display: flex; gap: 8px; }

.btn-secondary { background: none; color: var(--basic-txt); border: 2px solid var(--border); }
.btn-secondary:hover { opacity: .85; }

.required-badge { color: var(--main-c); font-weight: 700; font-size: 12px; margin-left: 4px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.badge.on { background: #eaf7ee; color: #1c6b34; }
.badge.off { background: #fdecec; color: #a12a2a; }

.breadcrumb { font-size: 12px; color: #a89b8c; margin-bottom: 14px; }
.breadcrumb a { color: #a89b8c; }

/* ── 決済フロー専用レイアウト（layout_checkout.php、2026-08-29新設） ──────────
   サイドナビ・アカウントメニューを出さない、決済手続き専用の簡易シェル。
   離脱・誤操作を防ぐため、手続き中は他ページへの導線を意図的に置かない。 */
.checkout-shell { min-height: 100vh; display: flex; flex-direction: column; }
.checkout-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--card-bg);
}
.checkout-header-logo { font-family: var(--font-sub); font-weight: 900; font-size: 17px; color: var(--basic-txt); }
.checkout-main { flex: 1; max-width: 560px; width: 90%; margin: 0 auto; padding: 32px 16px 56px; }
.checkout-footer { padding: 20px; text-align: center; }

.checkout-steps { display: flex; justify-content: center; gap: 6px; margin: 0 0 28px; padding: 0; }
.checkout-steps li {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b8ab9c;
  padding-bottom: 8px; border-bottom: 3px solid var(--border); flex: 1; justify-content: center;
}
.checkout-steps li.is-current { color: var(--main-c); border-bottom-color: var(--main-c); font-weight: 700; }
.checkout-steps li.is-done { color: var(--basic-txt); border-bottom-color: var(--main); }
.checkout-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--border); color: #fff; font-size: 10px;
}
.checkout-steps li.is-current .checkout-step-num { background: var(--main-c); }
.checkout-steps li.is-done .checkout-step-num { background: var(--main); }

/* ── マイページトップ（old: app/mypage/top/index.php + myp_top.css 踏襲） ──────
   old側の各ブロックが個別に持つ mainTiInn 見出し（花装飾つき）をここでも再現し、
   お知らせ／LIVE配信予定／新着アーカイブ／毎週チャレンジの4ブロックをold同様の見た目・
   順序で並べる。3色アクセント（オレンジ／ピンク／パープル、old: icon-live2/3.png踏襲）を
   .myp-accent-0〜2 で使い回す。 */
.myp-accent-0 { --accent: var(--main); }
.myp-accent-1 { --accent: var(--main-c); }
.myp-accent-2 { --accent: #9423FF; }

.myp-heading {
  position: relative;
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 22px;
  z-index: 2;
}
.myp-heading::before {
  content: '';
  position: absolute;
  left: -66px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: auto;
  aspect-ratio: 1;
  background: url(/images/main/title_flower.png) no-repeat center / contain;
  z-index: -1;
}
.myp-heading .myp-heading-sub {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: -4px;
}
@media (max-width: 540px) {
  /* 花アイコンとの隙間が窮屈だったため、アイコンをやや右へ・見出し側の余白を広めに取る
     （管理画面修正点0905：マイページのセクション見出し位置修正より）。 */
  .myp-heading {font-size: 21px;/* padding-left: 46px; */}
  .myp-heading::before {width: 46px;height: 46px;left: -20px;}
  .myp-heading .myp-heading-sub { font-size: 11px; }
}

/* お知らせ（old: .my_top_news。old側に見出しは無く一覧のみ） */
.myp-news { border-bottom: 1px dotted #999; padding: 10px 0 12px; margin-bottom: 32px; }
.myp-news li { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.myp-news .myp-news-date { flex-shrink: 0; font-size: 12px; font-weight: bold; color: var(--basic-txt); }
.myp-news .myp-news-title { color: #000; font-size: 16px; }
.myp-news .myp-news-new {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px;
  background: #ff5757; color: #fff; font-size: 10px; font-weight: bold; vertical-align: 2px;
}
@media (max-width: 540px) {
  .myp-news li { display: block; padding: 10px 0; }
  .myp-news .myp-news-date { display: block; margin-bottom: 6px; }
}

/* LIVE配信予定（old: .my_top_live）。管理: /admin/live-broadcasts */
.myp-live { margin-bottom: 32px; }
.myp-live-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.myp-live-card {
  background: var(--card-bg);
  border-radius: var(--box-rod);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  position: relative;
}
.myp-live-icon {display: inline-block;position: absolute;left: 0;top: 0;width: 44px;height: 44px;margin-bottom: 12px;}
.myp-live-icon img {display: block;width: 100%;height: auto;}
.myp-live-title {font-family: var(--font-sub);font-weight: normal;font-size: 27px;margin: 0;}
@media (max-width: 1600px) {
  .myp-live-title{font-size: 20px;}
}
@media (max-width: 540px) {
  /* カード幅いっぱいに広がっていたため縮小（管理画面修正点0905より） */
  .myp-live-title { font-size: 18px; }
}
.myp-live-divider { display: block; width: 60px; height: 10px; margin: 10px auto; }
.myp-live-divider img { display: block; width: 100%; height: 100%; object-fit: contain; }
.myp-live-datetime { font-size: 12.5px; color: var(--basic-txt); margin: 0 0 16px; }
.myp-live-btn {
  position: relative;
  display: inline-block; width: 100%; padding: 11px 0; border-radius: 50px;
  border: 2px solid var(--accent, var(--main)); color: var(--basic-txt); font-size: 13.5px; font-weight: 700;
}
.myp-live-btn-arrow { display: inline-block; margin-left: 4px; }

/* 継続権限が無い会員向けロック表示（mypage.phpの$myp_lockable()）。
   LIVE配信の「詳細を見る」ボタン・新着アーカイブのチップ/記事行・毎週チャレンジのバナーに、
   セクション自体は隠さず、リンク単体だけクリック不可にして鍵アイコンを重ねる。 */
.myp-live-btn.is-locked,
.myp-archive-chips a.is-locked,
.myp-archive-row.is-locked,
.myp-challenge-grid a.is-locked {
  position: relative;
  pointer-events: none;
  filter: grayscale(70%);
  opacity: .7;
}
.myp-lock-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 36, 48, .45);
}
.myp-live-btn.is-locked .myp-lock-badge,
.myp-archive-chips a.is-locked .myp-lock-badge { border-radius: 50px; }
.myp-archive-row.is-locked .myp-lock-badge,
.myp-challenge-grid a.is-locked .myp-lock-badge { border-radius: var(--box-rod); }

/* 新着アーカイブ（old: .my_top_archive）。見出し横にカテゴリチップナビ＋アイコン付き一覧行 */
.myp-archive { margin-bottom: 32px; }
.myp-archive-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.myp-archive-head .myp-heading { margin-bottom: 16px; }
.myp-archive-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.myp-archive-chips a {
  display: block; padding: 9px 20px; border-radius: 50px;
  background: var(--main-c); color: #fff; font-size: 13px; font-weight: 700;
}
/* LIVE配信予定・アーカイブ一覧と同じカテゴリ別アクセント（.myp-accent-0〜2、mypage.php参照）を
   チップにも反映するが、原色の塗りつぶしはビビッドすぎたため、パステル調（淡い背景＋濃色文字）
   にトーンを落とす（ユーザーフィードバック：「ちょっとカラフルすぎるかな？」）。 */
.myp-archive-chips .myp-accent-0 a { background: #FFEAD9; color: #B35A15; }
.myp-archive-chips .myp-accent-1 a { background: #FBE1EA; color: #B02458; }
.myp-archive-chips .myp-accent-2 a { background: #EEE0FF; color: #7A1ADB; }
/* スマホでは短縮ラベルに差し替える（「タイ語リスニング講座」→「リスニング」等）。 */
.myp-chip-short { display: none; }
.myp-archive-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.myp-archive-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border-radius: var(--box-rod); padding: 14px 18px;
  color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.myp-archive-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.myp-archive-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.myp-archive-row-text { display: flex; flex-direction: column; gap: 4px; }
.myp-archive-row-title { font-size: 14px; font-weight: 700; }
.myp-archive-more { text-align: right; }
.myp-archive-more a {
  display: inline-block; padding: 10px 24px; border-radius: 50px;
  background: var(--main-c); color: #fff; font-size: 13.5px;
}
@media (max-width: 540px) {
  .myp-archive-chips a { padding: 8px 16px; font-size: 12px; }
  .myp-chip-full  { display: none; }
  .myp-chip-short { display: inline; }
}

/* 毎週チャレンジ（old: .my_top_challenge）。
   キャラクター画像（idol_03.png、「少しづつ成長！」の吹き出しが画像内に描き込み済み）は、
   見出しテキストと重ならないようセクション全体（.myp-challenge）を基準に右上へ配置する
   （以前は幅の狭い .myp-heading 基準で配置していたため見出し文字と重なっていた）。 */
.myp-challenge { position: relative; margin-bottom: 32px; padding-top: 8px; }
.myp-challenge::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 20px;
  width: 110px;
  height: 110px;
  background: url(/images/main/idol_03.png) no-repeat center / contain;
  z-index: 1;
}
.myp-challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.myp-challenge-grid a { display: block; }
.myp-challenge-grid img { display: block; width: 100%; border-radius: var(--box-rod); }
@media (max-width: 700px) {
  .myp-challenge::after {width: 84px;height: 84px;right: 0;top: 14px;}
}

/* ============================================================
   コンテンツ本文（ContentBlockエディタ出力。src/ContentBlock/ContentBlockRenderer.php）
   old（yuya-thaigo）踏襲：クラス名は system_parts/core_sys_template/css/app_user.css の
   WYSIWYG本文用カスタムCSSとほぼ同一（yakusuku-online由来のテンプレートがyuya-thaigoにも
   流用されているため）。ただしold側は装飾アイコンが外部URL（yakusuku-online.com）参照の
   まま壊れていたため、インラインSVGへ差し替えて自前化している。
   innvideo/balloon/balloon2/stepBox/stepBox2 はold側に対応CSSが存在しない
   （thaigoがyakusuku-portalから暫定的に引き継いだブロック型のため）新規デザイン。
   ============================================================ */
.articleBox { max-width: 100%; }
.articleBox p { margin: 0 0 1em; }

/* 見出し1・見出し2（old: app_user.css h2.title1/h3.title1 等 踏襲） */
.articleBox h2.title1,
.articleBox h3.title1 {
  padding: 16px;
  margin: 40px 0 20px;
  border-bottom: 5px solid var(--main);
  font-family: var(--font-sub);
}
.articleBox h2.title2,
.articleBox h3.title2 {
  padding: 8px 20px;
  margin: 40px 0 20px;
  background: #fff;
  color: var(--main);
  border-top: 2px solid var(--main);
  border-bottom: 2px solid var(--main);
  font-family: var(--font-sub);
}

/* 画像ラッパー（old踏襲） */
.articleBox .conWrapperM { width: 71%; margin: 0 auto 1em; }
.articleBox .conWrapperS { width: 41%; margin: 0 auto 1em; }
.articleBox .conWrapperM img,
.articleBox .conWrapperS img { display: block; width: 100%; border-radius: var(--box-rod); }
.articleBox .cnt-image-caption { text-align: center; font-size: 12.5px; color: #8a7a68; margin: -0.6em 0 1em; }

/* チェックボックス／ポイントボックス（old踏襲。アイコンはインラインSVGで自前化） */
.articleBox .itemBox {
  background: #fff;
  border-radius: var(--box-rod);
  padding: 14px 20px 14px 72px;
  margin: 0 0 1em;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.articleBox .itemBox::before {
  content: '';
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='none' stroke='%23FF8E3C' stroke-width='2.5'/%3E%3Cpath d='M10 18.5l5 5 11-11.5' fill='none' stroke='%23FF8E3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.articleBox .itemBox.item_point::before {
  width: 36px; height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l5.9 12.4L44 18.6l-10 9.9L36.6 44 24 36.9 11.4 44 14 28.5 4 18.6l14.1-2.2z' fill='%23D9376E'/%3E%3C/svg%3E");
}
.articleBox .itemBox p:last-child { margin-bottom: 0; }

/* 箇条書きボックス（old踏襲） */
.articleBox ul.itemListBox {
  border: 2px solid var(--main);
  border-radius: var(--box-rod);
  padding: 16px 20px;
  margin: 0 0 1em;
}
.articleBox ul.itemListBox li { list-style: none; font-weight: 700; padding: 4px 0; }
.articleBox ul.itemListBox li::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  background: var(--main); border-radius: 50%;
}

/* ボタン（old踏襲） */
.articleBox p.BtM { text-align: center; margin: 0 0 1em; }
.articleBox p.BtM a {
  display: inline-block; min-width: 240px; max-width: 100%;
  padding: 14px 24px; border-radius: 50px;
  border: 2px solid var(--main); color: var(--main); font-weight: 700;
}
.articleBox p.BtM a.rdBT { border: 3px solid var(--main-c-txt); color: var(--main-c-txt); }
.articleBox p.BtM a.strongBT { background: var(--main); border-color: var(--main); color: #fff; }

/* 動画埋め込み（新規デザイン。レスポンシブ16:9） */
.articleBox .innvideo { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 1em; border-radius: var(--box-rod); overflow: hidden; background: #000; }
.articleBox .innvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 吹き出し（新規デザイン。type1=balloon／type2=balloon2、赤系は末尾に rd 修飾） */
.articleBox .balloon,
.articleBox .balloon2 {
  position: relative;
  background: #eefaf1; border: 2px solid #8fd6a5; border-radius: 16px;
  padding: 16px 20px; margin: 0 0 1.4em;
}
.articleBox .balloon2 { border-radius: var(--box-rod); }
.articleBox .balloon.rd,
.articleBox .balloon2.rd { background: #fdecec; border-color: #f2a8a8; }
.articleBox .balloon::after {
  content: ''; position: absolute; left: 32px; bottom: -12px;
  border: 12px solid transparent; border-top-color: #8fd6a5;
}
.articleBox .balloon.rd::after { border-top-color: #f2a8a8; }
.articleBox .balloon p:last-child,
.articleBox .balloon2 p:last-child { margin-bottom: 0; }

/* ステップリスト（新規デザイン。stepBox=横並び2件専用／stepBox2=縦並び3件以上） */
.articleBox ul.stepBox,
.articleBox ul.stepBox2 { margin: 0 0 1.4em; counter-reset: step; }
.articleBox ul.stepBox { display: flex; flex-wrap: wrap; gap: 16px; }
.articleBox ul.stepBox2 { display: flex; flex-direction: column; gap: 12px; }
.articleBox ul.stepBox li,
.articleBox ul.stepBox2 li {
  list-style: none; counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--box-rod);
  padding: 16px 18px 16px 52px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.articleBox ul.stepBox li { flex: 1 1 260px; }
.articleBox ul.stepBox li::before,
.articleBox ul.stepBox2 li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--main); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   コンテンツ詳細ページ（src/Views/public/content/detail.php）
   old: system_parts/layout_block/contents/main/body_layout_0101.php 踏襲
   （コメント／いいね／お気に入り／執筆者ボックスは対象外）
   ============================================================ */

/* ヒーロービジュアル（old: con_visual 踏襲） */
.article-hero { margin-bottom: 24px; }
.article-hero img { width: 100%; border-radius: var(--box-rod); aspect-ratio: 21/9; object-fit: cover; }

/* 前後記事ページャー（old: con_nblink / .NBLinkBt 踏襲。
   「次の記事」だけ丸い顔写真（吹き出し込み・old: btn-img.png踏襲）付きにする。
   管理画面修正点0905より、SNSシェアは削除済み。 */
.article-pager {display: flex;align-items: center;justify-content: space-around;gap: 12px;margin: 32px 0;}
.article-pager > a, .article-pager > span {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  position: relative;
}
.article-pager-prev { border: 2px solid var(--glnv-txt); color: var(--glnv-txt); }
.article-pager-next { border: 2px solid var(--main); color: var(--main); }
.article-pager-next-avatar {width: 55px;height: auto;object-fit: contain;position: absolute;left: 4px;bottom: 0px;}
.article-pager-label { display: block; font-size: 13px; font-weight: 700; }
@media (max-width: 540px) {
  .article-pager {/* flex-direction: column; */}
}

@media (max-width: 540px) {
  .article-pager > a, .article-pager > span {
    min-width: 10px;
    padding: 14px 10px;
  }
  .article-pager-label{
    font-size: 11px;
  }
  .article-pager-next-avatar{
    width: 50px;
  }
}

/* 関連記事（old: con_kanren_title + con_list_002 踏襲） */
.related-articles { margin: 40px 0 20px; }

/* ============================================================
   コンテンツ一覧カード（old: HtmlPartsArticle::printList / .ListMainTitle / .distxt 踏襲）
   category_list.php（archive/text両方）・archive_list.php・index.php 共通で使用。
   old側はCSSでサムネイルを非表示にしているが、thaigoはサムネイル運用前提のため表示する。
   ============================================================ */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 28px; }
.content-card {
  display: block; color: inherit;
  background: var(--card-bg); border-radius: var(--box-rod);
  box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden;
}
.content-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: #f1e8dc; }
.content-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-card-body { padding: 14px 16px 16px; }
.content-card-title {
  margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #000;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.content-card-excerpt {
  margin: 0 0 8px; font-size: 12.5px; color: #666; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.content-card-date { margin: 0; font-size: 11.5px; color: #a89b8c; }

/* text型一覧・関連記事などの横並びリスト行版（old: ListType4 1カラム相当）。
   各行を白背景のカードにする（管理画面修正点0905より。以前は背景無しの素の行だった）。 */
.content-list-row {
  display: flex; gap: 16px; align-items: center;
  background: var(--card-bg); border-radius: var(--box-rod);
  padding: 14px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.content-list-row + .content-list-row { margin-top: 12px; }
.content-list-row .content-card-thumb { width: 120px; flex-shrink: 0; border-radius: var(--box-rod); }
.content-list-row .content-card-body { flex: 1; min-width: 0; padding: 0; }
@media (max-width: 540px) {
  .content-list-row .content-card-thumb { width: 88px; }
}

/* 行アイコン（old: .column.col0:before contents-icon.png 踏襲）。
   サムネイル未設定の行の先頭に付く再生アイコン。既定=オレンジ、カテゴリごとに色違いを重ねる。 */
.content-list-row-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: url(/images/main/contents-icon.png) no-repeat center / contain;
}
.content-list-row-icon.is-pink   { background-image: url(/images/main/contents-icon2.png); }
.content-list-row-icon.is-purple { background-image: url(/images/main/contents-icon3.png); }
.content-list-row-icon.is-gray   { background-image: url(/images/main/contents-icon4.png); }
@media (max-width: 540px) {
  .content-list-row-icon { width: 36px; height: 36px; }
}

/* ページネーション（old: HtmlParts::printPageSelectGetParam / .PageNum_link 踏襲） */
.pager-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0; }
.pager-nav a,
.pager-nav span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 50%;
  font-size: 13px; border: 1px solid var(--link-txt); color: var(--link-txt);
}
.pager-nav a:hover { opacity: .7; }
.pager-nav .is-current { background: var(--main-c); border-color: var(--main-c); color: #fff; font-weight: 700; }
.pager-nav .is-disabled { opacity: .3; pointer-events: none; }

