@charset "utf-8";

:root {
  /* 色・境界線などの共通の変数は reset.css（全画面共通）にある。ここはPCだけで値が違うもの */
  /* シャドウ */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 28px rgba(45, 86, 163, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

.sp-only {
  display: none !important;
}

html {
  overflow-x: clip;
}

body {
  min-width: 1040px;
  margin: 0;
  padding: 0 !important;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.inner {
  width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

a {
  color: var(--c-main);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.adsWrap {
  margin: 42px auto 36px;
  width: 100%;
  box-sizing: border-box;
}

.adsWrap .inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 28px 20px 16px;
  position: relative;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.adsWrap .inner::before {
  content: 'スポンサーリンク / 広告';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.06em;
}

/* Google広告（AdSense）の完全除外 */
.adsWrap,
.mys-wrapper,
#mys-wrapper,
.adsbygoogle,
ins.adsbygoogle,
.google-auto-placed,
iframe[id^="google_ads_iframe"],
iframe[id^="aswift"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* == parts ============================================== */
.section-title-wrap {
  text-align: center;
  margin: 40px auto 25px;
}

.section-lead-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-main);
  background: var(--c-main-light);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.section-lead-badge.secondary {
  color: var(--c-sub);
  background: var(--c-sub-light);
}

.main-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.title_base {
  border-left: solid 5px var(--c-main);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
  padding: 2px 0 2px 14px;
  margin: 0 0 12px 0;
  border-radius: 2px;
}

.title_base.sub {
  border-left-color: var(--c-main);
}

.title_base.second {
  border-left-color: var(--c-sub);
}

.text_link {
  color: var(--c-main);
  text-decoration: underline;
  font-weight: 600;
}

.text_link:hover {
  opacity: 0.8;
}

/* == Header & Global Navigation =========================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .header-inner {
  padding: 12px 0 0;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
}

.h-title {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.h-title a {
  color: var(--c-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.h-title a:hover {
  color: var(--c-main-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.h-pricing {
  margin: 0;
}

.h-pricing a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.h-pricing a:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.h-contact {
  margin: 0;
}

.h-contact a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--c-main);
  line-height: 1;
  padding: 9px 18px;
  border-radius: 30px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.h-contact a:hover {
  background: var(--c-main-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-trigger {
  display: none;
}

/* Global Nav (PC) */
.global-nav {
  border-top: 1px solid var(--c-border);
  background: #ffffff;
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  flex: 1;
  text-align: center;
}

.nav-item-header {
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--c-main);
  border-bottom-color: var(--c-main);
  background-color: var(--c-main-light);
}

.sp-accordion-toggle {
  display: none;
}

.sp-nav-footer {
  display: none;
}

/* PC Dropdown Menu */
.sub-menu-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-main);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1010;
}

.nav-item:hover .sub-menu-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 左端メニューのはみ出し防止 */
.nav-item:first-child .sub-menu-wrap {
  left: 0;
  transform: translateY(8px);
}

.nav-item:first-child:hover .sub-menu-wrap {
  transform: translateY(0);
}

/* 右端メニューのはみ出し防止（ナビは3項目：一次試験対策／二次試験対策／特集。真ん中は中央に出す） */
.nav-item:last-child .sub-menu-wrap {
  left: auto;
  right: 0;
  transform: translateY(8px);
}

.nav-item:last-child:hover .sub-menu-wrap {
  transform: translateY(0);
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-menu li {
  text-align: left;
}

.sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background: var(--c-main-light);
  color: var(--c-main);
  padding-left: 22px;
}

.icon-blank {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 8px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.15s ease;
}

.sub-menu li a:hover .icon-blank {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d56a3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

/* == Footer ============================================== */
.site-footer {
  background: #1e293b;
  color: #ffffff;
  padding: 40px 0 25px;
}

.footer-inner {
  text-align: center;
}

.f-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.f-links-row {
  display: flex;
  align-items: center;
  gap: 25px;
}

.f-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.f-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .footer-disclaimer {
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 12px;
}

.site-footer .copyright {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin: 0;
}

/* 広告（アフィリエイトリンク）の表示 */
.pr-label {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  background: #64748b;
  color: #ffffff;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.pr-note {
  color: #333333;
  font-size: 0.8em;
  line-height: 1.6;
  margin-top: 0.5em;
}

.pr-note .pr-label {
  margin-left: 0;
  margin-right: 0.4em;
}

/* ページトップボタン */
.pagetop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  background: var(--c-main);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(45, 86, 163, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 999;
}

.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.pagetop-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(45deg) translate(2px, 2px);
}

@media print {

  /* tasting-game は共通のヘッダーを使わない独立した画面で、<header> は画面の上部の帯（2026-11-20 から共通の CSS を読み込むため、ここで外す） */
  :where(body:not(.pg-tasting-game)) header,
  footer,
  .btn_back,
  .btn-box,
  .area_taisaku,
  .pagetop,
  .adsWrap,
  .block_main .taste-att,
  .btn_print,
  .guidance-disclaimer-card,
  .kikizake-tool-card,
  .shochu-notice-box {
    display: none !important;
  }
}

/* == Frontpage Hero ====================================== */
.block_front-head {
  background: linear-gradient(180deg, var(--c-main-bg) 0%, #ffffff 100%);
  padding: 45px 0 35px;
  border-bottom: 1px solid var(--c-border);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.hero-badge {
  display: inline-block;
  background: var(--c-sub);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.block_front-head .main-head {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.block_front-head .lead {
  font-size: 1.02rem;
  color: var(--c-text);
  line-height: 1.8;
  margin: 0 0 25px;
}

.hero-quick-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.hero-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-nav-btn.btn-primary {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
}

.hero-nav-btn.btn-secondary {
  background: linear-gradient(135deg, var(--c-sub) 0%, var(--c-sub-dark) 100%);
}

.hero-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.06);
}

.hero-nav-btn .btn-sub {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 2px;
}

.hero-nav-btn .btn-main {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* News Card */
.news-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.news-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.news-icon {
  background: var(--c-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.news-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text);
}

.list_news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list_news li {
  display: flex;
  align-items: baseline;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--c-text);
  border-bottom: 1px dashed #f1f5f9;
}

.list_news li:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--c-text-sub);
  margin-right: 15px;
  flex-shrink: 0;
}

.news-text {
  flex: 1;
}

.news-text a {
  color: var(--c-main);
  text-decoration: underline;
  font-weight: 600;
}

/* == 一次試験セクション ==================================== */
.area_first {
  padding: 20px 0 40px;
}

.area_first .lead {
  text-align: center;
  color: var(--c-text);
  font-size: 0.98rem;
  margin: 0 0 30px;
  line-height: 1.7;
}

.question-set {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.set-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.badge-primary {
  background: var(--c-main-light);
  color: var(--c-main);
}

.badge-secondary {
  background: var(--c-sub-light);
  color: var(--c-sub);
}

.badge-recommend {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  border: 1px solid var(--c-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* 基本4択問題・過去問題リスト */
.list_question {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list_question.list-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.list_question.list-primary li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(45, 86, 163, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.list_question.list-primary li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 86, 163, 0.35);
  filter: brightness(1.06);
  color: #ffffff;
}

.quiz-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quiz-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-left: 10px;
}

.quiz-tag.highlight {
  background: var(--c-accent);
  color: #ffffff;
}

.quiz-note {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-left: 10px;
  flex-shrink: 0;
}

/* 章別 4択問題（グリッド配置） */
.list_question.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.list_question.list-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border: 1.5px solid var(--c-main);
  color: var(--c-main);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 0.2s ease;
}

.list_question.list-grid li a::after {
  content: '→';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-main);
  transition: transform 0.2s ease;
}

.list_question.list-grid li a:hover {
  background: var(--c-main);
  color: #ffffff;
  transform: translateX(2px);
}

.list_question.list-grid li a:hover::after {
  color: #ffffff;
  transform: translateX(4px);
}

/* 特集・情報集・ペアリング カード */
.list_subMenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list_subMenu li {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.sub-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sub-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-sub);
  background: var(--c-sub-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.list_subMenu li h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  line-height: 1.4;
}

.list_subMenu li p {
  font-size: 0.86rem;
  color: var(--c-text-sub);
  margin: 0 0 16px;
  line-height: 1.5;
  flex-grow: 1;
}

/* .btn_subMenu のスタイルは下部（デザインシステム新UI）にて一元定義 */

/* == 二次試験セクション ==================================== */
.area_second {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: 40px 0 50px;
  margin-top: 30px;
}

.area_second .lead {
  text-align: center;
  color: var(--c-text);
  font-size: 0.98rem;
  margin: 0 0 35px;
  line-height: 1.7;
}

.tasting-info-box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.taste-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-sub);
  margin: 0 0 16px;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.taste-grid-item h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--c-main-light);
}

.taste-grid-item ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--c-text-sub);
  line-height: 1.6;
}

.btn_wrap {
  display: flex;
  gap: 16px;
}

.btn_wrap .btn_subMenu {
  flex: 1;
}

/* 論述試験カード */
.ronjutsu-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.ronjutsu-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-sub);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.ronjutsu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ronjutsu-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-sub);
}

.btn-pdf-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--c-sub);
  padding: 5px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-pdf-link:hover {
  background: var(--c-sub-dark);
  color: #ffffff;
}

.list_disc {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.7;
}

.ronjutsu-archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.ronjutsu-card-sub {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.ronjutsu-card-sub .ronjutsu-year {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}

.ronjutsu-card-sub .list_disc {
  font-size: 0.84rem;
  color: var(--c-text-sub);
}

/* == お楽しみ・実践ツールエリア（息抜き・遊び・実践） ======= */
.section-lead-badge.extra {
  color: var(--c-accent-dark);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent);
}

.area_extra {
  background: linear-gradient(180deg, #ffffff 0%, var(--c-main-light) 100%);
  border-top: 1px solid var(--c-border);
  padding: 45px 0 50px;
}

.area_extra .lead {
  text-align: center;
  color: var(--c-text);
  font-size: 0.98rem;
  margin: 0 0 35px;
  line-height: 1.7;
}

.extra-block {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.extra-block-head {
  margin-bottom: 20px;
}

.extra-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-accent-dark);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  padding: 2px 10px;
  border-radius: 14px;
  margin-bottom: 6px;
}

.extra-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  border-left: 4px solid var(--c-accent);
  padding-left: 12px;
  line-height: 1.35;
}

.extra-desc {
  font-size: 0.92rem;
  color: var(--c-text-sub);
  margin: 0;
  line-height: 1.6;
}

.extra-block .list_game {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.extra-block .list_game li {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.extra-block .list_game .textBox {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.extra-block .game_name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 10px;
  line-height: 1.4;
}

.extra-block .game_text {
  font-size: 0.88rem;
  color: var(--c-text-sub);
  margin: 0 0 16px;
  line-height: 1.65;
  flex: 1;
}

.extra-block .game_link {
  margin-bottom: 16px;
}

.extra-block .game_link a {
  display: inline-block;
  background: var(--c-accent);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.extra-block .game_link a:hover {
  background: var(--c-accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.extra-block .list_game .imgBox {
  margin-top: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.extra-block .list_game .imgBox a {
  display: block;
}

.extra-block .list_game .imgBox img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.extra-block .list_game .imgBox a:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

/* == おすすめ参考書籍・グッズ ======================== */
.aside-amazon {
  padding: 45px 0 55px;
  border-top: 1px solid var(--c-border);
  background: #ffffff;
}

.list_amazon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list_amazon li {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.list_amazon .frame {
  width: 115px;
  flex-shrink: 0;
}

.list_amazon .frame a {
  display: block;
}

.list_amazon .frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.amazon-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.amazon-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 8px;
  line-height: 1.4;
}

.amazon-content .desc {
  font-size: 0.86rem;
  color: var(--c-text-sub);
  margin: 0 0 16px;
  line-height: 1.6;
}

.btn_amazon {
  margin-top: auto;
}

.btn_amazon a {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn_amazon a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn_amazon a img {
  height: 26px;
  width: auto;
  vertical-align: middle;
  border: none;
  box-shadow: none;
}


/* == Underpage Common & Quiz Styles ==================== */
.block_page-title {
  background: linear-gradient(180deg, var(--c-main-bg) 0%, #ffffff 100%);
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  margin-bottom: 24px;
}

.page-title-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-main);
  background: var(--c-main-light);
  border: 1px solid rgba(45, 86, 163, 0.2);
  padding: 2px 12px;
  border-radius: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.page-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* 過去問リスト（現在は未使用。2017・2021年の過去問ページは backup/ へ移動済み） */
.answer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-main);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-main);
}

.list_form {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.list_form>li {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.list_form>li:target {
  border-color: var(--c-main);
  box-shadow: 0 0 0 2px rgba(45, 86, 163, 0.2);
}

.list_form .question {
  padding: 26px 18px 12px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  background: var(--c-bg-alt);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-text);
}

.list_form .number {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 12px;
  border-radius: 0 0 8px 0;
  background: var(--c-main);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  border: none;
  z-index: 1;
}

.list_form .number::before {
  content: '第';
  font-size: 0.68rem;
  font-weight: 700;
  margin-right: 1px;
}

.list_form .number::after {
  content: '問';
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 1px;
}

.list_label {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  list-style: none;
}

.list_label li {
  display: flex;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.list_label li label {
  cursor: pointer;
  font-size: 0.86rem;
  /* 1px縮小（約13.8px） */
  font-weight: 600;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  transition: all 0.18s ease;
  box-sizing: border-box;
  line-height: 1.45;
  word-break: break-word;
}


.list_label li input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--c-main);
  cursor: pointer;
}

/* 解答詳細画面（page-answer.php） */
.list_form.form-answer .list_label li {
  font-size: 0.86rem;
  /* 1px縮小 */
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  box-sizing: border-box;
}

.list_form.form-answer .list_label li.correct {
  color: var(--c-main);
  background: var(--c-main-light);
  font-weight: 700;
}

.list_form.form-answer .list_label li.correct::before {
  content: '◯ ';
  font-weight: 800;
}

.list_form.form-answer .list_label li.select {
  color: var(--c-sub);
  background: var(--c-sub-light);
  font-weight: 700;
  text-decoration: line-through;
}

.list_form.form-answer .list_label li.select::before {
  content: '× ';
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}

.list_form.form-answer .list_label li.answer {
  color: #059669;
  background: #ecfdf5;
  font-weight: 700;
}

.list_form.form-answer .list_label li.answer::before {
  content: '★正解: ';
}

.list_form.form-answer .list_label li.ex {
  grid-column: 1 / -1;
  background: var(--c-main-light);
  border-left: 4px solid var(--c-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--c-text);
  margin-top: 8px;
  line-height: 1.6;
}

/* 送信ボタン（解答する） */
input[type="submit"] {
  display: block;
  width: 280px;
  margin: 40px auto;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 86, 163, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.05em;
}


/* 解答・採点結果テーブル（page-answer.php） */
.block_answer {
  padding: 10px 0 50px;
}

.table_answer {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table_answer th {
  background: var(--c-main);
  color: #ffffff;
  padding: 10px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.table_answer td {
  padding: 10px 6px;
  border: 1px solid var(--c-border);
  text-align: center;
  background: #ffffff;
}

.table_answer td a {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.table_answer td a:hover {
  transform: scale(1.2);
}

.table_answer td a.maru {
  color: var(--c-main);
}

.table_answer td a.batu {
  color: var(--c-sub);
}

.answer-result {
  max-width: 860px;
  margin: 20px auto;
  background: linear-gradient(135deg, var(--c-main-bg) 0%, #ffffff 100%);
  border: 2px solid var(--c-main);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-main);
  box-shadow: var(--shadow-sm);
}

.answer-result small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-sub);
  display: block;
  margin-top: 6px;
}

.example-color {
  max-width: 860px;
  margin: 0 auto 24px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
}

.example-color span.correct {
  color: var(--c-main);
  font-weight: 700;
}

.example-color span.select {
  color: var(--c-sub);
  font-weight: 700;
}

.example-color span.answer {
  color: #059669;
  font-weight: 700;
}

/* ======
4択問題演習（#page_random）- PC1画面収まり＆縦中央最適化
======*/
#page_random {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#page_random .site-footer,
.block_random-base ~ .site-footer,
main:has(.block_random-base) + .site-footer {
  margin-top: 0;
}

#page_random main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#page_random .block_page-title {
  padding: 24px 0 18px;
  margin-bottom: 0;
  flex-shrink: 0;
}

#page_random .block_random-base {
  background: var(--c-bg-alt);
  padding: 24px 0 36px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* 章別4択：この章の集中復習（review/?stage=N）への導線 */
#page_random .stage-weak-link {
  margin: 28px auto 0;
  max-width: 520px;
  text-align: center;
}
#page_random .stage-weak-link a {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #ea580c;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease;
}
#page_random .stage-weak-link a:hover {
  background: #ffedd5;
}
#page_random .stage-weak-link p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #333333;
}

#page_random .block_random-base .inner {
  width: 760px;
  max-width: 94%;
  margin: auto;
}


.block_random-base #quizArea {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-main);
  border-radius: var(--radius-md);
  padding: 28px 20px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.block_random-base .quizeText {
  line-height: 1.5;
}

.block_random-base .quizeText #quiz {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: 0;
}

.block_random-base .quizeText #source {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--c-sub);
  padding: 4px 12px;
  border-radius: 0 var(--radius-md) 0 var(--radius-sm);
  line-height: 1.2;
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.block_random-base .quizeText #source:empty {
  display: none;
}

.block_random-base #ansArea ul {
  counter-reset: choice-counter;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block_random-base #ansArea .select {
  counter-increment: choice-counter;
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 18px 11px 48px;
  background: #ffffff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  min-height: 42px;
  box-sizing: border-box;
}

.block_random-base #ansArea .select::before {
  content: counter(choice-counter);
  position: absolute;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-main-light);
  color: var(--c-main);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}


/* 正解/不正解 モーダル */
.block_random-base #mask {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  opacity: 1;
  visibility: visible;
}

.block_random-base #mask.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.block_random-base #modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  width: 90%;
  max-width: 460px;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--c-border);
  z-index: 1001;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
}

.block_random-base #modal.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%);
  pointer-events: none;
}

.block_random-base #result {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--c-sub);
  letter-spacing: 0.04em;
}

.block_random-base #result span.correct {
  color: var(--c-main);
}

.block_random-base #ans-box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-main);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 12px;
  text-align: left;
}

.block_random-base #ans-box .ans-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c-text-sub);
  display: block;
  margin-bottom: 2px;
}

.block_random-base #ans {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-text);
}

.block_random-base #score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text-muted);
  margin: 0 0 16px;
  position: static;
}

.block_random-base #close {
  display: inline-block;
  cursor: pointer;
  min-width: 180px;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(45, 86, 163, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  letter-spacing: 0.04em;
}


/* 4択問題ページ内の広告余白を適正化 */
#page_random .adsWrap {
  margin: 32px auto 28px;
}

/* ======
結果画面（#page_result）
======*/
#page_result {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 60px;
  text-align: center;
  box-sizing: border-box;
}

#page_result #score {
  background: linear-gradient(135deg, var(--c-main-bg) 0%, #ffffff 100%);
  border: 2px solid var(--c-main);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 0 auto 35px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(45, 86, 163, 0.08);
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

#page_result #quizScoreText {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-main);
  letter-spacing: 0.02em;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
}

.history-area {
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.history-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text);
  border-bottom: 2px solid var(--c-main);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}

.history-item:last-child {
  border-bottom: none;
}

.history-q {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.history-mark {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 8px;
}

.mark-correct {
  background-color: var(--c-main);
}

.mark-incorrect {
  background-color: var(--c-sub);
}

.history-a,
.history-c {
  margin: 6px 0;
  font-size: 0.92rem;
}

.text-correct {
  color: var(--c-sub);
  font-weight: 700;
}

.text-incorrect {
  color: var(--c-text-muted);
  text-decoration: line-through;
}

.history-source {
  font-size: 0.78rem;
  color: var(--c-sub);
  background: var(--c-sub-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 8px;
}

.btn-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px auto 20px;
  width: 100%;
}

.btn-box .btn_base {
  width: auto;
  margin: 0;
  border: none;
}

.btn-box .btn_base a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
  border: none;
  box-sizing: border-box;
}

.btn-box .btn_base.btn_back a {
  background: linear-gradient(135deg, var(--c-sub) 0%, var(--c-sub-dark) 100%);
  color: #ffffff !important;
}

.btn-box .btn_base.btn_home a {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff !important;
}

.btn-box .btn_base a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}



.btn_print {
  width: 300px;
  margin: 50px auto;
  color: #fff;
  text-align: center;
  transition: all .3s;
  overflow: hidden;
}

.btn_print input[type="button"] {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: solid 1px #000;
  border-radius: 6px;
  background: #fff;
}

/* ======
page-name #list & #history
======*/
.yougo-text {
  text-align: center;
  margin: 10px auto 30px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-main-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-main);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  max-width: 800px;
}

.yougo-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.yougo-wrap .dl_yougo {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.yougo-wrap .dl_yougo dt {
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-main);
  border-bottom: 1px solid var(--c-border);
  border-left: 4px solid var(--c-main);
  line-height: 1.4;
  background: linear-gradient(135deg, var(--c-main-bg) 0%, #ffffff 100%);
  margin: 0;
}

.yougo-wrap .dl_yougo dd {
  padding: 18px 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0;
  flex-grow: 1;
}

.yougo-wrap .dl_yougo dd p {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

.list_yougo {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list_yougo li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 8px;
  line-height: 1.6;
}

.list_yougo li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--c-main);
  font-size: 0.7em;
  top: 0.2em;
}

.list_yougo.decimal {
  counter-reset: decimal-counter;
}

.list_yougo.decimal li {
  counter-increment: decimal-counter;
  padding-left: 2em;
}

.list_yougo.decimal li::before {
  content: counter(decimal-counter) '.';
  font-size: 0.9em;
  font-weight: 700;
  color: var(--c-main);
  top: 0;
}

.yougo-wrap .dl_yougo a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-main);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.yougo-wrap .dl_yougo a:hover {
  opacity: 0.8;
}

.table-yougo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0 6px;
}

.table-yougo tr:first-child td {
  background: var(--c-main-bg);
  color: var(--c-main);
  font-weight: 800;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--c-border);
  padding: 8px 12px;
}

.table-yougo td {
  padding: 7px 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--c-border-light);
  border-right: 1px solid var(--c-border-light);
}

.table-yougo tr td:last-child {
  border-right: none;
}

.table-yougo tr:last-child td {
  border-bottom: none;
}

.table-yougo tr:nth-child(even):not(:first-child) {
  background: var(--c-bg-alt);
}

/* 日本酒年表 (history) */
.table-year {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 20px 0 40px;
}

.table-year th {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 18px;
  border: none;
  text-align: left;
}

.table-year tr:nth-child(even) {
  background-color: var(--c-bg-alt);
}

.table-year td {
  border-bottom: 1px solid var(--c-border-light);
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  vertical-align: top;
  color: var(--c-text);
}

.table-year tr:last-child td {
  border-bottom: none;
}

.table-year td:nth-child(1) {
  font-weight: 800;
  color: var(--c-main);
  width: 22%;
  white-space: nowrap;
  font-size: 0.95rem;
}

.table-year td:nth-child(2) {
  width: 63%;
}

.table-year td.pageNumber {
  width: 15%;
  text-align: right;
  color: var(--c-sub);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.table-year .koubo {
  background: rgba(241, 141, 0, 0.08) !important;
  border-left: 3px solid var(--c-accent);
}

.main-title+.lead {
  text-align: center;
  margin: 0 0 1em;
}

.dl-policy+.dl-policy {
  margin: 30px 0 0;
}

.dl-policy dt {
  font-weight: 600;
  margin: 0 0 5px;
}

.dl-policy dd {
  font-size: 88%;
}

/* 2020年の .f-links・.text_link の旧指定は、上の現行の指定（フッター・本文リンク）を上書きしていたため削除（2026-10-29） */

.block_front-head {
  margin: 0 0 70px;
}

.block_front-head .main-head {
  text-align: center;
  font-size: 250%;
  margin: 0 0 30px;
}

.block_front-head .lead {
  text-align: center;
  margin: 0 0 30px;
}

.list_news {
  background: aliceblue;
  padding: 15px;
  max-width: 750px;
  margin: auto;
}

.list_second-edition {
  border: solid 2px #eee;
  border-radius: 4px;
  background: #f5f5f5;
  padding: 30px;
  margin: 35px 0 15px;
}

.list_second-edition li {
  list-style: disc;
  line-height: 2;
}

hr.hr {
  margin: 30px 0;
}

.amazon-bnr {
  text-align: center;
}

/* ======
page-name #meigara & #sheet
======*/
/* 二次試験過去問題 (meigara) */
.meigara-section {
  margin: 35px 0 45px;
}

.meigara-info-box {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0 24px;
}

.meigara-info-box .info-lead {
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--c-text);
}

.score-ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0 12px;
}

.score-ratio-grid .ratio-item {
  background: var(--c-main-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-ratio-grid .ratio-item.highlight {
  background: rgba(241, 141, 0, 0.08);
  border-color: rgba(241, 141, 0, 0.3);
}

.ratio-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-muted);
}

.ratio-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-main);
}

.score-ratio-grid .ratio-item.highlight .ratio-value {
  color: var(--c-accent);
}

.ratio-note {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  margin: 8px 0 0;
}

/* 4大判定ポイント */
.meigara-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}

.point-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.point-card.full {
  grid-column: span 2;
  border-left: 4px solid var(--c-accent);
}

.point-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-num {
  background: var(--c-main);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.point-card.full .point-num {
  background: var(--c-accent);
}

.point-card p {
  font-size: 0.88rem;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0;
}

/* 年度ブロック */
.year-block {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.year-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-main);
  border-left: 4px solid var(--c-main);
  padding-left: 12px;
  margin: 0 0 16px;
}

.question-box {
  background: var(--c-main-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 14px;
}

.question-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--c-main);
  margin: 0 0 8px;
}

.question-box ul {
  list-style: disc;
  margin: 0 0 0 1.2em;
  padding: 0;
}

.question-box li {
  font-size: 0.88rem;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 論述テーブル */
.ronjutsu-table-wrap {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 16px 0 30px;
}

.table_ronjutsu {
  width: 100%;
  border-collapse: collapse;
}

.table_ronjutsu th {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 18px;
  text-align: left;
}

.table_ronjutsu td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 0.9rem;
  line-height: 1.65;
  vertical-align: top;
}

.table_ronjutsu tr:last-child td {
  border-bottom: none;
}

.table_ronjutsu tr:nth-child(even) {
  background-color: var(--c-bg-alt);
}

.table_ronjutsu .ronjutsu-year {
  font-weight: 800;
  color: var(--c-main);
  white-space: nowrap;
  width: 15%;
}

.ronjutsu-list {
  list-style: disc;
  margin: 0 0 0 1.2em;
  padding: 0;
}

.ronjutsu-list li {
  margin-bottom: 4px;
}

.sheet-link-box {
  background: var(--c-main-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 35px 0 25px;
}

.sheet-link-box p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 14px;
}

.btn_sheet a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #e07d00 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(241, 141, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn_sheet a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(241, 141, 0, 0.4);
}

.list_meigara {
  counter-reset: meigara-counter;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.list_meigara li {
  counter-increment: meigara-counter;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.list_meigara li::before {
  content: counter(meigara-counter);
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* テイスティング用語選択用紙 (sheet) */
.table_taste {
  width: 100%;
  margin: 30px 0;
}

.table_taste caption {
  text-align: center;
  font-size: 150%;
  font-weight: 600;
  margin: 0 0 10px;
}

.table_taste th {
  border: solid 1px #ccc;
  padding: 8px;
  width: 14%;
}

.table_taste td {
  border: solid 1px #ccc;
  padding: 8px;
}

.table_taste .short {
  width: 12%;
}

.list_taste {
  overflow: hidden;
  font-size: 85%;
}

.list_taste li {
  float: left;
  width: calc(25% - 1.9em);
  list-style: decimal;
  margin: 0 0 0 1.8em;
}

.table_taste.mohan .list_taste {
  color: #333333;
}

.table_taste .choice {
  font-weight: 600;
  color: blue;
}

/* 印刷ボタン */
.btn_print {
  width: 300px;
  margin: 50px auto;
  color: #fff;
  text-align: center;
  transition: all .3s;
  overflow: hidden;
}

.btn_print input[type="button"] {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: solid 1px #000;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* 単体の戻るボタン (.btn_back) */
.btn_back {
  text-align: center;
  margin: 30px auto;
}

.btn_back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn_back a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

/*----------------------------------------------------*/
.pairing-set+.pairing-set {
  margin: 80px 0 0;
}

.table_pairing {
  table-layout: fixed;
  width: 100%;
  border: solid 1px #191970;
  font-size: 88%;
}

.table_pairing+.table_pairing {
  margin: 50px 0 0;
}

.table_pairing caption {
  text-align: left;
  padding: 10px 20px;
  background: #191970;
  color: #fff;
  font-size: 125%;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.table_pairing th {
  text-align: left;
  padding: 1% 2%;
  border: solid 1px #191970;
  box-sizing: border-box;
  width: 50%;
  background: #eee;
}

.table_pairing th.temp {
  width: 20%;
}

.table_pairing td {
  text-align: left;
  padding: 1% 2%;
  border: solid 1px #191970;
  box-sizing: border-box;
}

.list_pairing {
  list-style: disc;
  margin: 0 0 0 1em;
  font-size: 115%;
}

/**/
.list_subMenu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: none;
  margin-top: 14px;
}

.list_subMenu>li {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 20px;
  background: #fafafa;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.list_subMenu>li:nth-child(2n) {
  border-left: 1.5px solid #e2e8f0;
}

/* 特集カード（グリーン） */
.list_subMenu.list-feature>li {
  border-color: #d1fae5;
  background: #f0fdf4;
}

/* 情報集カード（パープル） */
.list_subMenu.list-info>li {
  border-color: #ede9fe;
  background: #fbfbfe;
}

/* ペアリングカード（ローズ・ワイン） */
.list_subMenu.list-pairing-cards>li {
  border-color: #ffe4e6;
  background: #fff5f6;
}

/* テイスティング実戦攻略カード（ブルー・ピンク） */
.list_subMenu.list-tasting-practice>li:nth-child(1) {
  border-color: #bfdbfe;
  background: #f8faff;
}
.list_subMenu.list-tasting-practice>li:nth-child(1) h4::before {
  background: #2563eb;
}
.list_subMenu.list-tasting-practice>li:nth-child(1) .btn_subMenu a {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.list_subMenu.list-tasting-practice>li:nth-child(1) .btn_subMenu a:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.42);
}

.list_subMenu.list-tasting-practice>li:nth-child(2) {
  border-color: #fbcfe8;
  background: #fff8fc;
}
.list_subMenu.list-tasting-practice>li:nth-child(2) h4::before {
  background: #db2777;
}
.list_subMenu.list-tasting-practice>li:nth-child(2) .btn_subMenu a {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  box-shadow: 0 3px 10px rgba(219, 39, 119, 0.28);
}
.list_subMenu.list-tasting-practice>li:nth-child(2) .btn_subMenu a:hover {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 5px 14px rgba(219, 39, 119, 0.42);
}

.list_subMenu>li h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  position: relative;
  padding: 0 0 0 14px;
}

.list_subMenu>li h4::before {
  content: '';
  width: 4px;
  height: 100%;
  background: #4169e1;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border-radius: 2px;
}

.list_subMenu.list-feature>li h4::before {
  background: #059669;
}

.list_subMenu.list-info>li h4::before {
  background: #7c3aed;
}

.list_subMenu.list-pairing-cards>li h4::before {
  background: #e11d48;
}

.list_subMenu>li p {
  font-size: 0.90rem;
  color: #333333;
  line-height: 1.65;
  margin: 0 0 16px;
  min-height: auto;
  flex-grow: 1;
}

.btn_subMenu {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.btn_subMenu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  line-height: 1.4;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.28);
  text-decoration: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn_subMenu a::after {
  content: '→';
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

/* Stretched Link: カード全面をクリッカブル化 */
.list_subMenu>li .btn_subMenu a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* 基本（特集カード等・グリーン） */
.btn_subMenu a:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.42);
  filter: brightness(1.04);
}

.btn_subMenu a:hover::after {
  transform: translateX(3px);
}

/* 情報集ボタン（パープル） */
.list-info .btn_subMenu a {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.28);
}

.list-info .btn_subMenu a:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(124, 58, 237, 0.42);
}

/* ペアリングボタン（ローズ） */
.list-pairing-cards .btn_subMenu a {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.28);
}

.list-pairing-cards .btn_subMenu a:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.42);
}

/* 二次試験概要ボタン */
.btn_wrap {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn_wrap .btn_subMenu {
  display: block;
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.btn_wrap .btn_subMenu a {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  border: 1px solid #475569;
  color: #f8fafc;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

.btn_wrap .btn_subMenu a:hover {
  border-color: #d97706;
  color: #fbbf24;
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.35);
}

.dl_question {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dl_question dt {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.dl_question dd ul.list_disc {
  margin: 0 0 8px 18px;
  color: #333333;
  line-height: 1.6;
}

.dl_question .kaitou {
  margin-top: 8px;
}

.dl_question .kaitou a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dl_question .kaitou a:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.list_disc {
  list-style: disc;
  margin: 0 0 0 1.5em;
}

/**/
.block_contact {
  padding: 30px 0 0;
}

.block_contact .area_lead {
  margin: 0 0 50px;
}

.block_contact .area_lead p+p {
  margin: 10px 0 0;
}

.block_contact .area_lead small {
  font-weight: 700;
}

.list_formExam {
  width: 95%;
  margin: auto;
}

.list_formExam>li {
  padding: 15px 0;
  border-bottom: dotted 1px #999;
}

.list_formExam>li .area_label {
  font-size: 87.5%;
  font-weight: 700;
  margin: 0 0 5px;
}

.block_contact .area_confirm {
  text-align: center;
  margin: 30px 0;
}

.block_contact .area_confirm span {
  display: inline-block;
}

.block_contact .area_confirm label,
.block_contact .area_confirm input {
  display: inline-block;
  width: auto;
}


/* ========================================================
   酒米系譜ツリー（PC用：768px以上）
   ======================================================== */
.title_border {
  font-size: 150%;
  margin: 1em 0 .5em;
  padding: 0 0 .2em;
  border-bottom: solid 2px #333;
}

.sakemai-tree-wrapper {
  background: #fdfdfd;
  border: solid 1px #ccc;
  border-radius: 6px;
  padding: 30px 25px;
  margin: 30px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 親世代 */
.sakemai-tree-wrapper .tree-parents {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.sakemai-tree-wrapper .chip.parent {
  background: #fff;
  border: solid 2px #4169e1;
  color: #191970;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 105%;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sakemai-tree-wrapper .chip.parent small {
  font-size: 80%;
  font-weight: normal;
  color: #333333;
}

.sakemai-tree-wrapper .cross-icon {
  font-weight: bold;
  color: #AB1C20;
  font-size: 130%;
}

/* 接続コネクタ */
.sakemai-tree-wrapper .tree-connector-main {
  text-align: center;
  margin: 10px 0;
}

.sakemai-tree-wrapper .year-badge {
  display: inline-block;
  background: #eee;
  border: solid 1px #ccc;
  color: #333;
  font-size: 85%;
  font-weight: 700;
  padding: 3px 15px;
  border-radius: 15px;
}

.sakemai-tree-wrapper .arrow-down {
  font-size: 14px;
  color: #191970;
  margin-top: 4px;
}

/* 主役カード（山田錦など） */
.sakemai-tree-wrapper .tree-hero-card {
  background: #fff;
  border: solid 2px #191970;
  border-radius: 6px;
  padding: 20px;
  margin: 10px auto 25px;
  box-shadow: 0 3px 8px rgba(25, 25, 112, 0.08);
  text-align: center;
}

.sakemai-tree-wrapper .hero-badge {
  display: inline-block;
  background: #191970;
  color: #fff;
  font-size: 85%;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.sakemai-tree-wrapper .hero-title {
  margin: 0;
  font-size: 160%;
  font-weight: 700;
  color: #191970;
}

.sakemai-tree-wrapper .hero-title .kana {
  font-size: 65%;
  font-weight: normal;
  color: #333333;
}

.sakemai-tree-wrapper .hero-meta {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sakemai-tree-wrapper .hero-desc {
  margin: 8px 0 0;
  font-size: 92%;
  color: #333;
  line-height: 1.6;
}

/* タグ類 */
.sakemai-tree-wrapper .tag {
  display: inline-block;
  font-size: 80%;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.sakemai-tree-wrapper .tag.origin {
  background: #e6e6fa;
  color: #191970;
  border: solid 1px #b0c4de;
}

.sakemai-tree-wrapper .tag.feature {
  background: #f5f5f5;
  color: #333;
  border: solid 1px #ddd;
}

.sakemai-tree-wrapper .tag.pref {
  background: #e0f0ff;
  color: #0044cc;
  border: solid 1px #b8daff;
}

.sakemai-tree-wrapper .tag.year {
  background: #fff3cd;
  color: #856404;
  border: solid 1px #ffeeba;
}

/* 子世代リスト */
.sakemai-tree-wrapper .tree-children-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: dashed 2px #4169e1;
  padding-left: 20px;
  margin-left: 30px;
}

.sakemai-tree-wrapper .child-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sakemai-tree-wrapper .cross-partner {
  background: #f5f5f5;
  border: solid 1px #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 88%;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  min-width: 110px;
  text-align: center;
}

.sakemai-tree-wrapper .cross-partner .mark {
  color: #AB1C20;
  margin-right: 3px;
}

.sakemai-tree-wrapper .branch-arrow {
  color: #4169e1;
  font-size: 14px;
}

.sakemai-tree-wrapper .child-card {
  flex: 1;
  background: #fff;
  border: solid 1px #ccc;
  border-radius: 5px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sakemai-tree-wrapper .child-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sakemai-tree-wrapper .child-name {
  margin: 0;
  font-size: 110%;
  font-weight: 700;
  color: #000;
}

.sakemai-tree-wrapper .child-name .kana {
  font-size: 75%;
  font-weight: normal;
  color: #333333;
}

.sakemai-tree-wrapper .child-desc {
  margin: 0;
  font-size: 88%;
  color: #333;
  line-height: 1.5;
}

.featureSet+.featureSet {
  margin: 3em 0 0;
}

.sake-timeline {
  position: relative;
  padding-left: 20px;
  margin: 25px 0 30px 10px;
  border-left: 3px solid #cbd5e1;
}

.sake-timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.sake-timeline-item::before {
  content: "";
  position: absolute;
  left: -28.5px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.sake-timeline-year {
  font-weight: 900;
  color: #1e293b;
  font-size: 1.05em;
  margin-bottom: 5px;
}

.sake-timeline-year small {
  color: #333333;
  font-weight: normal;
  font-size: 0.85em;
  margin-left: 5px;
}

.sake-timeline-desc {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #333;
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ポイント解説カードのスタイル */
.sake-point-grid {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.sake-point-card {
  background: #f8fafc;
  border-left: 5px solid #f59e0b;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sake-point-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sake-point-header h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1em;
  font-weight: bold;
}

.sake-point-desc {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.6;
  color: #333;
}

.sake-source-ref {
  display: inline-block;
  background: #e2e8f0;
  color: #333333;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: normal;
}

.section-headline {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 1.1em;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 5px;
  display: inline-block;
  font-weight: bold;
}

/* 特集共通：目次クイックナビゲーション */
.shochu-nav-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 36px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.shochu-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shochu-nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.shochu-nav-btn {
  display: block;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a8a !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.shochu-nav-btn:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15);
}

/* セクションバナー */
.section-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 16.5px;
  font-weight: 700;
  margin: 40px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
}
.section-banner .banner-sub {
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* サツマイモ・品種・伝来ルートカード */
.variety-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 28px;
}
.variety-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.variety-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.variety-card-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
  flex-grow: 1;
}

/* ハイライトバッジ */
.highlight-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 9999px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-purple {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.badge-red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge-green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* 比較テーブル */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 28px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13.5px;
}
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
  line-height: 1.65;
}
.compare-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}
.compare-table td {
  color: #1e293b;
}

/* 歴史年表テーブル */
.table-year {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 13.5px;
}
.table-year th,
.table-year td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.7;
}
.table-year th {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}
.table-year tr:last-child td {
  border-bottom: none;
}
.table-year td:first-child {
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  white-space: nowrap;
  vertical-align: top;
}
.table-year .pageNumber {
  color: #333333;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

/* 特集3：都道府県別の特徴 スタイル */
.pref-nav-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 36px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pref-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pref-nav-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}
.pref-nav-group:last-child {
  border-bottom: none;
}
.pref-nav-region {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 95px;
  text-align: center;
}
.pref-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}
.pref-nav-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.pref-nav-btn:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.15);
}

.region-header-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 48px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.2);
}
.region-header-banner .count-badge {
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.ranking-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.ranking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ranking-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ranking-card h4 span {
  font-size: 11.5px;
  font-weight: normal;
  color: #333333;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.ranking-item:last-child {
  border-bottom: none;
}
.ranking-item > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}
.rank-1 { background: #eab308; }
.rank-2 { background: #94a3b8; }
.rank-3 { background: #b45309; }
.rank-other { background: #cbd5e1; color: #333333; }

.toji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.toji-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toji-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
.toji-area {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
}
.toji-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
}

.pref-stat-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.pref-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pref-stat-label {
  font-size: 11px;
  color: #333333;
  font-weight: 600;
}
.pref-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e3a8a;
}

.pref-detail-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pref-detail-section {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pref-detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pref-detail-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pref-detail-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
}

.pref-rice-tag,
.pref-yeast-tag,
.pref-water-tag,
.pref-food-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
.pref-rice-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.pref-yeast-tag {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.pref-water-tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.pref-food-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* 共通コネクタ・ポイントラッパー */
.tree-connector-main .line,
.sakemai-tree-wrapper .tree-connector-main .line {
  width: 2px;
  height: 16px;
  background: #191970;
  margin: 0 auto;
}
.sake-point-wrapper {
  margin-top: 20px;
}
.table-cell {
  vertical-align: middle;
}

/* ==========================================================================
   デッドクリック削減・クリック体験最適化（PC）
   ========================================================================== */

/* 1. ボタン内部のspanによるクリック横取りを防止 */
.hero-nav-btn span,
.btn-quiz-primary span,
.btn-ronjutsu-cta span,
.btn-adv-link span,
.h-mypage a span,
.h-pricing a span,
.btn_amazon span,
.game_link a span {
  pointer-events: none;
}

/* 2. お知らせリスト（news-card）の行全体クリッカブル化 */
.news-card .list_news li {
  position: relative;
  transition: background-color 0.15s ease;
  border-radius: 4px;
}
.news-card .list_news li a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.amazon-content h4 a,
.game_name a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.amazon-content h4 a:hover,
.game_name a:hover {
  color: var(--c-main);
  text-decoration: underline;
}

/* レスポンシブ改行ユーティリティ */
.sp-br {
  display: none !important;
}
.pc-br {
  display: inline !important;
}

/* ==========================================================================
   ここから下は、各ページに埋め込まれていた CSS（2026-11-20 に移動）。
   ページの規則は :where(.pg-ページ名) で区切っている（<body class="pg-…">。優先度は上げない）。
   ========================================================================== */

/* ===== 部品: parts/head.php ===== */
.adsWrap, 
.mys-wrapper, 
#mys-wrapper, 
.adsbygoogle, 
ins.adsbygoogle, 
.google-auto-placed, 
div[id^="aswift_"],
iframe[id^="google_ads_iframe"], 
iframe[id^="aswift"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* AdSense自動広告によるbodyへの強制padding注入を強力にブロック */
html body {
  padding-bottom: 0 !important;
}
@media print, screen and (min-width: 768px) {
  html body {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* ===== 共通部品: ゲートの枠とボタン（cards・review・tasting-mock） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
.card-gate-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  max-width: 560px;
  border: 1.5px solid #e2e8f0;
}
.card-gate-card.premium-gate {
  border: 2px solid #fcd34d;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.12);
}
.badge-gate-exclusive {
  display: inline-block;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.card-gate-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.45;
}
.card-gate-card p {
  color: #333333;
  margin: 0 0 26px;
}
:where(.pg-cards, .pg-review, .pg-tasting-mock) .btn-gate-cta {
  display: block;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
:where(.pg-cards, .pg-review) .btn-gate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}
.btn-gate-primary {
  display: block;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}
:where(.pg-cards, .pg-review) .btn-gate-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}
.btn-gate-sub {
  display: block;
  padding: 11px 18px;
  background: #f1f5f9;
  color: #333333 !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 30px;
  text-decoration: none;
}
:where(.pg-cards, .pg-review) .btn-gate-sub:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

/* ===== 共通部品: 銘柄の補足の枠（meigara・ronjutsu-kakomon） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
.meigara-source-note {
  font-size: 0.85rem;
  color: #333333;
  line-height: 1.7;
  margin: 0 0 20px;
}
.meigara-source-note a {
  color: #2d56a3;
  text-decoration: underline;
}
.meigara-sub-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 26px 22px;
  margin: 40px 0 28px;
  position: relative;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.meigara-sub-box .sub-box-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed #cbd5e1;
}
.meigara-sub-box .sub-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.meigara-sub-box .sub-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
}
.meigara-sub-box .sub-box-desc {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.6;
  margin: 0;
}
.meigara-sub-box .meigara-points-grid {
  margin: 0;
}
.meigara-sub-box .point-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.meigara-sub-box .point-card:hover {
  border-color: #93c5fd;
}
.meigara-sub-box .meigara-info-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  margin: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
@media screen and (max-width: 768px) {
  .meigara-sub-box {
    padding: 18px 14px 16px;
    border-radius: 10px;
    margin: 30px 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .meigara-sub-box .sub-box-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  .meigara-sub-box .sub-box-title {
    font-size: 1.08rem;
  }
}
@media screen and (max-width: 768px) {
  .meigara-sub-box .sub-box-desc {
    font-size: 0.82rem;
  }
}

/* ===== 共通部品: ご案内の枠（meigara・tasting-theory） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
.guidance-disclaimer-card {
  background: #fffbf5;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
  margin-top: 36px;
  padding: 22px 24px;
}
.guidance-disclaimer-card .guidance-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
:where(.pg-meigara) .guidance-disclaimer-card .guidance-icon {
  font-size: 18px;
}
.guidance-disclaimer-card h3 {
  color: #1c1917;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.guidance-disclaimer-card .guidance-desc {
  color: #262626;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
  font-weight: 500;
}
.guidance-disclaimer-card .guidance-item-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
}
.guidance-disclaimer-card .guidance-item-info {
  flex: 1;
  min-width: 250px;
}
.guidance-disclaimer-card .guidance-item-info h4 {
  color: #1c1917;
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 5px;
}
.guidance-disclaimer-card .guidance-item-info p {
  color: #262626;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 500;
}
.guidance-disclaimer-card .guidance-btn-wrap {
  flex-shrink: 0;
}
.guidance-disclaimer-card .btn-adv-shop {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.guidance-disclaimer-card .btn-adv-shop:hover {
  opacity: 0.7;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}
.guidance-disclaimer-card .btn-adv-shop span {
  color: inherit !important;
}
:where(.pg-meigara) .guidance-disclaimer-card .guidance-item-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #9a3412;
  background: #ffffff;
  border: 1px solid #fdba74;
  border-radius: 999px;
}
.guidance-disclaimer-card .btn-adv-shop.is-outline {
  background: #ffffff;
  color: #c2410c !important;
  border: 2px solid #ea580c;
  box-shadow: none;
}
.guidance-disclaimer-card .btn-adv-shop.is-outline:hover {
  opacity: 0.7;
  color: #c2410c !important;
  background: #fff7ed;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
@media screen and (max-width: 768px) {
  .guidance-disclaimer-card {
    padding: 18px 16px !important;
  }
}
.guidance-disclaimer-card .guidance-item-box + .guidance-item-box {
  margin-top: 12px;
}

/* ===== 共通部品: グッズの枠（meigara・tasting-mock・tasting-theory） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
.tasting-sec-header-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.tasting-sec-title-lg {
  color: #0f172a;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.goods-card-orange {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(234,88,12,0.06);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
}
.goods-thumb-box {
  width: 100px;
  flex-shrink: 0;
  text-align: center;
}
.goods-thumb-link-orange {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #fed7aa;
}
.goods-img {
  width: 100%;
  height: auto;
  display: block;
}
.goods-content {
  flex: 1;
  min-width: 180px;
}
.goods-head-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.goods-title-dark {
  color: #1c1917;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.goods-desc {
  color: #1e293b;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 12px;
}
.goods-btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
}
.goods-btn-orange:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  opacity: 0.7;
}
.goods-btn-orange span {
  color: inherit !important;
}
.tasting-goods-section {
  margin-top: 48px;
  margin-bottom: 50px;
}


/* ===== 共通部品: 特集ページの部品（feature01・feature03・feature04・feature05） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
:where(.pg-feature01, .pg-feature03, .pg-feature04, .pg-feature05) .tag.feature.point-amber {
  color: #fff;
  border: none;
}
:where(.pg-feature01, .pg-feature05) .chip.parent.pure-line {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}
:where(.pg-feature01, .pg-feature05) .cross-partner.slate {
  background: #e2e8f0;
  color: #1e293b;
}
:where(.pg-feature01, .pg-feature03, .pg-feature04, .pg-feature05) .quiz-section.block_random-base {
  background: transparent;
}
:where(.pg-feature01, .pg-feature03, .pg-feature04, .pg-feature05) .quiz-section .title_border {
  text-align: center;
  color: #b91c1c;
}
:where(.pg-feature01, .pg-feature03, .pg-feature04, .pg-feature05) .quiz-section .quiz-lead-text {
  text-align: center;
  margin-bottom: 20px;
  color: #1e293b;
}
.ranking-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.ranking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ranking-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ranking-card h4 span {
  font-size: 11.5px;
  font-weight: normal;
  color: #333333;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.ranking-item:last-child {
  border-bottom: none;
}
.ranking-item > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}
.rank-1 {
  background: #eab308;
}
.rank-2 {
  background: #94a3b8;
}
.rank-3 {
  background: #b45309;
}
.rank-other {
  background: #cbd5e1;
  color: #1e293b;
}
.basics-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333333;
}

/* ===== 共通部品: 診断ページの部品（pairing1・pairing2） ===== */
/* 全ページで同じ値の項目だけをここに置く。ページごとに違う値は、各ページの部分で上書きしている */
.app-hero {
  text-align: center;
  margin-bottom: 22px;
}
.app-hero-badge {
  display: inline-block;
  font-size: 0.80rem;
  font-weight: 800;
  padding: 4px 14px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.app-hero-title {
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}
.app-hero-sub {
  font-size: clamp(0.84rem, 2.5vw, 0.98rem);
  color: #333333;
  font-weight: 500;
  margin: 0;
}
.mode-tabs-container {
  display: flex;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 20px;
  gap: 4px;
}
.mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 6px;
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  font-weight: 800;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
:where(.pg-pairing1, .pg-pairing2) .mode-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.app-card {
  background: #ffffff;
  padding: 22px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
@media (min-width: 601px) {
  .app-card {
    padding: 26px 24px;
  }
}
.step-section {
  margin-bottom: 22px;
}
.step-section:last-child {
  margin-bottom: 0;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}
.step-title {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.choice-grid {
  display: grid;
  gap: 10px;
}
.grid-3cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.choice-card-btn {
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}
.choice-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.choice-name {
  font-size: 0.90rem;
  font-weight: 800;
  color: #0f172a;
}
.choice-desc {
  font-size: 0.72rem;
  color: #333333;
  line-height: 1.3;
}
.temp-pills-wrap {
  display: grid;
  gap: 8px;
}
:where(.pg-pairing1, .pg-pairing2) .pill-btn {
  padding: 10px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}
:where(.pg-pairing1, .pg-pairing2) .pill-btn.selected {
  color: #ffffff;
}
.btn-action-wrap {
  margin-top: 22px;
  text-align: center;
}
.btn-main-action {
  color: #ffffff;
  font-size: clamp(0.95rem, 3vw, 1.08rem);
  font-weight: 900;
  padding: 15px 24px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}
:where(.pg-pairing1, .pg-pairing2) .result-container {
  display: none;
  margin-top: 28px;
  scroll-margin-top: 80px;
  animation: fadeIn 0.4s ease forwards;
}
:where(.pg-pairing1, .pg-pairing2) .result-box {
  background: #ffffff;
  overflow: hidden;
}
.res-header {
  padding: 18px 16px;
  text-align: center;
  position: relative;
}
.res-sake-name {
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.04em;
}
.res-body {
  padding: 18px 14px 24px;
}
@media (min-width: 601px) {
  .res-body {
    padding: 24px 22px 28px;
  }
}
.res-brands-section {
  padding: 14px 14px;
  margin-bottom: 20px;
}
@media (min-width: 601px) {
  .res-brands-section {
    padding: 18px 20px;
  }
}
.res-brands-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.res-brands-main-label {
  font-size: clamp(1.02rem, 3.2vw, 1.15rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}
.res-type-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.res-type-feature-badge {
  font-size: 0.78rem;
  font-weight: 800;
  background: #ffffff;
  padding: 3px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  line-height: 1.3;
}
.res-type-temp-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #ffedd5;
  line-height: 1.3;
}
.res-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.brand-item-card {
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.brand-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.brand-item-name {
  font-size: 0.98rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-spec-badge {
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 7px;
  white-space: nowrap;
}
.brand-item-meta {
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.res-dishes-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.res-dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dish-item-card {
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}
.dish-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.dish-item-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dish-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  white-space: nowrap;
}
.dish-item-comment {
  font-size: 0.80rem;
  line-height: 1.4;
  margin: 0;
}
.res-reason-box {
  background: #fffbeb;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.res-reason-box h5 {
  font-size: 0.90rem;
  font-weight: 800;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.res-reason-box p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}
.res-spec-tips {
  margin-bottom: 16px;
}
.tip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-item strong {
  color: #0f172a;
}
.share-action-area {
  margin-top: 20px;
  text-align: center;
  padding: 16px 14px;
}
.share-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.share-btns-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-share-x {
  background: #000000;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}
.btn-share-x:hover {
  opacity: 0.85;
}
.btn-save-image {
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.btn-retry-wrap {
  margin-top: 18px;
  text-align: center;
}
.btn-retry {
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 14px;
}
.step-section-mt {
  margin-top: 22px;
}
.gacha-dice-icon {
  font-size: 3.2rem;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}
.gacha-panel-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}
.gacha-panel-desc {
  font-size: 0.88rem;
  color: #333333;
  margin: 0 0 18px;
}

/* ===== 共通部品: 関連ページのリンク（ronjutsu-sheet・sheet） ===== */
/* 用紙のページの下の「〜の練習に使えるページ」（2026-11-20〜。広告の枠の代わり） */
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-heading {
  max-width: 760px;
  margin: 56px auto 16px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--c-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 64px;
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-card:hover {
  border-color: var(--c-main);
  box-shadow: 0 4px 12px rgba(45, 86, 163, 0.12);
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-main);
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-title::after {
  content: " →";
}
:where(.pg-ronjutsu-sheet, .pg-sheet) .rel-desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333333;
}


/* ===== ページ: 404.php（pg-404） ===== */
/* 404専用 和モダン洗練スタイル */
:where(.pg-404) .error-page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
:where(.pg-404) .error-main-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 上部 和風アクセントグラデーション */
:where(.pg-404) .error-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #0ea5e9, #0284c7);
}

/* 蛇の目（Janome）404アートワーク */
:where(.pg-404) .janome-art-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
:where(.pg-404) .error-code-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
:where(.pg-404) .error-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
:where(.pg-404) .error-desc {
  font-size: 15.5px;
  line-height: 1.85;
  color: #1e293b;
  max-width: 620px;
  margin: 0 auto 36px;
}
:where(.pg-404) .error-desc strong {
  color: #1e293b;
  font-weight: 600;
}

/* アクションボタン（トップへ戻る） */
:where(.pg-404) .error-action-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
:where(.pg-404) .btn-primary-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
:where(.pg-404) .btn-primary-home:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
}
:where(.pg-404) .btn-secondary-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: #f8fafc;
  color: #1e293b !important;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}
:where(.pg-404) .btn-secondary-contact:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* 区切り見出し */
:where(.pg-404) .section-nav-divider {
  position: relative;
  text-align: center;
  margin: 40px 0 28px;
}
:where(.pg-404) .section-nav-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: 1;
}
:where(.pg-404) .section-nav-divider span {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.05em;
}

/* 主要コンテンツ ナビゲーショングリッド */
:where(.pg-404) .nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}
:where(.pg-404) .nav-grid-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
:where(.pg-404) .nav-grid-card:hover {
  background: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
:where(.pg-404) .nav-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
:where(.pg-404) .nav-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.pg-404) .nav-card-title .arrow {
  color: #333333;
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}
:where(.pg-404) .nav-grid-card:hover .nav-card-title .arrow {
  transform: translateX(3px);
  color: #2563eb;
}
:where(.pg-404) .nav-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  flex-grow: 1;
}

/* サポート・注記 */
:where(.pg-404) .error-footer-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #333333;
  line-height: 1.7;
}
:where(.pg-404) .error-footer-note a {
  color: #3b82f6;
  text-decoration: underline;
}
:where(.pg-404) .error-footer-note a:hover {
  color: #1d4ed8;
}

/* レスポンシブ対応 */
@media (max-width: 860px) {
:where(.pg-404) .nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ページ: cards/index.php（pg-cards） ===== */
/* ==========================================================================
   一問一答フラッシュカード（exam/cards/index.php）専用スタイル
   ========================================================================== */
:where(.pg-cards) main {
  padding-bottom: 60px;
}
:where(.pg-cards) .cards-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* コントロール・ステータスバー */
:where(.pg-cards) .cards-status-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:where(.pg-cards) .status-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
:where(.pg-cards) .deck-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.pg-cards) .deck-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #1e40af;
  background: #dbeafe;
  padding: 3px 9px;
  border-radius: 4px;
}
:where(.pg-cards) .deck-count {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
:where(.pg-cards) .filter-tabs {
  display: flex;
  gap: 6px;
}
:where(.pg-cards) .filter-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #333333;
  cursor: pointer;
  transition: all 0.15s ease;
}
:where(.pg-cards) .filter-btn:hover {
  background: #f1f5f9;
}
:where(.pg-cards) .filter-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* プログレスバー */
:where(.pg-cards) .progress-track {
  height: 7px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
:where(.pg-cards) .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.3s ease;
}
:where(.pg-cards) .status-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #333333;
  flex-wrap: wrap;
  gap: 8px;
}
:where(.pg-cards) .stats-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(.pg-cards) .badge-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
:where(.pg-cards) .badge-stat strong {
  font-weight: 800;
}
:where(.pg-cards) .badge-stat.mastered strong {
  color: #16a34a;
}
:where(.pg-cards) .badge-stat.review strong {
  color: #ea580c;
}
:where(.pg-cards) .status-tools-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.pg-cards) .deck-tool-btn {
  font-size: 11.5px;
  color: #333333;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
:where(.pg-cards) .deck-tool-btn:hover {
  color: #0f172a;
}
:where(.pg-cards) .deck-tool-divider {
  color: #cbd5e1;
  font-size: 10px;
  user-select: none;
}

/* ==========================================================================
   フラッシュカード 本体（即時切り替え・アニメーション完全なし・答えチラ見え防止）
   ========================================================================== */
:where(.pg-cards) .card-scene {
  margin: 0 auto 20px;
  width: 100%;
  min-height: 290px;
  cursor: pointer;
}
:where(.pg-cards) .flashcard {
  width: 100%;
  min-height: 290px;
  position: relative;
  border-radius: 18px;
}
:where(.pg-cards) .card-face {
  width: 100%;
  min-height: 290px;
  border-radius: 18px;
  padding: 26px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1.5px solid #e2e8f0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* 表面（問題）デフォルト表示 */
:where(.pg-cards) .card-face.face-front {
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
}
:where(.pg-cards) .card-face.face-front:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
}

/* 裏面（解答）デフォルト非表示 */
:where(.pg-cards) .card-face.face-back {
  display: none;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
}

/* フリップ時：表面を瞬時に非表示、裏面を瞬時に表示（アニメーションなし） */
:where(.pg-cards) .flashcard.is-flipped .face-front {
  display: none !important;
}
:where(.pg-cards) .flashcard.is-flipped .face-back {
  display: flex !important;
}
:where(.pg-cards) .card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
:where(.pg-cards) .card-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
:where(.pg-cards) .card-stage-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: 4px;
}
:where(.pg-cards) .card-source-tag {
  font-size: 11px;
  font-weight: 700;
  color: #333333;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
}
:where(.pg-cards) .card-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
}
:where(.pg-cards) .status-pill-mastered {
  color: #166534;
  background: #dcfce7;
}
:where(.pg-cards) .status-pill-review {
  color: #9a3412;
  background: #ffedd5;
}
:where(.pg-cards) .card-question-text {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.6;
  margin: auto 0;
  word-break: break-word;
}
:where(.pg-cards) .card-answer-box {
  margin: auto 0;
  text-align: center;
  padding: 12px 0;
}
:where(.pg-cards) .card-answer-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
:where(.pg-cards) .card-answer-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #15803d;
  line-height: 1.35;
  margin-bottom: 0;
}
:where(.pg-cards) .card-flip-prompt {
  font-size: 12px;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}
:where(.pg-cards) .card-flip-prompt .prompt-icon {
  font-size: 14px;
  animation: bounce-subtle 1.8s infinite ease-in-out;
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==========================================================================
   アクションボタン（もう一度 / 覚えた！）
   ========================================================================== */
:where(.pg-cards) .card-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
:where(.pg-cards) .btn-action-memorize,
:where(.pg-cards) .btn-action-retry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
:where(.pg-cards) .btn-action-memorize {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}
:where(.pg-cards) .btn-action-memorize:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
:where(.pg-cards) .btn-action-memorize:active {
  transform: translateY(0);
}
:where(.pg-cards) .btn-action-memorize .btn-main-label {
  font-size: 1.15rem;
}
:where(.pg-cards) .btn-action-memorize .btn-sub-label {
  font-size: 11px;
  opacity: 0.85;
}
:where(.pg-cards) .btn-action-retry {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}
:where(.pg-cards) .btn-action-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}
:where(.pg-cards) .btn-action-retry:active {
  transform: translateY(0);
}
:where(.pg-cards) .btn-action-retry .btn-main-label {
  font-size: 1.15rem;
}
:where(.pg-cards) .btn-action-retry .btn-sub-label {
  font-size: 11px;
  opacity: 0.85;
}

/* キーボードショートカット案内（ボタン下部） */
:where(.pg-cards) .cards-shortcut-bottom {
  text-align: center;
  font-size: 12px;
  color: #333333;
  margin: -6px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
:where(.pg-cards) .cards-shortcut-bottom strong {
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
@media screen and (max-width: 768px) {
:where(.pg-cards) .cards-shortcut-bottom {
    font-size: 11px;
    margin: -4px 0 20px;
  }
}

/* 汎用ボタンスタイル（完了画面等で使用） */
:where(.pg-cards) .btn-nav-control {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-cards) .btn-nav-control:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
:where(.pg-cards) .btn-nav-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 完了オーバーレイ */
:where(.pg-cards) .deck-completed-card {
  display: none;
  background: #ffffff;
  border: 2px solid #86efac;
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
  margin-bottom: 24px;
}
:where(.pg-cards) .completed-icon {
  font-size: 54px;
  margin-bottom: 12px;
}
:where(.pg-cards) .completed-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}
:where(.pg-cards) .completed-text {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
  margin: 0 0 24px;
}
:where(.pg-cards) .completed-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   プレミアム限定・非ログイン案内カード（ゲートUI）
   ========================================================================== */
:where(.pg-cards) .card-gate-card {
  display: none;
  margin: 30px auto;
}
:where(.pg-cards) .gate-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
}
:where(.pg-cards) .badge-gate-exclusive {
  font-size: 11px;
  font-weight: 800;
}
:where(.pg-cards) .card-gate-card p {
  font-size: 14px;
  line-height: 1.75;
}
:where(.pg-cards) .gate-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
:where(.pg-cards) .btn-gate-cta {
  transition: all 0.2s ease;
}
:where(.pg-cards) .btn-gate-primary {
  transition: all 0.2s ease;
}
:where(.pg-cards) .btn-gate-sub {
  transition: all 0.15s ease;
}

/* スマホ限定改行タグ（PCでは非表示、スマホで改行） */

/* ===== ページ: cbt-mock/index.php（pg-cbt-mock） ===== */
:where(body.pg-cbt-mock) {
      --primary: #1e3a8a;
      --primary-dark: #0f172a;
      --primary-light: #3b82f6;
      --accent-gold: #f59e0b;
      --accent-gold-dark: #b45309;
      --bg-slate: #f8fafc;
      --card-bg: #ffffff;
      --text-main: #0f172a;
      --text-muted: #333333;
      --border-color: #cbd5e1;
      --success: #10b981;
      --danger: #ef4444;
      --radius: 12px;
    }
body:where(.pg-cbt-mock) {
      background-color: var(--bg-slate);
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
:where(.pg-cbt-mock) .cbt-container {
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
      padding: 20px 16px 60px;
      box-sizing: border-box;
      flex: 1;
    }

    /* 案内画面（未開始時） */
:where(.pg-cbt-mock) .mock-intro-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 36px 32px;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
      max-width: 840px;
      margin: 0 auto;
      box-sizing: border-box;
    }
:where(.pg-cbt-mock) .mock-intro-header {
      text-align: center;
      margin-bottom: 28px;
    }
:where(.pg-cbt-mock) .mock-intro-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1d4ed8;
      font-size: 13px;
      font-weight: 800;
      padding: 4px 14px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
:where(.pg-cbt-mock) .mock-intro-title {
      font-size: 28px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 10px;
      letter-spacing: -0.01em;
    }
:where(.pg-cbt-mock) .mock-intro-subtitle {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.6;
      margin: 0;
    }
:where(.pg-cbt-mock) .mock-spec-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin: 24px 0;
    }
:where(.pg-cbt-mock) .mock-spec-box {
      background: #f1f5f9;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }
:where(.pg-cbt-mock) .mock-spec-label {
      font-size: 12px;
      font-weight: 700;
      color: #333333;
      margin-bottom: 6px;
    }
:where(.pg-cbt-mock) .mock-spec-val {
      font-size: 22px;
      font-weight: 800;
      color: #1e3a8a;
    }
:where(.pg-cbt-mock) .mock-rules-list {
      background: #fffbeb;
      border: 1px solid #fde68a;
      border-radius: 12px;
      padding: 20px 24px;
      margin-bottom: 28px;
    }
:where(.pg-cbt-mock) .mock-rules-title {
      font-size: 15px;
      font-weight: 800;
      color: #92400e;
      margin: 0 0 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-cbt-mock) .mock-rules-list ul {
      margin: 0;
      padding-left: 20px;
      list-style-type: disc;
      color: #78350f;
      font-size: 13.5px;
      line-height: 1.7;
    }
:where(.pg-cbt-mock) .mock-rules-list li {
      list-style-type: disc;
      margin-bottom: 6px;
    }
:where(.pg-cbt-mock) .mock-rules-list li:last-child {
      margin-bottom: 0;
    }
:where(.pg-cbt-mock) .mock-btn-wrap {
      text-align: center;
    }
:where(.pg-cbt-mock) .btn-start-mock {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      color: #ffffff;
      font-size: 18px;
      font-weight: 800;
      padding: 16px 44px;
      border-radius: 36px;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
      transition: all 0.2s ease;
      text-decoration: none;
    }
:where(.pg-cbt-mock) a.btn-start-mock:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
      color: #ffffff;
    }
:where(.pg-cbt-mock) .btn-start-mock:disabled {
      background: #94a3b8;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* 完了済み表示カード */
:where(.pg-cbt-mock) .mock-completed-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 36px 32px;
      text-align: center;
      max-width: 840px;
      margin: 0 auto;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
      box-sizing: border-box;
    }

    /* CBT試験本番ヘッダーバー */
:where(.pg-cbt-mock) .cbt-exam-header {
      background: #0f172a;
      color: #ffffff;
      border-radius: 14px;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
      position: sticky;
      top: 10px;
      z-index: 100;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
:where(.pg-cbt-mock) .cbt-header-title {
      font-size: 15px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: 0.02em;
    }
:where(.pg-cbt-mock) .cbt-timer-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.1);
      padding: 6px 16px;
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
:where(.pg-cbt-mock) .cbt-timer-label {
      font-size: 12px;
      color: #cbd5e1;
    }
:where(.pg-cbt-mock) .cbt-timer-val {
      font-family: 'Courier New', Courier, monospace;
      font-size: 20px;
      font-weight: 800;
      color: #60a5fa;
      letter-spacing: 1px;
    }
:where(.pg-cbt-mock) .cbt-timer-val.is-warning {
      color: #ef4444;
      animation: pulse 1s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
:where(.pg-cbt-mock) .btn-submit-exam {
      background: #ef4444;
      color: #ffffff;
      font-size: 13.5px;
      font-weight: 800;
      border: none;
      padding: 8px 18px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s;
    }


    /* CBTメイングリッド（問題エリア + マス目ナビ） */
:where(.pg-cbt-mock) .cbt-layout-grid {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 20px;
      align-items: start;
    }

    @media (max-width: 900px) {
:where(.pg-cbt-mock) .cbt-layout-grid {
        grid-template-columns: 1fr;
      }
}

    /* 問題カード */
:where(.pg-cbt-mock) .cbt-question-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 28px 24px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
:where(.pg-cbt-mock) .cbt-q-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid #f1f5f9;
    }
:where(.pg-cbt-mock) .cbt-q-number {
      font-size: 18px;
      font-weight: 900;
      color: #1e3a8a;
    }
:where(.pg-cbt-mock) .cbt-q-stage {
      font-size: 12px;
      font-weight: 700;
      color: #333333;
      background: #f1f5f9;
      padding: 4px 10px;
      border-radius: 6px;
    }
:where(.pg-cbt-mock) .btn-flag-toggle {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      color: #333333;
      font-size: 13px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s;
    }
:where(.pg-cbt-mock) .btn-flag-toggle.is-flagged {
      background: #fffbeb;
      border-color: #f59e0b;
      color: #b45309;
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    }
:where(.pg-cbt-mock) .cbt-q-text {
      font-size: 17px;
      font-weight: 700;
      line-height: 1.65;
      color: #0f172a;
      margin: 0 0 24px;
      white-space: pre-wrap;
    }

    /* 4択選択肢ボタン */
:where(.pg-cbt-mock) .cbt-choices-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 28px;
    }
:where(.pg-cbt-mock) .cbt-choice-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      text-align: left;
      background: #f8fafc;
      border: 2px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 18px;
      font-size: 15.5px;
      font-weight: 600;
      color: #1e293b;
      cursor: pointer;
      transition: all 0.15s ease;
      line-height: 1.45;
    }
:where(.pg-cbt-mock) .cbt-choice-btn.is-selected {
      background: #eff6ff;
      border-color: #2563eb;
      color: #1d4ed8;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    }
:where(.pg-cbt-mock) .cbt-choice-num {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #e2e8f0;
      color: #333333;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 800;
      flex-shrink: 0;
    }
:where(.pg-cbt-mock) .cbt-choice-btn.is-selected .cbt-choice-num {
      background: #2563eb;
      color: #ffffff;
    }

    /* 下部ナビゲーション（前へ / 次へ） */
:where(.pg-cbt-mock) .cbt-q-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding-top: 18px;
      border-top: 1px solid #f1f5f9;
    }
:where(.pg-cbt-mock) .btn-cbt-step {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      color: #333333;
      font-size: 14px;
      font-weight: 700;
      padding: 10px 22px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
:where(.pg-cbt-mock) .btn-cbt-step:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
:where(.pg-cbt-mock) .btn-cbt-step.is-next {
      background: #1e3a8a;
      color: #ffffff;
      border-color: #1e3a8a;
    }


    /* 右側 マス目ナビゲーションパレット */
:where(.pg-cbt-mock) .cbt-palette-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 18px;
      position: sticky;
      top: 86px;
      max-height: calc(100vh - 110px);
      display: flex;
      flex-direction: column;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
:where(.pg-cbt-mock) .cbt-palette-header {
      margin-bottom: 12px;
    }
:where(.pg-cbt-mock) .cbt-palette-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
:where(.pg-cbt-mock) .cbt-palette-legend {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 11px;
      color: #333333;
      flex-wrap: wrap;
    }
:where(.pg-cbt-mock) .legend-item {
      display: flex;
      align-items: center;
      gap: 4px;
    }
:where(.pg-cbt-mock) .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      display: inline-block;
    }
:where(.pg-cbt-mock) .legend-dot.is-answered { background: #2563eb; }
:where(.pg-cbt-mock) .legend-dot.is-unanswered { background: #ffffff; border: 1px solid #cbd5e1; }
:where(.pg-cbt-mock) .legend-dot.is-flagged { background: #f59e0b; }
:where(.pg-cbt-mock) .cbt-palette-grid {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 4px;
      overflow-y: auto;
      padding-right: 2px;
      flex: 1;
    }
:where(.pg-cbt-mock) .cbt-cell-btn {
      aspect-ratio: 1;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      color: #333333;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 0;
      transition: all 0.1s;
    }
:where(.pg-cbt-mock) .cbt-cell-btn.is-answered {
      background: #2563eb;
      color: #ffffff;
      border-color: #1d4ed8;
    }
:where(.pg-cbt-mock) .cbt-cell-btn.is-current {
      outline: 2px solid #0f172a;
      outline-offset: 1px;
      font-weight: 900;
      z-index: 3;
    }
:where(.pg-cbt-mock) .cbt-cell-btn.is-flagged::after {
      content: '★';
      position: absolute;
      top: -2px;
      right: 0px;
      font-size: 9px;
      color: #f59e0b;
    }
:where(.pg-cbt-mock) .cbt-cell-btn.is-answered.is-flagged::after {
      color: #fef08a;
    }

    /* 確認モーダル */
:where(.pg-cbt-mock) .cbt-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 20px;
    }
:where(.pg-cbt-mock) .cbt-modal-backdrop.is-open {
      display: flex;
    }
:where(.pg-cbt-mock) .cbt-modal-content {
      background: #ffffff;
      border-radius: 16px;
      max-width: 520px;
      width: 100%;
      padding: 28px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      animation: modalPop 0.2s ease-out;
    }

    @keyframes modalPop {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
:where(.pg-cbt-mock) .cbt-modal-title {
      font-size: 20px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 12px;
    }
:where(.pg-cbt-mock) .cbt-modal-body {
      font-size: 14.5px;
      color: #333333;
      line-height: 1.6;
      margin-bottom: 24px;
    }
:where(.pg-cbt-mock) .cbt-modal-stat-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px;
      margin: 14px 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      text-align: center;
    }
:where(.pg-cbt-mock) .cbt-modal-stat-num {
      font-size: 18px;
      font-weight: 800;
      color: #1e3a8a;
    }
:where(.pg-cbt-mock) .cbt-modal-stat-label {
      font-size: 11px;
      color: #333333;
      margin-top: 2px;
    }
:where(.pg-cbt-mock) .cbt-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }
:where(.pg-cbt-mock) .btn-modal-cancel {
      background: #f1f5f9;
      border: none;
      color: #333333;
      font-size: 14px;
      font-weight: 700;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
    }
:where(.pg-cbt-mock) .btn-modal-confirm {
      background: #ef4444;
      border: none;
      color: #ffffff;
      font-size: 14px;
      font-weight: 800;
      padding: 10px 24px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }

    /* トレーニング模試（プレミアム会員限定） */
:where(.pg-cbt-mock) .mock-training-card {
      max-width: 840px;
      margin: 32px auto 0;
      padding: 28px 32px;
      border-radius: 16px;
      background: #fff7ed;
      border: 1.5px solid #fdba74;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
      box-sizing: border-box;
      text-align: left;
    }
:where(.pg-cbt-mock) .mock-training-head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 8px;
    }
:where(.pg-cbt-mock) .mock-training-badge {
      padding: 2px 10px;
      border-radius: 999px;
      background: #ea580c;
      color: #ffffff;
      font-size: 11.5px;
      font-weight: 800;
    }
:where(.pg-cbt-mock) .mock-training-title {
      margin: 0;
      font-size: 18px;
      font-weight: 800;
      color: #7c2d12;
    }
:where(.pg-cbt-mock) .mock-training-desc {
      margin: 0 0 14px;
      font-size: 13.5px;
      line-height: 1.8;
      color: #292524;
    }
:where(.pg-cbt-mock) .btn-training-link {
      display: inline-flex;
      align-items: center;
      padding: 11px 22px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
      color: #ffffff;
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
    }
:where(.pg-cbt-mock) .btn-training-link.is-locked {
      background: #ffffff;
      color: #c2410c;
      border: 1.5px solid #ea580c;
    }
:where(.pg-cbt-mock) .training-locked-card {
      max-width: 680px;
      margin: 40px auto;
      padding: 36px 28px;
      border-radius: 16px;
      background: #ffffff;
      border: 1px solid var(--border-color);
      text-align: center;
    }
:where(.pg-cbt-mock) .training-locked-card h1 {
      margin: 0 0 12px;
      font-size: 22px;
      font-weight: 800;
    }
:where(.pg-cbt-mock) .training-locked-card p {
      margin: 0 0 20px;
      font-size: 14.5px;
      line-height: 1.8;
      color: #1e293b;
    }
    /* トレーニング模試の結果 */
:where(.pg-cbt-mock) .training-result-card {
      max-width: 860px;
      margin: 28px auto;
      padding: 32px 28px;
      border-radius: 16px;
      background: #ffffff;
      border: 1px solid var(--border-color);
    }
:where(.pg-cbt-mock) .training-result-card h2 {
      margin: 0 0 6px;
      font-size: 22px;
      font-weight: 800;
      text-align: center;
    }
:where(.pg-cbt-mock) .training-result-note {
      margin: 0 0 22px;
      font-size: 12.5px;
      text-align: center;
      color: #333333;
    }
:where(.pg-cbt-mock) .training-score {
      text-align: center;
      font-size: 54px;
      font-weight: 900;
      color: #c2410c;
      line-height: 1.2;
    }
:where(.pg-cbt-mock) .training-score small {
      font-size: 18px;
      font-weight: 700;
      color: #333333;
      margin-left: 4px;
    }
:where(.pg-cbt-mock) .training-time {
      text-align: center;
      font-size: 13px;
      color: #333333;
      margin-bottom: 22px;
    }
:where(.pg-cbt-mock) .training-stage-table {
      width: 100%;
      border-collapse: collapse;
      margin: 0 0 24px;
      font-size: 14px;
    }
:where(.pg-cbt-mock) .training-stage-table th,
:where(.pg-cbt-mock) .training-stage-table td {
      padding: 9px 10px;
      border-bottom: 1px solid #e2e8f0;
      text-align: left;
    }
:where(.pg-cbt-mock) .training-stage-table th {
      font-size: 12.5px;
      color: #333333;
    }
:where(.pg-cbt-mock) .training-stage-table td.num {
      text-align: right;
      font-weight: 700;
      white-space: nowrap;
    }
:where(.pg-cbt-mock) .training-stage-table .is-low {
      color: #b91c1c;
    }
:where(.pg-cbt-mock) .training-wrong-list {
      margin: 0 0 24px;
    }
:where(.pg-cbt-mock) .training-wrong-list summary {
      cursor: pointer;
      font-size: 14.5px;
      font-weight: 800;
      color: #c2410c;
    }
:where(.pg-cbt-mock) .training-wrong-item {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      font-size: 13.5px;
      line-height: 1.7;
    }
:where(.pg-cbt-mock) .training-wrong-item .q-stage {
      font-size: 11.5px;
      font-weight: 800;
      color: #1e3a8a;
    }
:where(.pg-cbt-mock) .training-wrong-item .q-yours {
      color: #b91c1c;
      font-weight: 700;
    }
:where(.pg-cbt-mock) .training-wrong-item .q-correct {
      color: #047857;
      font-weight: 700;
    }
:where(.pg-cbt-mock) .training-result-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }
    @media (max-width: 768px) {
:where(.pg-cbt-mock) .training-result-card {
        padding: 24px 16px;
      }
:where(.pg-cbt-mock) .training-score {
        font-size: 44px;
      }
}

    /* HOW TO USE & RESULT PREVIEW SECTION（別トーンの独立マニュアルエリア） */
:where(.pg-cbt-mock) .cbt-guide-section {
      max-width: 840px;
      margin: 32px auto 0;
      padding: 36px 32px;
      background: #f1f5f9;
      border: 1.5px solid #cbd5e1;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
      box-sizing: border-box;
    }
:where(.pg-cbt-mock) .cbt-guide-header {
      text-align: center;
      margin-bottom: 32px;
    }
:where(.pg-cbt-mock) .cbt-guide-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: #1e3a8a;
      background: #e2e8f0;
      border: 1px solid #cbd5e1;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 10px;
    }
:where(.pg-cbt-mock) .cbt-guide-title {
      font-size: 24px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 10px;
      letter-spacing: -0.01em;
    }
:where(.pg-cbt-mock) .cbt-guide-desc {
      font-size: 14px;
      color: #333333;
      line-height: 1.6;
      margin: 0 auto;
      max-width: 640px;
    }
:where(.pg-cbt-mock) .cbt-guide-block {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 28px 24px;
      margin-bottom: 32px;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    }
:where(.pg-cbt-mock) .cbt-guide-block:last-child {
      margin-bottom: 0;
    }
:where(.pg-cbt-mock) .cbt-block-heading {
      margin-bottom: 16px;
    }
:where(.pg-cbt-mock) .cbt-block-step {
      display: inline-block;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: #2563eb;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      padding: 2px 10px;
      border-radius: 12px;
      margin-bottom: 6px;
    }
:where(.pg-cbt-mock) .cbt-block-title {
      font-size: 19px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 6px;
    }
:where(.pg-cbt-mock) .cbt-block-sub {
      font-size: 13.5px;
      color: #333333;
      margin: 0;
      line-height: 1.5;
    }
:where(.pg-cbt-mock) .cbt-preview-image-wrap {
      margin: 18px 0 24px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid #cbd5e1;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
      background: #0f172a;
      display: flex;
      justify-content: center;
    }
:where(.pg-cbt-mock) .cbt-preview-image {
      width: 100%;
      height: auto;
      display: block;
    }
:where(.pg-cbt-mock) .cbt-points-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
:where(.pg-cbt-mock) .cbt-point-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
:where(.pg-cbt-mock) .cbt-point-icon {
      font-size: 22px;
      line-height: 1;
    }
:where(.pg-cbt-mock) .cbt-point-title {
      font-size: 14.5px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 4px;
    }
:where(.pg-cbt-mock) .cbt-point-text {
      font-size: 12.5px;
      color: #333333;
      line-height: 1.6;
      margin: 0;
    }

    @media (max-width: 768px) {
:where(.pg-cbt-mock) .cbt-guide-section {
        padding: 28px 16px;
        margin-top: 32px;
        border-radius: 14px;
      }
:where(.pg-cbt-mock) .cbt-guide-block {
        padding: 20px 14px;
        margin-bottom: 24px;
      }
:where(.pg-cbt-mock) .cbt-guide-title {
        font-size: 20px;
      }
:where(.pg-cbt-mock) .cbt-block-title {
        font-size: 17px;
      }
:where(.pg-cbt-mock) .cbt-points-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
}

/* ===== ページ: cbt-mock/result.php（pg-cbt-mock-result） ===== */
:where(body.pg-cbt-mock-result) {
      --primary: #1e3a8a;
      --primary-dark: #0f172a;
      --primary-light: #3b82f6;
      --accent-gold: #f59e0b;
      --accent-gold-dark: #b45309;
      --bg-slate: #f8fafc;
      --card-bg: #ffffff;
      --text-main: #0f172a;
      --text-muted: #333333;
      --border-color: #e2e8f0;
      --success: #10b981;
      --danger: #ef4444;
      --radius: 14px;
    }
body:where(.pg-cbt-mock-result) {
      background-color: var(--bg-slate);
      color: var(--text-main);
      min-height: 100vh;
    }
:where(.pg-cbt-mock-result) .result-container {
      max-width: 960px;
      width: 100%;
      margin: 0 auto;
      padding: 24px 16px 80px;
      box-sizing: border-box;
    }

    /* ヒーローカード（総合得点・合否判定） */
:where(.pg-cbt-mock-result) .result-hero-card {
      background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
      color: #ffffff;
      border-radius: 20px;
      padding: 36px 28px;
      margin-bottom: 24px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
      position: relative;
      overflow: hidden;
    }
:where(.pg-cbt-mock-result) .result-hero-card::after {
      content: 'CBT MOCK';
      position: absolute;
      right: -10px;
      bottom: -20px;
      font-size: 5rem;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.04);
      pointer-events: none;
      line-height: 1;
    }
:where(.pg-cbt-mock-result) .result-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #93c5fd;
      font-size: 12px;
      font-weight: 800;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
:where(.pg-cbt-mock-result) .result-title {
      font-size: 24px;
      font-weight: 800;
      margin: 0 0 20px;
    }
:where(.pg-cbt-mock-result) .result-stats-main {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      align-items: center;
      margin-bottom: 24px;
    }
:where(.pg-cbt-mock-result) .stat-main-score {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 14px;
      padding: 18px;
      text-align: center;
    }
:where(.pg-cbt-mock-result) .stat-score-label {
      font-size: 12.5px;
      color: #cbd5e1;
      font-weight: 700;
      margin-bottom: 4px;
    }
:where(.pg-cbt-mock-result) .stat-score-val {
      font-size: 44px;
      font-weight: 900;
      color: #60a5fa;
      line-height: 1.1;
    }
:where(.pg-cbt-mock-result) .stat-score-sub {
      font-size: 14px;
      color: #cbd5e1;
      font-weight: 700;
    }

    /* 合否判定バッジ */
:where(.pg-cbt-mock-result) .stat-judge-box {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 14px;
      padding: 18px;
      text-align: center;
    }
:where(.pg-cbt-mock-result) .judge-badge {
      display: inline-block;
      font-size: 26px;
      font-weight: 900;
      padding: 6px 20px;
      border-radius: 8px;
      margin-bottom: 0;
      letter-spacing: 0.02em;
    }
:where(.pg-cbt-mock-result) .judge-a { background: #10b981; color: #ffffff; }
:where(.pg-cbt-mock-result) .judge-b { background: #3b82f6; color: #ffffff; }
:where(.pg-cbt-mock-result) .judge-c { background: #f59e0b; color: #ffffff; }
:where(.pg-cbt-mock-result) .judge-d { background: #ef4444; color: #ffffff; }
:where(.pg-cbt-mock-result) .judge-desc {
      font-size: 12px;
      color: #cbd5e1;
      line-height: 1.4;
      margin: 0;
    }

    /* 全国順位カード */
:where(.pg-cbt-mock-result) .stat-rank-box {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 14px;
      padding: 18px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
:where(.pg-cbt-mock-result) .stat-rank-val {
      font-size: 32px;
      font-weight: 900;
      color: #fde047;
      line-height: 1.1;
      margin: 4px 0;
    }

    /* サブ統計グリッド（所要時間、総受検者数、平均点、偏差値） */
:where(.pg-cbt-mock-result) .result-sub-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 12px;
      padding: 14px;
      text-align: center;
    }
:where(.pg-cbt-mock-result) .sub-stat-item {
      font-size: 12px;
      color: #cbd5e1;
    }
:where(.pg-cbt-mock-result) .sub-stat-item strong {
      display: block;
      font-size: 18px;
      font-weight: 800;
      color: #ffffff;
      margin-top: 2px;
    }

    /* ロックカード（無料会員用プレミアム誘導） */
:where(.pg-cbt-mock-result) .premium-lock-banner {
      background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
      border: 2px solid #f59e0b;
      border-radius: 16px;
      padding: 28px 24px;
      margin-bottom: 24px;
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
      text-align: center;
    }
:where(.pg-cbt-mock-result) .lock-banner-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #b45309;
      color: #ffffff;
      font-size: 11.5px;
      font-weight: 800;
      padding: 3px 12px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
:where(.pg-cbt-mock-result) .lock-banner-title {
      font-size: 20px;
      font-weight: 900;
      color: #78350f;
      margin: 0 0 10px;
    }
:where(.pg-cbt-mock-result) .lock-banner-text {
      font-size: 14px;
      color: #92400e;
      line-height: 1.6;
      max-width: 640px;
      margin: 0 auto 20px;
    }
:where(.pg-cbt-mock-result) .lock-features-list {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }
:where(.pg-cbt-mock-result) .lock-feat-tag {
      background: #ffffff;
      border: 1px solid #fde68a;
      color: #b45309;
      font-size: 12.5px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 20px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-cbt-mock-result) .btn-unlock-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
      color: #ffffff;
      font-size: 16px;
      font-weight: 800;
      padding: 14px 36px;
      border-radius: 30px;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
      transition: all 0.2s;
    }
:where(.pg-cbt-mock-result) .btn-unlock-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(180, 83, 9, 0.4);
      color: #ffffff;
    }

    /* 章別 得点率バー */
:where(.pg-cbt-mock-result) .section-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
:where(.pg-cbt-mock-result) .section-title {
      font-size: 18px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
:where(.pg-cbt-mock-result) .dist-chart {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 6px;
      align-items: end;
      height: 160px;
    }
:where(.pg-cbt-mock-result) .dist-col {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      height: 100%;
      font-size: 11.5px;
      color: #333333;
    }
:where(.pg-cbt-mock-result) .dist-bar {
      width: 100%;
      background: #cbd5e1;
      border-radius: 4px 4px 0 0;
      min-height: 2px;
    }
:where(.pg-cbt-mock-result) .dist-col.is-mine .dist-bar { background: #2563eb; }
:where(.pg-cbt-mock-result) .dist-col.is-mine .dist-count { color: #1d4ed8; font-weight: 800; }
:where(.pg-cbt-mock-result) .dist-count { margin-bottom: 3px; font-weight: 700; }
:where(.pg-cbt-mock-result) .dist-labels {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 6px;
      margin-top: 6px;
      font-size: 11px;
      color: #333333;
      text-align: center;
    }
:where(.pg-cbt-mock-result) .grade-share {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-top: 18px;
    }
:where(.pg-cbt-mock-result) .grade-share-item {
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 10px 6px;
      text-align: center;
      font-size: 12px;
      color: #333333;
      line-height: 1.5;
    }
:where(.pg-cbt-mock-result) .grade-share-item strong { display: block; font-size: 18px; color: #0f172a; }
:where(.pg-cbt-mock-result) .grade-share-item.is-mine { border-color: #2563eb; background: #eff6ff; }
:where(.pg-cbt-mock-result) .dist-note { margin: 12px 0 0; font-size: 12px; color: #333333; line-height: 1.7; }
:where(.pg-cbt-mock-result) .stage-bars-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
:where(.pg-cbt-mock-result) .stage-bar-item {
      display: grid;
      grid-template-columns: 200px 1fr 65px;
      align-items: center;
      gap: 14px;
    }
:where(.pg-cbt-mock-result) .stage-bar-label {
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
    }
:where(.pg-cbt-mock-result) .stage-bar-track {
      background: #e2e8f0;
      border-radius: 10px;
      height: 12px;
      overflow: hidden;
    }
:where(.pg-cbt-mock-result) .stage-bar-fill {
      height: 100%;
      border-radius: 10px;
      background: #2563eb;
      transition: width 0.6s ease;
    }
:where(.pg-cbt-mock-result) .stage-bar-val {
      font-size: 13px;
      font-weight: 800;
      color: #1e3a8a;
      text-align: right;
    }

    /* 全問正誤・復習リスト */
:where(.pg-cbt-mock-result) .filter-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }
:where(.pg-cbt-mock-result) .filter-tab-btn {
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: #333333;
      font-size: 13px;
      font-weight: 700;
      padding: 6px 16px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s;
    }
:where(.pg-cbt-mock-result) .filter-tab-btn.is-active {
      background: #1e3a8a;
      border-color: #1e3a8a;
      color: #ffffff;
    }
:where(.pg-cbt-mock-result) .answers-review-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
:where(.pg-cbt-mock-result) .ans-card-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px 16px;
      transition: all 0.15s;
    }
:where(.pg-cbt-mock-result) .ans-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }
:where(.pg-cbt-mock-result) .ans-card-num {
      font-size: 13px;
      font-weight: 800;
      color: #1e3a8a;
    }
:where(.pg-cbt-mock-result) .ans-badge-correct {
      background: #d1fae5;
      color: #065f46;
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 4px;
    }
:where(.pg-cbt-mock-result) .ans-badge-wrong {
      background: #fee2e2;
      color: #991b1b;
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 4px;
    }
:where(.pg-cbt-mock-result) .ans-card-qtext {
      font-size: 14px;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 10px;
      line-height: 1.5;
    }
:where(.pg-cbt-mock-result) .ans-detail-box {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 12.5px;
      line-height: 1.5;
      color: #333333;
    }
:where(.pg-cbt-mock-result) .ans-detail-box strong {
      color: #1e3a8a;
    }

/* ===== ページ: feature01/index.php（pg-feature01） ===== */
:where(.pg-feature01) .tag.feature.point-amber {
  background: #f59e0b;
}

  /* 酒造好適米の基礎：生産量ランキング（特集3と同じ見た目） */
:where(.pg-feature01) .ranking-table-grid {
  margin: 20px 0 12px;
}
:where(.pg-feature01) .basics-note a {
    color: #1d4ed8;
    text-decoration: underline;
  }
  @media screen and (max-width: 768px) {
:where(.pg-feature01) .ranking-table-grid {
      grid-template-columns: 1fr;
    }
}

/* ===== ページ: feature02/index.php（pg-feature02） ===== */
/* ==========================================================================
   特集2：地理的表示（exam/feature02/index.php）専用スタイル集約
   ========================================================================== *//* ポイントカードのタグ */
:where(.pg-feature02) .sake-point-header .tag.feature {
  background: #f59e0b;
  color: #ffffff;
  border: none;
}

/* 関連キーワード / クロスパートナー枠 */
:where(.pg-feature02) .cross-partner {
  background: #e2e8f0;
  color: #1e293b;
}

/* 復習クイズエリア */
:where(.pg-feature02) .block_random-base.gi-quiz-base {
  background: transparent;
}
:where(.pg-feature02) .gi-quiz-title {
  text-align: center;
  color: #b91c1c;
}
:where(.pg-feature02) .gi-quiz-lead {
  text-align: center;
  margin-bottom: 20px;
  color: #1e293b;
}

/* ===== ページ: feature03/index.php（pg-feature03） ===== */
/* 特集3：都道府県別の特徴 洗練スタイル *//* 都道府県クイックジャンプナビゲーション */
:where(.pg-feature03) .pref-nav-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 36px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:where(.pg-feature03) .pref-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.pg-feature03) .pref-nav-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}
:where(.pg-feature03) .pref-nav-group:last-child {
  border-bottom: none;
}
:where(.pg-feature03) .pref-nav-region {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 95px;
  text-align: center;
}
:where(.pg-feature03) .pref-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}
:where(.pg-feature03) .pref-nav-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
:where(.pg-feature03) .pref-nav-btn:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.15);
}

/* 地方別ヘッダーバナー */
:where(.pg-feature03) .region-header-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 48px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.2);
}
:where(.pg-feature03) .region-header-banner .count-badge {
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ランキンググリッド ＆ ランキングカード */
:where(.pg-feature03) .ranking-table-grid {
  margin: 20px 0 28px;
}
:where(.pg-feature03) .ranking-item > div {
  flex-shrink: 0; /* 府県名を折り返さず、数値側で折り返す */
}
:where(.pg-feature03) .ranking-item > span {
  text-align: right;
}
 /* 金 */
 /* 銀 */
 /* 銅 */

/* 杜氏流派カードグリッド */
:where(.pg-feature03) .toji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
:where(.pg-feature03) .toji-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:where(.pg-feature03) .toji-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
:where(.pg-feature03) .toji-area {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
}
:where(.pg-feature03) .toji-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
}

/* 都道府県 基本データバッジグリッド */
:where(.pg-feature03) .pref-stat-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
:where(.pg-feature03) .pref-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:where(.pg-feature03) .pref-stat-label {
  font-size: 11px;
  color: #333333;
  font-weight: 600;
}
:where(.pg-feature03) .pref-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e3a8a;
}

/* 都道府県詳細（原料・気候風土・酒質） */
:where(.pg-feature03) .pref-detail-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:where(.pg-feature03) .pref-detail-section {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
:where(.pg-feature03) .pref-detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
:where(.pg-feature03) .pref-detail-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.pg-feature03) .pref-detail-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
}

/* タグ各種（酒米・酵母・水・食） */
:where(.pg-feature03) .pref-rice-tag,
:where(.pg-feature03) .pref-yeast-tag,
:where(.pg-feature03) .pref-water-tag,
:where(.pg-feature03) .pref-food-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
:where(.pg-feature03) .pref-rice-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
:where(.pg-feature03) .pref-yeast-tag {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
:where(.pg-feature03) .pref-water-tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
:where(.pg-feature03) .pref-food-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
/* 集約スタイル */
:where(.pg-feature03) .tag.feature.point-amber {
  background: #f59e0b;
}
:where(.pg-feature03) .tag.feature.point-blue {
  background: #2563eb;
  color: #fff;
  border: none;
}
:where(.pg-feature03) .tag.feature.point-red {
  background: #ef4444;
  color: #fff;
  border: none;
}
:where(.pg-feature03) .toji-card.toji-nanbu {
  border-left-color: #ef4444;
}
:where(.pg-feature03) .toji-badge.toji-nanbu {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: bold;
}
:where(.pg-feature03) .toji-card.toji-echigo {
  border-left-color: #3b82f6;
}
:where(.pg-feature03) .toji-badge.toji-echigo {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: bold;
}
:where(.pg-feature03) .toji-card.toji-tanba {
  border-left-color: #10b981;
}
:where(.pg-feature03) .toji-badge.toji-tanba {
  font-size: 0.75rem;
  color: #059669;
  font-weight: bold;
}
:where(.pg-feature03) .toji-card.toji-tajima {
  border-left-color: #8b5cf6;
}
:where(.pg-feature03) .toji-badge.toji-tajima {
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: bold;
}
:where(.pg-feature03) .pref-detail-wrapper.mt-15 {
  margin-top: 15px;
}

/* ===== ページ: feature04/index.php（pg-feature04） ===== */
/* 特集4：焼酎専用 和モダン洗練スタイル *//* 目次クイックナビゲーション */
:where(.pg-feature04) .shochu-nav-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 36px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:where(.pg-feature04) .shochu-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-feature04) .shochu-nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
:where(.pg-feature04) .shochu-nav-btn {
  display: block;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a8a !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
:where(.pg-feature04) .shochu-nav-btn:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15);
}

/* セクションバナー */
:where(.pg-feature04) .section-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 16.5px;
  font-weight: 700;
  margin: 40px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
}
:where(.pg-feature04) .section-banner .banner-sub {
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* サツマイモ・伝来ルート・特産品カード（2列グリッド） */
:where(.pg-feature04) .variety-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 28px;
}
:where(.pg-feature04) .variety-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
:where(.pg-feature04) .variety-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.pg-feature04) .variety-card-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
  flex-grow: 1;
}

/* ハイライトバッジ */
:where(.pg-feature04) .highlight-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 9999px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap;
}
:where(.pg-feature04) .badge-amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
:where(.pg-feature04) .badge-blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
:where(.pg-feature04) .badge-purple {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
:where(.pg-feature04) .badge-red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
:where(.pg-feature04) .badge-green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* 比較テーブル */
:where(.pg-feature04) .compare-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 28px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:where(.pg-feature04) .compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13.5px;
}
:where(.pg-feature04) .compare-table th,
:where(.pg-feature04) .compare-table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
  line-height: 1.65;
}
:where(.pg-feature04) .compare-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}
:where(.pg-feature04) .compare-table td {
  color: #1e293b;
}

/* 歴史年表テーブル */
:where(.pg-feature04) .table-year {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 13.5px;
}
:where(.pg-feature04) .table-year th,
:where(.pg-feature04) .table-year td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.7;
}
:where(.pg-feature04) .table-year th {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}
:where(.pg-feature04) .table-year tr:last-child td {
  border-bottom: none;
}
:where(.pg-feature04) .table-year td:first-child {
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  white-space: nowrap;
  vertical-align: top;
}
:where(.pg-feature04) .table-year .pageNumber {
  color: #333333;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

/* コネクタ縦線 */
:where(.pg-feature04) .sakemai-tree-wrapper .tree-connector-main .line {
  width: 2px;
  height: 16px;
  background: #191970;
  margin: 0 auto;
}

/* ↓印刷用（2026-11-20）：もとはページに埋め込まれ、画面の種類の指定が無かったので、印刷（A4・レターの幅は約720〜740px）にも効いていた。同じ働きを保つため、style_sp.css の同じ指定を写した */
/* モバイル・レスポンシブ対応 */
@media print and (max-width: 767px) {
:where(.pg-feature04) .variety-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
:where(.pg-feature04) .variety-card {
    padding: 14px 14px;
    border-radius: 8px;
  }
:where(.pg-feature04) .variety-card-title {
    font-size: 14.5px;
  }
:where(.pg-feature04) .section-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 16px;
    font-size: 15px;
  }
:where(.pg-feature04) .section-banner .banner-sub {
    font-size: 11.5px;
    padding: 2px 8px;
  }
:where(.pg-feature04) .shochu-nav-wrapper {
    padding: 14px 14px;
  }
:where(.pg-feature04) .shochu-nav-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
:where(.pg-feature04) .shochu-nav-btn {
    padding: 8px 6px;
    font-size: 12.5px;
  }
:where(.pg-feature04) .table-year th,
:where(.pg-feature04) .table-year td {
    padding: 10px 12px;
    font-size: 13px;
  }
:where(.pg-feature04) .compare-table th,
:where(.pg-feature04) .compare-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
/* 集約スタイル */
:where(.pg-feature04) .shochu-lead-text {
  margin-bottom: 20px;
}
:where(.pg-feature04) .shochu-nav-btn-quiz {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  font-weight: bold;
}
:where(.pg-feature04) .tag.feature.point-sky {
  background: #0284c7;
  color: #fff;
  border: none;
}
:where(.pg-feature04) .tag.feature.point-rose {
  background: #e11d48;
  color: #fff;
  border: none;
}
:where(.pg-feature04) .tag.feature.point-amber {
  background: #d97706;
}
:where(.pg-feature04) .tag.feature.point-yellow {
  background: #f59e0b;
  color: #fff;
  border: none;
}
:where(.pg-feature04) .title_border.mt-35 {
  margin-top: 35px;
}
:where(.pg-feature04) .shochu-table-year th.th-year {
  width: 22%;
}
:where(.pg-feature04) .shochu-table-year th.th-event {
  width: 66%;
}
:where(.pg-feature04) .shochu-table-year th.th-ref {
  width: 12%;
}
:where(.pg-feature04) .section-headline.mt-20 {
  margin-top: 20px;
}

/* ===== ページ: feature05/index.php（pg-feature05） ===== */
:where(.pg-feature05) .tag.feature.point-amber {
  background: #f59e0b;
}
  /* 酵母の一覧表：酵母名と年は折り返さない */
:where(.pg-feature05) .yeast-table td:first-child,
:where(.pg-feature05) .yeast-table td.nowrap {
    white-space: nowrap;
  }

/* ===== ページ: history/index.php（pg-history） ===== */
:where(.pg-history) .quiz-section.block_random-base {
  background: transparent;
}
:where(.pg-history) .quiz-section .title_border {
  text-align: center;
  color: #b91c1c;
}
:where(.pg-history) .quiz-section .quiz-lead-text {
  text-align: center;
  margin-bottom: 20px;
  color: #1e293b;
}

/* ===== ページ: index.php（pg-top） ===== */
/* ==========================================================================
   トップページ（exam/index.php）専用スタイル
   運営元サイト（pairingworks.com）のトーンに寄せた、余白の多いLP風の構成。
   クラスは tp- で始め、共通CSSと衝突しないようにしている。
   ========================================================================== */
:where(.pg-top) .tp-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ---------- ヒーロー ---------- */
:where(.pg-top) .tp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7fc 0%, #eef3fa 58%, #ffffff 100%);
  padding: 88px 0 72px;
}
:where(.pg-top) .tp-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 86, 163, 0.10) 0%, rgba(45, 86, 163, 0) 70%);
  pointer-events: none;
}
/* 蛇の目（利き猪口の青い二重円）をモチーフにした飾り */
:where(.pg-top) .tp-hero-janome {
  position: absolute;
  top: 50%;
  right: -110px;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.9) 0 24%,
      rgba(45, 86, 163, 0.10) 24% 30%,
      rgba(255, 255, 255, 0.9) 30% 50%,
      rgba(45, 86, 163, 0.10) 50% 56%,
      rgba(255, 255, 255, 0.7) 57% 70%,
      rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 30px 80px rgba(45, 86, 163, 0.05);
  pointer-events: none;
}
:where(.pg-top) .tp-hero .tp-inner {
  position: relative;
}
:where(.pg-top) .tp-hero-title {
  margin: 0 0 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}
:where(.pg-top) .tp-hero-title-key {
  display: block;
  margin-bottom: 14px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-main-dark);
}
:where(.pg-top) .tp-hero-title-copy {
  display: block;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 48px;
}
:where(.pg-top) .tp-hero-title-copy em {
  font-style: normal;
  color: var(--c-main);
}
:where(.pg-top) .tp-hero-lead {
  max-width: 660px;
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  color: #1e293b;
}
:where(.pg-top) .tp-hero-lead a,
:where(.pg-top) .tp-sec-lead a {
  color: var(--c-main-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(.pg-top) .tp-hero-lead a:hover,
:where(.pg-top) .tp-sec-lead a:hover {
  color: var(--c-main);
}
:where(.pg-top) .tp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
:where(.pg-top) .tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
:where(.pg-top) .tp-btn small {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
:where(.pg-top) .tp-btn-primary {
  background: linear-gradient(135deg, var(--c-main-dark) 0%, var(--c-main) 55%, #3f86c8 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(45, 86, 163, 0.28);
}
:where(.pg-top) .tp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 86, 163, 0.34);
}
:where(.pg-top) .tp-btn-ghost {
  background: #ffffff;
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
}
:where(.pg-top) .tp-btn-ghost:hover {
  background: var(--c-main-light);
}
/* ヒーローの説明文の下に置く、控えめなリンクボタン（検索から来た人向けの「酒ディプロマとは」への入口） */
:where(.pg-top) .tp-hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
:where(.pg-top) .tp-btn.tp-btn-sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
}
:where(.pg-top) .tp-nb {
  display: inline-block; /* 狭い画面では、この語のまとまりの前で折り返す */
}
:where(.pg-top) .tp-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 14px 56px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
:where(.pg-top) .tp-hero-stats .tp-hero-stats-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--c-main);
}
:where(.pg-top) .tp-hero-stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-main-dark);
  line-height: 1.3;
}
:where(.pg-top) .tp-hero-stats span {
  font-weight: 500;
  font-size: 13px;
  color: #1e293b;
}

/* 期間限定のお知らせ（アンケート・キャンペーン） */
:where(.pg-top) .tp-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 1em;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}
:where(.pg-top) .tp-notice-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}
:where(.pg-top) .tp-notice-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
}
:where(.pg-top) .tp-notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #451a03;
}
:where(.pg-top) .tp-notice .tp-btn {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  background: #d97706;
  color: #ffffff;
}

/* ---------- セクション共通 ---------- */
:where(.pg-top) .tp-section {
  padding: 96px 0;
}
:where(.pg-top) .tp-section.is-alt {
  background: var(--c-bg-alt);
}
:where(.pg-top) .tp-sec-head {
  margin-bottom: 44px;
}
:where(.pg-top) .tp-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--c-main);
}
:where(.pg-top) .tp-sec-title {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
}
:where(.pg-top) .tp-sec-title .pr-label {
  margin-left: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 12px;
}
:where(.pg-top) .tp-sec-lead {
  margin: 0;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.95;
  color: #1e293b;
}
:where(.pg-top) .tp-sub-title {
  margin: 56px 0 20px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
}
:where(.pg-top) .tp-sub-title small {
  margin-left: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}

/* カード */
:where(.pg-top) .tp-grid {
  display: grid;
  gap: 20px;
}
:where(.pg-top) .tp-grid-2 { grid-template-columns: repeat(2, 1fr); }
:where(.pg-top) .tp-grid-3 { grid-template-columns: repeat(3, 1fr); }
:where(.pg-top) .tp-grid-4 { grid-template-columns: repeat(4, 1fr); }
:where(.pg-top) .tp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
:where(.pg-top) .tp-card:has(.tp-card-tag) {
  padding-top: 32px;
}
:where(.pg-top) a.tp-card:hover {
  transform: translateY(-3px);
  border-color: #c7d6ef;
  box-shadow: var(--shadow-lg);
  color: inherit;
}
:where(.pg-top) .tp-card-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--c-main-light);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-main);
}
:where(.pg-top) .tp-card-tag.is-premium {
  background: #fff7ed;
  color: #c2410c;
}
:where(.pg-top) .tp-card-tag.is-ronjutsu {
  background: var(--c-sub-light);
  color: var(--c-sub);
}
:where(.pg-top) .tp-card-tag.is-free {
  background: #ecfdf5;
  color: #047857;
}
:where(.pg-top) .tp-card-title {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
}
:where(.pg-top) .tp-card-desc {
  flex: 1;
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.75;
  color: #1e293b;
}
:where(.pg-top) .tp-card-more {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-main-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(45, 86, 163, 0.35);
  text-underline-offset: 5px;
}
:where(.pg-top) a.tp-card:hover .tp-card-more {
  text-decoration-color: var(--c-main);
}
:where(.pg-top) .tp-card-more::after {
  content: " →";
}
:where(.pg-top) .tp-card-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-card-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7ed;
  font-size: 13.5px;
  font-weight: 800;
  color: #9a3412;
  text-decoration: none;
}
:where(.pg-top) .tp-card-links a::after {
  content: "→";
}
:where(.pg-top) .tp-card-links a:hover {
  background: #ffedd5;
}

/* 章別4択 */
:where(.pg-top) .tp-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-chapters a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 34px 14px 16px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
:where(.pg-top) .tp-chapters a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--c-main);
}
:where(.pg-top) .tp-chapters a:hover {
  border-color: var(--c-main);
  background: var(--c-main-light);
}
:where(.pg-top) .tp-chapters span {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-main);
}
:where(.pg-top) .tp-chapters strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
}

/* 二次試験の2段階（①テイスティング ↓ ②論述） */
:where(.pg-top) .tp-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
}
:where(.pg-top) .tp-stage {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
:where(.pg-top) .tp-stage-head {
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--c-main-dark) 0%, var(--c-main) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
:where(.pg-top) .tp-stage.is-ronjutsu .tp-stage-head {
  background: linear-gradient(135deg, var(--c-sub-dark) 0%, var(--c-sub) 100%);
}
:where(.pg-top) .tp-stage-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(.pg-top) .tp-stage-step {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.2;
}
:where(.pg-top) .tp-stage-title {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
:where(.pg-top) .tp-stage-fact {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.16);
  padding: 5px 14px;
  border-radius: 20px;
}
:where(.pg-top) .tp-stage-body {
  padding: 28px 32px 30px;
}
:where(.pg-top) .tp-stage-text {
  margin: 0 0 22px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.85;
  color: #1e293b;
}
:where(.pg-top) .tp-stage-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
:where(.pg-top) .tp-stage-specs.is-single {
  grid-template-columns: 1fr;
}
:where(.pg-top) .tp-spec-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px 20px;
}
:where(.pg-top) .tp-spec-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 7px;
}
:where(.pg-top) .tp-spec-list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  color: #1e293b;
}
:where(.pg-top) .tp-spec-list.is-themes {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.pg-top) .tp-spec-list.is-themes li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
}
:where(.pg-top) .tp-spec-list.is-themes li strong {
  color: #0f172a;
  font-weight: 800;
}
:where(.pg-top) .tp-spec-list.is-themes li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 800;
  color: var(--c-sub);
}
:where(.pg-top) .tp-spec-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
}
:where(.pg-top) .tp-stage-links-wrap {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
:where(.pg-top) .tp-stage-links-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  text-transform: uppercase;
}
:where(.pg-top) .tp-stage-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
:where(.pg-top) .tp-stage-link-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
:where(.pg-top) .tp-stage-link-card:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: inherit;
}
:where(.pg-top) .tp-stage-link-card:hover .tp-stage-link-title {
  color: #0f172a;
}
:where(.pg-top) .tp-stage-link-card:hover .tp-stage-link-desc {
  color: #333333;
}
:where(.pg-top) .tp-stage-link-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.pg-top) .tp-stage-link-title::after {
  content: "→";
  font-size: 16px;
  font-weight: 800;
  color: var(--c-main);
  transition: transform 0.2s ease;
}
:where(.pg-top) .tp-stage.is-ronjutsu .tp-stage-link-title::after {
  color: var(--c-sub);
}
:where(.pg-top) .tp-stage-link-card:hover .tp-stage-link-title::after {
  transform: translateX(4px);
}
:where(.pg-top) .tp-stage-link-desc {
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  line-height: 1.55;
}
/* 2つの段階をつなぐ矢印（下向き） */
:where(.pg-top) .tp-stage-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
:where(.pg-top) .tp-stage-arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--c-border-strong);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text-sub);
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 練習ツール（大きめのカード） */
:where(.pg-top) .tp-tool {
  position: relative;
  padding: 34px 32px 30px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
:where(.pg-top) .tp-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-main) 0%, #3f86c8 100%);
}
:where(.pg-top) .tp-tool.is-ronjutsu::before {
  background: linear-gradient(90deg, var(--c-sub) 0%, #e05273 100%);
}
:where(.pg-top) .tp-tool-title {
  margin: 10px 0 12px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
}
:where(.pg-top) .tp-tool-points {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-tool-points li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
}
:where(.pg-top) .tp-tool-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-main);
}
:where(.pg-top) .tp-tool.is-ronjutsu .tp-tool-points li::before {
  background: var(--c-sub);
}
:where(.pg-top) .tp-tool-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #1e293b;
}
:where(.pg-top) .tp-tool.is-tasting .tp-btn-primary {
  background: linear-gradient(135deg, var(--c-main-dark) 0%, var(--c-main) 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.22);
}
:where(.pg-top) .tp-tool.is-ronjutsu .tp-btn-primary {
  background: linear-gradient(135deg, var(--c-sub-dark) 0%, var(--c-sub) 100%);
  box-shadow: 0 10px 24px rgba(182, 0, 51, 0.22);
}

/* 練習ツールは縦に重ねる（大判カード） */
:where(.pg-top) .tp-tools {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
:where(.pg-top) .tp-tool.is-wide {
  padding: 40px 40px 36px;
}
:where(.pg-top) .tp-tool.is-wide .tp-tool-title {
  font-size: 28px;
}
:where(.pg-top) .tp-tool.is-wide .tp-tool-main .tp-card-desc {
  font-size: 15px;
}
:where(.pg-top) .tp-tool-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-tool-features li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  padding: 20px 20px 18px;
  border-radius: 14px;
}
:where(.pg-top) .tp-tool.is-tasting .tp-tool-features li {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
}
:where(.pg-top) .tp-tool.is-ronjutsu .tp-tool-features li {
  background: var(--c-sub-light);
  border: 1px solid #f3d3da;
}
:where(.pg-top) .tp-tool-feat-no {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
:where(.pg-top) .tp-tool.is-tasting .tp-tool-feat-no {
  color: var(--c-main);
}
:where(.pg-top) .tp-tool.is-ronjutsu .tp-tool-feat-no {
  color: var(--c-sub);
}
:where(.pg-top) .tp-tool-features h4 {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}
:where(.pg-top) .tp-tool-features p {
  width: 100%;
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.85;
  color: #1e293b;
}
:where(.pg-top) .tp-tool-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
:where(.pg-top) .tp-tool-cta .tp-tool-note {
  margin: 0;
}

/* ご利用の流れと利用者の声（藍色の背景にして、STEP と VOICE を目立たせる） */
:where(.pg-top) .tp-section.is-navy {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63, 134, 200, 0.28) 0%, rgba(63, 134, 200, 0) 60%),
    var(--c-main-dark);
}
:where(.pg-top) .is-navy .tp-sec-head {
  margin-bottom: 76px; /* 番号の円がカードの上にはみ出す分の余白 */
}
:where(.pg-top) .is-navy .tp-eyebrow {
  color: #f6c453;
}
:where(.pg-top) .is-navy .tp-sec-title {
  color: #ffffff;
}
:where(.pg-top) .is-navy .tp-sec-lead {
  color: rgba(255, 255, 255, 0.92);
}

/* 上段：ご利用の流れ（STEP 1〜3） */
:where(.pg-top) .tp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
}
:where(.pg-top) .tp-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 24px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}
:where(.pg-top) .tp-step-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* 番号の円（カードの上端にかぶせる） */
:where(.pg-top) .tp-step-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: -40px auto 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #f6c453;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  color: var(--c-main-dark);
  line-height: 1;
}
:where(.pg-top) .tp-step-mark small {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--c-main);
}
:where(.pg-top) .tp-step-mark b {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 30px;
  font-weight: 700;
}
:where(.pg-top) .tp-step-title {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}
:where(.pg-top) .tp-step-subcatch {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #f6c453;
  line-height: 1.5;
  text-align: center;
}
:where(.pg-top) .tp-step-desc {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.8;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}
:where(.pg-top) .tp-step-features-wrap {
  flex: 1;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
:where(.pg-top) .tp-step-features-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
}
:where(.pg-top) .tp-step-features {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
:where(.pg-top) .tp-step-features li {
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0;
}
:where(.pg-top) .tp-step-features li:last-child {
  margin-bottom: 0;
}
:where(.pg-top) .tp-step-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 800;
  color: #f6c453;
  line-height: 1.6;
}
:where(.pg-top) .tp-step-note {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
}


/* STEP 3（プレミアム会員）強調デザイン */
:where(.pg-top) .tp-steps li.is-premium {
  border-color: #f6c453;
  background: rgba(246, 196, 83, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(246, 196, 83, 0.2);
}
:where(.pg-top) .tp-steps li.is-premium .tp-step-mark {
  background: #f6c453;
  border-color: #ffffff;
}
:where(.pg-top) .tp-steps li.is-premium .tp-step-mark small {
  color: var(--c-main-dark);
}
:where(.pg-top) .tp-steps li.is-premium .tp-step-features-wrap {
  background: rgba(15, 39, 68, 0.35);
  border-color: rgba(246, 196, 83, 0.25);
}

/* 下段：利用者の声（VOICE） */
:where(.pg-top) .tp-voice-section {
  margin-top: 60px;
}
:where(.pg-top) .tp-voice-divider {
  height: 1px;
  max-width: 800px;
  margin: 0 auto 52px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
}
:where(.pg-top) .tp-voice-head {
  text-align: center;
  margin-bottom: 36px;
}
:where(.pg-top) .tp-voice-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.16);
  border: 1px solid rgba(246, 196, 83, 0.5);
  color: #f6c453;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
:where(.pg-top) .tp-voice-title {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}
:where(.pg-top) .tp-voice-lead {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
:where(.pg-top) .tp-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
:where(.pg-top) .tp-voice-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
:where(.pg-top) .tp-voice-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(246, 196, 83, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
:where(.pg-top) .tp-voice-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
:where(.pg-top) .tp-voice-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
:where(.pg-top) .tp-voice-avatar-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 19px;
  line-height: 1;
}
:where(.pg-top) .tp-voice-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
:where(.pg-top) .tp-voice-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.pg-top) .tp-voice-user-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.pg-top) .tp-voice-status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
:where(.pg-top) .tp-voice-comment {
  flex: 1;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-align: left;
}
:where(.pg-top) .tp-voice-features {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
:where(.pg-top) .tp-voice-features-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 2px;
}
:where(.pg-top) .tp-voice-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(63, 134, 200, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
:where(.pg-top) .tp-voice-disclaimer {
  margin: 0 0 40px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.6;
}

/* 最下部：CTAボタンエリア */
:where(.pg-top) .tp-voice-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
:where(.pg-top) .is-navy .tp-btn-primary {
  background: #ffffff;
  color: var(--c-main-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
:where(.pg-top) .is-navy .tp-btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}
:where(.pg-top) .is-navy .tp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}
:where(.pg-top) .tp-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* お知らせ */
:where(.pg-top) .tp-news {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-border);
}
:where(.pg-top) .tp-news li {
  display: flex;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14.5px;
  line-height: 1.7;
}
:where(.pg-top) .tp-news time {
  flex-shrink: 0;
  width: 96px;
  font-weight: 700;
  color: var(--c-main);
}
:where(.pg-top) .tp-news a {
  color: var(--c-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.3);
  text-underline-offset: 4px;
}
:where(.pg-top) .tp-news a:hover {
  color: var(--c-main);
  text-decoration-color: var(--c-main);
}
:where(.pg-top) .tp-news .is-notice a {
  color: #b45309;
}

/* おすすめ書籍・グッズ（PR） */
:where(.pg-top) .tp-goods {
  display: flex;
  gap: 22px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--c-border);
}
:where(.pg-top) .tp-goods-img {
  flex-shrink: 0;
  width: 110px;
}
:where(.pg-top) .tp-goods-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
:where(.pg-top) .tp-goods h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
:where(.pg-top) .tp-goods h3 a {
  color: var(--c-text);
  text-decoration: none;
}
:where(.pg-top) .tp-goods p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #1e293b;
}
:where(.pg-top) .tp-goods-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
:where(.pg-top) .tp-goods-btn.is-amazon {
  background: #ffd814;
  color: #0f1111;
}
:where(.pg-top) .tp-goods-btn.is-adv {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff;
}

/* ========== 晩酌メーカー（エンタメ・ペアリング診断） ========== */
:where(.pg-top) .tp-section.is-bansyaku {
  background: linear-gradient(180deg, #fffdfa 0%, #fef5e7 50%, #fff9f0 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.22);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  position: relative;
}
:where(.pg-top) .tp-bansyaku-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}
:where(.pg-top) .tp-bansyaku-title {
  color: #78350f;
  margin-bottom: 10px;
}
:where(.pg-top) .tp-bansyaku-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
:where(.pg-top) .tp-bansyaku-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
:where(.pg-top) .tp-bansyaku-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.18);
  border-color: #f59e0b;
}
:where(.pg-top) .tp-bansyaku-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
:where(.pg-top) .tp-bansyaku-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
:where(.pg-top) .tp-bansyaku-card:hover .tp-bansyaku-thumb img {
  transform: scale(1.05);
}
:where(.pg-top) .tp-bansyaku-badge {
  position: absolute;
  top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}
:where(.pg-top) .tp-bansyaku-badge.is-fun {
  left: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
:where(.pg-top) .tp-bansyaku-badge.is-sake {
  right: 12px;
  background: rgba(30, 58, 138, 0.92);
  color: #eff6ff;
  border: 1px solid rgba(147, 197, 253, 0.5);
}
:where(.pg-top) .tp-bansyaku-badge.is-shochu {
  right: 12px;
  background: rgba(180, 83, 9, 0.92);
  color: #fef3c7;
  border: 1px solid rgba(253, 230, 138, 0.5);
}
:where(.pg-top) .tp-bansyaku-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
}
:where(.pg-top) .tp-bansyaku-card-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
:where(.pg-top) .tp-bansyaku-card:hover .tp-bansyaku-card-title {
  color: #b45309;
}
:where(.pg-top) .tp-bansyaku-card-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #333333;
}
:where(.pg-top) .tp-bansyaku-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
:where(.pg-top) .tp-bansyaku-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #333333;
  border: 1px solid #e2e8f0;
}
:where(.pg-top) .tp-bansyaku-pill.is-highlight {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
:where(.pg-top) .tp-bansyaku-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
:where(.pg-top) .tp-bansyaku-btn.is-sake {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
:where(.pg-top) .tp-bansyaku-btn.is-shochu {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #ea580c 100%);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}
:where(.pg-top) .tp-bansyaku-card:hover .tp-bansyaku-btn {
  transform: translateY(-2px);
  opacity: 0.95;
}
:where(.pg-top) .tp-bansyaku-card:hover .tp-bansyaku-btn.is-sake {
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}
:where(.pg-top) .tp-bansyaku-card:hover .tp-bansyaku-btn.is-shochu {
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.4);
}

/* ===== ページ: kihon/result/index.php（pg-kihon-result） ===== */
/* ==========================================================================
   4択問題 採点結果ページ（exam/kihon/result/index.php）専用スタイル集約
   ========================================================================== *//* ゲスト案内通知ボックス（リッチCTAカード） */
:where(.pg-kihon-result) #guestNoticeBox {
  display: none;
  max-width: 540px;
  margin: 18px auto 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fcd34d;
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  transition: all 0.3s ease;
}
:where(.pg-kihon-result) .guest-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
:where(.pg-kihon-result) .guest-notice-icon {
  font-size: 1.6rem;
  line-height: 1;
}
:where(.pg-kihon-result) .guest-notice-title {
  color: #78350f;
  font-size: 1.05rem;
  font-weight: 800;
  display: block;
}
:where(.pg-kihon-result) .guest-notice-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.6;
}
:where(.pg-kihon-result) .guest-notice-desc strong {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}
:where(.pg-kihon-result) .btn-guest-save-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937 !important;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 30px;
  border: 1.5px solid #e5e7eb;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
:where(.pg-kihon-result) .btn-guest-save-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
:where(.pg-kihon-result) .guest-save-microcopy {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  color: #b45309;
  margin-top: 8px;
  font-weight: 600;
}

/* 保存成功＆バッジ獲得カード */
:where(.pg-kihon-result) #guestSaveSuccessArea {
  display: none;
  max-width: 540px;
  margin: 18px auto 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.15);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
:where(.pg-kihon-result) .save-success-title {
  color: #166534;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
:where(.pg-kihon-result) .save-success-desc {
  color: #15803d;
  font-size: 0.88rem;
  margin: 0 0 14px;
  line-height: 1.5;
}
:where(.pg-kihon-result) .unlocked-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0 14px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}
:where(.pg-kihon-result) .unlocked-badge-icon {
  font-size: 2.2rem;
  line-height: 1;
}
:where(.pg-kihon-result) .unlocked-badge-info h4 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1e293b;
}
:where(.pg-kihon-result) .unlocked-badge-info p {
  margin: 0;
  font-size: 0.78rem;
  color: #333333;
}
:where(.pg-kihon-result) .badge-tier-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
:where(.pg-kihon-result) .tier-bronze { background: #fed7aa; color: #9a3412; }
:where(.pg-kihon-result) .tier-silver { background: #e2e8f0; color: #333333; }
:where(.pg-kihon-result) .tier-gold { background: #fef08a; color: #854d0e; }
:where(.pg-kihon-result) .tier-special { background: #e9d5ff; color: #6b21a8; }
:where(.pg-kihon-result) .saving-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 不正解リトライ枠 */
:where(.pg-kihon-result) .review-action-box {
  margin: 28px auto 16px;
  max-width: 460px;
  text-align: center;
}
:where(.pg-kihon-result) #reviewActionBox {
  display: none;
}
:where(.pg-kihon-result) .btn-retry-incorrect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 36px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
:where(.pg-kihon-result) .btn-retry-incorrect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}
:where(.pg-kihon-result) .btn-retry-icon {
  font-size: 1.3rem;
  line-height: 1;
}
:where(.pg-kihon-result) #incorrectCountBadge {
  background: #ffffff;
  color: #c2410c;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 1.05rem;
  margin: 0 2px;
}

/* マイページ結果CTAボタン */
:where(.pg-kihon-result) .mypage-result-cta {
  margin: 20px auto 16px;
  max-width: 460px;
  text-align: center;
}
:where(.pg-kihon-result) .btn-mypage-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.2s;
}
:where(.pg-kihon-result) .btn-mypage-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}
:where(.pg-kihon-result) .btn-mypage-arrow {
  font-size: 1.05rem;
}

/* 回答履歴エリア */
:where(.pg-kihon-result) #historyArea {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: left;
}

/* ===== ページ: kihon2026/index.php（pg-kihon2026） ===== */
/* 出題モード切替バー */
:where(.pg-kihon2026) .quiz-mode-nav {
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}
:where(.pg-kihon2026) .quiz-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
:where(.pg-kihon2026) .quiz-mode-label {
  font-size: 11px;
  font-weight: 800;
  color: #333333;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:where(.pg-kihon2026) .quiz-mode-btn-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}
:where(.pg-kihon2026) .quiz-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #333333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
:where(.pg-kihon2026) .quiz-mode-btn span {
  white-space: nowrap;
}
:where(.pg-kihon2026) .quiz-mode-btn.is-active {
  background: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
:where(.pg-kihon2026) .quiz-mode-btn.is-unattempted-active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}
:where(.pg-kihon2026) .quiz-mode-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}
:where(.pg-kihon2026) .badge-lock {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
:where(.pg-kihon2026) .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
:where(.pg-kihon2026) .badge-count-inactive {
  background: #e2e8f0;
  color: #333333;
}
:where(.pg-kihon2026) .quiz-mode-desc {
  font-size: 12px;
  color: #333333;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.pg-kihon2026) .quiz-mode-desc-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-kihon2026) .quiz-mode-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.pg-kihon2026) #quizModeRemainText {
  font-size: 11.5px;
  font-weight: 700;
  color: #333333;
}
:where(.pg-kihon2026) .unattempted-modal-badge {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
/* 見出しの下の説明（問題集としての案内） */
:where(.pg-kihon2026) .quiz-intro-text {
  margin: 0 0 18px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.8;
  color: #1e293b;
}

/* ===== ページ: meigara/index.php（pg-meigara） ===== */
/* ==========================================================================
   銘柄・出題傾向ページ（exam/meigara/index.php）専用スタイル集約
   ========================================================================== */
:where(.pg-meigara) main {
  padding-bottom: 60px;
}

/* 1. メイン：年度別過去問一覧 */
:where(.pg-meigara) .meigara-main-lead {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.7;
  margin: 0 0 16px;
}

/* 年度クイックジャンプナビ */

/* 2. 補足説明セクション共通デザイン */
:where(.pg-meigara) .meigara-sub-points .sub-box-badge {
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}
:where(.pg-meigara) .meigara-sub-format .sub-box-badge {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

/* 補足ボックス内のポイントカード */

/* 補足ボックス内の配点情報ボックス */


/* トレーニング用アイテム紹介（ADV公式）カード */
/* 2つのリンク（ショップのトップ／セットの詳細）を区別する */

/* 唎酒練習用ツールカード */

/* おすすめ参考書籍・グッズ（PR） */

/* ===== ページ: mypage/index.php（pg-mypage） ===== */
:where(body.pg-mypage) {
      --primary: #1e3a8a;
      --primary-dark: #0f172a;
      --primary-light: #3b82f6;
      --accent: #2563eb;
      --accent-gold: #f59e0b;
      --accent-gold-dark: #b45309;
      --bg-light: #f8fafc;
      --card-bg: #ffffff;
      --text-main: #0f172a;
      --text-muted: #333333;
      --border-color: #e2e8f0;
      --success: #10b981;
      --danger: #ef4444;
      --radius: 12px;
    }
:where(.pg-mypage) .main-container,
:where(.pg-mypage) .main-container *,
:where(.pg-mypage) .ronjutsu-modal,
:where(.pg-mypage) .ronjutsu-modal * {
      box-sizing: border-box;
    }
body:where(.pg-mypage) {
      background-color: var(--bg-light);
    }

    /* メインコンテナ */
:where(.pg-mypage) .main-container {
      max-width: 1080px;
      width: 100%;
      margin: 0 auto;
      padding: 24px 20px 60px;
      flex: 1;
    }

    /* ヒーローバナー */
:where(.pg-mypage) .mypage-hero {
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      color: #ffffff;
      padding: 32px 28px;
      border-radius: 16px;
      margin-bottom: 24px;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
      position: relative;
      overflow: hidden;
    }
:where(.pg-mypage) .mypage-hero::after {
      content: 'SAKE DIPLOMA';
      position: absolute;
      right: -20px;
      bottom: -25px;
      font-size: 4.8rem;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.04);
      pointer-events: none;
      line-height: 1;
    }
:where(.pg-mypage) .mypage-hero-badge {
      display: inline-block;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #93c5fd;
      font-size: 11.5px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      margin-bottom: 10px;
      letter-spacing: 0.05em;
    }
:where(.pg-mypage) .mypage-hero h1 {
      font-size: 1.65rem;
      font-weight: 800;
      margin: 0 0 8px;
      letter-spacing: 0.02em;
    }
:where(.pg-mypage) .mypage-hero p {
      font-size: 13.5px;
      color: #cbd5e1;
      margin: 0;
      line-height: 1.6;
    }

    /* ユーザープロファイルバー */
:where(.pg-mypage) .user-profile-bar {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 16px 20px;
      margin-bottom: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
    }
:where(.pg-mypage) .user-profile-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }
:where(.pg-mypage) .user-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 2px solid #3b82f6;
      object-fit: cover;
    }
:where(.pg-mypage) .user-avatar-placeholder {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }
:where(.pg-mypage) .user-name-box h2 {
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 3px;
    }
:where(.pg-mypage) .user-name-box p {
      font-size: 12px;
      color: #333333;
      margin: 0;
    }
:where(.pg-mypage) .user-profile-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .user-plan-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 20px;
    }
:where(.pg-mypage) .badge-free {
      background: #f1f5f9;
      color: #1e293b;
      border: 1px solid #cbd5e1;
    }
:where(.pg-mypage) .badge-premium {
      background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
      color: #92400e;
      border: 1px solid #f59e0b;
      box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
    }
:where(.pg-mypage) .user-plan-expires {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11.5px;
      font-weight: 700;
      color: #92400e;
      background: #fffbeb;
      border: 1px solid #fde68a;
      padding: 4px 10px;
      border-radius: 14px;
      white-space: nowrap;
    }
:where(.pg-mypage) .btn-upgrade {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: #ffffff;
      font-size: 12.5px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 8px;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-mypage) .btn-upgrade:hover {
      opacity: 0.95;
      transform: translateY(-1px);
    }
:where(.pg-mypage) .btn-logout {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #333333;
      font-size: 12px;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }

    /* 未ログイン時カード */
:where(.pg-mypage) .guest-guide-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 32px 24px;
      text-align: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
      margin-bottom: 28px;
    }
:where(.pg-mypage) .guest-icon {
      font-size: 48px;
      margin-bottom: 12px;
      display: inline-block;
    }
:where(.pg-mypage) .guest-guide-card h2 {
      font-size: 1.35rem;
      font-weight: 800;
      color: #0f172a;
      margin: 0 0 10px;
    }
:where(.pg-mypage) .guest-guide-card p {
      font-size: 14px;
      color: #1e293b;
      margin: 0 auto 24px;
      line-height: 1.7;
    }
:where(.pg-mypage) .guest-login-cta-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 10px;
      padding: 12px 28px;
      font-size: 15px;
      font-weight: 700;
      color: #1e293b;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
      transition: all 0.2s;
    }
:where(.pg-mypage) .google-g-icon {
      width: 20px;
      height: 20px;
    }
:where(.pg-mypage) .guest-login-popup-hint {
      margin: 10px 0 0;
      font-size: 12px;
      color: #333333;
      line-height: 1.5;
    }

    /* 4択問題 進捗ダッシュボード */
:where(.pg-mypage) .btn-review-cta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
      color: #ffffff !important;
      font-size: 12px;
      font-weight: 800;
      padding: 6px 14px;
      border-radius: 20px;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
      transition: all 0.2s;
    }
:where(.pg-mypage) .btn-review-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
    }
:where(.pg-mypage) .quiz-overview-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 20px 24px;
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 24px;
      align-items: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
      margin-bottom: 20px;
    }
    @media (max-width: 768px) {
:where(.pg-mypage) .quiz-overview-card {
        grid-template-columns: 1fr;
      }
}
:where(.pg-mypage) .overview-stat-row {
      display: flex;
      gap: 28px;
      margin-bottom: 14px;
    }
:where(.pg-mypage) .overview-stat-item {
      display: flex;
      flex-direction: column;
    }
:where(.pg-mypage) .overview-label {
      font-size: 11px;
      font-weight: 700;
      color: #333333;
      margin-bottom: 2px;
    }
:where(.pg-mypage) .overview-val {
      font-size: 24px;
      font-weight: 900;
      color: #0f172a;
    }
:where(.pg-mypage) .overview-val small {
      font-size: 13px;
      font-weight: 600;
      color: #333333;
    }
:where(.pg-mypage) .text-weak {
      color: #ea580c;
    }
:where(.pg-mypage) .progress-bar-bg {
      width: 100%;
      height: 10px;
      background: #e2e8f0;
      border-radius: 5px;
      overflow: hidden;
    }
:where(.pg-mypage) .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
      border-radius: 5px;
      transition: width 0.5s ease;
    }
:where(.pg-mypage) .quiz-overview-right {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
:where(.pg-mypage) .btn-big-review {
      background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
      color: #ffffff !important;
      text-decoration: none;
      border-radius: 10px;
      padding: 12px 16px;
      text-align: center;
      font-weight: 800;
      font-size: 13.5px;
      box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.2s;
    }
:where(.pg-mypage) .btn-big-review:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(234, 88, 12, 0.38);
    }
:where(.pg-mypage) .btn-big-review small {
      font-size: 10.5px;
      font-weight: normal;
      opacity: 0.9;
      margin-top: 2px;
    }
:where(.pg-mypage) .btn-normal-quiz {
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      color: #1e293b !important;
      text-decoration: none;
      border-radius: 8px;
      padding: 8px 14px;
      text-align: center;
      font-size: 12px;
      font-weight: 700;
      transition: all 0.2s;
    }
:where(.pg-mypage) .btn-normal-quiz:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
:where(.pg-mypage) .stage-progress-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
    }
:where(.pg-mypage) .stage-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      transition: border-color 0.2s;
    }
:where(.pg-mypage) .stage-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
:where(.pg-mypage) .stage-name {
      font-size: 12px;
      font-weight: 800;
      color: #1e293b;
    }
:where(.pg-mypage) .stage-badge-weak {
      font-size: 10.5px;
      font-weight: 700;
      color: #c2410c;
      background: #ffedd5;
      padding: 1px 7px;
      border-radius: 10px;
    }
:where(.pg-mypage) .stage-mini-bar-bg {
      width: 100%;
      height: 6px;
      background: #f1f5f9;
      border-radius: 3px;
      overflow: hidden;
    }
:where(.pg-mypage) .stage-mini-bar-fill {
      height: 100%;
      background: #3b82f6;
      border-radius: 3px;
      transition: width 0.4s ease;
    }
:where(.pg-mypage) .stage-card-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 4px;
    }
:where(.pg-mypage) .stage-card-actions a {
      font-size: 11px;
      font-weight: 700;
      text-decoration: none;
    }
:where(.pg-mypage) .weak-item-card {
      background: #ffffff;
      border: 1px solid #fed7aa;
      border-left: 4px solid #ea580c;
      border-radius: 10px;
      padding: 14px 18px;
      margin-bottom: 10px;
    }
:where(.pg-mypage) .weak-q-text {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.5;
      margin: 0 0 6px;
    }
:where(.pg-mypage) .weak-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 11.5px;
      color: #333333;
    }
:where(.pg-mypage) .weak-ans-text {
      color: #15803d;
      font-weight: 700;
    }

    /* 各セクションの見出し */
:where(.pg-mypage) .history-section-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 16px;
      border-bottom: 2px solid #e2e8f0;
      padding-bottom: 12px;
    }
:where(.pg-mypage) .history-section-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0;
      line-height: 1.35;
    }
:where(.pg-mypage) .history-item-count {
      font-size: 13px;
      font-weight: 700;
      color: #333333;
    }

    /* 答案・模範解答の2列表示（論述コレクションのモーダル） */
:where(.pg-mypage) .detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
    }
    @media (max-width: 768px) {
:where(.pg-mypage) .detail-grid {
        grid-template-columns: 1fr;
      }
}
:where(.pg-mypage) .detail-box {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 14px 16px;
    }
:where(.pg-mypage) .detail-box-title {
      font-size: 12.5px;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-mypage) .detail-text {
      font-size: 13.5px;
      line-height: 1.7;
      color: #1e293b;
      white-space: pre-wrap;
      word-break: break-all;
    }
:where(.pg-mypage) .feedback-box {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-radius: 8px;
      padding: 14px 16px;
      margin-top: 16px;
    }
:where(.pg-mypage) .feedback-box-title {
      font-size: 13px;
      font-weight: 800;
      color: #166534;
      margin-bottom: 6px;
    }
:where(.pg-mypage) .feedback-text {
      font-size: 13px;
      color: #14532d;
      line-height: 1.65;
      white-space: pre-wrap;
    }
:where(.pg-mypage) .keywords-tag-container {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }
:where(.pg-mypage) .kw-tag {
      font-size: 11.5px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
:where(.pg-mypage) .kw-hit {
      background: #ecfdf5;
      color: #065f46;
      border: 1px solid #a7f3d0;
    }
:where(.pg-mypage) .kw-miss {
      background: #f1f5f9;
      color: #333333;
      border: 1px solid #e2e8f0;
    }



    /* 下部ナビゲーションバー（戻りリンク） */
:where(.pg-mypage) .bottom-nav-section {
      margin-top: 40px;
      padding-top: 24px;
      border-top: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .bottom-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.2s;
    }
:where(.pg-mypage) .btn-nav-top {
      background: #ffffff;
      border: 1.5px solid var(--border-color);
      color: #1e293b;
    }
:where(.pg-mypage) .btn-nav-top:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
      color: #0f172a;
    }
:where(.pg-mypage) .btn-nav-ronjutsu {
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      color: #ffffff;
      border: 1.5px solid transparent;
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    }
:where(.pg-mypage) .btn-nav-ronjutsu:hover {
      opacity: 0.95;
      transform: translateY(-1px);
      box-shadow: 0 5px 15px rgba(37, 99, 235, 0.35);
    }

    /* ==========================================================================
       アチーブメント・実績コレクション（PlayStation / Steam風スタイル）
       ========================================================================== */
:where(.pg-mypage) .badge-section-container {
      margin-bottom: 48px;
    }
:where(.pg-mypage) .badge-overall-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      color: #f8fafc;
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
      flex-shrink: 0;
    }
:where(.pg-mypage) .trophy-season-tag {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.05em;
      background: linear-gradient(135deg, #4f46e5, #7c3aed);
      color: #ffffff;
      padding: 3px 8px;
      border-radius: 9999px;
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
      margin-left: 8px;
      box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
    }
:where(.pg-mypage) .trophy-season-tag.archive {
      background: linear-gradient(135deg, #475569, #64748b);
      box-shadow: 0 2px 4px rgba(71, 85, 105, 0.25);
    }
:where(.pg-mypage) .trophy-year-tabs {
      display: inline-flex;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      padding: 3px;
      gap: 2px;
    }
:where(.pg-mypage) .trophy-year-tab {
      background: transparent;
      border: none;
      outline: none;
      font-size: 12px;
      font-weight: 700;
      color: #333333;
      padding: 4px 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
:where(.pg-mypage) .trophy-year-tab:hover {
      color: #0f172a;
    }
:where(.pg-mypage) .trophy-year-tab.is-active {
      background: #ffffff;
      color: #2563eb;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* 2027シーズン注意書きバナー */
:where(.pg-mypage) .trophy-notice-box {
      display: flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
      border: 1.5px solid #bfdbfe;
      border-left: 6px solid #2563eb;
      border-radius: 10px;
      padding: 14px 18px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    }
:where(.pg-mypage) .trophy-notice-icon {
      font-size: 24px;
      line-height: 1;
      flex-shrink: 0;
    }
:where(.pg-mypage) .trophy-notice-text {
      font-size: 15.5px;
      font-weight: 700;
      color: #1e3a8a;
      line-height: 1.5;
      letter-spacing: 0.01em;
    }
    
    /* トロフィー集計バナー（PS/SteamゲーミングUI風） */
:where(.pg-mypage) .trophy-summary-banner {
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      padding: 20px 24px;
      color: #f8fafc;
      box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }
:where(.pg-mypage) .trophy-summary-banner::before {
      content: "";
      position: absolute;
      top: -50%;
      right: -20%;
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
      pointer-events: none;
    }
:where(.pg-mypage) .trophy-pills-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }
:where(.pg-mypage) .trophy-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid transparent;
      backdrop-filter: blur(8px);
      transition: transform 0.2s ease;
    }
:where(.pg-mypage) .trophy-pill-platinum {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(56, 189, 248, 0.15) 100%);
      border-color: rgba(168, 85, 247, 0.45);
      box-shadow: 0 2px 10px rgba(168, 85, 247, 0.15);
    }
:where(.pg-mypage) .trophy-pill-gold {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(251, 191, 36, 0.12) 100%);
      border-color: rgba(245, 158, 11, 0.45);
      box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
    }
:where(.pg-mypage) .trophy-pill-silver {
      background: linear-gradient(135deg, rgba(148, 163, 184, 0.18) 0%, rgba(203, 213, 225, 0.12) 100%);
      border-color: rgba(148, 163, 184, 0.4);
      box-shadow: 0 2px 8px rgba(148, 163, 184, 0.12);
    }
:where(.pg-mypage) .trophy-pill-bronze {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(180, 83, 9, 0.12) 100%);
      border-color: rgba(217, 119, 6, 0.4);
      box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
    }
:where(.pg-mypage) .trophy-pill-icon {
      font-size: 22px;
      line-height: 1;
    }
:where(.pg-mypage) .trophy-pill-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
:where(.pg-mypage) .trophy-pill-label {
      font-size: 11px;
      color: #e2e8f0;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    }
:where(.pg-mypage) .trophy-pill-val {
      font-size: 15px;
      font-weight: 800;
      color: #ffffff;
      font-variant-numeric: tabular-nums;
    }

    /* トロフィー進捗バー */
:where(.pg-mypage) .trophy-progress-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }
:where(.pg-mypage) .trophy-progress-bar-bg {
      flex: 1;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      height: 10px;
      overflow: hidden;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    }
:where(.pg-mypage) .trophy-progress-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #f472b6 100%);
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
    }
:where(.pg-mypage) .trophy-progress-percent {
      font-size: 13px;
      font-weight: 800;
      color: #38bdf8;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
:where(.pg-mypage) .trophy-share-row {
      margin-top: 14px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }
:where(.pg-mypage) .btn-trophy-share {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #0f172a;
      color: #ffffff !important;
      border: 1px solid #334155;
      font-size: 11.5px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
    }
:where(.pg-mypage) .btn-card-share {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #0f172a;
      color: #ffffff !important;
      border: none;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 14px;
      cursor: pointer;
      transition: all 0.15s ease;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
      margin-left: auto;
      white-space: nowrap;
      text-decoration: none !important;
      line-height: 1.2;
    }
:where(.pg-mypage) .btn-card-share:hover {
      background: #1e293b;
      transform: translateY(-1px);
      box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
    }
:where(.pg-mypage) .btn-card-share:active {
      transform: translateY(0);
    }
:where(.pg-mypage) .btn-card-share svg {
      flex-shrink: 0;
    }


    /* フィルタタブ */
:where(.pg-mypage) .badge-filter-nav {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      overflow-x: auto;
      padding-bottom: 4px;
    }
:where(.pg-mypage) .badge-filter-btn {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #1e293b;
      font-size: 12.5px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
:where(.pg-mypage) .badge-filter-btn.is-active {
      background: #0f172a;
      color: #ffffff;
      border-color: #0f172a;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    }

    /* トロフィーグリッド */
:where(.pg-mypage) .badge-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 12px;
    }

    /* トロフィー個別カード */
:where(.pg-mypage) .badge-card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      background: #ffffff;
    }
:where(.pg-mypage) .badge-card-main {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      width: 100%;
    }
:where(.pg-mypage) .badge-card.has-link {
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }
:where(.pg-mypage) .badge-action-link {
      font-size: 10.5px;
      font-weight: 700;
      color: #2563eb;
      display: inline-flex;
      align-items: center;
      gap: 2px;
      margin: 0 0 0 auto;
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.15s ease, transform 0.15s ease;
    }
:where(.pg-mypage) .is-locked .badge-action-link {
      color: #2563eb;
      margin: 0 0 0 auto;
    }

    /* アンロック済みカード装飾 */
:where(.pg-mypage) .badge-card.is-unlocked.badge-tier-platinum {
      border: 1.5px solid #a855f7;
      background: linear-gradient(145deg, #ffffff 0%, #faf5ff 50%, #eff6ff 100%);
      box-shadow: 0 4px 18px rgba(168, 85, 247, 0.14);
    }
:where(.pg-mypage) .badge-card.is-unlocked.badge-tier-platinum::after {
      content: "";
      position: absolute;
      top: 0; right: 0; width: 60px; height: 60px;
      background: linear-gradient(135deg, transparent 50%, rgba(168, 85, 247, 0.15) 100%);
      pointer-events: none;
    }
:where(.pg-mypage) .badge-card.is-unlocked.badge-tier-gold {
      border: 1.5px solid #f59e0b;
      background: linear-gradient(145deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.16);
    }
:where(.pg-mypage) .badge-card.is-unlocked.badge-tier-silver {
      border: 1.5px solid #94a3b8;
      background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
      box-shadow: 0 3px 12px rgba(148, 163, 184, 0.16);
    }
:where(.pg-mypage) .badge-card.is-unlocked.badge-tier-bronze {
      border: 1.5px solid #d97706;
      background: linear-gradient(145deg, #ffffff 0%, #fffbeb 60%, #ffedd5 100%);
      box-shadow: 0 3px 12px rgba(217, 119, 6, 0.14);
    }

    /* ロック状態カード */
:where(.pg-mypage) .badge-card.is-locked {
      background: #f8fafc;
      border: 1.5px dashed #cbd5e1;
      opacity: 0.88;
    }

    /* トロフィーアイコン円形エンブレム */
:where(.pg-mypage) .badge-emblem-wrap {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      line-height: 1;
      flex-shrink: 0;
      position: relative;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      transition: transform 0.25s ease;
    }
:where(.pg-mypage) .is-unlocked .badge-emblem-platinum {
      background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
      border: 2px solid #a855f7;
      box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
    }
:where(.pg-mypage) .is-unlocked .badge-emblem-gold {
      background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
      border: 2px solid #f59e0b;
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    }
:where(.pg-mypage) .is-unlocked .badge-emblem-silver {
      background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
      border: 2px solid #94a3b8;
      box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
    }
:where(.pg-mypage) .is-unlocked .badge-emblem-bronze {
      background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
      border: 2px solid #d97706;
      box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
    }
:where(.pg-mypage) .is-locked .badge-emblem-wrap {
      background: #e2e8f0;
      border: 2px solid #cbd5e1;
      filter: grayscale(1);
      opacity: 0.55;
    }
:where(.pg-mypage) .badge-lock-overlay {
      position: absolute;
      bottom: -3px;
      right: -3px;
      width: 18px;
      height: 18px;
      background: #475569;
      color: #ffffff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      border: 1.5px solid #ffffff;
      box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }

    /* トロフィー詳細情報 */
:where(.pg-mypage) .badge-content {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }
:where(.pg-mypage) .badge-top-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 2px;
    }
:where(.pg-mypage) .badge-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.35;
    }
:where(.pg-mypage) .is-locked .badge-title {
      color: #1e293b;
    }
:where(.pg-mypage) .badge-tier-tag {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap;
      flex-shrink: 0;
    }
:where(.pg-mypage) .badge-tag-platinum {
      background: #faf5ff;
      color: #7e22ce;
      border: 1px solid #d8b4fe;
    }
:where(.pg-mypage) .badge-tag-gold {
      background: #fefce8;
      color: #a16207;
      border: 1px solid #fde047;
    }
:where(.pg-mypage) .badge-tag-silver {
      background: #f8fafc;
      color: #1e293b;
      border: 1px solid #cbd5e1;
    }
:where(.pg-mypage) .badge-tag-bronze {
      background: #fff7ed;
      color: #9a3412;
      border: 1px solid #fed7aa;
    }
:where(.pg-mypage) .badge-condition-text {
      font-size: 12px;
      color: #333333;
      line-height: 1.4;
      margin-bottom: 5px;
    }
:where(.pg-mypage) .is-locked .badge-condition-text {
      color: #333333;
    }

    /* トロフィーフッター / 状態表示 */
:where(.pg-mypage) .badge-footer-status {
      width: 100%;
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      font-size: 11px;
      padding-top: 6px;
      border-top: 1px dashed rgba(0, 0, 0, 0.08);
    }
:where(.pg-mypage) .is-locked .badge-footer-status {
      border-top-color: #e2e8f0;
    }
:where(.pg-mypage) .badge-unlocked-pill {
      color: #16a34a;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 2px;
      white-space: nowrap;
      flex-shrink: 0;
      font-size: 10.5px;
    }
:where(.pg-mypage) .badge-unlocked-date {
      font-size: 10px;
      color: #333333;
      font-weight: 600;
    }
:where(.pg-mypage) .badge-locked-progress {
      color: #333333;
      font-weight: 700;
      font-size: 11px;
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      flex-shrink: 0;
    }
:where(.pg-mypage) .badge-locked-pill {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      background: #f1f5f9;
      color: #333333;
      font-size: 10px;
      font-weight: 700;
      padding: 1.5px 5px;
      border-radius: 4px;
      white-space: nowrap;
      flex-shrink: 0;
    }
:where(.pg-mypage) .badge-status-left {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px 6px;
      width: 100%;
    }
:where(.pg-mypage) .badge-unlock-rate {
      font-size: 10px;
      color: #333333;
      font-weight: 700;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 1px 5px;
      border-radius: 4px;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      letter-spacing: 0.2px;
      flex-shrink: 0;
    }
:where(.pg-mypage) .is-unlocked .badge-unlock-rate {
      background: rgba(22, 163, 74, 0.08);
      color: #15803d;
      border-color: rgba(22, 163, 74, 0.2);
    }

    /* ==========================================================================
       論述コンプリートコレクション＆模擬問題スロットUI
       ========================================================================== */
:where(.pg-mypage) .ronjutsu-view-switch {
      display: inline-flex;
      background: #f1f5f9;
      padding: 3px;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      gap: 4px;
    }
:where(.pg-mypage) .btn-switch-view {
      border: none;
      background: transparent;
      color: #333333;
      font-size: 12.5px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 7px;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
:where(.pg-mypage) .btn-switch-view.is-active {
      background: #ffffff;
      color: #0f172a;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
      font-weight: 800;
    }

    /* 論述進捗バナー（ダークゲーミングスタイル） */
:where(.pg-mypage) .ronjutsu-complete-banner {
      background: linear-gradient(135deg, #09122c 0%, #111d44 60%, #1e3a8a 100%);
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: 14px;
      padding: 20px 24px;
      color: #f8fafc;
      box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }
:where(.pg-mypage) .ronjutsu-complete-banner::before {
      content: "";
      position: absolute;
      top: -40%;
      right: -15%;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(147, 51, 234, 0.1) 60%, transparent 80%);
      pointer-events: none;
    }
:where(.pg-mypage) .rj-pills-row {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
:where(.pg-mypage) .rj-pill {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 12px;
      border-radius: 9px;
      backdrop-filter: blur(8px);
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }
:where(.pg-mypage) .rj-pill-icon {
      font-size: 19px;
      line-height: 1;
    }
:where(.pg-mypage) .rj-pill-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
:where(.pg-mypage) .rj-pill-label {
      font-size: 11.5px;
      color: #e2e8f0;
      font-weight: 700;
      white-space: nowrap;
      letter-spacing: 0.03em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    }
:where(.pg-mypage) .rj-pill-val {
      font-size: 15px;
      font-weight: 800;
      color: #ffffff;
      font-variant-numeric: tabular-nums;
      margin-top: 1px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
:where(.pg-mypage) .rj-progress-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }
:where(.pg-mypage) .rj-progress-bar-bg {
      flex: 1;
      background: rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      height: 10px;
      overflow: hidden;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    }
:where(.pg-mypage) .rj-progress-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 40%, #10b981 100%);
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    }
:where(.pg-mypage) .rj-progress-percent {
      font-size: 13px;
      font-weight: 800;
      color: #38bdf8;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    /* 論述フィルターナビゲーション */
:where(.pg-mypage) .ronjutsu-filter-nav {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: thin;
    }
:where(.pg-mypage) .q-filter-btn {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #1e293b;
      font-size: 12px;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
:where(.pg-mypage) .q-filter-btn.is-active {
      background: #1e3a8a;
      color: #ffffff;
      border-color: #1e3a8a;
      box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
    }

    /* 論述スロットグリッド */
:where(.pg-mypage) .ronjutsu-slots-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 14px;
      margin-bottom: 36px;
    }

    /* スロット個別カード */
:where(.pg-mypage) .ronjutsu-slot-card {
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      position: relative;
      user-select: none;
      min-width: 0;
      box-sizing: border-box;
      word-break: break-word;
      overflow-wrap: break-word;
    }
    /* 提出済みスロット */
:where(.pg-mypage) .ronjutsu-slot-card.is-answered {
      background: #ffffff;
      border: 1.5px solid #93c5fd;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    }
:where(.pg-mypage) .ronjutsu-slot-card.is-answered.tier-gold {
      border-color: #f59e0b;
      background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%);
      box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
    }

    /* 未提出スロット */
:where(.pg-mypage) .ronjutsu-slot-card.is-unanswered {
      background: #f8fafc;
      border: 1.5px dashed #cbd5e1;
      opacity: 0.92;
    }

    /* 第2〜8章はプレミアム限定の案内（無料会員のタブ列に表示） */
:where(.pg-mypage) .rj-locked-tab-note {
      display: none;
      align-items: center;
      font-size: 12px;
      font-weight: 700;
      color: #92400e;
      background: #fffbeb;
      border: 1px solid #fcd34d;
      border-radius: 999px;
      padding: 4px 12px;
    }

    /* ロック中スロット（無料会員の第2章以降） */
:where(.pg-mypage) .ronjutsu-slot-card.is-locked {
      background: #f1f5f9;
      border: 1.5px dashed #cbd5e1;
      opacity: 0.78;
    }
:where(.pg-mypage) .is-locked .slot-action-hint {
      color: #92400e;
    }

    /* スロット内部パーツ */
:where(.pg-mypage) .slot-meta-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 8px;
    }
:where(.pg-mypage) .slot-category-tag {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 140px;
    }
:where(.pg-mypage) .tag-past-exam {
      background: #eff6ff;
      color: #1e40af;
      border: 1px solid #bfdbfe;
    }
:where(.pg-mypage) .tag-chapter {
      background: #f1f5f9;
      color: #1e293b;
      border: 1px solid #e2e8f0;
    }
:where(.pg-mypage) .slot-page-tag {
      font-size: 10px;
      color: #333333;
      font-weight: 600;
      white-space: nowrap;
    }
:where(.pg-mypage) .slot-title {
      font-size: 13.5px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.4;
      margin: 0 0 10px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex: 1;
    }
:where(.pg-mypage) .is-unanswered .slot-title {
      color: #1e293b;
    }
:where(.pg-mypage) .slot-footer {
      margin-top: auto;
      padding-top: 8px;
      border-top: 1px dashed #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 6px 8px;
    }
:where(.pg-mypage) .slot-score-pill {
      display: inline-flex;
      align-items: baseline;
      gap: 2px;
      font-size: 13px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 5px;
    }
:where(.pg-mypage) .slot-score-pill.pill-high {
      background: #ecfdf5;
      color: #065f46;
    }
:where(.pg-mypage) .slot-score-pill.pill-mid {
      background: #eff6ff;
      color: #1e40af;
    }
:where(.pg-mypage) .slot-score-pill.pill-low {
      background: #fff1f2;
      color: #9f1239;
    }
:where(.pg-mypage) .slot-unanswered-label {
      font-size: 11px;
      font-weight: 700;
      color: #333333;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
:where(.pg-mypage) .slot-action-hint {
      font-size: 11px;
      font-weight: 700;
      color: #2563eb;
      margin-left: auto;
    }
:where(.pg-mypage) .is-unanswered .slot-action-hint {
      color: #333333;
    }

    /* ==========================================================================
       詳細ポップアップモーダル（問題＆答案＆AI講評ビューワー）
       ========================================================================== */
:where(.pg-mypage) .ronjutsu-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(4px);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
:where(.pg-mypage) .ronjutsu-modal-overlay.is-open {
      display: flex;
      opacity: 1;
    }
:where(.pg-mypage) .ronjutsu-modal-card {
      background: #ffffff;
      border-radius: 16px;
      max-width: 780px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.3);
      position: relative;
      display: flex;
      flex-direction: column;
      animation: rjModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes rjModalIn {
      from {
        transform: scale(0.95) translateY(10px);
      }
      to {
        transform: scale(1) translateY(0);
      }
    }
:where(.pg-mypage) .modal-header {
      padding: 18px 24px;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      position: sticky;
      top: 0;
      background: #ffffff;
      z-index: 10;
      border-radius: 16px 16px 0 0;
    }
:where(.pg-mypage) .modal-header-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 6px;
    }
:where(.pg-mypage) .modal-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: #0f172a;
      margin: 0;
      line-height: 1.4;
    }
:where(.pg-mypage) .btn-modal-close {
      background: #f1f5f9;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: #333333;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.2s;
    }
:where(.pg-mypage) .modal-body {
      padding: 20px 24px;
      overflow-y: auto;
    }
:where(.pg-mypage) .modal-prompt-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 20px;
    }
:where(.pg-mypage) .modal-prompt-label {
      font-size: 11.5px;
      font-weight: 800;
      color: #333333;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-mypage) .modal-prompt-text {
      font-size: 13.5px;
      color: #1e293b;
      line-height: 1.6;
      font-weight: 600;
    }
    /* 論述詳細：最高得点と最新の答案の切り替え */
:where(.pg-mypage) .rj-attempt-summary {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }
:where(.pg-mypage) .rj-attempt-tab {
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
      padding: 6px 12px;
      border: 1.5px solid #cbd5e1;
      border-radius: 999px;
      background: #ffffff;
      color: #333333;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
    }
:where(.pg-mypage) .rj-attempt-tab strong {
      font-size: 15px;
      color: #0f172a;
    }
:where(.pg-mypage) .rj-attempt-tab.is-active {
      border-color: #2563eb;
      background: #eff6ff;
      color: #1e40af;
    }
:where(.pg-mypage) .rj-attempt-tab.is-static {
      cursor: default;
    }
:where(.pg-mypage) .rj-attempt-date {
      font-size: 11px;
      font-weight: 500;
      color: #333333;
    }
:where(.pg-mypage) .rj-attempt-count {
      font-size: 12px;
      color: #333333;
      margin-left: auto;
    }
:where(.pg-mypage) .modal-status-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 18px;
      border-radius: 10px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .modal-status-banner.is-unlocked {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
    }
:where(.pg-mypage) .modal-status-banner.is-unlocked.tier-high {
      background: #ecfdf5;
      border-color: #a7f3d0;
    }
:where(.pg-mypage) .modal-status-banner.is-locked {
      background: #fffbeb;
      border: 1px solid #fde68a;
    }
:where(.pg-mypage) .modal-footer-actions {
      padding: 16px 24px;
      border-top: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      background: #fafafa;
      border-radius: 0 0 16px 16px;
    }

    /* マイページ 集約スタイル */
:where(.pg-mypage) #userProfileArea { display: none; }
:where(.pg-mypage) #userAvatarImg { display: none; }
:where(.pg-mypage) #userPlanExpiresText { display: none; }
:where(.pg-mypage) #btnUpgradePlan { display: none; }
:where(.pg-mypage) #userPlanBadge.is-loading {
      background: #f1f5f9;
      color: #333333;
      border: 1px solid #cbd5e1;
    }
:where(.pg-mypage) #badgeCollectionSection { display: none; }
:where(.pg-mypage) .history-section-header.mb-14 { margin-bottom: 14px; }
:where(.pg-mypage) .history-section-desc {
      font-size: 12px;
      color: #333333;
      margin: 4px 0 0;
    }
:where(.pg-mypage) #trophyProgressBar { width: 0%; }
:where(.pg-mypage) .mypage-loading-cell {
      grid-column: 1 / -1;
      text-align: center;
      padding: 30px;
      color: #333333;
      font-size: 12px;
    }
:where(.pg-mypage) #mockExamSection {
      display: none;
      margin-bottom: 48px;
    }
:where(.pg-mypage) .mock-mypage-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
:where(.pg-mypage) .mock-status-banner-unattempted {
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border: 1.5px solid #bfdbfe;
      border-radius: 14px;
      padding: 22px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .mock-status-banner-completed {
      background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
      border: 1.5px solid #bbf7d0;
      border-radius: 14px;
      padding: 22px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .btn-mock-action-blue {
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      color: #ffffff !important;
      font-size: 14.5px;
      font-weight: 800;
      padding: 12px 24px;
      border-radius: 24px;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
    }
:where(.pg-mypage) .btn-mock-action-blue:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    }
:where(.pg-mypage) .btn-mock-top-link {
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      border-radius: 20px;
      background: #eff6ff;
      color: #1d4ed8;
      display: inline-flex;
      align-items: center;
      border: 1px solid #bfdbfe;
      white-space: nowrap;
      flex-shrink: 0;
    }
:where(.pg-mypage) .mock-history-pills-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) .mock-history-pill {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
    }
:where(.pg-mypage) #quizProgressSection {
      display: none;
      margin-bottom: 48px;
    }
:where(.pg-mypage) .mypage-header-btn-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
:where(.pg-mypage) #btnMypageUnattemptedQuiz {
      display: none;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
      border-radius: 20px;
      background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
      color: #ffffff;
      align-items: center;
      gap: 5px;
      box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
    }
:where(.pg-mypage) .btn-normal-quiz {
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      border-radius: 20px;
      background: #f1f5f9;
      color: #1e293b;
      display: inline-flex;
      align-items: center;
      border: 1px solid #cbd5e1;
    }
:where(.pg-mypage) .quiz-overview-left { flex: 1; }
:where(.pg-mypage) .overview-val.val-blue { color: #2563eb; }
:where(.pg-mypage) .progress-bar-bg.mt-14 { margin-top: 14px; }
:where(.pg-mypage) #overallProgressBar { width: 0%; }
:where(.pg-mypage) .quiz-chapters-header {
      margin: 28px 0 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
:where(.pg-mypage) .quiz-chapters-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
      margin: 0;
    }
:where(.pg-mypage) .quiz-chapters-hint {
      font-size: 11.5px;
      color: #333333;
    }
:where(.pg-mypage) .mypage-chapters-loading {
      grid-column: 1 / -1;
      text-align: center;
      padding: 20px;
      color: #333333;
      font-size: 12px;
    }
:where(.pg-mypage) #weakNotebookSection {
      display: none;
      margin-bottom: 48px;
    }
:where(.pg-mypage) .badge-premium-pill {
      background: #ea580c;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 4px;
      margin-left: 8px;
      vertical-align: middle;
      letter-spacing: 0.02em;
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-block;
    }
:where(.pg-mypage) .weak-loading-cell {
      text-align: center;
      padding: 24px;
      color: #333333;
      font-size: 12.5px;
    }
:where(.pg-mypage) .history-section-header.flex-wrap-header {
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }
:where(.pg-mypage) .ml-auto { margin-left: auto; }
:where(.pg-mypage) #ronjutsuCollectionSection {
      display: none;
      margin-bottom: 48px;
    }
:where(.pg-mypage) #rjProgressBar { width: 0%; }
:where(.pg-mypage) .collection-initial-loading {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px;
      color: #333333;
    }
:where(.pg-mypage) #ronjutsuCollectionLockedArea { display: none; }
:where(.pg-mypage) #modalLengthBadge.slot-page-tag {
      background: #f1f5f9;
      padding: 2px 6px;
      border-radius: 4px;
    }

    /* JS動的生成UI用集約クラス */
:where(.pg-mypage) .mp-empty-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 24px;
      text-align: center;
      color: #333333;
      font-size: 13px;
    }
:where(.pg-mypage) .mp-promo-card {
      background: #ffffff;
      border: 2px dashed #93c5fd;
      border-radius: 14px;
      padding: 32px 20px;
      text-align: center;
      box-shadow: 0 4px 16px rgba(37,99,235,0.06);
    }
:where(.pg-mypage) .mp-promo-card.compact {
      padding: 28px 20px;
      margin-top: 16px;
      box-shadow: 0 4px 14px rgba(37,99,235,0.06);
    }
:where(.pg-mypage) .mp-promo-card.mini {
      border: 1.5px dashed #93c5fd;
      border-radius: 10px;
      padding: 16px 14px;
      margin-top: 0;
      box-shadow: none;
    }
:where(.pg-mypage) .mp-promo-card.orange {
      border-color: #fed7aa;
    }
:where(.pg-mypage) .mp-promo-icon {
      font-size: 36px;
      line-height: 1;
      margin-bottom: 12px;
    }
:where(.pg-mypage) .mp-promo-icon.compact {
      font-size: 32px;
      margin-bottom: 10px;
    }
:where(.pg-mypage) .mp-promo-badge {
      display: inline-block;
      background: #dbeafe;
      color: #1e40af;
      font-size: 12px;
      font-weight: 800;
      padding: 4px 14px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
:where(.pg-mypage) .mp-promo-badge.compact {
      font-size: 11.5px;
      padding: 3px 12px;
      margin-bottom: 10px;
    }
:where(.pg-mypage) .mp-promo-badge.mini {
      font-size: 10.5px;
      padding: 2px 8px;
      border-radius: 12px;
      margin-bottom: 6px;
    }
:where(.pg-mypage) .mp-promo-title {
      font-size: 16px;
      font-weight: 800;
      color: #1e3a8a;
      margin: 0 0 8px;
    }
:where(.pg-mypage) .mp-promo-title.compact {
      font-size: 15.5px;
      margin: 0 0 6px;
    }
:where(.pg-mypage) .mp-promo-title.mini {
      font-size: 13.5px;
      margin: 0 0 4px;
    }
:where(.pg-mypage) .mp-promo-title.orange {
      color: #9a3412;
      font-size: 16px;
      margin: 0 0 6px;
    }
:where(.pg-mypage) .mp-promo-desc {
      font-size: 13px;
      color: #333333;
      line-height: 1.7;
      margin: 0 0 18px;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
    }
:where(.pg-mypage) .mp-promo-desc.compact {
      font-size: 12.5px;
      margin: 0 auto 16px;
      max-width: 480px;
    }
:where(.pg-mypage) .mp-promo-desc.mini {
      font-size: 11.5px;
      color: #333333;
      line-height: 1.55;
      margin: 0 auto 12px;
    }
:where(.pg-mypage) .mp-promo-btn {
      display: inline-flex;
      text-decoration: none;
      font-size: 14px;
      padding: 11px 24px;
    }
:where(.pg-mypage) .mp-promo-btn.compact {
      font-size: 13.5px;
      padding: 9px 22px;
    }
:where(.pg-mypage) .mp-promo-btn.mini {
      font-size: 12px;
      padding: 7px 16px;
    }
:where(.pg-mypage) .mp-promo-btn.slate {
      background: #334155;
      font-size: 13px;
      padding: 8px 18px;
    }
:where(.pg-mypage) .mp-promo-btn.slate-mini {
      background: #334155;
      font-size: 13px;
      padding: 7px 16px;
    }
:where(.pg-mypage) .mp-points-grid {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
    }
:where(.pg-mypage) .mp-point-good {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-radius: 8px;
      padding: 10px 12px;
    }
:where(.pg-mypage) .mp-point-good-title {
      font-size: 11.5px;
      color: #166534;
    }
:where(.pg-mypage) .mp-point-good-list {
      margin: 4px 0 0;
      padding-left: 18px;
      font-size: 12px;
      color: #14532d;
      line-height: 1.5;
    }
:where(.pg-mypage) .mp-point-adv {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      padding: 10px 12px;
    }
:where(.pg-mypage) .mp-point-adv-title {
      font-size: 11.5px;
      color: #1e40af;
    }
:where(.pg-mypage) .mp-point-adv-list {
      margin: 4px 0 0;
      padding-left: 18px;
      font-size: 12px;
      color: #1e3a8a;
      line-height: 1.5;
    }
:where(.pg-mypage) .mp-model-ans-details {
      border: 1px solid #e9d5ff;
      background: #faf5ff;
      border-radius: 8px;
      margin-bottom: 8px;
      overflow: hidden;
    }
:where(.pg-mypage) .mp-model-ans-summary {
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 700;
      color: #6b21a8;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
    }
:where(.pg-mypage) .mp-model-ans-badge {
      font-size: 10.5px;
      background: #ffffff;
      color: #9333ea;
      border: 1px solid #d8b4fe;
      padding: 1.5px 6px;
      border-radius: 8px;
    }
:where(.pg-mypage) .mp-model-ans-content {
      padding: 10px 12px;
      border-top: 1px dashed #e9d5ff;
      font-size: 12px;
      color: #333333;
      line-height: 1.6;
      background: #ffffff;
    }
:where(.pg-mypage) .mp-history-error-msg {
      text-align: center;
      padding: 30px;
      color: #ef4444;
    }
:where(.pg-mypage) .mp-history-grid-error {
      grid-column: 1 / -1;
      text-align: center;
      padding: 30px;
      color: #ef4444;
    }
:where(.pg-mypage) .mp-badge-tag {
      display: inline-block;
      background: #eff6ff;
      color: #1e40af;
      border: 1px solid #bfdbfe;
      font-size: 11.5px;
      font-weight: 600;
      padding: 2.5px 7px;
      border-radius: 4px;
      margin: 2px 4px 2px 0;
    }
:where(.pg-mypage) .wk-mypage-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; padding: 18px 22px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; }
:where(.pg-mypage) .wk-mypage-eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: #1d4ed8; }
:where(.pg-mypage) .wk-mypage-title { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: #0f172a; }
:where(.pg-mypage) .wk-mypage-text { margin: 2px 0 0; font-size: 14px; color: #1e293b; }
:where(.pg-mypage) .wk-mypage-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: linear-gradient(135deg, #1e3a70 0%, #2d56a3 100%); color: #ffffff; font-size: 14px; font-weight: 800; text-decoration: none; }

/* ===== ページ: pairing1/index.php（pg-pairing1） ===== */
/* ==========================================================================
   日本酒ペアリング診断 アプリケーション専用スタイル
   ========================================================================== */
:where(body.pg-pairing1) {
  --c-main: #2d56a3;
  --c-sub: #b60033;
  --c-accent: #f18d00;
  --c-text: #222222;
  --c-bg: #f8fafc;
  --c-border: #e2e8f0;
}
:where(.pg-pairing1) .pairing-app-wrapper {
  background-color: var(--c-bg);
  padding: 24px 16px 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, Meiryo, sans-serif;
  color: var(--c-text);
  line-height: 1.6;
}
:where(.pg-pairing1) .pairing-app-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ヒーローヘッダー */
:where(.pg-pairing1) .app-hero-badge {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--c-main);
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}
:where(.pg-pairing1) .app-hero-title span {
  color: var(--c-main);
  background: linear-gradient(transparent 65%, #ffedd5 65%);
}

/* 都道府県セレクターカード */
:where(.pg-pairing1) .pref-selector-card {
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(45, 86, 163, 0.06);
}
:where(.pg-pairing1) .pref-selector-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
:where(.pg-pairing1) .pref-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}
:where(.pg-pairing1) .pref-icon {
  font-size: 1.2rem;
}
:where(.pg-pairing1) .pref-title {
  color: var(--c-main);
}
:where(.pg-pairing1) .pref-badge {
  font-size: 0.70rem;
  background: #eff6ff;
  color: var(--c-main);
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}
:where(.pg-pairing1) .pref-select-wrap {
  position: relative;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}
:where(.pg-pairing1) .pref-select {
  width: 100%;
  padding: 10px 34px 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
:where(.pg-pairing1) .pref-select:focus {
  outline: none;
  border-color: var(--c-main);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 86, 163, 0.15);
}
:where(.pg-pairing1) .pref-select-wrap::after {
  content: "▼";
  font-size: 0.65rem;
  color: var(--c-main);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* モード切り替えタブ */
:where(.pg-pairing1) .mode-tabs-container {
  background: #e2e8f0;
}
:where(.pg-pairing1) .mode-tab-btn {
  color: #1e293b;
}
:where(.pg-pairing1) .mode-tab-btn.active {
  color: var(--c-main);
}
:where(.pg-pairing1) .mode-tab-btn.gacha-tab.active {
  color: var(--c-accent);
}

/* 診断設定カード */
:where(.pg-pairing1) .app-card {
  border: 1px solid var(--c-border);
  border-radius: 20px;
}
:where(.pg-pairing1) .step-num {
  background: var(--c-main);
}

/* 選択ボタングリッド */
:where(.pg-pairing1) .grid-4cols {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
:where(.pg-pairing1) .choice-card-btn {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
}
:where(.pg-pairing1) .choice-card-btn.selected {
  border-color: var(--c-main);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(45, 86, 163, 0.15);
}
:where(.pg-pairing1) .choice-card-btn.selected .choice-name {
  color: var(--c-main);
}

/* 温度ピルボタン */
:where(.pg-pairing1) .temp-pills-wrap {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
:where(.pg-pairing1) .pill-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  color: #1e293b;
}
:where(.pg-pairing1) .pill-btn.selected {
  background: var(--c-main);
  border-color: var(--c-main);
  box-shadow: 0 4px 12px rgba(45, 86, 163, 0.25);
}

/* アクションボタン */
:where(.pg-pairing1) .btn-main-action {
  background: linear-gradient(135deg, var(--c-main) 0%, #1e3a8a 100%);
  box-shadow: 0 8px 24px rgba(45, 86, 163, 0.35);
  box-sizing: border-box;
}
:where(.pg-pairing1) .btn-gacha-action {
  background: linear-gradient(135deg, var(--c-accent) 0%, #d97706 100%);
  box-shadow: 0 8px 24px rgba(241, 141, 0, 0.35);
}

/* ==========================================================================
   診断結果表示エリア
   ========================================================================== */
:where(.pg-pairing1) .result-box {
  border: 2px solid #bfdbfe;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(45, 86, 163, 0.12);
}

/* 青座布団ヘッダー（固定テキスト） */
:where(.pg-pairing1) .res-header {
  background: linear-gradient(135deg, #2d56a3 0%, #1e3a8a 100%);
}
:where(.pg-pairing1) .res-sake-name {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 診断結果：おすすめ地酒セクション（最上部配置） */
:where(.pg-pairing1) .res-brands-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: 16px;
}
:where(.pg-pairing1) .res-brands-main-label {
  color: #0369a1;
}
:where(.pg-pairing1) .res-type-feature-badge {
  color: #0369a1;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}
:where(.pg-pairing1) .brand-item-card {
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(45, 86, 163, 0.05);
  box-sizing: border-box;
}
:where(.pg-pairing1) .brand-spec-badge {
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
}
:where(.pg-pairing1) .brand-item-meta {
  color: #333333;
}

/* おすすめ料理カードグリッド */
:where(.pg-pairing1) .dish-item-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
}
:where(.pg-pairing1) .dish-type-badge {
  border-radius: 6px;
  background: #eff6ff;
  color: var(--c-main);
  border: 1px solid #bfdbfe;
}
:where(.pg-pairing1) .dish-item-comment {
  color: #1e293b;
}

/* ソムリエのペアリング理論 */
:where(.pg-pairing1) .res-reason-box {
  border-left: 5px solid var(--c-accent);
  border-radius: 0 12px 12px 0;
}
:where(.pg-pairing1) .res-reason-box h5 {
  color: #92400e;
}
:where(.pg-pairing1) .res-reason-box p {
  color: #1e293b;
}

/* おすすめ酒器 */
:where(.pg-pairing1) .res-spec-tips {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}
:where(.pg-pairing1) .tip-item {
  font-size: 0.88rem;
  color: #1e293b;
}

/* シェア & 保存アクション */
:where(.pg-pairing1) .share-action-area {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
}
:where(.pg-pairing1) .share-title {
  color: #1e3a8a;
}
:where(.pg-pairing1) .btn-save-image {
  color: var(--c-main);
  border: 1.5px solid var(--c-main);
  border-radius: 30px;
}
:where(.pg-pairing1) .btn-retry {
  color: #333333;
}

/* さけのわデータ 帰属表示（クレジット） */
:where(.pg-pairing1) .sakenowa-credit-wrap {
  text-align: center;
  font-size: 0.75rem;
  color: #333333;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}
:where(.pg-pairing1) .sakenowa-credit-wrap a {
  color: var(--c-main);
  text-decoration: underline;
  font-weight: 700;
}
:where(.pg-pairing1) #cardCanvas {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* パネル表示制御 & ガチャパネル要素 */
:where(.pg-pairing1) #panelDish,
:where(.pg-pairing1) #panelGacha {
  display: none;
}
:where(.pg-pairing1) #panelGacha {
  text-align: center;
}
:where(.pg-pairing1) .empty-brand-notice {
  font-size: 0.85rem;
  color: #333333;
}

/* ===== ページ: pairing2/index.php（pg-pairing2） ===== */
/* ==========================================================================
   焼酎ペアリング診断 アプリケーション専用スタイル（アンバー・ゴールド系テーマ）
   ========================================================================== */
:where(body.pg-pairing2) {
  --sc-main: #b45309;      /* 琥珀・アンバー */
  --sc-sub: #78350f;       /* 焦がしカラメル・深煎り */
  --sc-accent: #d97706;    /* 黄金・麦穂ゴールド */
  --sc-text: #1e293b;
  --sc-bg: #fdfbf7;
  --sc-border: #fde68a;
}
:where(.pg-pairing2) .shochu-app-wrapper {
  background-color: var(--sc-bg);
  padding: 24px 16px 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, Meiryo, sans-serif;
  color: var(--sc-text);
  line-height: 1.6;
}
:where(.pg-pairing2) .shochu-app-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ヒーローヘッダー */
:where(.pg-pairing2) .app-hero-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: var(--sc-sub);
  border-radius: 20px;
  border: 1px solid #fcd34d;
}
:where(.pg-pairing2) .app-hero-title span {
  color: var(--sc-main);
  background: linear-gradient(transparent 65%, #fef3c7 65%);
}

/* モード切り替えタブ */
:where(.pg-pairing2) .mode-tabs-container {
  background: #f1ede4;
}
:where(.pg-pairing2) .mode-tab-btn {
  color: #1c1917;
}
:where(.pg-pairing2) .mode-tab-btn.active {
  color: var(--sc-main);
}
:where(.pg-pairing2) .mode-tab-btn.gacha-tab.active {
  color: var(--sc-accent);
}

/* 診断設定カード */
:where(.pg-pairing2) .app-card {
  border: 1px solid var(--sc-border);
  border-radius: 20px;
}
:where(.pg-pairing2) .step-num {
  background: var(--sc-main);
}

/* 選択ボタングリッド */
:where(.pg-pairing2) .grid-2cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
:where(.pg-pairing2) .choice-card-btn {
  background: #fffdfa;
  border: 2px solid #e7e5e4;
  border-radius: 14px;
}
:where(.pg-pairing2) .choice-card-btn.selected {
  border-color: var(--sc-main);
  background: #fef3c7;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
:where(.pg-pairing2) .choice-card-btn.selected .choice-name {
  color: var(--sc-main);
}

/* 割り方・ピルボタン */
:where(.pg-pairing2) .temp-pills-wrap {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
:where(.pg-pairing2) .pill-btn {
  background: #fffdfa;
  border: 1.5px solid #d6d3d1;
  border-radius: 30px;
  color: #1c1917;
}
:where(.pg-pairing2) .pill-btn.selected {
  background: var(--sc-main);
  border-color: var(--sc-main);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

/* アクションボタン */
:where(.pg-pairing2) .btn-main-action {
  background: linear-gradient(135deg, var(--sc-main) 0%, var(--sc-sub) 100%);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.35);
  box-sizing: border-box;
}
:where(.pg-pairing2) .btn-gacha-action {
  background: linear-gradient(135deg, var(--sc-accent) 0%, #b45309 100%);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}


/* ==========================================================================
   診断結果表示エリア
   ========================================================================== */
:where(.pg-pairing2) .result-box {
  border: 2px solid var(--sc-border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.12);
}

/* 琥珀座布団ヘッダー（固定テキスト） */
:where(.pg-pairing2) .res-header {
  background: linear-gradient(135deg, var(--sc-main) 0%, var(--sc-sub) 100%);
}
:where(.pg-pairing2) .res-sake-name {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* 診断結果：おすすめ焼酎セクション（最上部配置） */
:where(.pg-pairing2) .res-brands-section {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
}
:where(.pg-pairing2) .res-brands-main-label {
  color: var(--sc-sub);
}
:where(.pg-pairing2) .res-type-feature-badge {
  color: var(--sc-sub);
  border-radius: 12px;
  border: 1px solid #fde68a;
}
:where(.pg-pairing2) .brand-item-card {
  border: 1.5px solid #fcd34d;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.05);
  box-sizing: border-box;
}
:where(.pg-pairing2) .brand-spec-badge {
  color: var(--sc-main);
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
}
:where(.pg-pairing2) .brand-item-meta {
  color: #292524;
}

/* おすすめ料理カードグリッド */
:where(.pg-pairing2) .dish-item-card {
  border: 1.5px solid #e7e5e4;
  border-radius: 14px;
}
:where(.pg-pairing2) .dish-type-badge {
  border-radius: 6px;
  background: #fef3c7;
  color: var(--sc-sub);
  border: 1px solid #fde68a;
}
:where(.pg-pairing2) .dish-item-comment {
  color: #1c1917;
}

/* ソムリエのペアリング理論 */
:where(.pg-pairing2) .res-reason-box {
  border-left: 5px solid var(--sc-main);
  border-radius: 0 12px 12px 0;
}
:where(.pg-pairing2) .res-reason-box h5 {
  color: var(--sc-sub);
}
:where(.pg-pairing2) .res-reason-box p {
  color: #451a03;
}

/* おすすめ酒器 & 割り方 */
:where(.pg-pairing2) .res-spec-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #fafaf9;
  border: 1.5px solid #e7e5e4;
  border-radius: 12px;
  padding: 12px 14px;
}
:where(.pg-pairing2) .tip-item {
  font-size: 0.86rem;
  color: #1c1917;
}

/* シェア & 保存アクション */
:where(.pg-pairing2) .share-action-area {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 16px;
}
:where(.pg-pairing2) .share-title {
  color: var(--sc-sub);
}
:where(.pg-pairing2) .btn-save-image {
  color: var(--sc-main);
  border: 1.5px solid var(--sc-main);
  border-radius: 30px;
}
:where(.pg-pairing2) .btn-retry {
  color: #292524;
}

/* 帰属表示 */
:where(.pg-pairing2) .shochu-credit-wrap {
  text-align: center;
  font-size: 0.75rem;
  color: #292524;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed #d6d3d1;
}
:where(.pg-pairing2) #cardCanvas {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* パネル表示制御 & ガチャパネル要素 */
:where(.pg-pairing2) #panelDish,
:where(.pg-pairing2) #panelGacha {
  display: none;
}
:where(.pg-pairing2) #panelGacha {
  text-align: center;
}

/* ===== ページ: policy/index.php（pg-policy） ===== */
/* プライバシーポリシー専用 洗練スタイル */
:where(.pg-policy) .policy-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
:where(.pg-policy) .policy-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 40px;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.85;
}
:where(.pg-policy) .policy-lead {
  font-size: 15.5px;
  line-height: 1.9;
  color: #1e293b;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
:where(.pg-policy) .policy-section {
  margin-bottom: 36px;
}
:where(.pg-policy) .policy-section:last-child {
  margin-bottom: 0;
}
:where(.pg-policy) .policy-heading {
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
:where(.pg-policy) .policy-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #2563eb;
  border-radius: 2px;
}
:where(.pg-policy) .policy-text {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.85;
}
:where(.pg-policy) .policy-text a {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
}
:where(.pg-policy) .policy-text a:hover {
  color: #1d4ed8;
}
:where(.pg-policy) .policy-list {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}
:where(.pg-policy) .policy-list li {
  margin-bottom: 6px;
}
:where(.pg-policy) .policy-date-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
  font-size: 13.5px;
  color: #333333;
  line-height: 1.7;
}

/* ===== ページ: pricing/index.php（pg-pricing） ===== */
/* ==========================================================================
   ご利用料金・会員ステータス専用 洗練スタイル（SSOT準拠・インラインCSSゼロ）
   ========================================================================== *//* 全体コンテナ */
.pricing-page:where(.pg-pricing) {
  background: #f8fafc;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
  line-height: 1.7;
}
:where(.pg-pricing) .pricing-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* 決済完了通知バナー */
:where(.pg-pricing) .payment-success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  color: #065f46;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  animation: fadeInDown 0.4s ease;
}
:where(.pg-pricing) .payment-success-banner .banner-icon {
  font-size: 28px;
  line-height: 1;
}
:where(.pg-pricing) .payment-success-banner .banner-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}
:where(.pg-pricing) .payment-success-banner .banner-desc {
  font-size: 13.5px;
  color: #047857;
}

/* 早期アクセス期間告知バナー */
:where(.pg-pricing) .early-access-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 auto 28px;
  max-width: 760px;
  color: #78350f;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  text-align: left;
}
:where(.pg-pricing) .early-access-notice-banner .notice-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
:where(.pg-pricing) .early-access-notice-banner .notice-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
  color: #92400e;
}
:where(.pg-pricing) .early-access-notice-banner .notice-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #78350f;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ① ヒーローエリア */
:where(.pg-pricing) .pricing-hero {
  text-align: center;
  padding: 24px 16px 40px;
}
:where(.pg-pricing) .pricing-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.3;
}
:where(.pg-pricing) .pricing-hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 16px;
}
:where(.pg-pricing) .pricing-hero-lead {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
}

/* 現在の会員ステータス表示カード */
:where(.pg-pricing) .current-status-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 40px;
  padding: 8px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 14px;
}
:where(.pg-pricing) .current-status-label {
  color: #333333;
  font-weight: 600;
}
:where(.pg-pricing) .current-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
:where(.pg-pricing) .status-tag-guest {
  background: #f1f5f9;
  color: #333333;
  border: 1px solid #cbd5e1;
}
:where(.pg-pricing) .status-tag-free {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
:where(.pg-pricing) .status-tag-premium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* セクション共通見出し */
:where(.pg-pricing) .pricing-section-header {
  text-align: center;
  margin-bottom: 28px;
}
:where(.pg-pricing) .section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
:where(.pg-pricing) .section-desc {
  font-size: 14.5px;
  color: #333333;
  margin: 0;
}

/* ② 機能比較表セクション */
:where(.pg-pricing) .comparison-section {
  margin-bottom: 56px;
}
:where(.pg-pricing) .table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
}
:where(.pg-pricing) .scroll-hint {
  display: none;
  font-size: 12px;
  color: #333333;
  text-align: right;
  margin-bottom: 6px;
  font-weight: 700;
}
:where(.pg-pricing) .comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}
:where(.pg-pricing) .comparison-table th,
:where(.pg-pricing) .comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
:where(.pg-pricing) .comparison-table th.col-feature,
:where(.pg-pricing) .comparison-table td.col-feature {
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  width: 30%;
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
}
:where(.pg-pricing) .comparison-table td.col-feature small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #333333;
  margin-top: 2px;
}

/* グループ見出し行 */
:where(.pg-pricing) .comparison-table tr.row-group th {
  background: #edf2f7;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 10px 16px;
  border-top: 2px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  letter-spacing: 0.03em;
}

/* 表ヘッダー */
:where(.pg-pricing) .comparison-table thead th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #e2e8f0;
  padding: 18px 16px;
}
:where(.pg-pricing) .comparison-table thead th.col-guest {
  width: 20%;
}
:where(.pg-pricing) .comparison-table thead th.col-free {
  width: 20%;
}
:where(.pg-pricing) .comparison-table thead th.col-premium {
  width: 30%;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
  border-top: 3px solid #f59e0b;
  position: relative;
}
:where(.pg-pricing) .comparison-table thead th.col-guest .th-sub,
:where(.pg-pricing) .comparison-table thead th.col-free .th-sub {
  font-weight: 500;
  color: #333333;
}
:where(.pg-pricing) .comparison-table thead th.col-premium .badge-recommend {
  display: inline-block;
  background: #d97706;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* プレミアム会員列の背景ハイライト */
:where(.pg-pricing) .comparison-table tbody td.col-premium {
  background: #fffdf7;
  border-left: 1.5px solid #fef3c7;
  border-right: 1.5px solid #fef3c7;
  color: #78350f;
  font-weight: 600;
}

/* 表内テキスト装飾 */
:where(.pg-pricing) .price-tag-guest,
:where(.pg-pricing) .price-tag-free {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
:where(.pg-pricing) .price-tag-premium {
  font-size: 18px;
  font-weight: 800;
  color: #b45309;
}
:where(.pg-pricing) .price-subnote {
  font-size: 11.5px;
  color: #333333;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}
:where(.pg-pricing) .mark-ok {
  color: #2563eb;
  font-weight: 800;
}
:where(.pg-pricing) .mark-ng {
  color: #333333;
  font-weight: 800;
}
:where(.pg-pricing) .mark-star {
  color: #d97706;
  font-weight: 800;
}
:where(.pg-pricing) .mark-lock {
  color: #b45309;
  font-size: 12.5px;
  font-weight: 700;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
:where(.pg-pricing) .table-item-desc {
  display: block;
  font-size: 11.5px;
  color: #333333;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.4;
}

/* ③ プレミアム会員 お申し込みカード（決済CTA） */
:where(.pg-pricing) .pricing-cta-section {
  margin-bottom: 64px;
}
/* 2パス併記用グリッド */
:where(.pg-pricing) .cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
:where(.pg-pricing) .cta-cards-grid .cta-card {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
:where(.pg-pricing) .cta-cards-grid .cta-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
:where(.pg-pricing) .cta-cards-grid .cta-btn-wrap {
  margin-top: auto;
}
:where(.pg-pricing) .cta-card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  border: 2px solid #f59e0b;
  overflow: hidden;
  position: relative;
}
/* 30日パス用アクセントカラー（ブルー） */
:where(.pg-pricing) .cta-card--secondary {
  border-color: #3b82f6;
}
:where(.pg-pricing) .cta-card--secondary .cta-card-badge {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
:where(.pg-pricing) .cta-card--secondary .cta-price-box {
  background: #eff6ff;
  border-color: #bfdbfe;
}
:where(.pg-pricing) .cta-card--secondary .cta-price-label,
:where(.pg-pricing) .cta-card--secondary .cta-price-notice {
  color: #1e40af;
}
:where(.pg-pricing) .cta-card--secondary .cta-price-value {
  color: #1d4ed8;
}
:where(.pg-pricing) .cta-card--secondary .cta-price-tax {
  color: #1e3a8a;
}
:where(.pg-pricing) .btn-pricing-checkout--secondary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
:where(.pg-pricing) .btn-pricing-checkout--secondary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}
:where(.pg-pricing) .cta-card-badge {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.04em;
}
:where(.pg-pricing) .cta-card-body {
  padding: 36px 32px 32px;
  text-align: center;
}
:where(.pg-pricing) .cta-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
:where(.pg-pricing) .cta-card-period {
  font-size: 13.5px;
  color: #333333;
  margin-bottom: 24px;
}
:where(.pg-pricing) .cta-price-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 24px 24px 22px;
  margin-bottom: 24px;
}
:where(.pg-pricing) .cta-price-label {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}
:where(.pg-pricing) .cta-price-value {
  font-size: 3.4rem;
  font-weight: 900;
  color: #b45309;
  line-height: 1.2;
}
:where(.pg-pricing) .cta-price-tax {
  font-size: 14px;
  font-weight: 700;
  color: #78350f;
  margin-left: 4px;
}
:where(.pg-pricing) .cta-price-notice {
  font-size: 12.5px;
  color: #92400e;
  margin-top: 6px;
  font-weight: 600;
}

/* リストの代わりの一言 */
:where(.pg-pricing) .cta-summary {
  margin: 0 0 28px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.8;
  color: #1e293b;
}
:where(.pg-pricing) .cta-summary a {
  color: #c2410c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ボタンエリア */
:where(.pg-pricing) .cta-btn-wrap {
  margin-bottom: 20px;
}
:where(.pg-pricing) .btn-pricing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* <a> のボタン（加入済み→マイページ）は既定で余白が幅の外に付き、カードからはみ出していた */
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 16px 28px;
  font-size: 16.5px;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
:where(.pg-pricing) .btn-pricing-action > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* 長い文言は「（マイページへ）」の前で改行する */
:where(.pg-pricing) .btn-pricing-action .btn-nb {
  display: inline-block;
  max-width: 100%;
}
:where(.pg-pricing) .btn-pricing-checkout {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
}
:where(.pg-pricing) .btn-pricing-login {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}
/* 申し込みカードの中のボタンは、値段と並んで一番目立たせる */
:where(.pg-pricing) .cta-card .btn-pricing-action {
  max-width: 480px;
  padding: 20px 32px;
  font-size: 18px;
}
:where(.pg-pricing) .cta-card .btn-pricing-login {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.35);
}
:where(.pg-pricing) .cta-card .btn-pricing-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.45);
}
:where(.pg-pricing) .cta-card--secondary .btn-pricing-login {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
:where(.pg-pricing) .btn-pricing-mypage {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}
:where(.pg-pricing) .btn-pricing-mypage:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
:where(.pg-pricing) .btn-pricing-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 既存パス保持者向け案内スタイル */
:where(.pg-pricing) .pass-current-status-badge {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-align: center;
}
:where(.pg-pricing) .pass-mypage-sublink {
  text-align: center;
  margin-top: 10px;
}
:where(.pg-pricing) .pass-mypage-sublink a {
  font-size: 13px;
  color: #333333;
  text-decoration: underline;
  transition: color 0.2s ease;
}
:where(.pg-pricing) .pass-mypage-sublink a:hover {
  color: #1e293b;
}

/* 決済・セキュリティ注意書き */
:where(.pg-pricing) .cta-security-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #333333;
  margin-top: 16px;
}
:where(.pg-pricing) .cta-security-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
:where(.pg-pricing) .card-brands-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #333333;
}
:where(.pg-pricing) .card-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 11px;
  color: #0f172a;
}

/* ④ よくある質問（FAQ）セクション */
:where(.pg-pricing) .faq-section {
  margin-bottom: 64px;
}
:where(.pg-pricing) .faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:where(.pg-pricing) .faq-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s;
}
:where(.pg-pricing) .faq-item[open] {
  border-color: #94a3b8;
}
:where(.pg-pricing) .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}
:where(.pg-pricing) .faq-question::-webkit-details-marker {
  display: none;
}
:where(.pg-pricing) .faq-q-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(.pg-pricing) .faq-badge-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
:where(.pg-pricing) .faq-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #333333;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
:where(.pg-pricing) .faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  stroke: #2563eb;
}
:where(.pg-pricing) .faq-answer {
  padding: 0 22px 20px 60px;
  font-size: 14.5px;
  color: #333333;
  line-height: 1.8;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
  padding-top: 14px;
}

/* ⑤ 開発者プロフィール & 開発への想いセクション */
:where(.pg-pricing) .author-section {
  margin-bottom: 64px;
}
:where(.pg-pricing) .author-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #cbd5e1;
  padding: 36px 32px;
}
:where(.pg-pricing) .author-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
:where(.pg-pricing) .author-avatar {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}
:where(.pg-pricing) .author-info-main {
  flex: 1;
}
:where(.pg-pricing) .author-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
:where(.pg-pricing) .author-title {
  font-size: 13.5px;
  color: #333333;
  margin-bottom: 6px;
  font-weight: 500;
}
:where(.pg-pricing) .author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.pg-pricing) .author-badge {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}
:where(.pg-pricing) .author-achievements {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #333333;
}
:where(.pg-pricing) .author-achievements-title {
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}
:where(.pg-pricing) .author-message-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: #333333;
  margin-bottom: 20px;
}
:where(.pg-pricing) .author-corp-link {
  font-size: 13.5px;
  color: #333333;
  text-align: right;
}
:where(.pg-pricing) .author-corp-link a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
}
:where(.pg-pricing) .author-corp-link a:hover {
  color: #1d4ed8;
}

/* ⑥ ページ下部 追従CTAセクション */
:where(.pg-pricing) .bottom-cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 48px 24px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  margin-bottom: 20px;
}
:where(.pg-pricing) .bottom-cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
}
:where(.pg-pricing) .bottom-cta-desc {
  font-size: 14.5px;
  color: #f1f5f9;
  max-width: 560px;
  margin: 0 auto 28px;
}
:where(.pg-pricing) .bottom-cta-btn-wrap {
  margin-bottom: 16px;
}

/* モバイル用 スティッキーフッターCTA */
:where(.pg-pricing) .mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #cbd5e1;
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 998;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
:where(.pg-pricing) .sticky-info {
  display: flex;
  flex-direction: column;
}
:where(.pg-pricing) .sticky-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #333333;
}
:where(.pg-pricing) .sticky-price {
  font-size: 15.5px;
  font-weight: 800;
  color: #b45309;
}
:where(.pg-pricing) .sticky-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ===== ページ: review/index.php（pg-review） ===== */
/* ==========================================================================
   4択 集中復習モード（exam/review/index.php）専用スタイル集約
   ========================================================================== *//* ページタイトルバッジ */
:where(.pg-review) .badge-review-mode {
  background: #ea580c;
  color: #ffffff;
  border: none;
}

/* 各状態の案内カード（非ログイン・無料会員・空状態・完了結果）共通 */
:where(.pg-review) .review-state-card {
  display: none;
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  max-width: 560px;
  margin: 30px auto;
  border: 1.5px solid #e2e8f0;
}
:where(.pg-review) .review-state-card.premium-card {
  border: 2px solid #fcd34d;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.12);
}
:where(.pg-review) .review-state-card.result-card {
  max-width: 560px;
  margin: 24px auto;
  padding: 36px 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
:where(.pg-review) .review-state-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
}
:where(.pg-review) .review-state-card.result-card .review-state-icon {
  margin-bottom: 14px;
}
:where(.pg-review) .review-state-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.45;
}
:where(.pg-review) .review-state-card.result-card h2 {
  font-size: 1.4rem;
  color: #0f172a;
}
:where(.pg-review) .review-state-card p {
  font-size: 14px;
  color: #333333;
  line-height: 1.75;
  margin: 0 0 26px;
}
:where(.pg-review) .review-state-card.result-card p {
  margin: 0 0 20px;
}
:where(.pg-review) .badge-premium-exclusive {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
:where(.pg-review) #premiumWeakCount {
  color: #b45309;
  font-size: 1.25rem;
  font-weight: 800;
}

/* アクションボタン群 */
:where(.pg-review) .review-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
:where(.pg-review) .review-btn-col.narrow {
  max-width: 340px;
}
:where(.pg-review) .btn-review-cta {
  display: block;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}
:where(.pg-review) .btn-gate-cta {
  transition: all 0.2s ease;
}
:where(.pg-review) .btn-review-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}
:where(.pg-review) .btn-review-primary {
  display: block;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
:where(.pg-review) .btn-gate-primary {
  transition: all 0.2s ease;
}
:where(.pg-review) .btn-review-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}
:where(.pg-review) .btn-review-muted,
:where(.pg-review) .btn-review-mypage {
  display: block;
  padding: 11px 18px;
  background: #f1f5f9;
  color: #333333 !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.15s ease;
}
:where(.pg-review) .btn-gate-sub {
  transition: all 0.15s ease;
}
:where(.pg-review) .btn-review-muted:hover,
:where(.pg-review) .btn-review-mypage:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}
:where(.pg-review) .btn-review-sub {
  display: block;
  padding: 11px 18px;
  background: #fef3c7;
  color: #92400e !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid #fde68a;
  transition: all 0.15s ease;
}
:where(.pg-review) .btn-review-sub:hover {
  background: #fde68a;
  color: #78350f !important;
}

/* スマホ限定改行タグ */
:where(.pg-review) .btn-review-blue {
  display: block;
  padding: 12px 20px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
}
:where(.pg-review) .btn-review-mypage-hero {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}
:where(.pg-review) .btn-review-restart {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

/* クイズ演習エリア */
:where(.pg-review) #quizContainer {
  display: none;
}
:where(.pg-review) .quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
:where(.pg-review) #reviewModeBadge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 3px 10px;
  border-radius: 12px;
}
:where(.pg-review) #reviewProgressText {
  font-size: 0.85rem;
  font-weight: 800;
  color: #333333;
}

/* 結果画面テキスト */
:where(.pg-review) #resultScoreDesc {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ea580c;
  margin: 0 0 8px;
}
:where(.pg-review) #resultDetailDesc {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.7;
  margin: 0 0 28px;
}

/* 判定モーダル内の結果表示テキスト */
:where(.pg-review) .ans-result-correct {
  color: #16a34a;
  font-weight: bold;
}
:where(.pg-review) .ans-result-wrong {
  color: #dc2626;
  font-weight: bold;
}

/* ===== ページ: ronjutsu-kakomon/index.php（pg-ronjutsu-kakomon） ===== */
/* ==========================================================================
   論述 過去出題テーマページ（exam/ronjutsu-kakomon/index.php）専用スタイル
   デザインは meigara/ にそろえる（共通部分は meigara/index.php から写している）
   ========================================================================== */
:where(.pg-ronjutsu-kakomon) main {
  padding-bottom: 60px;
}

/* 1. メイン：年度別の出題テーマ一覧（meigara と同じ見た目） */
:where(.pg-ronjutsu-kakomon) .meigara-main-lead {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.7;
  margin: 0 0 16px;
}

/* 年度クイックジャンプナビ */

/* 2. 補足説明セクション共通デザイン */
:where(.pg-ronjutsu-kakomon) .meigara-sub-points .sub-box-badge {
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}
:where(.pg-ronjutsu-kakomon) .meigara-sub-format .sub-box-badge {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

/* 補足ボックス内のポイントカード */

/* 補足ボックス内の配点情報ボックス */


/* 年度ごとの出題テーマ（番号つき。見た目は .list_meigara にそろえる） */
:where(.pg-ronjutsu-kakomon) .kakomon-list {
  counter-reset: kakomon-counter;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
:where(.pg-ronjutsu-kakomon) .kakomon-item {
  counter-increment: kakomon-counter;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px 12px 50px;
  box-shadow: var(--shadow-sm);
}
:where(.pg-ronjutsu-kakomon) .kakomon-item::before {
  content: counter(kakomon-counter);
  position: absolute;
  left: 16px;
  top: 14px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
:where(.pg-ronjutsu-kakomon) .kakomon-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.65;
  margin: 0 0 10px;
}
:where(.pg-ronjutsu-kakomon) .kakomon-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
:where(.pg-ronjutsu-kakomon) .kakomon-solve {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--c-main);
  text-decoration: none;
}
:where(.pg-ronjutsu-kakomon) .kakomon-solve:hover {
  text-decoration: underline;
}
:where(.pg-ronjutsu-kakomon) .kakomon-cta {
  max-width: 360px;
  margin: 18px auto 0;
}

@media screen and (max-width: 768px) {
:where(.pg-ronjutsu-kakomon) .kakomon-item {
    padding: 12px 12px 10px 44px;
  }
:where(.pg-ronjutsu-kakomon) .kakomon-item::before {
    left: 12px;
    top: 12px;
  }
:where(.pg-ronjutsu-kakomon) .kakomon-question {
    font-size: 0.9rem;
  }
}

/* ===== ページ: ronjutsu/assets/css/ronjutsu.css（pg-ronjutsu。もとは別ファイル。ronjutsu/index.php が <style> より前に読み込んでいた） ===== */
/* ==========================================================================
   SAKE DIPLOMA - RONJUTSU AI GRADER & 200-CHAR TRAINER STYLES
   ========================================================================== *//* Top Disclaimer Alert (Directly above .ronjutsu-wrap) */
:where(.pg-ronjutsu) .ronjutsu-disclaimer-top {
  background: #fffbf5;
  border-bottom: 1px solid #fed7aa;
  padding: 10px 0;
}
:where(.pg-ronjutsu) .disclaimer-alert-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:where(.pg-ronjutsu) .disclaimer-alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-ronjutsu) .disclaimer-icon {
  font-size: 15px;
}
:where(.pg-ronjutsu) .disclaimer-alert-title {
  font-size: 13px;
  font-weight: 800;
  color: #1c1917;
  margin: 0;
}
:where(.pg-ronjutsu) .disclaimer-alert-text {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}
:where(.pg-ronjutsu) .ronjutsu-wrap {
  padding: 16px 0 32px;
  background: #f8fafc;
  min-height: 70vh;
}
:where(.pg-ronjutsu) .ronjutsu-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}
:where(.pg-ronjutsu) .card-box {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 18px 20px;
  margin-bottom: 16px;
}

/* Question Selector */
:where(.pg-ronjutsu) .q-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
:where(.pg-ronjutsu) .q-badge {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
:where(.pg-ronjutsu) .page-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
:where(.pg-ronjutsu) .q-select-wrap {
  position: relative;
  width: 100%;
  margin-top: 6px;
}
:where(.pg-ronjutsu) .q-select-dropdown {
  width: 100%;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 800;
  border: 2.5px solid #2563eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  transition: all 0.2s ease;
}
:where(.pg-ronjutsu) .q-select-dropdown:focus {
  border-color: #1d4ed8;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.25);
}
:where(.pg-ronjutsu) .q-select-dropdown option {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  padding: 8px 12px;
}
:where(.pg-ronjutsu) .q-select-dropdown option[disabled] {
  color: #1e293b;
  font-weight: 700;
  background-color: #f1f5f9;
}
:where(.pg-ronjutsu) .q-display-box {
  background: #f1f5f9;
  border-left: 5px solid #2563eb;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  animation: fadeInQ 0.25s ease forwards;
}

@keyframes fadeInQ {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
:where(.pg-ronjutsu) .q-display-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #0f172a;
}


/* Input Area & Character Counter */
:where(.pg-ronjutsu) .editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
:where(.pg-ronjutsu) .char-counter-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
:where(.pg-ronjutsu) .char-count {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  transition: color 0.2s;
}
:where(.pg-ronjutsu) .char-max {
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
}
:where(.pg-ronjutsu) .char-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 8px;
}
:where(.pg-ronjutsu) .status-ok { background: #dbeafe; color: #1e40af; }
:where(.pg-ronjutsu) .status-good { background: #dcfce7; color: #166534; }
:where(.pg-ronjutsu) .status-over { background: #fee2e2; color: #991b1b; }
:where(.pg-ronjutsu) .ronjutsu-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.8;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  resize: vertical;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Meiryo", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
:where(.pg-ronjutsu) .ronjutsu-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}
:where(.pg-ronjutsu) .ronjutsu-textarea.over-limit {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Quota Status Display (Simple Text) */
:where(.pg-ronjutsu) .quota-status-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 9px 14px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13.5px;
}
:where(.pg-ronjutsu) .quota-status-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
:where(.pg-ronjutsu) .quota-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  display: inline-block;
  transition: background-color 0.3s, box-shadow 0.3s;
}
:where(.pg-ronjutsu) .quota-dot.dot-warning {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
:where(.pg-ronjutsu) .quota-dot.dot-empty {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}
:where(.pg-ronjutsu) .quota-text {
  font-weight: 700;
  color: #1e293b;
}
:where(.pg-ronjutsu) .quota-text strong {
  color: #1e3a8a;
}
:where(.pg-ronjutsu) .quota-reset-note {
  font-size: 11.5px;
  color: #1e293b;
  font-weight: 500;
}
:where(.pg-ronjutsu) .quota-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
:where(.pg-ronjutsu) .quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #2563eb);
  border-radius: 9999px;
  transition: width 0.4s ease, background 0.4s ease;
}
:where(.pg-ronjutsu) .quota-bar-fill.bar-warning {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}
:where(.pg-ronjutsu) .quota-bar-fill.bar-empty {
  background: #ef4444;
}

/* Action Buttons */
:where(.pg-ronjutsu) .editor-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
:where(.pg-ronjutsu) .btn-grade-ai {
  flex: 2;
  min-width: 220px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
:where(.pg-ronjutsu) .btn-model-ans {
  flex: 1;
  min-width: 160px;
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
:where(.pg-ronjutsu) .btn-clear {
  background: none;
  border: none;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
  padding: 0 10px;
  text-decoration: underline;
}

/* Result Box */
:where(.pg-ronjutsu) .result-box {
  display: none;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #2563eb;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  animation: fadeIn--ronjutsu 0.4s ease;
}

@keyframes fadeIn--ronjutsu {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
:where(.pg-ronjutsu) .result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}
:where(.pg-ronjutsu) .score-display {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(.pg-ronjutsu) .score-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}
:where(.pg-ronjutsu) .score-denom {
  font-size: 18px;
  color: #1e293b;
  font-weight: 600;
}
:where(.pg-ronjutsu) .score-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
}
:where(.pg-ronjutsu) .badge-pass { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
:where(.pg-ronjutsu) .badge-fail { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
:where(.pg-ronjutsu) .result-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-ronjutsu) .keyword-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:where(.pg-ronjutsu) .keyword-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
:where(.pg-ronjutsu) .kw-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
:where(.pg-ronjutsu) .kw-ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
:where(.pg-ronjutsu) .kw-partial { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
:where(.pg-ronjutsu) .kw-miss { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
:where(.pg-ronjutsu) .kw-neutral { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
:where(.pg-ronjutsu) .feedback-bubble {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #1e3a8a;
  margin-top: 8px;
}
:where(.pg-ronjutsu) .model-answer-box {
  background: #fdf4ff;
  border: 1.5px solid #f0abfc;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
}
:where(.pg-ronjutsu) .model-answer-text {
  font-size: 15px;
  line-height: 1.8;
  color: #701a75;
  font-weight: 500;
}
:where(.pg-ronjutsu) .grade-quality-rating {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
}
:where(.pg-ronjutsu) .grade-quality-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}
:where(.pg-ronjutsu) .grade-quality-stars {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}
:where(.pg-ronjutsu) .grade-quality-star {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: #cbd5e1;
  padding: 2px 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}
:where(.pg-ronjutsu) .grade-quality-star:hover,
:where(.pg-ronjutsu) .grade-quality-star.is-hover {
  color: #fbbf24;
  transform: scale(1.08);
}
:where(.pg-ronjutsu) .grade-quality-star.is-selected {
  color: #f59e0b;
}
:where(.pg-ronjutsu) .grade-quality-rating.is-thanks {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
:where(.pg-ronjutsu) .grade-quality-thanks {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  line-height: 1.6;
}

/* API Key Guide Modal / Alert */
:where(.pg-ronjutsu) .api-guide-banner {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
:where(.pg-ronjutsu) .api-guide-text {
  font-size: 13.5px;
  color: #92400e;
  line-height: 1.5;
}
:where(.pg-ronjutsu) .api-guide-link {
  font-weight: 700;
  color: #b45309;
  text-decoration: underline;
  white-space: nowrap;
}

/* ==========================================================================
   AI Loading Overlay & Animations
   ========================================================================== */
:where(.pg-ronjutsu) .ai-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
:where(.pg-ronjutsu) .ai-loading-card {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 360px;
  width: 90%;
  animation: aiCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiCardPop {
  0% { transform: scale(0.9) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
:where(.pg-ronjutsu) .ai-spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
:where(.pg-ronjutsu) .ai-spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-right-color: #9333ea;
  animation: aiSpin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
:where(.pg-ronjutsu) .ai-spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  animation: aiIconPulse 1.5s ease-in-out infinite;
}

@keyframes aiSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes aiIconPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}
:where(.pg-ronjutsu) .ai-loading-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
:where(.pg-ronjutsu) .ai-loading-sub {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.5;
}

/* Optgroup styling in dropdown */
:where(.pg-ronjutsu) .q-select-dropdown optgroup {
  font-weight: 800;
  color: #1e3a8a;
  background: #f1f5f9;
  padding: 6px 0;
}
:where(.pg-ronjutsu) .q-select-dropdown option {
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  padding: 8px 12px;
}

/* 二次試験対策 テイスティングセット＆公式グッズ案内ボックス */
:where(.pg-ronjutsu) .school-recommend-box {
  margin-top: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
:where(.pg-ronjutsu) .school-recommend-content {
  flex: 1;
  min-width: 250px;
}
:where(.pg-ronjutsu) .school-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: #ea580c;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
:where(.pg-ronjutsu) .school-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 5px;
}
:where(.pg-ronjutsu) .school-text {
  font-size: 12.5px;
  color: #262626;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}
:where(.pg-ronjutsu) .school-action-wrap {
  flex-shrink: 0;
}
:where(.pg-ronjutsu) .btn-school-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 11px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
:where(.pg-ronjutsu) .btn-school-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
  color: #ffffff !important;
}
:where(.pg-ronjutsu) .btn-school-link span {
  font-size: 13.5px;
  font-weight: 800;
}
:where(.pg-ronjutsu) .btn-school-link .link-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 3px;
}




/* ==========================================================================
   AI FAST HYBRID GRADING & SKELETON ANALYZER STYLES
   ========================================================================== */
:where(.pg-ronjutsu) .result-fade-in {
  animation: fadeInResult 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInResult {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
:where(.pg-ronjutsu) .ai-analyzing-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

/* Card top glowing progress bar */
:where(.pg-ronjutsu) .ai-analyzing-card-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #dbeafe;
  overflow: hidden;
}
:where(.pg-ronjutsu) .ai-analyzing-card-progress-bar {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #2563eb);
  background-size: 200% 100%;
  animation: aiProgressMove 1.6s infinite ease-in-out;
  border-radius: 9999px;
}

@keyframes aiProgressMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
:where(.pg-ronjutsu) .ai-analyzing-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
:where(.pg-ronjutsu) .ai-analyzing-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  animation: aiPulseIcon 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes aiPulseIcon {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5); }
}
:where(.pg-ronjutsu) .ai-analyzing-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.pg-ronjutsu) .ai-analyzing-subtitle {
  font-size: 12.5px;
  color: #2563eb;
  margin-top: 3px;
  font-weight: 600;
}
:where(.pg-ronjutsu) .ai-analyzing-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #bfdbfe;
}
:where(.pg-ronjutsu) .ai-step-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
}
:where(.pg-ronjutsu) .ai-step-badge-done {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}
:where(.pg-ronjutsu) .ai-step-badge-running {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
:where(.pg-ronjutsu) .ai-step-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid #93c5fd;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: spin--ronjutsu 0.8s linear infinite;
  display: inline-block;
}

/* もとは「spin」の定義がこのページに無く、丸い印が止まっていた（2026-11-20 に CSS を1つにまとめた時点で、
   kihon/result の spin が効いて回るようになった）。よそのページに頼らないよう、同じ動きをここで定義する。 */
@keyframes spin--ronjutsu {
  to { transform: rotate(360deg); }
}

/* Typing pulse dots */
:where(.pg-ronjutsu) .ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
:where(.pg-ronjutsu) .ai-typing-dot {
  width: 5px;
  height: 5px;
  background-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  animation: aiTypingBounce 1.4s infinite ease-in-out both;
}
:where(.pg-ronjutsu) .ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
:where(.pg-ronjutsu) .ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }
:where(.pg-ronjutsu) .ai-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Skeleton Loading Section inside Analyzing Card */
:where(.pg-ronjutsu) .ai-skeleton-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid #e0f2fe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.pg-ronjutsu) .ai-skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:where(.pg-ronjutsu) .skeleton-shimmer {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
:where(.pg-ronjutsu) .skeleton-bar-title {
  height: 24px;
  width: 140px;
}
:where(.pg-ronjutsu) .skeleton-bar-badge {
  height: 22px;
  width: 80px;
  border-radius: 9999px;
}
:where(.pg-ronjutsu) .skeleton-line {
  height: 14px;
  width: 100%;
}
:where(.pg-ronjutsu) .skeleton-line-short {
  height: 14px;
  width: 70%;
}

/* == 会員認証・プレミアムステータスUI ====================== */
:where(.pg-ronjutsu) .auth-bar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.25s ease;
}
:where(.pg-ronjutsu) .auth-bar-card.is-premium {
  background: linear-gradient(135deg, #fffdf5 0%, #fef9c3 100%);
  border-color: #facc15;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.15);
}
:where(.pg-ronjutsu) .auth-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
:where(.pg-ronjutsu) .auth-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}
:where(.pg-ronjutsu) .auth-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333333;
}
:where(.pg-ronjutsu) .auth-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
:where(.pg-ronjutsu) .auth-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
:where(.pg-ronjutsu) .auth-user-subtext {
  font-size: 12px;
  color: #333333;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 3px;
}
:where(.pg-ronjutsu) .badge-premium-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  letter-spacing: 0.02em;
}
:where(.pg-ronjutsu) .badge-free-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
:where(.pg-ronjutsu) .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(.pg-ronjutsu) .btn-google-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
:where(.pg-ronjutsu) .btn-google-login svg {
  width: 18px;
  height: 18px;
}
:where(.pg-ronjutsu) .btn-upgrade-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  transition: all 0.2s ease;
  text-decoration: none !important;
}
:where(.pg-ronjutsu) .btn-logout-link {
  background: none;
  border: none;
  color: #333333;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  transition: color 0.2s;
}


/* 決済成功バナー */
:where(.pg-ronjutsu) .payment-success-alert {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
  animation: fadeInDown--ronjutsu 0.4s ease;
}
:where(.pg-ronjutsu) .payment-success-icon {
  font-size: 28px;
  line-height: 1;
}
:where(.pg-ronjutsu) .payment-success-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 4px;
}
:where(.pg-ronjutsu) .payment-success-content p {
  font-size: 13px;
  color: #166534;
  margin: 0;
  font-weight: 600;
}

/* 有料プラン案内モーダル */
:where(.pg-ronjutsu) .premium-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn--ronjutsu 0.25s ease;
}
:where(.pg-ronjutsu) .premium-modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
  animation: scaleUp 0.3s ease;
}
:where(.pg-ronjutsu) .btn-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
:where(.pg-ronjutsu) .modal-badge-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  font-size: 28px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}
:where(.pg-ronjutsu) .modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}
:where(.pg-ronjutsu) .modal-desc {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.6;
  margin: 0 0 20px;
}
:where(.pg-ronjutsu) .modal-price-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
  text-align: center;
}
:where(.pg-ronjutsu) .modal-price-label {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}
:where(.pg-ronjutsu) .modal-original-price {
  font-size: 13px;
  color: #333333;
  text-decoration: line-through;
  font-weight: 600;
  margin-bottom: 2px;
}
:where(.pg-ronjutsu) .modal-price-val {
  font-size: 34px;
  font-weight: 900;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
}
:where(.pg-ronjutsu) .trial-badge {
  font-size: 11px;
  font-weight: 800;
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
:where(.pg-ronjutsu) .modal-price-val small {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}
:where(.pg-ronjutsu) .modal-price-period {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  margin-top: 6px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 10px;
  border-radius: 20px;
}
:where(.pg-ronjutsu) .modal-features-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.pg-ronjutsu) .modal-features-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(.pg-ronjutsu) .modal-features-list li span.check {
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
}
:where(.pg-ronjutsu) .btn-stripe-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  text-decoration: none !important;
}
:where(.pg-ronjutsu) .btn-stripe-checkout:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
:where(.pg-ronjutsu) .modal-security-note {
  font-size: 11.5px;
  color: #333333;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@keyframes fadeInDown--ronjutsu {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn--ronjutsu {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 641px) {
:where(.pg-ronjutsu) .auth-bar-card {
    flex-wrap: nowrap;
  }
:where(.pg-ronjutsu) .auth-actions {
    flex-shrink: 0;
  }
}

/* Google広告（AdSense）の完全除外 */
:where(.pg-ronjutsu) .adsbygoogle,
:where(.pg-ronjutsu) .google-auto-placed,
:where(.pg-ronjutsu) ins.adsbygoogle,
:where(.pg-ronjutsu) .mys-wrapper,
:where(.pg-ronjutsu) #mys-wrapper {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   2段階構成ヒント＆折りたたみ解答コンポーネント
   ========================================================================== *//* 模範解答アコーディオン */
:where(.pg-ronjutsu) .hint-model-details {
  margin-top: 18px;
  border: 1.5px solid #e9d5ff;
  background: #faf5ff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}
:where(.pg-ronjutsu) .hint-model-details[open] {
  background: #ffffff;
  border-color: #d8b4fe;
}
:where(.pg-ronjutsu) .hint-model-summary {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #6b21a8;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
:where(.pg-ronjutsu) .hint-model-summary::-webkit-details-marker {
  display: none;
}
:where(.pg-ronjutsu) .hint-model-summary-badge {
  font-size: 11px;
  font-weight: 700;
  color: #9333ea;
  background: #ffffff;
  border: 1px solid #d8b4fe;
  padding: 2px 8px;
  border-radius: 12px;
}
:where(.pg-ronjutsu) .hint-model-body {
  padding: 14px 16px;
  border-top: 1px dashed #e9d5ff;
}
:where(.pg-ronjutsu) .hint-action-row {
  margin-top: 18px;
  text-align: center;
}
:where(.pg-ronjutsu) .btn-jump-editor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ===== ページ: ronjutsu/index.php（pg-ronjutsu） ===== */
/* ==========================================================================
   論述試験対策ページ（exam/ronjutsu/index.php）専用スタイル集約
   ========================================================================== *//* ページタイトル下リード文 */
:where(.pg-ronjutsu) .block_page-title .yougo-text {
  margin-top: 15px;
  margin-bottom: 0;
}

/* 設問年度バッジ & 設問表示ボックス初期非表示 */
:where(.pg-ronjutsu) #q-year-badge {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  display: none;
}
:where(.pg-ronjutsu) #q-display-box {
  display: none;
}

/* 第2〜8章はプレミアム会員限定の案内（無料会員・未ログインに表示） */
:where(.pg-ronjutsu) .q-premium-note {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13.5px;
  line-height: 1.6;
}
:where(.pg-ronjutsu) .q-premium-note[hidden] {
  display: none;
}
:where(.pg-ronjutsu) .q-premium-note a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}
:where(.pg-ronjutsu) .q-lock-result {
  text-align: center;
  padding: 8px 4px;
}
:where(.pg-ronjutsu) .q-lock-result-title {
  font-size: 16px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}
:where(.pg-ronjutsu) .q-lock-result-text {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 14px;
}
:where(.pg-ronjutsu) .q-lock-result-btn {
  display: inline-flex;
  text-decoration: none;
}

/* 決済成功バナー & 認証バー */
:where(.pg-ronjutsu) #payment-success-alert {
  display: none;
  margin-top: 32px;
}
:where(.pg-ronjutsu) #auth-bar-card {
  margin-top: 24px;
}

/* 免責事項カード */
:where(.pg-ronjutsu) .disclaimer-alert-card {
  margin-top: 36px;
}

/* 過去問データアーカイブセクション */
:where(.pg-ronjutsu) .ronjutsu-archive-section {
  margin-top: 36px;
}
:where(.pg-ronjutsu) .ronjutsu-archive-section .card-box {
  padding: 28px 24px;
}
:where(.pg-ronjutsu) .ronjutsu-archive-head {
  text-align: center;
  margin-bottom: 24px;
}
:where(.pg-ronjutsu) .ronjutsu-archive-head .q-badge {
  background: #1e293b;
}
:where(.pg-ronjutsu) .ronjutsu-archive-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 8px;
}
:where(.pg-ronjutsu) .ronjutsu-archive-head p {
  font-size: 13.5px;
  color: #1e293b;
  margin-top: 6px;
  font-weight: 500;
}
:where(.pg-ronjutsu) .ronjutsu-archive-section .btn_subMenu {
  max-width: 360px;
  margin: 0 auto;
}

/* 唎酒練習用ツールカード */

/* 手書き練習用の解答用紙（PDF）へのリンク */
:where(.pg-ronjutsu) .handwrite-sheet-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
}
:where(.pg-ronjutsu) .handwrite-sheet-note a {
  color: #2d56a3;
  font-weight: 700;
  text-decoration: underline;
}
:where(.pg-ronjutsu) .handwrite-sheet-note small {
  display: block;
  font-size: 12px;
  color: #333333;
}

/* プレミアム案内モーダル */
:where(.pg-ronjutsu) #premium-modal-backdrop {
  display: none;
}

/* ===== ページ: ronjutsu-sheet/index.php（pg-ronjutsu-sheet） ===== */
/* 論述の解答用紙（2026-11-20 新設）。構成は sheet/ にそろえる。用紙の図は SVG（dev/ronjutsu/answer_sheet/build_answer_sheet.py） */
:where(.pg-ronjutsu-sheet) .rs-lead {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.9;
  color: #1e293b;
  text-align: center;
}
:where(.pg-ronjutsu-sheet) .rs-sheet {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
:where(.pg-ronjutsu-sheet) .rs-sheet img {
  display: block;
  width: 100%;
  height: auto;
}
:where(.pg-ronjutsu-sheet) .rs-actions {
  margin: 36px auto 0;
  text-align: center;
}
:where(.pg-ronjutsu-sheet) .rs-actions .btn_print {
  margin: 0 auto;
}
/* 印刷：用紙の図だけを、PDF と同じ実物の大きさ（A4・余白なし。1マス 8.4×7.5mm）で1枚に出す。
   図の中に題と SAKE STUDY の名前が入っている。ヘッダー・フッター・印刷ボタンは共通の印刷の規則で消える。
   「A4・余白なし」は名前つきのページ（@page ronjutsu-sheet）で、このページの印刷にだけ効かせる（ほかのページの印刷の余白は変えない） */
@media print {
@page ronjutsu-sheet {
    size: A4;
    margin: 0;
  }
body:where(.pg-ronjutsu-sheet) {
    min-width: 0; /* PC の body の min-width: 1040px のままだと、Chrome がページ全体を縮めて印刷する */
  }
:where(.pg-ronjutsu-sheet) .block_page-title,
:where(.pg-ronjutsu-sheet) .rs-lead,
:where(.pg-ronjutsu-sheet) .rs-actions,
:where(.pg-ronjutsu-sheet) .rel-heading,
:where(.pg-ronjutsu-sheet) .rel-links {
    display: none !important;
  }
:where(.pg-ronjutsu-sheet) .block_main,
:where(.pg-ronjutsu-sheet) .block_main .inner {
    width: auto;
    margin: 0;
    padding: 0;
  }
:where(.pg-ronjutsu-sheet) .rs-sheet {
    page: ronjutsu-sheet;
    max-width: none;
    margin: 0;
    border: none;
    box-shadow: none;
  }
:where(.pg-ronjutsu-sheet) .rs-sheet img {
    width: 210mm;
    max-width: 100%; /* 名前つきのページに対応していないブラウザでは、ふつうの余白の中に縮めて収める */
    height: auto;
    margin: 0 auto;
  }
}

/* ===== ページ: sake-diploma/index.php（pg-sake-diploma） ===== */
:where(.pg-sake-diploma) .sd-wrap { max-width: 860px; margin: 0 auto; color: #1e293b; font-size: 15.5px; line-height: 1.9; }
:where(.pg-sake-diploma) .sd-wrap h2 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 44px 0 14px; padding: 4px 0 8px 14px; border-left: 5px solid #2563eb; border-bottom: 1px solid #e2e8f0; line-height: 1.5; }
:where(.pg-sake-diploma) .sd-wrap p { margin: 0 0 14px; }
:where(.pg-sake-diploma) .sd-answer { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 20px 22px; margin: 6px 0 8px; }
:where(.pg-sake-diploma) .sd-answer p { margin: 0; color: #0f172a; }
:where(.pg-sake-diploma) .sd-answer strong { color: #1d4ed8; }
:where(.pg-sake-diploma) .sd-note { font-size: 13.5px; color: #333333; line-height: 1.8; margin-top: 8px; }
:where(.pg-sake-diploma) .sd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 8px; }
:where(.pg-sake-diploma) .sd-table { width: 100%; border-collapse: collapse; background: #ffffff; font-size: 14.5px; line-height: 1.7; }
:where(.pg-sake-diploma) .sd-table th,
:where(.pg-sake-diploma) .sd-table td { border: 1px solid #cbd5e1; padding: 10px 12px; text-align: left; vertical-align: top; color: #1e293b; }
:where(.pg-sake-diploma) .sd-table th { background: #f1f5f9; font-weight: 700; white-space: nowrap; }
:where(.pg-sake-diploma) .sd-table td.num,
:where(.pg-sake-diploma) .sd-table th.num { text-align: right; white-space: nowrap; }
:where(.pg-sake-diploma) .sd-table td.nw { white-space: nowrap; }
:where(.pg-sake-diploma) .sd-nb { display: inline-block; }
:where(.pg-sake-diploma) .sd-bar { display: inline-block; height: 10px; background: #2563eb; border-radius: 5px; vertical-align: middle; margin-right: 8px; }
:where(.pg-sake-diploma) .sd-rate { white-space: nowrap; font-weight: 700; }
:where(.pg-sake-diploma) .sd-faq details { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px; margin-bottom: 10px; }
:where(.pg-sake-diploma) .sd-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: #0f172a; line-height: 1.6; }
:where(.pg-sake-diploma) .sd-faq .sd-a { padding: 0 16px 14px; color: #1e293b; }
/* 最後の案内の帯：voice/ の .vl-final と同じ見た目（藍色の帯・金色のボタン・明朝体の見出し） */
:where(.pg-sake-diploma) .sd-cta { margin: 0; padding: 96px 0; background: radial-gradient(ellipse at 50% 100%, rgba(201, 164, 92, 0.16) 0%, rgba(201, 164, 92, 0) 60%), #0f1b3d; color: #ffffff; text-align: center; }
:where(.pg-sake-diploma) .sd-cta-inner { max-width: 1040px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
:where(.pg-sake-diploma) .sd-cta-eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: 0.28em; color: #c9a45c; }
:where(.pg-sake-diploma) .sd-cta h2 { margin: 0 0 16px; padding: 0; border: 0; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-size: 34px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; color: #ffffff; }
:where(.pg-sake-diploma) .sd-cta p { max-width: 640px; margin: 0 auto; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, 0.82); }
:where(.pg-sake-diploma) .sd-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
:where(.pg-sake-diploma) .sd-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; background: linear-gradient(135deg, #e0c07d 0%, #c9a45c 55%, #b48e44 100%); color: #0f1b3d; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); transition: transform 0.15s ease; }
:where(.pg-sake-diploma) .sd-cta-btn:hover { transform: translateY(-2px); }
:where(.pg-sake-diploma) .sd-meta { margin: 48px 0 40px; font-size: 13px; color: #333333; line-height: 1.8; text-align: center; }

/* ↓印刷用（2026-11-20）：もとはページに埋め込まれ、画面の種類の指定が無かったので、印刷（A4・レターの幅は約720〜740px）にも効いていた。同じ働きを保つため、style_sp.css の同じ指定を写した */
@media print and (max-width: 767px) {
:where(.pg-sake-diploma) .sd-wrap { font-size: 15px; padding: 0 2px; }
:where(.pg-sake-diploma) .sd-wrap h2 { font-size: 18px; margin-top: 36px; }
:where(.pg-sake-diploma) .sd-table { font-size: 13.5px; }
:where(.pg-sake-diploma) .sd-cta { padding: 68px 0; }
:where(.pg-sake-diploma) .sd-cta h2 { font-size: 26px; }
:where(.pg-sake-diploma) .sd-cta-btn { width: 100%; box-sizing: border-box; }
}

/* ===== ページ: sheet/index.php（pg-sheet） ===== */
/* ==========================================================================
   用語選択用紙ページ（exam/sheet/index.php）専用スタイル集約
   ========================================================================== */
/* トレーニング用アイテム紹介（ADV公式）カード */
/* 2つのリンク（ショップのトップ／セットの詳細）を区別する */

/* 唎酒練習用ツールカード */

/* 焼酎セクション専用スタイル */
:where(.pg-sheet) .shochu-section-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px dashed #cbd5e1;
}
:where(.pg-sheet) .shochu-heading {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
:where(.pg-sheet) .shochu-heading .shochu-badge {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: 4px;
}
:where(.pg-sheet) .shochu-notice-box {
  background: #fffbeb;
  border: 1.5px solid #fef08a;
  border-left: 5px solid #d97706;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
:where(.pg-sheet) .shochu-notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
}
:where(.pg-sheet) .shochu-notice-desc {
  font-size: 13px;
  color: #451a03;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}
:where(.pg-sheet) .table_shochu caption {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  text-align: left;
}
:where(.pg-sheet) .table_shochu th.shochu_th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  width: 16%;
}
:where(.pg-sheet) .table_shochu th.shochu_th small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  margin-top: 2px;
}
:where(.pg-sheet) .table_shochu .shochu-hint {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #333333;
  line-height: 1.6;
}
:where(.pg-sheet) .table_shochu .shochu-hint strong {
  color: #333333;
}
:where(.pg-sheet) .shochu-meigara-link-box {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
:where(.pg-sheet) .btn-shochu-sublink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #333333 !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid #cbd5e1;
  transition: transform 0.15s ease, background 0.15s ease;
}
:where(.pg-sheet) .btn-shochu-sublink:hover {
  background: #f1f5f9;
  color: #0f172a !important;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
:where(.pg-sheet) .shochu-section-wrap {
    margin-top: 36px;
    padding-top: 24px;
  }
:where(.pg-sheet) .shochu-heading {
    font-size: 17px;
  }
:where(.pg-sheet) .table_shochu th.shochu_th {
    width: 22%;
    padding: 8px 4px;
    font-size: 13px;
  }
:where(.pg-sheet) .table_shochu .shochu-hint {
    font-size: 11.5px;
  }
:where(.pg-sheet) .shochu-meigara-link-box {
    justify-content: stretch;
  }
:where(.pg-sheet) .btn-shochu-sublink {
    width: 100%;
    justify-content: center;
  }
}

/* おすすめ参考書籍・グッズ（PR） */

/* 印刷用の用紙の図（2026-11-20〜）。画面には出さない */
:where(.pg-sheet) .ts-print-sheet {
  display: none;
}
/* 印刷：画面の表の代わりに、用紙の図（A4・1枚。題・日付・お酒の番号・SAKE STUDY の出典つき）だけを、実物の大きさで出す。
   論述の解答用紙（ronjutsu-sheet）と同じ作り。図は dev/sheet/build_tasting_sheet.py が、このページの表から作る。
   「A4・余白なし」は名前つきのページ（@page tasting-sheet）で、このページの印刷にだけ効かせる */
@media print {
@page tasting-sheet {
    size: A4;
    margin: 0;
  }
body:where(.pg-sheet) {
    min-width: 0; /* PC の body の min-width: 1040px のままだと、Chrome がページ全体を縮めて印刷する */
  }
:where(.pg-sheet) .block_page-title,
:where(.pg-sheet) .block_main .inner > :not(.ts-print-sheet) {
    display: none !important;
  }
:where(.pg-sheet) main,
:where(.pg-sheet) .block_main,
:where(.pg-sheet) .block_main .inner {
    width: auto;
    margin: 0;
    padding: 0; /* main・.block_main に下の余白が残ると、白紙の2ページ目ができる */
  }
:where(.pg-sheet) .ts-print-sheet {
    display: block;
    page: tasting-sheet;
    margin: 0;
  }
:where(.pg-sheet) .ts-print-sheet img {
    display: block;
    width: 210mm;
    max-width: 100%; /* 名前つきのページに対応していないブラウザでは、ふつうの余白の中に縮めて収める */
    height: auto;
    margin: 0 auto;
  }
}

/* ===== ページ: tasting-game/index.php（pg-tasting-game） ===== */
:where(body.pg-tasting-game) {
      --primary: #1e3a8a;
      --primary-accent: #2563eb;
      --primary-light: #eff6ff;
      --gold: #d97706;
      --gold-light: #fef3c7;
      --text-main: #0f172a;
      --text-muted: #333333;
      --border: #e2e8f0;
      --bg: #f8fafc;
      --card-bg: #ffffff;
      --active-blue: #2563eb;
      --active-text: #ffffff;
      --danger: #ef4444;
      --success: #10b981;
      --radius: 10px;
    }
:where(body.pg-tasting-game), :where(.pg-tasting-game) * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
html:where(:has(> body.pg-tasting-game)) {
      -webkit-text-size-adjust: 100%;
    }
body:where(.pg-tasting-game) {
      font-family: 'Inter', 'Noto Sans JP', sans-serif;
      background-color: var(--bg);
      color: var(--text-main);
      line-height: 1.5;
      padding-bottom: 90px;
      overflow-x: auto;
      max-width: 100%;
    }

/* このページは parts/head.php・共通のヘッダーを使わない、独立した画面。
   共通の html・body の指定（reset.css と、このファイルの先頭の html・body）を打ち消して、もとの見た目にそろえる。 */
html:where(:has(> body.pg-tasting-game)) {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      overflow: visible;
      max-width: none;
      -webkit-tap-highlight-color: transparent;
      -webkit-font-smoothing: auto;
    }
body:where(.pg-tasting-game) {
      min-width: 0;
      font-size: 100%;
      -webkit-font-smoothing: auto;
    }
html body:where(.pg-tasting-game) {
      padding: 0 0 90px !important;
    }

    /* 上部ヘッダー */
:where(.pg-tasting-game) .sim-header {
      background: #ffffff;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
:where(.pg-tasting-game) .sim-header-inner {
      max-width: 900px;
      margin: 0 auto;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
:where(.pg-tasting-game) .sim-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1 1 200px;
      min-width: 0;
    }
:where(.pg-tasting-game) .sim-title-group {
      min-width: 0;
    }
:where(.pg-tasting-game) .sim-brand-icon {
      font-size: 22px;
      line-height: 1;
    }
:where(.pg-tasting-game) .sim-title-group h1 {
      font-size: 15px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: -0.01em;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }
:where(.pg-tasting-game) .sim-title-group span {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
    }

    /* メインコンテナ */
:where(.pg-tasting-game) .main-wrap {
      max-width: 900px;
      margin: 14px auto 0;
      padding: 0 12px;
      min-width: 0;
      width: 100%;
    }

    /* セクションカード（きゅっと引き締め） */
:where(.pg-tasting-game) .taste-section {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 10px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    }
:where(.pg-tasting-game) .taste-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      border-bottom: 1.5px solid #f1f5f9;
      padding-bottom: 5px;
    }
:where(.pg-tasting-game) .taste-section-title {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 5px;
    }
:where(.pg-tasting-game) .taste-rule-note {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
    }

    /* 項目行 */
:where(.pg-tasting-game) .taste-item-row {
      margin-bottom: 9px;
    }
:where(.pg-tasting-game) .taste-item-row:last-child {
      margin-bottom: 0;
    }
:where(.pg-tasting-game) .taste-item-label-wrap {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 4px;
    }
:where(.pg-tasting-game) .taste-item-label {
      font-size: 11.5px;
      font-weight: 700;
      color: #1e293b;
    }
:where(.pg-tasting-game) .taste-item-select-type {
      font-size: 9px;
      font-weight: 700;
      color: #333333;
      background: #f1f5f9;
      padding: 1px 5px;
      border-radius: 3px;
    }
:where(.pg-tasting-game) .type-single {
      color: #1e40af;
      background: #eff6ff;
    }
:where(.pg-tasting-game) .type-multi {
      color: #b45309;
      background: #fef3c7;
    }
:where(.pg-tasting-game) .aroma-live-counter {
      font-size: 10px;
      font-weight: 700;
      color: #333333;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      padding: 1.5px 6.5px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      transition: all 0.2s ease;
    }
:where(.pg-tasting-game) .aroma-live-counter strong {
      color: #1e3a8a;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-few {
      color: #92400e;
      background: #fef3c7;
      border-color: #fde68a;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-few strong {
      color: #b45309;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-ideal {
      color: #065f46;
      background: #d1fae5;
      border-color: #a7f3d0;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-ideal strong {
      color: #047857;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-over {
      color: #991b1b;
      background: #fee2e2;
      border-color: #fecaca;
    }
:where(.pg-tasting-game) .aroma-live-counter.is-over strong {
      color: #b91c1c;
    }

    /* ピルボタングループ（高密度・きゅっとコンパクト） */
:where(.pg-tasting-game) .pill-group {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
:where(.pg-tasting-game) .pill-btn {
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      color: #1e293b;
      font-size: 11px;
      font-weight: 600;
      padding: 3.5px 8.5px;
      border-radius: 5px;
      cursor: pointer;
      user-select: none;
      transition: all 0.12s ease;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      line-height: 1.35;
      letter-spacing: -0.01em;
    }
:where(.pg-tasting-game) .pill-btn.selected {
      background: var(--active-blue);
      border-color: var(--active-blue);
      color: var(--active-text);
      font-weight: 700;
      box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
    }
:where(.pg-tasting-game) .pill-btn.selected::before {
      content: '✓';
      font-size: 9.5px;
    }

    /* サブグループ見出し（香りの果実・花・穀物等） */
:where(.pg-tasting-game) .subgroup-title {
      font-size: 10.5px;
      font-weight: 800;
      color: #333333;
      margin: 6px 0 3px;
      display: flex;
      align-items: center;
      gap: 3px;
    }

    /* 下部固定アクションバー */
:where(.pg-tasting-game) .bottom-action-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--border);
      padding: 8px 14px;
      z-index: 95;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    }
:where(.pg-tasting-game) .bottom-action-inner {
      max-width: 900px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
:where(.pg-tasting-game) .answered-count-box {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-muted);
    }
:where(.pg-tasting-game) .answered-count-box strong {
      font-size: 14.5px;
      color: var(--primary);
    }
:where(.pg-tasting-game) .btn-finish-taste {
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      color: #ffffff;
      border: none;
      padding: 9px 20px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
      transition: all 0.15s;
    }

    /* 結果モーダル */
:where(.pg-tasting-game) .result-modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(5px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 14px;
      overflow-y: auto;
    }
:where(.pg-tasting-game) .result-modal-card {
      background: #ffffff;
      border-radius: 16px;
      max-width: 660px;
      width: 100%;
      min-width: 0;
      padding: 20px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
      max-height: 92vh;
      overflow-y: auto;
      overflow-x: hidden;
    }
:where(.pg-tasting-game) .result-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 2px solid #f1f5f9;
      padding-bottom: 12px;
      margin-bottom: 14px;
    }
:where(.pg-tasting-game) .result-modal-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 1;
      min-width: 0;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }
:where(.pg-tasting-game) .btn-close-modal {
      background: none;
      border: none;
      font-size: 24px;
      color: #333333;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
      border-radius: 6px;
      transition: color 0.15s;
    }



    /* 診断メインヘッダーカード */
:where(.pg-tasting-game) .diag-header-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
      color: #ffffff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
    }
:where(.pg-tasting-game) .diag-main-info {
      flex: 1;
    }
:where(.pg-tasting-game) .diag-sub-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.2);
      color: #e0e7ff;
      padding: 2px 8px;
      border-radius: 4px;
      margin-bottom: 5px;
    }
:where(.pg-tasting-game) .diag-main-type {
      font-size: 16.5px;
      font-weight: 800;
      color: #ffffff;
      line-height: 1.3;
      margin-bottom: 4px;
    }
:where(.pg-tasting-game) .diag-main-desc {
      font-size: 11px;
      color: #bfdbfe;
      line-height: 1.45;
    }
:where(.pg-tasting-game) .diag-score-wrap {
      text-align: center;
      min-width: 96px;
      background: rgba(255, 255, 255, 0.1);
      border: 1.5px solid rgba(255, 255, 255, 0.25);
      border-radius: 10px;
      padding: 8px 10px;
      flex-shrink: 0;
    }
:where(.pg-tasting-game) .diag-score-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 30px;
      font-weight: 800;
      color: #fef08a;
      line-height: 1;
    }
:where(.pg-tasting-game) .diag-score-label {
      font-size: 9.5px;
      font-weight: 700;
      color: #cbd5e1;
      margin-top: 3px;
    }
:where(.pg-tasting-game) .diag-pass-badge {
      display: inline-block;
      font-size: 9.5px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      margin-top: 5px;
    }
:where(.pg-tasting-game) .pass-high { background: #10b981; color: #ffffff; }
:where(.pg-tasting-game) .pass-border { background: #f59e0b; color: #ffffff; }
:where(.pg-tasting-game) .pass-low { background: #ef4444; color: #ffffff; }

    /* （未使用）旧プロファイル適合バー */
:where(.pg-tasting-game) .profile-box {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }
:where(.pg-tasting-game) .profile-title {
      font-size: 12px;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
:where(.pg-tasting-game) .profile-intro-note {
      font-size: 11px;
      color: #333333;
      line-height: 1.5;
      margin-bottom: 10px;
      background: #ffffff;
      padding: 8px 10px;
      border-radius: 6px;
      border: 1px solid #e2e8f0;
    }
:where(.pg-tasting-game) .type-bar-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 11.5px;
    }
:where(.pg-tasting-game) .type-bar-row:last-child {
      margin-bottom: 0;
    }
:where(.pg-tasting-game) .type-bar-name {
      width: 130px;
      font-weight: 700;
      color: #1e293b;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 4px;
    }
:where(.pg-tasting-game) .type-bar-track {
      flex: 1;
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
    }
:where(.pg-tasting-game) .type-bar-fill {
      height: 100%;
      border-radius: 4px;
      background: #94a3b8;
      transition: width 0.4s ease;
    }
:where(.pg-tasting-game) .type-bar-fill.top {
      background: linear-gradient(90deg, #2563eb, #3b82f6);
    }
:where(.pg-tasting-game) .type-bar-percent {
      width: 38px;
      text-align: right;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 800;
      font-size: 11.5px;
      color: #1e293b;
    }
:where(.pg-tasting-game) .type-bar-row.is-top .type-bar-percent {
      color: #2563eb;
    }

    /* 整合性・セオリー講評カード */
:where(.pg-tasting-game) .feedback-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-left: 4px solid #2563eb;
      border-radius: 8px;
      padding: 11px 12px;
      margin-bottom: 8px;
      font-size: 11.5px;
      line-height: 1.6;
    }
:where(.pg-tasting-game) .feedback-card.warning {
      border-left-color: #f59e0b;
      background: #fffbeb;
    }
:where(.pg-tasting-game) .feedback-card.success {
      border-left-color: #10b981;
      background: #f0fdf4;
    }
:where(.pg-tasting-game) .feedback-heading {
      font-weight: 800;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
:where(.pg-tasting-game) .feedback-heading.warn-color { color: #b45309; }
:where(.pg-tasting-game) .feedback-heading.succ-color { color: #065f46; }
:where(.pg-tasting-game) .feedback-heading.info-color { color: #1e40af; }

    /* テイスティング用語クラウド */
:where(.pg-tasting-game) .result-summary-block {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px;
      margin-bottom: 12px;
    }
:where(.pg-tasting-game) .result-summary-title {
      font-size: 11.5px;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 6px;
    }
:where(.pg-tasting-game) .result-tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
:where(.pg-tasting-game) .result-tag {
      font-size: 10.5px;
      font-weight: 600;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      padding: 2px 7px;
      border-radius: 4px;
      color: #1e293b;
    }
:where(.pg-tasting-game) .result-tag.matched {
      background: #eff6ff;
      border-color: #93c5fd;
      color: #1d4ed8;
      font-weight: 700;
    }



    /* 免責事項 */
:where(.pg-tasting-game) .disclaimer-box {
      background: #f1f5f9;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 10px;
      color: #333333;
      line-height: 1.5;
      margin-top: 12px;
    }

    /* ヘッダー右側ボタングループ */
:where(.pg-tasting-game) .sim-header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
      flex: 1 1 auto;
      min-width: 0;
    }
:where(.pg-tasting-game) .btn-header-pricing {
      font-size: 11px;
      font-weight: 700;
      color: #b45309;
      background: #fffbeb;
      border: 1.5px solid #fde68a;
      padding: 5px 11px;
      border-radius: 20px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
    }
:where(.pg-tasting-game) .btn-header-pricing:hover {
      background: #fef3c7;
      border-color: #f59e0b;
      color: #92400e;
      transform: translateY(-1px);
    }
:where(.pg-tasting-game) .btn-header-guide {
      font-size: 11px;
      font-weight: 700;
      color: var(--primary);
      background: var(--primary-light);
      border: 1px solid #bfdbfe;
      padding: 5px 11px;
      border-radius: 20px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 5px;
      transition: all 0.15s;
      max-width: 100%;
      text-align: center;
      line-height: 1.35;
    }
:where(.pg-tasting-game) .btn-header-guide .preset-badge-premium {
      margin-left: 1px;
    }
:where(.pg-tasting-game) .btn-header-back {
      font-size: 11px;
      font-weight: 700;
      color: #1e293b;
      background: #f1f5f9;
      border: 1px solid var(--border);
      padding: 5px 11px;
      border-radius: 20px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s;
    }
:where(.pg-tasting-game) .btn-header-back:hover {
      background: #e2e8f0;
      color: var(--primary);
    }

    /* =============================================
       洗練されたルールガイド ＆ 採点ルール
       ============================================= */
:where(.pg-tasting-game) .rules-guide-section {
      max-width: 900px;
      margin: 14px auto 10px;
      padding: 0 12px;
      min-width: 0;
      width: 100%;
    }
:where(.pg-tasting-game) .rules-main-card {
      background: #ffffff;
      border: 1px solid #bfdbfe;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
      overflow: hidden;
    }
:where(.pg-tasting-game) .rules-accordion {
      display: block;
    }
:where(.pg-tasting-game) summary.rules-card-header {
      background: linear-gradient(135deg, #f0f7ff 0%, #e0eefd 100%);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      border-bottom: 1px solid #dbeafe;
      list-style: none;
      cursor: pointer;
      user-select: none;
      transition: background 0.15s ease;
    }
:where(.pg-tasting-game) summary.rules-card-header::-webkit-details-marker {
      display: none;
    }
:where(.pg-tasting-game) summary.rules-card-header::marker {
      display: none;
    }
:where(.pg-tasting-game) details.rules-accordion:not([open]) summary.rules-card-header {
      border-bottom: 1px solid #dbeafe;
    }
:where(.pg-tasting-game) .rules-card-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
      flex-wrap: wrap;
    }
:where(.pg-tasting-game) .rules-badge-accent {
      background: #2563eb;
      color: #ffffff;
      font-size: 9.5px;
      font-weight: 800;
      padding: 2.5px 7px;
      border-radius: 4px;
      letter-spacing: 0.04em;
    }
:where(.pg-tasting-game) .rules-main-heading {
      font-size: 13px;
      font-weight: 800;
      color: #1e3a8a;
      line-height: 1.2;
    }
:where(.pg-tasting-game) .rules-accordion-toggle {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 700;
      color: #2563eb;
      background: #ffffff;
      border: 1px solid #bfdbfe;
      padding: 3px 9px;
      border-radius: 20px;
      transition: all 0.15s ease;
    }
:where(.pg-tasting-game) .rules-accordion-arrow {
      font-size: 10px;
      display: inline-block;
      transition: transform 0.2s ease;
    }
:where(.pg-tasting-game) details.rules-accordion[open] .rules-accordion-arrow {
      transform: rotate(180deg);
    }
:where(.pg-tasting-game) details.rules-accordion[open] .rules-accordion-state::after {
      content: '閉じる';
    }
:where(.pg-tasting-game) details.rules-accordion:not([open]) .rules-accordion-state::after {
      content: '開く';
    }

    /* ルール概要ボックス */
:where(.pg-tasting-game) .rules-overview-box {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      padding: 12px 14px;
      margin: 12px 14px 0;
    }
:where(.pg-tasting-game) .rules-overview-header {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }
:where(.pg-tasting-game) .rules-overview-icon {
      font-size: 14px;
      line-height: 1;
    }
:where(.pg-tasting-game) .rules-overview-title {
      font-size: 12px;
      font-weight: 800;
      color: #1e40af;
      letter-spacing: 0.02em;
    }
:where(.pg-tasting-game) .rules-overview-text {
      font-size: 12px;
      color: #1e3a8a;
      line-height: 1.65;
      margin: 0;
    }
:where(.pg-tasting-game) .rules-overview-text strong {
      color: #1d4ed8;
      font-weight: 800;
    }
:where(.pg-tasting-game) .rules-theory-link {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 11px;
      font-weight: 700;
      color: #2563eb;
      text-decoration: none;
      background: #ffffff;
      border: 1px solid #bfdbfe;
      padding: 3px 9px;
      border-radius: 20px;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }
:where(.pg-tasting-game) .rules-theory-link:hover {
      background: #eff6ff;
      border-color: #93c5fd;
    }

    /* ステップ縦重ねフロー（見やすい詳細解説カード） */
:where(.pg-tasting-game) .step-flow-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 14px 16px 16px;
    }
:where(.pg-tasting-game) .step-flow-item {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-left: 4px solid #3b82f6;
      border-radius: 8px;
      padding: 12px 16px;
      position: relative;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      transition: all 0.2s ease;
    }
:where(.pg-tasting-game) .step-flow-top {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
:where(.pg-tasting-game) .step-num-pill {
      font-size: 11px;
      font-weight: 800;
      color: #1d4ed8;
      background: #dbeafe;
      padding: 2.5px 8px;
      border-radius: 4px;
      line-height: 1.2;
      letter-spacing: 0.03em;
      flex-shrink: 0;
    }
:where(.pg-tasting-game) .step-flow-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: 0.01em;
    }
:where(.pg-tasting-game) .step-flow-desc {
      font-size: 12.5px;
      color: #333333;
      line-height: 1.65;
      margin: 0;
    }

    /* 準備するものバー */
:where(.pg-tasting-game) .prep-box-bar {
      margin: 10px 14px 10px;
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-radius: 8px;
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
:where(.pg-tasting-game) .prep-box-title {
      font-size: 11px;
      font-weight: 800;
      color: #166534;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }
:where(.pg-tasting-game) .prep-box-items {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      flex: 1;
    }
:where(.pg-tasting-game) .prep-item-tag {
      display: inline-flex;
      align-items: baseline;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      color: #166534;
      background: #ffffff;
      border: 1px solid #86efac;
      padding: 3px 8px;
      border-radius: 5px;
      line-height: 1.35;
    }
:where(.pg-tasting-game) .prep-item-tag .prep-sub {
      font-size: 10px;
      color: #333333;
      font-weight: 500;
    }

    /* 典型パターン早見表モーダル（profiles.json プレビュー） */
:where(.pg-tasting-game) .preset-guide-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.62);
      backdrop-filter: blur(5px);
      z-index: 1100;
      align-items: flex-start;
      justify-content: center;
      padding: 12px;
      overflow-y: auto;
    }
:where(.pg-tasting-game) .preset-guide-card {
      background: #ffffff;
      border-radius: 16px;
      max-width: 820px;
      width: 100%;
      min-width: 0;
      padding: 18px 18px 22px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
      margin: 8px auto 24px;
      overflow-x: hidden;
    }
:where(.pg-tasting-game) .preset-guide-intro {
      font-size: 12px;
      color: #333333;
      line-height: 1.65;
      margin-bottom: 14px;
    }
:where(.pg-tasting-game) .preset-guide-intro strong {
      color: #1e3a8a;
    }
:where(.pg-tasting-game) .preset-guide-note {
      font-size: 11.5px;
      color: #333333;
      line-height: 1.5;
      margin: 4px 0 0;
      font-weight: 500;
    }
:where(.pg-tasting-game) .preset-guide-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
:where(.pg-tasting-game) .preset-pattern-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-left: 4px solid #2563eb;
      border-radius: 10px;
      padding: 14px;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    }
:where(.pg-tasting-game) .preset-pattern-card.card-aged {
      border-left-color: #d97706;
    }
:where(.pg-tasting-game) .preset-pattern-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }
:where(.pg-tasting-game) .preset-pattern-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.35;
      margin: 0;
    }
:where(.pg-tasting-game) .preset-pattern-badge {
      font-size: 10px;
      font-weight: 800;
      color: #1e40af;
      background: #dbeafe;
      border: 1px solid #bfdbfe;
      padding: 2px 8px;
      border-radius: 20px;
      white-space: nowrap;
    }
:where(.pg-tasting-game) .preset-pattern-meta {
      margin: 0 0 12px;
      padding: 10px 12px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
:where(.pg-tasting-game) .preset-meta-row {
      font-size: 11px;
      color: #333333;
      line-height: 1.55;
    }
:where(.pg-tasting-game) .preset-meta-row strong {
      color: #0f172a;
      font-weight: 800;
      margin-right: 4px;
    }
:where(.pg-tasting-game) .preset-pattern-desc {
      font-size: 11.5px;
      color: #333333;
      line-height: 1.6;
      margin-bottom: 10px;
    }
:where(.pg-tasting-game) .preset-tag-group {
      margin-bottom: 8px;
    }
:where(.pg-tasting-game) .preset-tag-group:last-of-type {
      margin-bottom: 0;
    }
:where(.pg-tasting-game) .preset-tag-group-label {
      font-size: 10.5px;
      font-weight: 800;
      color: #333333;
      margin-bottom: 4px;
    }
:where(.pg-tasting-game) .preset-preview-pills {
      pointer-events: none;
    }
:where(.pg-tasting-game) .preset-preview-pill {
      cursor: default;
    }
:where(.pg-tasting-game) .preset-preview-pill .model-tier-badge {
      margin-left: 2px;
    }
:where(.pg-tasting-game) .preset-pattern-note {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed #e2e8f0;
      font-size: 10.5px;
      color: #333333;
      line-height: 1.45;
    }
:where(.pg-tasting-game) .preset-lock-icon {
      font-size: 10px;
      line-height: 1;
    }
:where(.pg-tasting-game) .preset-btn-reset {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #333333;
      font-size: 10px;
      font-weight: 700;
      padding: 3.5px 8px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.12s ease;
    }
:where(.pg-tasting-game) .preset-badge-premium {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-size: 9px;
      font-weight: 800;
      color: #ffffff;
      background: linear-gradient(135deg, #d97706, #b45309);
      padding: 2px 6px;
      border-radius: 10px;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }
    /* 入力フォームのステップ区切りバナー */
:where(.pg-tasting-game) .step-section-banner {
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      color: #ffffff;
      border-radius: 10px;
      padding: 9px 14px;
      margin: 14px 0 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
    }
:where(.pg-tasting-game) .step-banner-left {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
:where(.pg-tasting-game) .step-banner-tag {
      background: #facc15;
      color: #854d0e;
      font-size: 10px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.04em;
      margin-top: 2px;
      flex-shrink: 0;
    }
:where(.pg-tasting-game) .step-banner-copy {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
:where(.pg-tasting-game) .step-banner-title {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: -0.01em;
    }
:where(.pg-tasting-game) .step-banner-sub {
      font-size: 10.5px;
      color: #bfdbfe;
      font-weight: 600;
      line-height: 1.45;
    }

    /* =============================================
       結果モーダル：結論ファースト＆タブ切り替え
       ============================================= *//* 1. 総合結論・勝敗サマリーカード */
:where(.pg-tasting-game) .verdict-summary-card {
      background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
      color: #ffffff;
      border-radius: 14px;
      padding: 16px 18px;
      margin-bottom: 12px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
      position: relative;
      overflow: hidden;
    }
:where(.pg-tasting-game) .verdict-header-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
:where(.pg-tasting-game) .verdict-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 20px;
      letter-spacing: 0.02em;
    }
:where(.pg-tasting-game) .verdict-status-pill.match {
      background: #10b981;
      color: #ffffff;
    }
:where(.pg-tasting-game) .verdict-status-pill.miss {
      background: #f59e0b;
      color: #ffffff;
    }
:where(.pg-tasting-game) .verdict-status-pill.neutral {
      background: #3b82f6;
      color: #ffffff;
    }
:where(.pg-tasting-game) .verdict-score-box {
      text-align: right;
      flex-shrink: 0;
    }
:where(.pg-tasting-game) .verdict-score-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 32px;
      font-weight: 900;
      color: #fef08a;
      line-height: 1;
    }
:where(.pg-tasting-game) .verdict-score-lbl {
      font-size: 9.5px;
      font-weight: 700;
      color: #cbd5e1;
      margin-top: 2px;
    }

    /* 推定スペックタイトル */
:where(.pg-tasting-game) .verdict-spec-name {
      font-size: 17px;
      font-weight: 900;
      color: #ffffff;
      line-height: 1.35;
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
:where(.pg-tasting-game) .verdict-clue-box {
      background: rgba(255, 255, 255, 0.12);
      border-left: 3.5px solid #facc15;
      border-radius: 0 6px 6px 0;
      padding: 7px 11px;
      font-size: 11px;
      color: #f1f5f9;
      line-height: 1.45;
      margin-bottom: 8px;
    }
:where(.pg-tasting-game) .verdict-clue-box strong {
      color: #fef08a;
    }
:where(.pg-tasting-game) .verdict-tags-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
:where(.pg-tasting-game) .verdict-tag {
      font-size: 10px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.18);
      color: #e0e7ff;
      padding: 2px 7.5px;
      border-radius: 10px;
    }

    /* 2. モーダル内タブナビゲーション */
:where(.pg-tasting-game) .modal-tab-nav {
      display: flex;
      background: #f1f5f9;
      border-radius: 8px;
      padding: 3px;
      gap: 3px;
      margin-bottom: 12px;
      border: 1px solid #e2e8f0;
    }
:where(.pg-tasting-game) .modal-tab-btn {
      flex: 1;
      background: transparent;
      border: none;
      padding: 7px 8px;
      font-size: 11.5px;
      font-weight: 700;
      color: #333333;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      white-space: nowrap;
    }
:where(.pg-tasting-game) .modal-tab-btn.active {
      background: #ffffff;
      color: #1d4ed8;
      font-weight: 800;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    /* タブペイン制御 */
:where(.pg-tasting-game) .modal-tab-pane {
      display: none;
    }
:where(.pg-tasting-game) .modal-tab-pane.active {
      display: block;
      animation: fadeInTab 0.15s ease;
    }
    @keyframes fadeInTab {
      from { opacity: 0; transform: translateY(2px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* 3. STEP 2推理 vs AI判定 対比テーブル スタイル */
:where(.pg-tasting-game) .diff-analysis-root {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
:where(.pg-tasting-game) .diff-analysis-feedbacks {
      margin-top: 4px;
    }
:where(.pg-tasting-game) .spec-diff-table-wrap {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      margin-bottom: 14px;
      max-width: 100%;
    }
:where(.pg-tasting-game) .spec-diff-table-wrap--primary {
      border-width: 2px;
      border-color: #bfdbfe;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
      margin-bottom: 0;
    }
:where(.pg-tasting-game) .spec-diff-table-wrap--primary .spec-diff-table {
      font-size: 14px;
    }
:where(.pg-tasting-game) .spec-diff-table-wrap--primary .spec-diff-table th {
      font-size: 13px;
      color: #1e3a8a;
      background: #eff6ff;
    }
:where(.pg-tasting-game) .spec-diff-table {
      width: 100%;
      min-width: 420px;
      border-collapse: collapse;
      font-size: 13.5px;
    }
:where(.pg-tasting-game) .spec-diff-table th,
:where(.pg-tasting-game) .spec-diff-table td {
      padding: 11px 14px;
      border-bottom: 1px solid #f1f5f9;
      text-align: left;
    }
:where(.pg-tasting-game) .spec-diff-table th {
      background: #f8fafc;
      font-weight: 800;
      color: #333333;
      font-size: 13px;
      white-space: nowrap;
    }
:where(.pg-tasting-game) .spec-diff-table th:nth-child(1),
:where(.pg-tasting-game) .spec-diff-table td:nth-child(1) {
      width: 28%;
    }
:where(.pg-tasting-game) .spec-diff-table th:nth-child(2),
:where(.pg-tasting-game) .spec-diff-table td:nth-child(2) {
      width: 36%;
    }
:where(.pg-tasting-game) .spec-diff-table th:nth-child(3),
:where(.pg-tasting-game) .spec-diff-table td:nth-child(3) {
      width: 36%;
    }
:where(.pg-tasting-game) .spec-diff-table tr:last-child td {
      border-bottom: none;
    }
:where(.pg-tasting-game) .spec-diff-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 10px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      white-space: nowrap;
    }
:where(.pg-tasting-game) .diff-match {
      background: #dcfce7;
      color: #166534;
      border: 1px solid #bbf7d0;
    }
:where(.pg-tasting-game) .diff-warn {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fecaca;
    }
:where(.pg-tasting-game) .diff-neutral {
      background: #f1f5f9;
      color: #333333;
      border: 1px solid #e2e8f0;
    }

    /* 4. 教本模範テンプレート対比スタイル */
:where(.pg-tasting-game) .model-template-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 14px;
    }
:where(.pg-tasting-game) .model-template-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
      border-bottom: 1.5px solid #f1f5f9;
      padding-bottom: 8px;
      flex-wrap: wrap;
    }
:where(.pg-tasting-game) .model-template-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
:where(.pg-tasting-game) .model-rate-badge {
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 12px;
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
    }
:where(.pg-tasting-game) .model-group-row {
      margin-bottom: 10px;
    }
:where(.pg-tasting-game) .model-group-row:last-child {
      margin-bottom: 0;
    }
:where(.pg-tasting-game) .model-group-label {
      font-size: 11px;
      font-weight: 700;
      color: #333333;
      margin-bottom: 4px;
    }
:where(.pg-tasting-game) .model-tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
:where(.pg-tasting-game) .model-tag {
      font-size: 10.5px;
      padding: 2.5px 7px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
:where(.pg-tasting-game) .model-tag.tag-matched {
      background: #dcfce7;
      color: #166534;
      border: 1px solid #86efac;
      font-weight: 700;
    }
:where(.pg-tasting-game) .model-tag.tag-missing {
      background: #fff7ed;
      color: #c2410c;
      border: 1px dashed #fdba74;
      font-weight: 600;
    }
:where(.pg-tasting-game) .model-tag.tag-reference {
      border-style: dotted;
      background: #f8fafc;
      color: #333333;
    }
:where(.pg-tasting-game) .model-tag.tag-reference.tag-missing {
      color: #333333;
      border-color: #94a3b8;
    }
:where(.pg-tasting-game) .model-tier-badge {
      font-size: 9px;
      font-weight: 800;
      color: #1e40af;
      background: #dbeafe;
      border-radius: 3px;
      padding: 0 4px;
      margin-left: 2px;
      line-height: 1.4;
    }
:where(.pg-tasting-game) .model-tag.tag-extra {
      background: #f1f5f9;
      color: #333333;
      border: 1px solid #e2e8f0;
      text-decoration: line-through;
    }
:where(.pg-tasting-game) .model-legend-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 10.5px;
      margin-bottom: 10px;
      background: #f8fafc;
      padding: 6px 10px;
      border-radius: 6px;
      flex-wrap: wrap;
    }

    /* プレミアム限定ロック演出（模範解答対比） */
:where(.pg-tasting-game) .premium-locked-container {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      border: 1.5px solid #e2e8f0;
      background: #ffffff;
      margin-top: 10px;
    }
:where(.pg-tasting-game) .premium-blurred-content {
      filter: blur(5px);
      opacity: 0.3;
      user-select: none;
      pointer-events: none;
      padding: 14px 16px;
    }
:where(.pg-tasting-game) .premium-locked-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(2px);
      padding: 24px 20px;
      text-align: center;
      color: #ffffff;
      z-index: 5;
    }
:where(.pg-tasting-game) .premium-lock-icon {
      font-size: 28px;
      margin-bottom: 6px;
      filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
    }
:where(.pg-tasting-game) .premium-lock-title {
      font-size: 15px;
      font-weight: 900;
      color: #fde047;
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
:where(.pg-tasting-game) .premium-lock-desc {
      font-size: 12px;
      color: #e2e8f0;
      line-height: 1.6;
      max-width: 480px;
      margin: 0 auto 14px;
    }
:where(.pg-tasting-game) .btn-unlock-premium {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: #ffffff;
      font-size: 13px;
      font-weight: 800;
      padding: 10px 22px;
      border-radius: 30px;
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
      transition: all 0.2s ease;
    }
:where(.pg-tasting-game) .btn-unlock-premium:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(217, 119, 6, 0.6);
      background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
      color: #ffffff;
    }

/* ===== ページ: tasting-mock/index.php（pg-tasting-mock） ===== */
:where(.pg-tasting-mock) .mock-wrap {
  padding: 8px 0 80px;
}
:where(.pg-tasting-mock) .mock-lead-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 0 0 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
:where(.pg-tasting-mock) .mock-lead-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.45;
}
:where(.pg-tasting-mock) .mock-lead-text {
  font-size: 0.96rem;
  color: #1e293b;
  line-height: 1.85;
  margin: 0 0 20px;
}
:where(.pg-tasting-mock) .mock-lead-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.65;
}
:where(.pg-tasting-mock) .mock-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
:where(.pg-tasting-mock) .mock-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
:where(.pg-tasting-mock) .mock-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
:where(.pg-tasting-mock) .mock-step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 6px;
}
:where(.pg-tasting-mock) .mock-step-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.45;
}
:where(.pg-tasting-mock) .mock-step-desc {
  font-size: 0.92rem;
  color: #333333;
  line-height: 1.7;
  margin: 0;
}
:where(.pg-tasting-mock) .mock-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
:where(.pg-tasting-mock) .mock-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
}
:where(.pg-tasting-mock) .mock-link-btn.primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}
:where(.pg-tasting-mock) .mock-link-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
:where(.pg-tasting-mock) .set-picker-section {
  margin: 0 0 36px;
}
:where(.pg-tasting-mock) .set-picker-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
:where(.pg-tasting-mock) .set-picker-head {
  margin-bottom: 12px;
}
:where(.pg-tasting-mock) .set-picker-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2563eb;
}
:where(.pg-tasting-mock) .set-picker-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 0;
  line-height: 1.4;
}
:where(.pg-tasting-mock) .set-picker-lead {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.8;
  margin: 0 0 16px;
}
:where(.pg-tasting-mock) .set-picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
:where(.pg-tasting-mock) .set-tab-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}
:where(.pg-tasting-mock) .set-tab-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
:where(.pg-tasting-mock) .set-tab-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}
:where(.pg-tasting-mock) .set-tab-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
}
:where(.pg-tasting-mock) .set-tab-btn.active .set-tab-code {
  background: rgba(255, 255, 255, 0.25);
}
:where(.pg-tasting-mock) .set-tab-badge {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}
:where(.pg-tasting-mock) .set-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
:where(.pg-tasting-mock) .set-summary-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.7;
}
:where(.pg-tasting-mock) .set-focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:where(.pg-tasting-mock) .set-focus-chip {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 12px;
}
:where(.pg-tasting-mock) .set-slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
:where(.pg-tasting-mock) .set-slot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
:where(.pg-tasting-mock) .set-slot-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}
:where(.pg-tasting-mock) .set-slot-card.slot-aged {
  border-color: #fde68a;
  background: #fffdf5;
}
:where(.pg-tasting-mock) .set-slot-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
:where(.pg-tasting-mock) .set-slot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
:where(.pg-tasting-mock) .set-slot-role {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
}
:where(.pg-tasting-mock) .set-slot-aim {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
  margin: 0 0 8px;
  line-height: 1.55;
}
:where(.pg-tasting-mock) .set-slot-hint {
  font-size: 0.92rem;
  color: #333333;
  line-height: 1.75;
  margin: 0 0 14px;
  flex-grow: 1;
}
:where(.pg-tasting-mock) .set-example-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
:where(.pg-tasting-mock) .set-example-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
:where(.pg-tasting-mock) .set-example-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
}
:where(.pg-tasting-mock) .set-example-spec {
  font-size: 0.84rem;
  color: #333333;
  line-height: 1.55;
}
:where(.pg-tasting-mock) .set-example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
:where(.pg-tasting-mock) .set-shop-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.15s ease;
}
:where(.pg-tasting-mock) .set-shop-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
:where(.pg-tasting-mock) .set-shop-link.amazon {
  border-color: #fcd34d;
  color: #92400e;
  background: #fffbeb;
}
:where(.pg-tasting-mock) .set-shop-link.rakuten {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}
:where(.pg-tasting-mock) .set-picker-foot {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.75;
}
:where(.pg-tasting-mock) .set-picker-foot a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}
:where(.pg-tasting-mock) .set-picker-foot a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   おすすめ練習グッズ（PR）
   ========================================================================== */

/* ==========================================================================
   準備の案内・注意書き
   ========================================================================== */
:where(.pg-tasting-mock) .set-picker-section,
:where(.pg-tasting-mock) .mock-guide {
  scroll-margin-top: calc(var(--mock-header-h, 120px) + 12px);
}
:where(.pg-tasting-mock) .mock-guide {
  margin: 44px 0 0;
}
:where(.pg-tasting-mock) .mock-guide-title,
:where(.pg-tasting-mock) .mock-exam-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}
:where(.pg-tasting-mock) .mock-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
@media (min-width: 720px) {
:where(.pg-tasting-mock) .mock-guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
:where(.pg-tasting-mock) .mock-guide-card,
:where(.pg-tasting-mock) .mock-guide-check {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
:where(.pg-tasting-mock) .mock-guide-card h3,
:where(.pg-tasting-mock) .mock-guide-check h3,
:where(.pg-tasting-mock) .mock-guide-warn h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}
:where(.pg-tasting-mock) .mock-guide-card ol,
:where(.pg-tasting-mock) .mock-guide-check ul,
:where(.pg-tasting-mock) .mock-guide-warn ul {
  margin: 0 0 16px;
  padding-left: 1.5em;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #1e293b;
}
:where(.pg-tasting-mock) .mock-guide-card ol,
:where(.pg-tasting-mock) .mock-guide-card ol li {
  list-style: decimal;
}
:where(.pg-tasting-mock) .mock-guide-check ul,
:where(.pg-tasting-mock) .mock-guide-check ul li,
:where(.pg-tasting-mock) .mock-guide-warn ul,
:where(.pg-tasting-mock) .mock-guide-warn ul li {
  list-style: disc;
}
:where(.pg-tasting-mock) .mock-guide-card ol li,
:where(.pg-tasting-mock) .mock-guide-check ul li,
:where(.pg-tasting-mock) .mock-guide-warn ul li {
  margin-bottom: 8px;
}
:where(.pg-tasting-mock) .mock-guide-note {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #333333;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
:where(.pg-tasting-mock) .mock-guide-check {
  margin-bottom: 20px;
}
:where(.pg-tasting-mock) .mock-guide-warn {
  background: #fffaf0;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 22px 26px 16px;
  margin-bottom: 20px;
}
:where(.pg-tasting-mock) .mock-guide-warn h3 {
  color: #9a3412;
}
:where(.pg-tasting-mock) .mock-guide-foot {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #333333;
  margin: 12px 0 0;
}
:where(.pg-tasting-mock) .set-sub-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 8px;
}
:where(.pg-tasting-mock) .set-sub-lead {
  font-size: 0.92rem;
  color: #333333;
  line-height: 1.75;
  margin: 0 0 14px;
}

/* ==========================================================================
   解答画面（プレミアム会員）
   ========================================================================== */
:where(.pg-tasting-mock) .mock-exam-section {
  margin: 48px 0 0;
  scroll-margin-top: calc(var(--mock-header-h, 120px) + 12px);
}
:where(.pg-tasting-mock) .mock-exam-head {
  margin-bottom: 8px;
}
:where(.pg-tasting-mock) .mx-app {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
:where(.pg-tasting-mock) .mx-mode {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 18px;
  background: #f8fafc;
}
:where(.pg-tasting-mock) .mx-mode legend {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0 6px;
}
:where(.pg-tasting-mock) .mx-mode-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1e293b;
  cursor: pointer;
}
:where(.pg-tasting-mock) .mx-notes {
  list-style: disc;
  margin: 0 0 20px;
  padding-left: 1.5em;
  font-size: 0.94rem;
  line-height: 1.85;
  color: #1e293b;
}
:where(.pg-tasting-mock) .mx-notes li {
  list-style: disc;
  margin-bottom: 6px;
}
:where(.pg-tasting-mock) .mx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
:where(.pg-tasting-mock) .mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}
:where(.pg-tasting-mock) .mx-btn.primary {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}
:where(.pg-tasting-mock) .mx-btn.large {
  padding: 13px 34px;
  font-size: 1rem;
}
:where(.pg-tasting-mock) .mx-btn:hover {
  opacity: 0.9;
}
:where(.pg-tasting-mock) .mx-resume {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
:where(.pg-tasting-mock) .mx-resume-text {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #1e293b;
}
:where(.pg-tasting-mock) .mx-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
}
:where(.pg-tasting-mock) .mx-timer {
  font-size: 1.9rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #ffffff;
}
:where(.pg-tasting-mock) .mx-timer.warn {
  color: #fde047;
}
:where(.pg-tasting-mock) .mx-timer.danger {
  color: #fca5a5;
}
:where(.pg-tasting-mock) .mx-progress {
  flex: 1;
  font-size: 0.86rem;
  color: #e2e8f0;
}
:where(.pg-tasting-mock) .mx-bar .mx-btn {
  border-color: #ffffff;
}
:where(.pg-tasting-mock) .mx-alert {
  display: none;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  color: #78350f;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}
:where(.pg-tasting-mock) .mx-alert.on {
  display: block;
}
:where(.pg-tasting-mock) .mx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
:where(.pg-tasting-mock) .mx-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
:where(.pg-tasting-mock) .mx-tab.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}
:where(.pg-tasting-mock) .mx-tab-count {
  font-size: 0.8rem;
  font-weight: 700;
}
:where(.pg-tasting-mock) .mx-tab.complete .mx-tab-count::before {
  content: "✓ ";
}
:where(.pg-tasting-mock) .mx-group {
  margin-bottom: 18px;
}
:where(.pg-tasting-mock) .mx-group-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}
:where(.pg-tasting-mock) .mx-note {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.75;
  margin: 0 0 8px;
}
:where(.pg-tasting-mock) .mx-field {
  margin-bottom: 14px;
}
:where(.pg-tasting-mock) .mx-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
:where(.pg-tasting-mock) .mx-field-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
:where(.pg-tasting-mock) .mx-kind {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 999px;
  padding: 2px 9px;
}
:where(.pg-tasting-mock) .mx-kind.multi {
  color: #78350f;
  background: #fef3c7;
}
:where(.pg-tasting-mock) .mx-field-guide,
:where(.pg-tasting-mock) .mx-field-count {
  font-size: 0.84rem;
  color: #333333;
}
:where(.pg-tasting-mock) .mx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.pg-tasting-mock) .mx-pill {
  padding: 7px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
:where(.pg-tasting-mock) .mx-pill:hover {
  border-color: #1e3a8a;
}
:where(.pg-tasting-mock) .mx-pill.selected {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}
:where(.pg-tasting-mock) .mx-locked .mx-pill {
  cursor: not-allowed;
}
:where(.pg-tasting-mock) .mx-locked .mx-pill:hover {
  border-color: #cbd5e1;
}
:where(.pg-tasting-mock) .mx-locked .mx-pill.selected:hover {
  border-color: #1e3a8a;
}
/* 時間切れ後の案内（選んだ語は読めるまま、入力だけ止める） */
:where(.pg-tasting-mock) .mx-lock-note {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
}
:where(.pg-tasting-mock) .mx-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
:where(.pg-tasting-mock) .mx-result-lead {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #1e293b;
  margin: 0 0 16px;
}
:where(.pg-tasting-mock) .mx-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
:where(.pg-tasting-mock) .mx-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
:where(.pg-tasting-mock) .mx-sum-block h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
:where(.pg-tasting-mock) .mx-sum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
:where(.pg-tasting-mock) .mx-sum-table th,
:where(.pg-tasting-mock) .mx-sum-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  color: #1e293b;
}
:where(.pg-tasting-mock) .mx-sum-table th {
  background: #f8fafc;
  font-weight: 800;
  white-space: nowrap;
}
:where(.pg-tasting-mock) .mx-sum-table th.wide {
  white-space: normal;
}
:where(.pg-tasting-mock) .mx-sum-table th.mx-sum-group {
  color: #1e3a8a;
}
:where(.pg-tasting-mock) .mx-empty {
  color: #333333;
  font-style: italic;
}

/* 提出後の解答一覧を印刷するとき（ページの見出しは、ほかのページの印刷と同じように残す。グッズの枠（広告）は出さない） */
@media print {
:where(.pg-tasting-mock) .site-header,
:where(.pg-tasting-mock) .site-footer,
:where(.pg-tasting-mock) .mock-lead-box,
:where(.pg-tasting-mock) .set-picker-section,
:where(.pg-tasting-mock) .tasting-goods-section,
:where(.pg-tasting-mock) .mock-guide,
:where(.pg-tasting-mock) .mock-exam-head,
:where(.pg-tasting-mock) .mx-actions {
    display: none !important;
  }
:where(.pg-tasting-mock) .mx-app {
    border: none;
    padding: 0;
  }
}

/* ==========================================================================
   プレミアム限定・案内カード（フラッシュカード cards/ と同じデザイン）
   ========================================================================== */
:where(.pg-tasting-mock) .card-gate-card {
  margin: 20px auto;
}
:where(.pg-tasting-mock) .gate-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
}
:where(.pg-tasting-mock) .badge-gate-exclusive {
  font-size: 0.78rem;
  font-weight: 800;
}
:where(.pg-tasting-mock) .card-gate-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}
:where(.pg-tasting-mock) .gate-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

/* ===== ページ: tasting-theory/index.php（pg-tasting-theory） ===== */
/* 二次試験の対策ガイド（tasting-theory）スタイリング */
:where(.pg-tasting-theory) .theory-wrap {
  padding-bottom: 72px;
}

/* 導入リードボックス（二次試験の全体像） */
:where(.pg-tasting-theory) .theory-lead-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 26px 30px;
  margin: 24px 0 48px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
:where(.pg-tasting-theory) .theory-lead-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
  line-height: 1.45;
}
:where(.pg-tasting-theory) .theory-lead-text {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.85;
  margin: 0;
}

/* 大見出し（テイスティング編・論述編で共通の h2 スタイル） */
:where(.pg-tasting-theory) .theory-part {
  margin-top: 64px;
  margin-bottom: 56px;
}
:where(.pg-tasting-theory) .theory-part-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border-left: 5px solid #1e3a8a;
  border-bottom: 1px solid #cbd5e1;
  padding: 15px 20px;
  margin: 0 0 22px;
  border-radius: 0 8px 8px 0;
  line-height: 1.45;
}
:where(.pg-tasting-theory) .theory-part-lead {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.85;
  margin: 0 0 36px;
}

/* セクションブロック（テイスティング編の各節 h3） */
:where(.pg-tasting-theory) .theory-section {
  margin-bottom: 52px;
}
:where(.pg-tasting-theory) .theory-section:last-child {
  margin-bottom: 0;
}
:where(.pg-tasting-theory) .theory-sec-head {
  margin-bottom: 18px;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 10px;
}
:where(.pg-tasting-theory) .theory-sec-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.45;
}

/* 小見出し（5. の中の日本酒・焼酎 h4） */
:where(.pg-tasting-theory) .theory-subsec-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin: 40px 0 18px;
  padding-left: 12px;
  border-left: 4px solid #2563eb;
  line-height: 1.45;
}

/* 本文テキスト */
:where(.pg-tasting-theory) .theory-subtext {
  font-size: 0.94rem;
  color: #333333;
  line-height: 1.8;
  margin: 0 0 16px;
}
:where(.pg-tasting-theory) .theory-subtext:last-child {
  margin-bottom: 0;
}

/* 3大官能センサーカードグリッド */
:where(.pg-tasting-theory) .sensor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
:where(.pg-tasting-theory) .sensor-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
:where(.pg-tasting-theory) .sensor-card-head {
  margin-bottom: 10px;
}
:where(.pg-tasting-theory) .sensor-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
}
:where(.pg-tasting-theory) .sensor-desc {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.7;
  margin: 0 0 16px;
}
:where(.pg-tasting-theory) .sensor-compare-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.7;
}
:where(.pg-tasting-theory) .mt-8 {
  margin-top: 8px;
}
:where(.pg-tasting-theory) .point-al {
  color: #b45309;
  font-weight: 800;
}
:where(.pg-tasting-theory) .point-jun {
  color: #15803d;
  font-weight: 800;
}

/* ポイント・コールアウトボックス */
:where(.pg-tasting-theory) .callout-box {
  background: #fefce8;
  border: 1.5px solid #fde047;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 22px 0;
  font-size: 0.94rem;
  color: #713f12;
  line-height: 1.75;
}
:where(.pg-tasting-theory) .callout-box strong {
  color: #854d0e;
}
:where(.pg-tasting-theory) .theory-checklist-title {
  font-size: 1rem;
  font-weight: 800;
  color: #854d0e;
  margin: 0 0 12px;
}
:where(.pg-tasting-theory) .theory-checklist {
  list-style: disc;
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}
:where(.pg-tasting-theory) .theory-checklist li {
  list-style: disc;
}
:where(.pg-tasting-theory) .theory-checklist li + li {
  margin-top: 8px;
}

/* 自宅での練習方法 リードボックス */
:where(.pg-tasting-theory) .tasting-guide-lead-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 22px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
:where(.pg-tasting-theory) .tasting-guide-lead-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: 0.93rem;
  color: #1e293b;
  line-height: 1.75;
}
:where(.pg-tasting-theory) .tasting-guide-lead-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
:where(.pg-tasting-theory) .tasting-guide-num {
  color: #2563eb;
  font-weight: 800;
  flex-shrink: 0;
}

/* 同蔵比較ペアリンググリッド */
:where(.pg-tasting-theory) .pairing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}
:where(.pg-tasting-theory) .pairing-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
:where(.pg-tasting-theory) .pairing-card-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 12px;
  line-height: 1.45;
}
:where(.pg-tasting-theory) .pairing-card-desc {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.7;
  margin: 0;
}
:where(.pg-tasting-theory) .pairing-card-desc + .pairing-card-desc {
  margin-top: 10px;
}

/* スマホ表示（レスポンシブ） */
@media screen and (max-width: 768px) {
:where(.pg-tasting-theory) .sensor-grid,
:where(.pg-tasting-theory) .pairing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
:where(.pg-tasting-theory) .theory-lead-box,
:where(.pg-tasting-theory) .tasting-guide-lead-box {
    padding: 20px 18px;
  }
:where(.pg-tasting-theory) .theory-part {
    margin-top: 48px;
    margin-bottom: 44px;
  }
:where(.pg-tasting-theory) .theory-part-title {
    font-size: 1.2rem;
    padding: 13px 16px;
  }
:where(.pg-tasting-theory) .theory-sec-title {
    font-size: 1.1rem;
  }
:where(.pg-tasting-theory) .callout-box {
    padding: 18px 20px;
  }
}

/* ====================================================
   おすすめ参考書籍・グッズ / トレーニング用アイテム紹介（PR）
   ==================================================== */

/* トレーニング用アイテム紹介カード */

/* ===== ページ: tokusho/index.php（pg-tokusho） ===== */
/* 特定商取引法専用 洗練スタイル */
:where(.pg-tokusho) .tokusho-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
:where(.pg-tokusho) .tokusho-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 40px;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.85;
}
:where(.pg-tokusho) .tokusho-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
:where(.pg-tokusho) .tokusho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
:where(.pg-tokusho) .tokusho-table th,
:where(.pg-tokusho) .tokusho-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14.5px;
  line-height: 1.75;
  vertical-align: top;
}
:where(.pg-tokusho) .tokusho-table th {
  width: 28%;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  white-space: nowrap;
}
:where(.pg-tokusho) .tokusho-table td {
  color: #1e293b;
}
:where(.pg-tokusho) .tokusho-table tr:last-child th,
:where(.pg-tokusho) .tokusho-table tr:last-child td {
  border-bottom: none;
}
:where(.pg-tokusho) .tokusho-table a {
  color: #2563eb;
  text-decoration: underline;
}
:where(.pg-tokusho) .tokusho-table a:hover {
  color: #1d4ed8;
}
:where(.pg-tokusho) .tokusho-highlight {
  font-weight: 700;
  color: #b91c1c;
}
:where(.pg-tokusho) .tokusho-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.75;
}
:where(.pg-tokusho) .tokusho-table td small {
  color: #333333;
}

/* ===== ページ: weekly/index.php（pg-weekly） ===== */
:where(.pg-weekly) .wk-wrap { max-width: 860px; margin: 0 auto; padding: 8px 0 72px; color: #1e293b; font-size: 15.5px; line-height: 1.85; }
:where(.pg-weekly) .wk-head { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 24px; margin: 0 0 36px; }
:where(.pg-weekly) .wk-week { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em; color: #1d4ed8; line-height: 1.5; }
:where(.pg-weekly) .wk-lead { margin: 0; font-size: 15px; line-height: 1.8; color: #1e293b; }
:where(.pg-weekly) .wk-wrap h2 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 44px 0 16px; padding: 4px 0 8px 14px; border-left: 5px solid #2563eb; border-bottom: 1px solid #e2e8f0; line-height: 1.5; }
:where(.pg-weekly) .wk-card { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 14px; padding: 22px 26px; margin: 0 0 16px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); }
:where(.pg-weekly) .wk-news { list-style: none; margin: 0; padding: 0; }
:where(.pg-weekly) .wk-news li { padding: 16px 0; border-bottom: 1px dashed #cbd5e1; }
:where(.pg-weekly) .wk-news li:first-child { padding-top: 2px; }
:where(.pg-weekly) .wk-news li:last-child { padding-bottom: 2px; border-bottom: 0; }
:where(.pg-weekly) .wk-news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 13px; color: #333333; line-height: 1.5; }
:where(.pg-weekly) .wk-news-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 12px; font-weight: 800; }
:where(.pg-weekly) .wk-news-title { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.55; }
:where(.pg-weekly) .wk-news-title a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
:where(.pg-weekly) .wk-news-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.75; color: #333333; }
:where(.pg-weekly) .wk-quiz { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
:where(.pg-weekly) .wk-quiz-main { flex: 1 1 360px; }
:where(.pg-weekly) .wk-quiz-num { margin: 0 0 8px; font-size: 34px; font-weight: 800; line-height: 1.2; color: #1e3a8a; }
:where(.pg-weekly) .wk-quiz-num small { font-size: 16px; font-weight: 700; margin-left: 4px; }
:where(.pg-weekly) .wk-quiz-note { margin: 0; font-size: 14.5px; line-height: 1.75; color: #333333; }
:where(.pg-weekly) .wk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; box-sizing: border-box; flex-shrink: 0; }
:where(.pg-weekly) .wk-btn-primary { background: linear-gradient(135deg, #1e3a70 0%, #2d56a3 55%, #3f86c8 100%); color: #ffffff; box-shadow: 0 8px 20px rgba(45, 86, 163, 0.26); }
:where(.pg-weekly) .wk-btn-ghost { background: #ffffff; color: #0f172a; border: 1px solid #94a3b8; }
:where(.pg-weekly) .wk-list { list-style: none; margin: 0; padding: 0; }
:where(.pg-weekly) .wk-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin: 0 0 14px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); }
:where(.pg-weekly) .wk-item:last-child { margin-bottom: 0; }
:where(.pg-weekly) .wk-item-main { flex: 1 1 320px; min-width: 0; }
:where(.pg-weekly) .wk-item-title { margin: 0; font-size: 16.5px; font-weight: 800; color: #0f172a; line-height: 1.55; }
:where(.pg-weekly) .wk-item-cat { margin: 6px 0 0; font-size: 13.5px; color: #333333; line-height: 1.5; }
:where(.pg-weekly) .wk-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: 2px; line-height: 1.4; }
:where(.pg-weekly) .wk-tag-free { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
:where(.pg-weekly) .wk-tag-premium { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
:where(.pg-weekly) .wk-item.is-locked { background: #f8fafc; }
:where(.pg-weekly) .wk-sub { margin: 14px 0 0; font-size: 14px; line-height: 1.75; color: #333333; }
:where(.pg-weekly) .wk-sub a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
:where(.pg-weekly) .wk-msg { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 22px 26px; }
:where(.pg-weekly) .wk-msg p { margin: 0 0 10px; color: #0f172a; line-height: 1.85; }
:where(.pg-weekly) .wk-msg p:last-child { margin-bottom: 0; }
:where(.pg-weekly) .wk-msg-prev { font-weight: 700; }
:where(.pg-weekly) .wk-msg .wk-sub { font-size: 14px; color: #1e293b; line-height: 1.75; }
:where(.pg-weekly) .wk-msg p:not(.wk-sub) + .wk-sub { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #93c5fd; }

/* ===== 部品: parts/header.php ===== */
  /* 切り替え幅は head.php の CSS（PC 用は 768px 以上、SP 用は 767px 以下）にそろえる */
  /* ヘッダー内マイページリンク */
  .h-mypage {
    margin: 0;
  }
  .h-mypage a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .h-mypage a:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
  }
  .sp-nav-mypage {
    background: #1e3a8a;
    color: #fff;
  }

  /* ヘッダー内「SAKE STUDYとは」リンク（PC のみ。スマホはメニューの中に置く） */
  .h-about {
    margin: 0;
  }
  .h-about a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f1b3d;
    background: #ffffff;
    border: 1.5px solid #0f1b3d;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .h-about a:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
  }
  .sp-nav-about {
    background: #ffffff;
    border: 1.5px solid #0f1b3d;
    color: #0f1b3d !important;
  }

  /* ヘッダー内「機能と料金」リンク */
  .h-pricing {
    margin: 0;
  }
  .h-pricing a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .h-pricing a:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
  }
  .sp-nav-pricing {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    color: #92400e !important;
  }
  @media screen and (min-width: 768px) {
    .global-nav .nav-link {
      padding: 0 6px;
      font-size: 0.86rem;
    }
}
  .sub-menu-heading {
    padding: 7px 18px 4px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #333333;
    letter-spacing: 0.05em;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    list-style: none;
  }
  /* サブメニュー内の実践ツールアクセント線 */
  .sub-menu li a.sub-menu-tool-link {
    border-left: 3px solid #2563eb;
    padding-left: 15px;
  }
  .sub-menu li a.sub-menu-tool-link:hover {
    padding-left: 19px;
  }
  /* ヘッダーロゴ（バッジアイコン ＋ SAKE STUDY） */
  .h-title {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  .h-title a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
  }
  .h-badge-icon {
    width: auto;
    height: 28px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .h-title a:hover .h-badge-icon {
    transform: scale(1.08) rotate(-2deg);
  }
  .h-site-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--c-main);
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

/* ===== 部品: parts/google_account_notice.php ===== */
.sake-google-account-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  text-align: left;
}
.sake-google-account-notice-title {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.sake-google-account-notice p {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.65;
  margin: 0 0 6px;
}
.sake-google-account-notice p:last-child {
  margin-bottom: 0;
}
