/* 宝くじAI — 統一デザインシステム（2026） */

:root {
  --color-brand: #1a5fb4;
  --color-brand-light: #227be7;
  --color-brand-soft: #e8f1fc;
  --color-accent: #c62828;
  --color-accent-soft: #ffebee;
  --color-text: #1a1a2e;
  --color-text-muted: #5c6370;
  --color-bg: #f0f4f9;
  --color-surface: #ffffff;
  --color-border: #d8e2ef;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26, 50, 90, 0.06);
  --shadow-card: 0 4px 20px rgba(26, 91, 180, 0.1);
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --space-section: 1.75rem;
  --nav-width: 224px;
  --text-sm: 1.25rem;
  --text-base: 1.4rem;
  --text-md: 1.4rem;
  --text-lg: 1.5rem;
  --text-xl: 1.75rem;
  --text-2xl: 2rem;
  --text-3xl: 2.2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

/* ─── グローバルナビ（既存ロゴ画像は structure.css のまま） ─── */
.l_globalNav_ttl {
  margin: 0;
}

@media (min-width: 769px) {
  .l_globalNav_list > li > a.is_current,
  .l_globalNav_list > li > a:hover {
    color: var(--color-brand) !important;
    background: var(--color-brand-soft);
  }
}

/* 無料AI占い：通常・現在地とも赤アイコン（薄青 is_current 背景で白が消えるのを防ぐ） */
.l_drawer_list > li > a.is_fortune:before,
.l_globalNav_list > li > a.is_fortune:before,
.l_globalNav_list > li > a.is_current.is_fortune:before {
  background-image: url(/assets/img/common/ic-today001.svg);
}

/* ─── グローバルナビリンク ─── */
.l_globalNav_list a {
  transition: color 0.15s ease, background 0.15s ease;
}

/* ─── ナビ：プレミアム「受付中」バッジ ─── */
.nav-badge-pause,
.nav-badge-open {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.nav-badge-pause {
  background: var(--color-accent);
}

.nav-badge-open {
  background: var(--color-accent, #c62828);
}

.l_drawer_list .nav-badge-pause,
.l_drawer_list .nav-badge-open {
  margin-left: 6px;
  font-size: 0.72em;
}

.news-followup-note {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  color: #1b5e20;
  font-size: 0.95em;
  line-height: 1.7;
  margin: 0 0 20px;
  padding: 14px 16px;
}

.news-followup-note a {
  color: #1b5e20;
  font-weight: 700;
}

/* ─── プラン別UI（無料 / プレミアム） ─── */
html[data-user-plan="premium"] .js-hide-when-premium,
html[data-user-plan="premium"] .js-premium-promo-cta {
  display: none !important;
}

.plan-ui--hidden {
  display: none !important;
}

.nav-badge-open--member {
  background: #1565c0;
  color: #fff;
}

.nav-badge-open {
  transition: background 0.2s ease, color 0.2s ease;
}

/* ─── プレミアム案内カード（ナビ・TOP・購入ページ） ─── */
.premium-promo {
  box-sizing: border-box;
  color: var(--color-text);
}

.premium-promo--hidden {
  display: none !important;
}

.premium-promo__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 8px;
}

.premium-promo__title {
  color: var(--color-brand);
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.premium-promo__badge {
  background: var(--color-accent, #c62828);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.28);
  color: #fff;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 3px 8px;
}

.premium-promo__lead {
  color: var(--color-text);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 10px;
}

.premium-promo__compare {
  color: var(--color-text-muted);
  font-size: 0.75em;
  line-height: 1.5;
  margin: 10px 0 0;
  text-align: center;
}

.premium-promo__compare strong {
  color: var(--color-brand);
}

.premium-promo__plan-tip {
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border: 1px solid #ffb74d;
  border-radius: 999px;
  color: #e65100;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  padding: 6px 10px;
  text-align: center;
}

.premium-promo--nav .premium-promo__plan-tip {
  font-size: 0.62em;
  margin-bottom: 8px;
  padding: 5px 8px;
}

.premium-promo__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.premium-promo__perks--compact {
  gap: 5px;
}

.premium-promo__perk {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-brand);
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
}

.premium-promo__perk--hot {
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border-color: #ffb74d;
  color: #e65100;
}

.premium-promo__note {
  color: var(--color-text-muted);
  font-size: 0.68em;
  line-height: 1.45;
  margin: 10px 0 0;
}

.premium-promo__cta,
.premium-promo__member-link {
  background: linear-gradient(135deg, #b71c1c 0%, var(--color-accent, #c62828) 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.3);
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: 0.92em;
  font-weight: 700;
  margin-top: 12px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.premium-promo__cta:hover,
.premium-promo__member-link:hover {
  background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
  color: #fff;
  opacity: 1;
}

.premium-promo__cta--pending {
  background: linear-gradient(135deg, #e65100 0%, #fb8c00 100%);
  box-shadow: 0 3px 12px rgba(230, 81, 0, 0.28);
}

.premium-promo__member-link {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
  color: var(--color-brand);
  font-size: 0.78em;
  margin-top: 8px;
  padding: 8px 12px;
}

.premium-promo__member-link:hover {
  color: var(--color-brand);
}

.premium-promo--home,
.premium-promo--mobile-top {
  display: none;
}

.premium-promo--home {
  background: linear-gradient(135deg, #e8f1fc 0%, #fff 48%, #f3faf4 100%);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 0 0 20px;
  padding: 16px 14px;
}

.page-home .top-prize-section {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .premium-promo--home:not(.premium-promo--hidden) {
    display: block;
    margin: 0 8px 20px;
  }
}

@media screen and (max-width: 1279px) {
  .premium-promo--mobile-top {
    background: linear-gradient(135deg, #e8f1fc 0%, #fff 50%, #f3faf4 100%);
    border: 2px solid var(--color-brand);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: block;
    margin: 0 0 18px;
    padding: 16px 14px;
    position: sticky;
    top: 56px;
    z-index: 95;
  }

  .premium-promo--desktop-only {
    display: none !important;
  }
}

@media screen and (min-width: 1280px) {
  .premium-promo--mobile-top {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .premium-promo--nav {
    background: linear-gradient(180deg, var(--color-brand-soft) 0%, var(--color-surface) 100%);
    border-top: 1px solid var(--color-border);
    margin: 0;
    padding: 14px 10px 16px;
    width: 100%;
  }

  .l_globalNav_list > .l_globalNav_item--promo {
    border-bottom: none;
    list-style: none;
  }

  .l_globalNav_item--promo > .premium-promo--nav {
    display: block !important;
    flex-shrink: 0;
    margin: 0;
  }

  .premium-promo--nav .premium-promo__lead {
    font-size: 0.72em;
  }

  .premium-promo--nav .premium-promo__perk {
    font-size: 0.6em;
    padding: 4px 7px;
  }

  .premium-promo--nav .premium-promo__cta {
    font-size: 0.78em;
    margin-top: 10px;
    padding: 10px 8px;
  }
}

/* ─── パンくず ─── */
/* SEO用（schema）。表示は m_breadcrumbWrap に統一 */
.l_container_main > nav.breadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-brand);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 表示用パンくず：ページ下部（本文の下）に統一 */
.l_container_main > .m_breadcrumbWrap {
  margin: 16px 0 0 !important;
}

.l_container_main > .m_breadcrumbWrap .m_breadcrumb a {
  color: #0084c8;
  text-decoration: none;
}

.l_container_main > .m_breadcrumbWrap .m_breadcrumb li {
  color: #333;
}

/* ─── サブページ本文（レガシー rem 基準の読みやすさ補正） ─── */
body:not(.page-home) .l_container_main .l_content {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ─── ページ見出し ─── */
.m_head_ttl {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.news-meta-date {
  color: var(--color-text-muted);
  font-size: 0.95em;
  margin-top: 0.25em;
}

/* ─── SEOサマリー（トップ） ─── */
.seo-summary-box {
  background: linear-gradient(135deg, var(--color-brand-soft) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: var(--space-section);
  box-shadow: var(--shadow-card);
}

.seo-summary-box h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--color-brand);
  margin: 0 0 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.seo-summary-box p {
  font-size: var(--text-base);
  line-height: 1.7;
}

.seo-summary-lead {
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.7;
}

.seo-summary-highlight {
  color: var(--color-brand);
}

.seo-summary-safety {
  color: var(--color-text-muted);
  font-size: 1.3rem;
}

/* ─── カード共通 ─── */
.m_cardLottery.m_cardLottery__overflow {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* ─── 当せん口数セクション ─── */
.m_cardLottery.m_cardLottery__overflow:has(#prizeSummaryContainer) {
  padding: 0.99rem 0.94rem 1.16rem;
}

.lottery-title {
  font-size: clamp(1.5rem, 2.8vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}

/* 当せん口数カード（トップ・マイページ共通） */
.mypage-prize-grid {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.mypage-prize-grid .prize-block {
  background: linear-gradient(180deg, var(--color-brand-soft) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  min-width: 168px;
  max-width: 220px;
  flex: 1 1 180px;
  box-sizing: border-box;
}

.mypage-prize-grid .prize-title {
  font-size: 1.08em;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-brand);
  text-align: center;
  white-space: nowrap;
  padding-bottom: 0;
  border-bottom: none;
}

.mypage-prize-grid .prize-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mypage-prize-grid .prize-block li {
  font-size: 1.05em;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  line-height: 1.4;
  padding: 0;
  background: none;
}

.mypage-prize-grid .grade {
  color: var(--color-text-muted);
  font-weight: normal;
}

.mypage-prize-grid .count {
  font-weight: 700;
  color: var(--color-brand);
  white-space: nowrap;
  font-size: inherit;
}

/* トップのクーちゃん帯：コンパクトに */
.m_qoo2 {
  background: var(--color-brand-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}

.m_qoo2_txt {
  color: var(--color-brand);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

/* ─── LOTO / ナンバーズ タブ（セグメント型） ─── */
.tab-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 1.25rem;
  background: var(--color-border);
  border-radius: var(--radius-md);
  border: none;
}

.tab-nav button {
  flex: 1;
  padding: 12px 18px;
  border: none !important;
  border-bottom: none !important;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-nav button:hover {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.5);
}

.tab-nav button.active {
  background: var(--color-surface) !important;
  color: var(--color-brand) !important;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.tab-nav button:focus-visible {
  outline: 2px solid var(--color-brand-light);
  outline-offset: 2px;
}

/* ─── ロトカード・ボタン ─── */
.lottery-list {
  gap: 1rem;
}

.m_cardLotteryOther_btnWrap .m_btn {
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m_cardLotteryOther_btnWrap .m_btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* 抽せん日バッジ — 原版のサイズ・中央寄せを維持し、色のみブランド青に */
.m_cardLotteryOther_catch_day_sub {
  background-color: var(--color-brand) !important;
}

/* ロトカード内ボタン */
.m_cardLotteryOther_btnWrap .m_btn.m_btn__color2,
.m_cardLotteryOther_btn.m_btn__color2 {
  background: var(--color-surface) !important;
  color: var(--color-brand) !important;
  border: 1.5px solid var(--color-brand) !important;
}

.m_cardLotteryOther_btnWrap .m_btn.m_btn__color2:hover {
  background: var(--color-brand-soft) !important;
}

/* 1等最高賞金 — 黄+赤縁取りをやめ、読みやすいタイポグラフィに */
.m_cardLotteryNum__type2 .m_cardLotteryNum_txt {
  color: var(--color-text) !important;
  text-shadow: none !important;
  font-weight: 700;
}

.m_cardLotteryNum__type2 .m_cardLotteryNum_num,
.m_cardLotteryNum__type2 .m_cardLotteryBillion {
  text-shadow: none !important;
}

.m_cardLotteryNum__type2 .m_cardLotteryNum_num {
  color: var(--color-accent) !important;
  font-weight: 900;
}

.m_cardLotteryNum__type2 .m_cardLotteryBillion {
  color: var(--color-text) !important;
  font-weight: 700;
}

.m_label.m_label__new {
  background: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
}

.seo-summary-links {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.75;
}

.seo-summary-links a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
}

.seo-summary-links a:hover {
  text-decoration: underline;
}

.lottery-tab-note {
  margin: 0.35rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
}

.lottery-tab-note a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.lottery-tab-note a:hover {
  text-decoration: underline;
}

/* プライマリCTA（生成ボタン系） */
.m_cardLotteryOther_btnWrap .m_cardLotteryOther_btn:not(.m_btn__color2),
[id^="generateNumber"] {
  background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-brand) 100%) !important;
  color: #fff !important;
  border: none !important;
}

/* button.m_btn の inline-block 上書きを戻し、商品概要ボタンと同じ縦中央揃え */
button.m_btn.m_cardLotteryOther_btn {
  cursor: pointer;
  display: table;
  height: 40px;
  line-height: 1.2;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

button.m_btn.m_cardLotteryOther_btn > span {
  display: table;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

button.m_btn.m_cardLotteryOther_btn > span > span {
  display: table-cell;
  line-height: 1.2;
  margin: 0;
  padding: 2px 12px;
  text-align: center;
  vertical-align: middle;
}

.page-home .m_cardLotteryOther_btnWrap.m_btnWrap__type3 > li {
  vertical-align: middle;
}

/* ─── コンテンツボックス ─── */
.m_box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.m_box_news_table {
  background: var(--color-surface);
}

/* ─── フッター ─── */
.l_footer_lists {
  margin: 1rem 0;
}

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

.l_footer_pagetop > a {
  font-size: 1.5rem;
  line-height: 1.45;
}

.l_footer_list3 a,
.l_footer_list3 > li > a {
  color: var(--color-text-muted);
  font-size: 1.4rem;
  text-decoration: none;
}

.l_footer_list3 a:hover,
.l_footer_list3 a:focus-visible,
.l_footer_list3 > li > a:hover,
.l_footer_list3 > li > a:focus-visible {
  color: var(--color-brand);
  text-decoration: underline;
}

.l_footer_copyright {
  display: block;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

@media (min-width: 769px) {
  .l_footer_pagetop > a {
    font-size: 1.6rem;
  }
}

/* ─── 記事・ニュース ─── */
.news-title-link {
  color: var(--color-brand);
  font-weight: 500;
}

.news-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.news-cta .m_btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.22rem;
  min-height: 52px;
  line-height: 1.35;
  box-sizing: border-box;
}

.news-cta .m_btn:hover {
  background: var(--color-brand-light);
}

.news-noscript-links {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.news-noscript-list a {
  color: var(--color-brand);
}

/* ─── サイドバー：会員プロフィール ─── */
/* 表示は data-auth-state で一元制御（hidden と display:flex の競合を回避） */
.sub-profile-panel[data-auth-state="loading"] #loadingIndicator {
  display: flex !important;
}

.sub-profile-panel[data-auth-state="loading"] #loginUI {
  display: none !important;
}

.sub-profile-panel[data-auth-state="guest"] #loadingIndicator,
.sub-profile-panel[data-auth-state="user"] #loadingIndicator {
  display: none !important;
}

.sub-profile-panel[data-auth-state="guest"] #loginUI,
.sub-profile-panel[data-auth-state="user"] #loginUI {
  display: block !important;
}

.sub-profile-panel[data-auth-state="guest"] #googleLogin {
  display: flex !important;
}

.sub-profile-panel[data-auth-state="guest"] #profileInfo {
  display: none !important;
}

.sub-profile-panel[data-auth-state="user"] #googleLogin {
  display: none !important;
}

.sub-profile-panel[data-auth-state="user"] #profileInfo {
  display: block !important;
}

.l_sub_mypage.sub-profile-panel {
  border: 2px solid var(--color-brand-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.l_sub_mypage.sub-profile-panel .l_sub_header {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px !important;
}

.l_sub_mypage.sub-profile-panel .l_sub_ttl {
  line-height: 0;
  margin: 0;
  width: 100%;
}

.l_sub_mypage.sub-profile-panel .l_sub_ttl img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 34px;
  max-width: 100%;
  vertical-align: middle;
  width: auto;
}

.sub-profile__box {
  border-bottom: none;
  padding: 10px 12px 14px;
}

.sub-profile-loading {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82em;
  gap: 8px;
  justify-content: center;
  min-height: 72px;
  padding: 16px 10px;
  text-align: center;
}

.sub-profile-loading__spinner {
  animation: sub-profile-spin 0.8s linear infinite;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  border-top-color: var(--color-brand);
  height: 22px;
  width: 22px;
}

@keyframes sub-profile-spin {
  to {
    transform: rotate(360deg);
  }
}

.sub-profile__google-btn {
  align-items: center;
  background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(26, 91, 180, 0.28);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  height: 50px;
  justify-content: center;
  line-height: 1;
  margin: 0 auto;
  max-width: 100%;
  min-height: 50px;
  padding: 0 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
  width: 100%;
}

.sub-profile__google-label {
  line-height: 1.15;
}

.sub-profile__google-btn:hover {
  box-shadow: 0 5px 16px rgba(26, 91, 180, 0.34);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.sub-profile__google-btn .sub-profile__google-icon {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 2px;
}

.sub-profile__google-icon {
  flex-shrink: 0;
}

.sub-profile__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 100%;
  padding: 14px 12px 12px;
  text-align: center;
}

.sub-profile__avatar-wrap {
  margin: 0 auto 10px;
}

.sub-profile__avatar {
  border: 2px solid var(--color-brand-soft);
  border-radius: 50%;
  display: block;
  height: 64px;
  margin: 0 auto;
  object-fit: cover;
  width: 64px;
}

.sub-profile__email {
  color: var(--color-text);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  word-break: break-all;
}

.sub-profile__email-addr {
  background: linear-gradient(transparent 55%, #e3f0ff 55%);
  padding: 0 0.1em;
}

.sub-profile__email-honor {
  color: var(--color-text-muted);
  font-size: 0.92em;
  font-weight: 600;
}

.sub-profile__meta {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  padding-top: 10px;
  text-align: left;
}

.sub-profile__meta-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 4.2em 1fr;
  padding: 5px 0;
}

.sub-profile__meta-row + .sub-profile__meta-row {
  border-top: 1px dashed #e8eef5;
}

.sub-profile__meta-row dt {
  color: var(--color-text-muted);
  font-size: 0.72em;
  font-weight: 700;
  margin: 0;
}

.sub-profile__meta-value {
  color: var(--color-text);
  font-size: 0.88em;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.sub-profile__plan-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.3;
  padding: 2px 10px;
}

.sub-profile__plan-badge--free {
  background: #f0f4f9;
  color: var(--color-text-muted);
}

.sub-profile__plan-badge--month1 {
  background: #e8f1fc;
  color: #1a5fb4;
}

.sub-profile__plan-badge--month12 {
  background: #fff3e0;
  color: #b35c00;
}

.sub-profile__plan-badge--unknown {
  background: #f0f4f9;
  color: var(--color-text-muted);
}

.sub-profile__token-unlimited {
  color: #1b5e20;
  font-weight: 800;
}

.sub-profile__actions {
  display: grid;
  gap: 8px;
}

.sub-profile__mypage-link {
  align-items: center;
  background: var(--color-brand-soft);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  color: var(--color-brand);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1.15;
  min-height: 44px;
  padding: 0 12px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sub-profile__mypage-link:hover {
  background: #d6e8ff;
  color: var(--color-brand-light);
}

.sub-profile__logout.logout_btn {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d0d7e2;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1.15;
  margin: 0;
  min-height: 44px;
  padding: 0 16px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.sub-profile__logout.logout_btn:hover {
  background: #f5f8fc !important;
  border-color: #b8c4d6;
  box-shadow: 0 1px 4px rgba(15, 40, 80, 0.06);
  color: var(--color-text);
}

/* 旧プロフィール用スタイルの上書き */
#profileInfo.sub-profile__card {
  max-width: none;
  width: auto;
}

#userEmail.sub-profile__email,
#userPlan.sub-profile__meta-value,
#userToken.sub-profile__meta-value {
  font-size: inherit;
  margin: 0;
}

/* ─── フォーム・ログイン（SPヘッダー） ─── */
.l_menuSp_header_btn {
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.l_menuSp_header_btn__menu::before,
.l_menuSp_header_btn__menu::after,
.l_menuSp_header_btn__menu > span::before {
  pointer-events: none;
}

.l_menuSp_header_menu {
  left: 0;
}

.l_menuSp_header_account {
  align-items: center;
  bottom: 0;
  display: flex;
  height: 60px;
  justify-content: flex-end;
  margin: 0;
  padding: 0 10px 0 0;
  top: 0;
}

/* SPヘッダー：ログイン／ログアウト共通ベース */
.l_menuSp_header_account .sp-header-auth-btn {
  align-items: center;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 44px;
  min-width: 96px;
  padding: 0 18px;
  touch-action: manipulation;
  white-space: nowrap;
}

.sp-header-auth-btn__label {
  display: block;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.sp-header-login-btn {
  background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
  border: none;
  box-shadow: 0 2px 10px rgba(26, 91, 180, 0.32);
  color: #fff;
}

.sp-header-login-btn:hover,
.sp-header-login-btn:active {
  box-shadow: 0 3px 14px rgba(26, 91, 180, 0.36);
  filter: brightness(1.03);
}

.sp-header-logout-btn {
  background: #fff;
  border: 1px solid #c5d0de;
  box-shadow: 0 1px 4px rgba(15, 40, 80, 0.06);
  color: var(--color-text-muted);
}

.sp-header-logout-btn:hover,
.sp-header-logout-btn:active {
  background: #f5f8fc;
  border-color: #a8b8cc;
  box-shadow: 0 2px 8px rgba(15, 40, 80, 0.08);
  color: var(--color-text);
}

.user-token-mobile-bar {
  display: none;
}

.user-token-mobile-bar[hidden],
#googleLogin_sp[hidden],
#logout_sp[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .user-token-mobile-bar {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    padding: 4px 12px 6px;
  }

  .user-token-mobile-bar__inner {
    align-items: baseline;
    background: var(--color-brand-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    gap: 5px;
    padding: 4px 11px 4px 10px;
  }

  .user-token-mobile-bar__label {
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .user-token-mobile-bar__value {
    color: var(--color-brand);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .user-token-mobile-bar--premium .user-token-mobile-bar__inner {
    background: var(--color-surface);
    border-color: #c5d5ea;
  }

  .user-token-mobile-bar--premium .user-token-mobile-bar__label {
    color: var(--color-text-muted);
  }

  .user-token-mobile-bar--premium .user-token-mobile-bar__value {
    color: var(--color-brand-light);
    font-size: 0.94rem;
  }

  body.has-mobile-token-bar .l_container {
    padding-top: 92px;
  }
}

/* ─── アクセシビリティ ─── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brand-light);
  outline-offset: 2px;
}

/* ─── メインカラム（PC） ─── */
@media (min-width: 769px) {
  .l_content {
    padding-top: 0.5rem;
  }

  /* 全ページ: 無料AI占い（サブカラム・ログイン下・インフォメーション上） */
  .today-home-sub-slot {
    margin-top: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .today-home-section.is-in-sub {
    max-width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem 1.05rem 1.15rem;
  }

  .today-home-section.is-in-sub .today-home-head {
    gap: 0.65rem;
    margin-bottom: 0.7rem;
  }

  .today-home-section.is-in-sub .today-home-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .today-home-section.is-in-sub .today-home-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .today-home-section.is-in-sub .today-home-badge {
    font-size: 1.45rem;
    padding: 0.42rem 0.9rem;
  }

  .today-home-section.is-in-sub .today-home-title {
    font-size: 2.05rem;
  }

  .today-home-section.is-in-sub .today-home-tagline {
    font-size: 1.5rem;
    line-height: 1.42;
  }

  .today-home-section.is-in-sub .today-home-features {
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .today-home-section.is-in-sub .today-home-features li {
    font-size: 1.4rem;
    padding: 0.38rem 0.6rem;
  }

  .today-home-section.is-in-sub .today-home-feature-icon {
    font-size: 1.4rem;
  }

  .today-home-section.is-in-sub .today-home-widget {
    margin: 0.75rem 0 0.85rem;
  }

  .today-home-section.is-in-sub .today-widget {
    padding: 0.85rem 0.9rem;
    font-size: 1.45rem;
  }

  .today-home-section.is-in-sub .today-widget-label {
    font-size: 1.65rem;
  }

  .today-home-section.is-in-sub .today-widget-meta {
    font-size: 1.4rem;
  }

  .today-home-section.is-in-sub .today-widget-score {
    font-size: 1.45rem;
  }

  .today-home-section.is-in-sub .today-widget strong {
    font-size: 1.9rem;
  }

  .today-home-section.is-in-sub .today-widget-cta {
    font-size: 1.4rem;
    padding: 0.55rem 0.95rem;
  }

  .today-home-section.is-in-sub .today-widget--dual .today-widget-dual {
    flex-direction: column;
    gap: 0.55rem;
  }

  .today-home-section.is-in-sub .today-widget-pillar {
    padding: 0.6rem 0.65rem;
    font-size: 1.35rem;
  }

  .today-home-section.is-in-sub .today-widget-pillar-label {
    font-size: 1.35rem;
  }

  .today-home-section.is-in-sub .today-widget-pillar-rank {
    font-size: 1.5rem;
  }

  .today-home-section.is-in-sub .today-widget-pillar-points {
    font-size: 2.1rem;
  }

  .today-home-section.is-in-sub .today-home-cta {
    margin-top: 0.45rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .today-home-sp-slot {
    margin: 0.75rem 8px 1rem;
  }

  .today-home-section.is-in-sp {
    margin-bottom: 1rem;
  }

  .seo-summary-box {
    padding: 1rem;
  }

  .seo-summary-box h1 {
    font-size: 1.55rem;
  }

  .seo-summary-lead,
  .seo-summary-box p {
    font-size: 1.35rem;
  }

  .seo-summary-links {
    font-size: 1.25rem;
  }

  .lottery-title {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
  }

  .mypage-prize-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .mypage-prize-grid .prize-block {
    min-width: 120px;
    max-width: 140px;
    flex: 0 0 130px;
    padding: 10px 8px;
  }

  .mypage-prize-grid .prize-title {
    white-space: normal;
    word-break: break-all;
    font-size: 1.05em;
  }

  .mypage-prize-grid .prize-block li {
    font-size: 1.1em;
  }

  .m_qoo2_txt {
    font-size: 1.05rem;
  }

  /* モバイルフッター（共通）：2列（大きめ端末は3列）のタップしやすいリスト */
  .l_footer_lists {
    margin: 0;
    padding: 12px 12px 6px;
  }

  .l_footer_list3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  @media (min-width: 420px) {
    .l_footer_list3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .l_footer_list3 > li {
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
    box-sizing: border-box;
  }

  .l_footer_list3 > li:nth-child(odd) {
    clear: none;
  }

  .l_footer_list3 > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 10px 12px 22px;
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--color-text, #1a1a2e);
    background: #f8fafc;
    border: 1px solid var(--color-border, #d8e2ef);
    border-radius: 12px;
    text-decoration: none;
  }

  .l_footer_list3 > li > a:before {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .l_footer_list3 > li > a:hover,
  .l_footer_list3 > li > a:focus-visible {
    background: #fff;
    border-color: rgba(26, 95, 180, 0.35);
    color: var(--color-brand, #1a5fb4);
    text-decoration: none;
  }

  .tab-nav button {
    font-size: var(--text-base);
    padding: 10px 12px;
  }
}

/* ─── ページネーション（module.css のレガシー赤ボタンを上書き） ─── */
.m_pagination {
  letter-spacing: normal;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
  text-align: center;
}

.m_pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.m_pagination > li,
.m_pagination ul > li {
  display: inline-flex;
  letter-spacing: normal;
  margin: 0;
  vertical-align: middle;
}

.m_pagination a {
  text-decoration: none;
}

.m_pagination_link,
.m_pagination_ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 1.22rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-brand) !important;
  box-sizing: border-box;
}

.m_pagination_link--nav {
  min-width: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.m_pagination_link.is_current {
  background: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
  color: #fff !important;
  cursor: default;
  pointer-events: none;
}

.m_pagination_link[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
  cursor: default;
}

.is_notTouchDevice .m_pagination_link:hover:not(.is_current):not([aria-disabled="true"]) {
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: var(--color-brand) !important;
}

.m_pagination_ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted) !important;
  min-width: 1.25rem;
  padding: 0.35rem 0.15rem;
  pointer-events: none;
  position: static;
  text-indent: 0;
  width: auto;
  margin: 0;
}

.m_pagination_ellipsis::after {
  content: "…";
  display: block;
  position: static;
  text-indent: 0;
  letter-spacing: normal;
  margin: 0;
  width: auto;
  line-height: inherit;
}

@media (max-width: 480px) {
  .m_pagination_link,
  .m_pagination_ellipsis {
    min-width: 2.875rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.7rem;
    font-size: 1.125rem;
  }

  .m_pagination_link--nav {
    font-size: 1.0625rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* マイページ: 当選番号テーブル */
.winning-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#winningNumbersTable {
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}

#winningNumbersTable th,
#winningNumbersTable td {
  vertical-align: middle;
}

#winningNumbersTable .winning-col-genre {
  width: 82px;
}

#winningNumbersTable .winning-col-date {
  width: 132px;
}

#winningNumbersTable .winning-col-issue {
  width: 64px;
}

#winningNumbersTable .winning-col-main {
  min-width: 210px;
}

#winningNumbersTable .winning-col-bonus {
  width: 92px;
  min-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#winningNumbersTable .winning-col-actions {
  width: 120px;
}

@media (max-width: 768px) {
  #winningNumbersTable {
    min-width: 640px;
  }

  #winningNumbersTable .winning-col-main {
    white-space: normal;
    word-break: break-word;
  }

  #winningNumbersTable td,
  #winningNumbersTable th {
    white-space: nowrap;
  }

  #winningNumbersTable .winning-col-main,
  #winningNumbersTable .winning-col-bonus {
    white-space: normal;
  }
}

/* ─── ログイン誘導モーダル ─── */
.login-required-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 20, 40, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.login-required-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-required-modal__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 12px 40px rgba(26, 50, 90, 0.2);
}

.login-required-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.login-required-modal__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--color-text);
}

.login-required-modal__message {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.login-required-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.login-required-modal__google {
  align-items: center;
  background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(26, 91, 180, 0.28);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 17px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  line-height: 1.15;
  min-height: 48px;
  padding: 0 18px;
}

.login-required-modal__google:hover {
  box-shadow: 0 5px 16px rgba(26, 91, 180, 0.34);
  filter: brightness(1.03);
}

.login-required-modal__home {
  text-align: center;
  color: var(--color-brand);
  font-size: 0.92rem;
  text-decoration: none;
}

.login-required-modal__home:hover {
  text-decoration: underline;
}

.login-required-modal__note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

body.login-required-open {
  overflow: hidden;
}

/* 審査・法務向け：フッター免責 */
.site-legal-disclaimer {
  max-width: 52rem;
  margin: 1.25rem auto 1rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: left;
}

.site-legal-disclaimer__title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-legal-disclaimer__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.site-legal-disclaimer__list li + li {
  margin-top: 0.35rem;
}

/* 購入ページ：同意ブロック */
.buy-legal-notice {
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #d4dce8;
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-sm);
}

.buy-legal-notice__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.buy-legal-notice__list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.buy-legal-notice__note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.buy-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.55;
  cursor: pointer;
}

.buy-legal-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.about-legal-note {
  margin: 0.75rem 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-brand-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* ─── 実機スマホ：タップ不能の根本対策 ─── */
@media (max-width: 768px) {
  .l_menuSp {
    z-index: 900;
  }

  .l_menuSp_header {
    z-index: 903;
  }

  .l_drawer {
    z-index: 902;
  }

  .l_drawer_bg {
    z-index: 901;
  }

  .l_menuSp_header_btn,
  .m_cardLotteryOther_btn,
  [id^="generateNumber"],
  .site-announce-close,
  .login-required-modal__close,
  .login-required-modal__google {
    cursor: pointer;
    touch-action: manipulation;
  }

  .m_cardLotteryOther_btn,
  [id^="generateNumber"] {
    position: relative;
    z-index: 0;
  }

  .m_cardLotteryOther_btn::after,
  [id^="generateNumber"]::after {
    pointer-events: none;
  }

  button.m_btn.m_cardLotteryOther_btn {
    height: 48px;
  }

  button.m_btn.m_cardLotteryOther_btn > span {
    height: 48px;
  }

  /* 旧 module.css の赤グラデ・margin-top:14px / height:30px を打ち消す */
  .l_menuSp_header_account button.l_sub_mypage_txt.sp-header-auth-btn {
    display: inline-flex !important;
    height: 44px !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 44px !important;
    padding: 0 18px !important;
  }

  .l_menuSp_header_account .sp-header-login-btn {
    background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-brand) 100%) !important;
    font-size: 16px;
    min-width: 100px;
  }

  .l_menuSp_header_account .sp-header-logout-btn {
    background: #fff !important;
    border: 1px solid #c5d0de !important;
    font-size: 15px;
    min-width: 100px;
  }

  /* AdSenseアンカー広告がヘッダー・ボタン操作を覆わないよう調整 */
  ins.adsbygoogle[data-anchor-status],
  ins.adsbygoogle[data-anchor-shown],
  .adsbygoogle-anchor,
  .adsbygoogle-noablate,
  div[id^="google_ads_iframe"][style*="fixed"] {
    z-index: 80 !important;
  }

  body.has-anchor-ad {
    padding-bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }
}

/* ナビ・SPヘッダー読込前のレイアウトずれ抑制 */
@media (min-width: 769px) {
  #l_container_nav:empty {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 224px;
    height: 100vh;
    z-index: 103;
  }
}

@media (max-width: 768px) {
  #l_menuSp:empty {
    display: block;
    min-height: 48px;
  }
}
