/*
Theme Name: ロト6完全攻略ナビ
Theme URI: https://xn--6-kgu4es24uf5q.jp/
Author: Loto6 Nav
Description: ロト6予想・過去数値・当選確認の専門ポータルサイト用カスタムテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: loto6nav
*/

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-light:  #eff6ff;
  --accent-mid:    #bfdbfe;
  --red:           #dc2626;
  --red-light:     #fef2f2;
  --green:         #059669;
  --green-light:   #ecfdf5;
  --gold:          #b45309;
  --gold-light:    #fef3c7;
  --gold-border:   #fcd34d;
  --amber:         #d97706;
  --amber-dark:    #b45309;
  --amber-light:   #fffbeb;
  --amber-mid:     #fcd34d;
  --teal:          #0d9488;
  --teal-light:    #f0fdfa;
  --white:         #ffffff;
  --bg:            #f8f9fb;
  --bg-alt:        #f1f3f7;
  --border:        #dde1e9;
  --border-light:  #eaecf2;
  --text-primary:  #111827;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ─── Layout ────────────────────────────────────── */
.site-wrap       { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.main-cols       { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 32px 0 64px; align-items: start; }
.content-col     { min-width: 0; }
.sidebar-col     { width: 300px; min-width: 0; position: sticky; top: 72px; align-self: start; }

/* ─── Navigation ────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 32px;
}
.site-nav .nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-nav .nav-logo-img  { height: 36px; width: auto; }
.site-nav .nav-menu      { display: flex; list-style: none; gap: 2px; flex: 1; }
.site-nav .nav-menu a {
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: block;
  transition: color .14s, background .14s;
}
.site-nav .nav-menu a:hover,
.site-nav .nav-menu .current-menu-item a {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-cta {
  background: var(--amber);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .14s;
  animation: amber-pulse 3s ease-out infinite;
}
.nav-cta:hover { background: var(--amber-dark); animation: none; }

/* ─── Page Header ───────────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 0;
  position: relative;
  overflow: hidden;
}
.page-header-bg  { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.page-header-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.breadcrumb {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { font-size: 10px; }
.ph-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.ph-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ph-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.ph-tabs { display: flex; border-top: 1px solid var(--border-light); }
.ph-tab {
  padding: 12px 18px;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer; white-space: nowrap;
  transition: color .14s, border-color .14s;
  text-decoration: none;
  display: block;
}
.ph-tab:hover, .ph-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Section Title ─────────────────────────────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.sec-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--accent);
  border-radius: 2px; flex-shrink: 0;
}
.sec-more {
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  display: flex; align-items: center; gap: 3px;
  opacity: .7; transition: opacity .14s;
}
.sec-more:hover { opacity: 1; }

/* ─── Badges ────────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.badge-blue  { background: var(--accent-light); color: var(--accent); }
.badge-green { background: var(--green-light);  color: var(--green); }
.badge-gold  { background: var(--gold-light);   color: var(--gold); border: 1px solid var(--gold-border); }
.badge-amber { background: var(--amber-light);  color: var(--amber); border: 1px solid #fcd34d; }
.badge-gray  { background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border); }

/* ─── Balls ─────────────────────────────────────── */
.ball {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ball.bonus { background: var(--red); }
.ball.sm    { width: 32px; height: 32px; font-size: 12px; }
.ball.xs    { width: 26px; height: 26px; font-size: 10px; }
.balls      { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
  background: var(--amber);
  color: #fff; border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .14s;
  width: 100%; text-decoration: none;
}
.btn-primary:hover { background: var(--amber-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border: 1.5px solid var(--teal);
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .14s, border-color .14s;
  width: 100%; text-decoration: none;
}
.btn-secondary:hover { background: var(--teal-light); }
.see-all-btn {
  width: 100%;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .14s, color .14s, background .14s;
  text-decoration: none;
}
.see-all-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ─── Results Table ─────────────────────────────── */
.results-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.results-table thead { background: var(--text-primary); }
.results-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; }
.results-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--bg); }
.round-badge { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.round-badge.latest { background: var(--accent); color: #fff; }
.prize-amt { font-size: 13px; font-weight: 700; color: var(--gold); }
.co-badge { background: var(--gold-light); color: var(--gold); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--gold-border); }

/* ─── Sidebar Widgets ───────────────────────────── */
.side-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.side-widget-head { padding: 12px 16px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 8px; background: var(--bg); }
.side-widget-icon { width: 26px; height: 26px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.side-widget-title { font-family: 'Noto Serif JP', serif; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.side-widget-body { padding: 14px 16px; }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: color .14s; text-decoration: none; }
.side-link:last-child { border-bottom: none; }
.side-link:hover { color: var(--accent); }
.side-service-cta { background: var(--accent); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.side-service-cta-body { padding: 18px 16px; text-align: center; }
.side-cta-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.side-cta-name { font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.side-cta-sub { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 14px; line-height: 1.5; }
.side-cta-nums { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-cta-num-item { text-align: center; }
.side-cta-num-val { font-size: 22px; font-weight: 700; color: #fcd34d; line-height: 1; }
.side-cta-num-label { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 3px; }
.side-cta-btn { width: 100%; background: #fff; color: var(--accent); border: none; font-family: inherit; font-size: 13px; font-weight: 700; padding: 11px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .14s; text-decoration: none; }
.side-cta-btn:hover { background: var(--accent-light); }
.side-cta-footer { background: rgba(0,0,0,.15); padding: 8px; text-align: center; font-size: 11px; color: rgba(255,255,255,.35); cursor: pointer; }
.side-cta-footer:hover { color: rgba(255,255,255,.65); }
.hot-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-light); }
.hot-row:last-child { border-bottom: none; }
.hot-rank { font-size: 11px; font-weight: 700; color: var(--text-muted); width: 14px; text-align: center; }
.hot-ball { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-bar-wrap { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.hot-bar { height: 100%; border-radius: 3px; background: var(--accent-mid); }
.hot-count { font-size: 12px; font-weight: 700; color: var(--text-primary); width: 26px; text-align: right; }
.side-col-item { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.side-col-item:last-child { border-bottom: none; }
.side-col-date { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.side-col-title { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.4; cursor: pointer; transition: color .14s; text-decoration: none; display: block; }
.side-col-title:hover { color: var(--accent); }

/* ─── Countdown ─────────────────────────────────── */
.countdown-wrap { display: flex; align-items: baseline; gap: 2px; padding: 10px 0 4px; }
.countdown-num { font-size: 32px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown-sep { font-size: 24px; font-weight: 700; color: var(--text-muted); padding: 0 2px; }
.countdown-labels { display: flex; gap: 0; margin-top: 2px; }
.countdown-label { font-size: 11px; color: var(--text-muted); }

/* ─── Service Cards ─────────────────────────────── */
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; transition: border-color .14s; }
.service-card:hover { border-color: #b0c4e8; }
.service-card.top { border-color: var(--accent); border-width: 1.5px; }
.service-banner { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 5px; text-transform: uppercase; }
.service-head { padding: 16px 20px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--border-light); }
.service-rank-badge { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rank-1 { background: var(--gold-light); color: var(--gold); border: 1.5px solid var(--gold-border); }
.rank-2 { background: #f1f5f9; color: #475569; border: 1.5px solid #cbd5e1; }
.rank-3 { background: #fff4ed; color: #c2410c; border: 1.5px solid #fdba74; }
.service-thumb { width: 80px; height: 80px; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }
.service-thumb-placeholder { width: 80px; height: 80px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--bg-alt); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); font-size: 10px; text-align: center; }
.service-info { flex: 1; min-width: 0; }
.service-name { font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.service-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.service-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.service-rating { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-left: 4px; }
.service-reviews { font-size: 11px; color: var(--text-muted); margin-left: 2px; }
.service-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-light); }
.s-stat { padding: 10px 12px; text-align: center; border-right: 1px solid var(--border-light); }
.s-stat:last-child { border-right: none; }
.s-stat-val { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.s-stat-val.accent { color: var(--accent); }
.s-stat-val.gold { color: var(--gold); }
.s-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.service-foot { padding: 10px 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg); border-top: 1px solid var(--border-light); }
.btn-register { margin-left: auto; background: var(--accent); color: #fff; border: none; font-family: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .14s; white-space: nowrap; text-decoration: none; }
.btn-register:hover { background: var(--accent-dark); }
.btn-detail { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-secondary); padding: 7px 12px; cursor: pointer; transition: border-color .14s, color .14s; text-decoration: none; display: inline-block; }
.btn-detail:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Column Grid ───────────────────────────────── */
.col-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.col-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .14s; text-decoration: none; }
.col-card:hover { border-color: #b0c4e8; }
.col-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e8edf5; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.col-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.col-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.col-cat { font-size: 10px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 3px; }
.col-title { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.4; flex: 1; }

/* ─── FAQ ───────────────────────────────────────── */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; cursor: pointer; transition: border-color .14s; }
.faq-item:hover { border-color: var(--accent-mid); }
.faq-q { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.faq-q-mark { width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.faq-q-text { flex: 1; font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.faq-chevron { width: 18px; height: 18px; color: var(--text-muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 16px 60px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ─── Footer ────────────────────────────────────── */
.site-footer { background: #0d1526; color: rgba(255,255,255,.35); font-size: 12px; padding: 40px 0 24px; width: 100%; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 20px; }
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.footer-desc { font-size: 12px; line-height: 1.8; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 10px; letter-spacing: .04em; }
.footer-links a { display: block; padding: 3px 0; transition: color .14s; }
.footer-links a:hover { color: rgba(255,255,255,.65); }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }

/* ─── Animations ────────────────────────────────── */
@keyframes amber-pulse { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.35); } 70% { box-shadow: 0 0 0 10px rgba(217,119,6,0); } 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes bounce-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.anim-in { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.anim-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Single Post / Article ─────────────────────── */
.article-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 36px; }
.article-wrap h2 { font-family: 'Noto Serif JP', serif; font-size: 20px; font-weight: 700; color: var(--text-primary); border-left: 4px solid var(--accent); padding-left: 14px; margin: 32px 0 14px; }
.article-wrap h3 { font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.article-wrap p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.article-wrap ul, .article-wrap ol { margin: 12px 0 16px 20px; }
.article-wrap li { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.article-wrap ul { list-style: disc; }
.article-wrap ol { list-style: decimal; }
.article-wrap img { border-radius: var(--radius); margin: 16px 0; }
.article-wrap a { color: var(--accent); text-decoration: underline; }
.article-wrap blockquote { background: var(--bg); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; font-size: 13px; color: var(--text-secondary); }

/* ─── Check Tool ────────────────────────────────── */
.check-tool { background: linear-gradient(135deg, #1e3560 0%, #0d1a3a 100%); border-radius: var(--radius-lg); padding: 24px 28px; position: relative; overflow: hidden; margin-bottom: 28px; }
.check-tool-inner { position: relative; z-index: 1; }
.check-tool-title { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.check-tool-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.check-inputs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check-input { width: 56px; height: 46px; border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: #fff; font-size: 16px; font-weight: 700; text-align: center; outline: none; transition: border-color .14s; }
.check-input:focus { border-color: var(--amber); background: rgba(255,255,255,.12); }
.check-input::placeholder { color: rgba(255,255,255,.2); font-size: 12px; font-weight: 400; }
.check-btn { background: var(--amber); color: #fff; border: none; font-family: inherit; font-size: 13px; font-weight: 700; padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .14s; white-space: nowrap; }
.check-btn:hover { background: var(--amber-dark); }
.check-result { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; display: none; }
.check-result.show { display: block; }
.check-result.hit  { background: rgba(5,150,105,.15); color: #d1fae5; border: 1px solid rgba(5,150,105,.3); }
.check-result.miss { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

/* ─── Hero Watermark ────────────────────────────── */
.hero-watermark, .page-header-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 1; }

/* ─── Utilities ─────────────────────────────────── */
.svg-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Admin Notice ──────────────────────────────── */
.loto6-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: #856404; }

/* ─── Hero Section ──────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 55%, #f8f0ff 100%);
  border-bottom: 1px solid var(--border);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.hero-left {
  padding: 32px 40px 32px 0;
  border-right: 1px solid var(--border-light);
}
.hero-right {
  padding: 32px 0 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-round {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.hero-date { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.hero-balls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.ball-sep {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  align-self: center;
  padding: 0 4px;
}
.hero-prizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-prize { background: var(--bg); padding: 12px 14px; text-align: center; }
.hero-prize-label { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.hero-prize-val { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.hero-prize-val.gold { color: var(--gold); }
.hero-prize-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hero-next-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.hero-countdown { display: flex; gap: 6px; align-items: flex-end; }
.cd-block { text-align: center; }
.cd-num { font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.cd-sep { font-size: 28px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 5px; }
.hero-next-info { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.hero-cta-group { display: flex; flex-direction: column; gap: 8px; }

/* ─── Section Tabs ───────────────────────────────── */
.section-tabs { background: var(--white); border-bottom: 1px solid var(--border); width: 100%; }
.section-tabs-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; }
.stab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .14s, border-color .14s;
  white-space: nowrap;
  text-decoration: none;
}
.stab:hover { color: var(--accent); }
.stab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Prediction Cards ───────────────────────────── */
.pred-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.pred-header { padding: 16px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pred-header.blue  { background: var(--accent); }
.pred-header.navy  { background: #1e3560; }
.pred-header.teal  { background: var(--teal); }
.pred-header.amber { background: var(--amber); }
.pred-header.slate { background: #475569; }
.pred-num  { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 3px; letter-spacing: .05em; }
.pred-name { font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.pred-algo { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; }
.pred-body { padding: 20px 22px; }
.pred-balls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pred-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.pred-stat { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.pred-stat-val   { font-size: 17px; font-weight: 700; color: var(--amber-dark); line-height: 1.1; }
.pred-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pred-desc { font-size: 13px; line-height: 1.75; color: var(--text-secondary); background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 14px; }

/* ─── Watermark Canvas (全画面ドットグリッド) ─────── */
#wm-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
body > *:not(#wm-canvas) { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — タブレット（〜1024px）
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-wrap { padding: 0 20px; }
  .main-cols { grid-template-columns: 1fr; gap: 0; padding: 24px 0 48px; }
  .sidebar-col { width: 100%; position: static; top: auto; margin-top: 32px; }
  aside { width: 100% !important; position: static !important; top: auto !important; min-width: 0 !important; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left  { border-right: none; border-bottom: 1px solid var(--border-light); padding: 28px 20px; }
  .hero-right { padding: 20px; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — スマートフォン（〜767px）
══════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── ベース ── */
  body { font-size: 14px; }
  .site-wrap { padding: 0 16px; }

  /* ── ナビ ── */
  .site-nav {
    padding: 0 14px;
    gap: 8px;
    height: 52px;
    /* ロゴ | flex:1の空白 | CTA | ハンバーガー */
  }
  .site-nav .nav-logo-link { flex-shrink: 0; }
  .nav-menu-pc { display: none !important; }
  /* CTAとハンバーガーをナビ右端に並べる */
  .nav-cta {
    margin-left: auto;
    font-size: 11px;
    padding: 7px 12px;
    gap: 4px;
    white-space: nowrap;
  }
  .nav-hamburger {
    margin-left: 4px;
  }
  .nav-cta  { font-size: 12px; padding: 7px 14px; }
  .nav-logo-img { height: 30px; }

  /* ── レイアウト ── */
  .main-cols { grid-template-columns: 1fr !important; gap: 0; padding: 20px 0 40px; }
  aside,
  .sidebar-col {
    width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    top: auto !important;
    align-self: auto !important;
    margin-top: 28px;
  }
  aside * { max-width: 100% !important; box-sizing: border-box; }

  /* ── ページヘッダー ── */
  .page-header { padding: 20px 0 0; }
  .page-header-inner { padding: 0 16px; }
  .ph-title { font-size: 20px; }
  .ph-meta  { font-size: 12px; flex-wrap: wrap; gap: 6px; }
  .ph-tab   { padding: 10px 12px; font-size: 12px; }
  .breadcrumb { font-size: 11px; }

  /* ── HERO ── */
  .hero-inner {
    display: flex !important;
    flex-direction: column;
  }
  .hero-left {
    padding: 24px 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .hero-right { padding: 16px 16px 20px; gap: 14px; }
  .hero-round { font-size: 18px; }
  .hero-date  { font-size: 12px; margin-bottom: 14px; }
  .hero-balls { gap: 6px; margin-bottom: 16px; }
  .hero-balls .ball { width: 34px; height: 34px; font-size: 13px; }
  .hero-prizes { grid-template-columns: repeat(2, 1fr); }
  .hero-prize-val { font-size: 13px; }
  .hero-prize { padding: 10px; }
  .cd-num { font-size: 28px; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary { font-size: 13px; padding: 11px 16px; }
  .section-tabs-inner { padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stab { padding: 10px 14px; font-size: 12px; }

  /* ── ボール ── */
  .ball    { width: 34px; height: 34px; font-size: 13px; }
  .ball.sm { width: 28px; height: 28px; font-size: 11px; }
  .ball.xs { width: 22px; height: 22px; font-size: 10px; }

  /* ── セクション見出し ── */
  .sec-title { font-size: 15px; }
  .sec-head  { margin-bottom: 12px; }

  /* ── 予想カード ── */
  .pred-card { margin-bottom: 14px; }
  .pred-header { padding: 12px 16px; }
  .pred-name   { font-size: 14px; }
  .pred-algo   { font-size: 11px; }
  .pred-body   { padding: 14px 16px; }
  .pred-balls  { gap: 7px; }
  .pred-stats  { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pred-stat-val { font-size: 15px; }

  /* ── 抽選結果テーブル ── */
  .results-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .results-table { min-width: 520px; }
  .results-table th,
  .results-table td { padding: 8px 10px; font-size: 12px; }
  .round-badge { font-size: 11px; padding: 2px 7px; }
  .prize-amt   { font-size: 12px; }

  /* ── サービスカード ── */
  .service-card { margin-bottom: 12px; }
  .service-head { padding: 12px 14px; gap: 10px; flex-wrap: nowrap; }
  .service-thumb,
  .service-thumb-placeholder { width: 52px; height: 52px; }
  .service-name    { font-size: 14px; }
  .service-tagline { font-size: 11px; }
  .service-stats   { grid-template-columns: repeat(2, 1fr); }
  .s-stat-val      { font-size: 14px; }
  .service-foot    { padding: 8px 14px; gap: 6px; flex-wrap: wrap; }
  .btn-register    { font-size: 12px; padding: 7px 12px; margin-left: 0; width: 100%; justify-content: center; }
  .btn-detail      { font-size: 11px; padding: 6px 10px; }

  /* ── コラムグリッド ── */
  .col-grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .col-title  { font-size: 12px; }
  .col-thumb  { height: 100px !important; }

  /* ── チェックツール ── */
  .check-tool { padding: 18px 16px; }
  .check-inputs { gap: 6px; }
  .check-input  { width: 44px; height: 40px; font-size: 14px; }
  .check-btn    { padding: 10px 14px; font-size: 12px; }
  .check-tool-title { font-size: 15px; }

  /* ── サイドバーウィジェット ── */
  .side-service-cta { margin-bottom: 14px; }
  .side-cta-name    { font-size: 14px; }
  .side-cta-nums    { gap: 24px; }
  .side-cta-num-val { font-size: 18px; }
  .side-widget { margin-bottom: 14px; }

  /* ── FAQ ── */
  .faq-q      { padding: 13px 16px; gap: 10px; }
  .faq-q-text { font-size: 13px; }
  .faq-a      { padding: 0 16px 12px 50px; font-size: 12px; }

  /* ── フッター ── */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 16px 20px; }
  .footer-bottom { padding: 0 16px; flex-direction: column; gap: 8px; text-align: center; }

  /* ── 年代アコーディオン ── */
  .year-toggle { padding: 12px 14px; }
  .year-badge  { font-size: 12px; }
  .year-stat   { font-size: 10px; display: none; } /* SP では省略 */
  .year-stats-row { grid-template-columns: 1fr; gap: 8px; }

  /* ── 用語集 ── */
  .kigo-tab { padding: 5px 12px; font-size: 12px; }

  /* ── see-all-btn ── */
  .see-all-btn { font-size: 12px; padding: 10px; }

  /* ── ページネーション ── */
  .page-numbers { width: 32px; height: 32px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 極小（〜374px）
══════════════════════════════════════════════════ */
@media (max-width: 374px) {
  .hero-balls .ball { width: 30px; height: 30px; font-size: 11px; }
  .col-grid-3 { grid-template-columns: 1fr; }
  .check-inputs { flex-wrap: wrap; }
}

/* ── SP補足: canvas を薄くしてコンテンツが見えやすく ── */
@media (max-width: 767px) {
  #wm-canvas { opacity: 0.6; }

  /* ナビバーのCTAボタン文字サイズ調整 */
  .nav-cta svg { width: 12px; height: 12px; }

  /* hero の prizes 4列 → 2列 */
  .hero-prizes { grid-template-columns: repeat(2, 1fr); }

  /* service-stats SP: 4列 → 2列 */
  .service-stats { grid-template-columns: repeat(2, 1fr); }
  .service-stats .s-stat { border-right: none; border-bottom: 1px solid var(--border-light); }
  .service-stats .s-stat:nth-child(odd)  { border-right: 1px solid var(--border-light); }
  .service-stats .s-stat:nth-child(3),
  .service-stats .s-stat:nth-child(4)    { border-bottom: none; }

  /* ページヘッダーのタブをスクロール可能に */
  .ph-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-nowrap: nowrap; }
  .ph-tab  { white-space: nowrap; flex-shrink: 0; }

  /* コンテンツ列がサイドバーに押されないよう確実にfull width */
  .content-col { width: 100%; min-width: 0; }
}



/* ═══════════════════════════════════════════════════
   HAMBURGER MENU — 全画面オーバーレイ型
══════════════════════════════════════════════════ */

/* ── ハンバーガーボタン ── */
.nav-hamburger {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: opacity .14s;
}
.nav-hamburger:active { opacity: .7; }
.hb-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hb-text {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  line-height: 1;
  margin-top: 1px;
}
/* open 時: 三本線を × に */
.nav-hamburger.open .hb-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .hb-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── 全画面オーバーレイ ── */
.sp-menu-overlay {
  display: none;           /* 初期は非表示 */
  position: fixed;
  inset: 0;
  background: rgba(13,21,38,.97);
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 40px;
  /* フェードイン */
  opacity: 0;
  transition: opacity .25s ease;
}
.sp-menu-overlay.open {
  display: flex;
  opacity: 1;
}

/* ── 閉じるボタン ── */
.sp-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 8px 18px 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .14s;
}
.sp-menu-close:hover { background: rgba(255,255,255,.15); }
.sp-menu-close svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── メニューリスト ── */
.sp-menu-nav { width: 100%; max-width: 320px; }
.sp-menu-nav ul { list-style: none; }
.sp-menu-nav li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sp-menu-nav li:first-child {
  border-top: 1px solid rgba(255,255,255,.08);
}
.sp-menu-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6px;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .14s, padding-left .14s;
}
.sp-menu-nav li a::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-top: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  margin-right: 4px;
  flex-shrink: 0;
}
.sp-menu-nav li a:hover { color: #fff; padding-left: 8px; }
.sp-menu-nav li.sp-menu-active a { color: var(--accent-mid); }

/* ── SP CTA ── */
.sp-menu-cta { margin-top: 36px; width: 100%; max-width: 320px; }
.sp-menu-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--amber);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .14s;
}
.sp-menu-cta-btn:hover { background: var(--amber-dark); }

/* ── SP 表示切替 ── */
@media (max-width: 767px) {
  .nav-menu-pc  { display: none !important; }
  .nav-hamburger {
    display: flex !important;
    margin-left: 6px;
  }
  /* CTAをコンパクトに */
  .nav-cta {
    margin-left: auto;
    font-size: 12px;
    padding: 7px 14px;
    gap: 5px;
  }
  .nav-cta svg { width: 13px; height: 13px; }
}

/* ─── サービス一覧 6位以降 2列コンパクトカード SP ─ */
@media (max-width: 767px) {
  /* 6位以降グリッドをSPでは1列に */
  .service-compact-grid { grid-template-columns: 1fr !important; }
}
