/**
 * ミライズレンタカー テーマ CSS
 *
 * プロトタイプ mirais_site_v12.html から抽出。
 * 全セレクタは `.mirais-theme` クラス内にスコープされており、WordPressテーマと共存可能。
 *
 * 使い方:
 *   <div class="mirais-theme">...</div>
 *
 * 必要なクラス:
 *   .mirais-theme            (ルート、スコープ用)
 *   .site-header / .site-nav / .header-actions / .lang-switcher / .currency-switcher
 *   .hero / .hero-inner / .hero-search / .search-row / .field
 *   .section / .section-inner / .section-head
 *   .features-grid / .feature-card / .feature-icon
 *   .car-class-tabs / .car-grid / .car-card / .car-image / .car-info / .car-emoji / .car-name / .car-spec / .car-price
 *   .reviews-grid / .review-card
 *   .cta-section / .cta-btn
 *   .site-footer / .footer-inner / .footer-cols / .footer-col
 *   .btn-next / .btn-reserve-header / .search-btn
 */


:root {
    --primary: #2055BC;
    --primary-dark: #153878;
    --primary-light: #E8EEFA;
    --accent: #00A3B4;
    --gold: #C9A55C;
    --text: #1B2738;
    --text-sub: #5C6B7F;
    --bg: #FFFFFF;
    --bg-alt: #F7F9FC;
    --border: #E2E8F0;
    --success: #198754;
    --danger: #D32F2F;
  }
.mirais-theme { font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }

.mirais-theme a { color: var(--primary); text-decoration: none; }
.mirais-theme img { max-width: 100%; display: block; }
.mirais-theme h1, .mirais-theme h2, .mirais-theme h3, .mirais-theme h4 { font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
.mirais-theme button { font-family: inherit; cursor: pointer; }

.mirais-theme .site-header { position: sticky; top: 0; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); z-index: 400; }
/* v1.153.0: ヘッダーだけを包む .mirais-theme は overflow を解放する。
   (overflow-x:hidden だと言語ドロップダウン・☰ドロワーの下方向はみ出しがクリップされ見えなくなるため) */
.mirais-theme:has(> .site-header) { overflow: visible; }
/* v1.31.41: 電話予約案内バー (ヘッダー最上部) */
.mirais-theme .header-topbar { background: var(--primary-dark); color: #fff; }
.mirais-theme .header-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 5px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: 12px; }
.mirais-theme .topbar-label { opacity: 0.85; }
.mirais-theme .topbar-tel { color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: 0.5px; }
.mirais-theme .topbar-tel:hover { text-decoration: underline; }
.mirais-theme .topbar-hours { opacity: 0.85; }
@media (max-width: 600px) {
  .mirais-theme .header-topbar-inner { justify-content: center; padding: 6px 12px; gap: 2px 10px; flex-wrap: wrap; font-size: 11px; line-height: 1.3; }
  .mirais-theme .topbar-tel { font-size: 14px; }
  .mirais-theme .topbar-hours { width: 100%; text-align: center; margin-top: 0; }
}
.mirais-theme .header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mirais-theme .site-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--primary); cursor: pointer; }
.mirais-theme .site-logo .logo-mark { width: 36px; height: 36px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; border-radius: 8px; letter-spacing: 0; }
.mirais-theme .site-logo .logo-image { height: 44px; width: auto; max-width: 220px; display: block; }
.mirais-theme .site-nav { display: flex; gap: 28px; align-items: center; }
.mirais-theme .site-nav a { color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.mirais-theme .site-nav a:hover { color: var(--primary); }
.mirais-theme .site-nav a.active { color: var(--primary); }
.mirais-theme .header-actions { display: flex; gap: 10px; align-items: center; }
.mirais-theme .lang-switcher { display: flex; gap: 2px; align-items: center; font-size: 12px; color: var(--text-sub); border: 1px solid var(--border); border-radius: 6px; padding: 3px; }
.mirais-theme .lang-switcher button, .mirais-theme .lang-switcher a { background: transparent; border: none; padding: 4px 10px; cursor: pointer; font-size: 12px; color: var(--text-sub); border-radius: 4px; text-decoration: none; display: inline-block; }
.mirais-theme .lang-switcher button.active, .mirais-theme .lang-switcher a.active { background: var(--primary); color: #fff; }
/* v1.149.0(案C): 言語チップ＋ドロップダウン */
.mirais-theme .lang-chip-wrap { position: relative; }
.mirais-theme .lang-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: #fff; border: 1.5px solid var(--border); color: var(--primary-dark); border-radius: 10px; padding: 8px 11px; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; }
.mirais-theme .lang-chip:hover { border-color: var(--primary); }
.mirais-theme .lang-chip .lang-chip-caret { font-size: 9px; color: var(--text-sub); }
.mirais-theme .lang-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 124px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 24px rgba(0,0,0,0.12); padding: 6px; z-index: 600; }
.mirais-theme .lang-menu.open { display: block; }
.mirais-theme .lang-menu .lang-menu-item { display: block; padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--text-sub); text-decoration: none; border-radius: 7px; white-space: nowrap; }
.mirais-theme .lang-menu .lang-menu-item:hover { background: var(--bg-alt); color: var(--primary-dark); }
.mirais-theme .lang-menu .lang-menu-item.active { background: var(--primary); color: #fff; }
/* ドロワー先頭のログイン/マイページ項目。PC(横ナビ)では非表示、ドロワー時のみ表示。 */
.mirais-theme .site-nav .nav-auth { display: none; }
.mirais-theme .btn-reserve-header { padding: 9px 22px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; }
.mirais-theme .btn-reserve-header:hover { background: var(--primary-dark); }
.mirais-theme .hamburger { display: none; background: transparent; border: none; padding: 8px; font-size: 20px; }

/* v1.153.0: ログイン/マイページの👤ボタン（ヘッダー右に常時表示） */
.mirais-theme .header-auth { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; color: var(--primary); font-weight: 700; text-decoration: none; padding: 4px 6px; border-radius: 8px; line-height: 1.1; }
.mirais-theme .header-auth:hover { background: var(--primary-light); }
.mirais-theme .header-auth .header-auth-ic { font-size: 19px; line-height: 1; }
.mirais-theme .header-auth .header-auth-tx { font-size: 10px; white-space: nowrap; }

/* v1.153.0: ☰ドロワーの背面オーバーレイ・閉じるボタン（基本は非表示。スマホ幅でのみ機能） */
.mirais-theme .mirais-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(11,36,64,0.45); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; z-index: 1000; }
.mirais-theme .site-header.nav-open .mirais-nav-overlay { opacity: 1; visibility: visible; }
.mirais-theme .mirais-nav-close { display: none; position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: none; background: transparent; color: var(--text-sub); font-size: 28px; line-height: 1; cursor: pointer; align-items: center; justify-content: center; }

.mirais-theme .hero { position: relative; padding: 80px 20px 100px; background: linear-gradient(135deg, #2055BC 0%, #06243F 100%); color: #fff; overflow: hidden; }
.mirais-theme .hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 80%, rgba(0,163,180,0.3), transparent 50%), radial-gradient(circle at 80% 20%, rgba(201,165,92,0.2), transparent 50%); }
.mirais-theme .hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.mirais-theme .hero h1 { font-size: 44px; line-height: 1.25; margin-bottom: 20px; }
.mirais-theme .hero .sub { font-size: 18px; opacity: 0.9; margin-bottom: 40px; max-width: 560px; }
.mirais-theme .hero-search { background: #fff; color: var(--text); padding: 28px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-width: 900px; }
.mirais-theme .hero-search h3 { font-size: 16px; margin-bottom: 18px; }
.mirais-theme .search-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.mirais-theme .search-row .field { display: flex; flex-direction: column; gap: 6px; }
.mirais-theme .search-row .field label { font-size: 11px; color: var(--text-sub); font-weight: 500; }
.mirais-theme .search-row .field select, .mirais-theme .search-row .field input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff; }
.mirais-theme .search-row .field input:focus, .mirais-theme .search-row .field select:focus { outline: none; border-color: var(--primary); }
.mirais-theme .search-btn { padding: 12px 28px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; height: 44px; }
.mirais-theme .search-btn:hover { background: #008898; }

.mirais-theme .section { padding: 80px 20px; }
.mirais-theme .section-inner { max-width: 1200px; margin: 0 auto; }
.mirais-theme .section-head { text-align: center; margin-bottom: 50px; }
.mirais-theme .section-head .label { font-size: 12px; color: var(--accent); letter-spacing: 0.2em; font-weight: 600; margin-bottom: 10px; }
.mirais-theme .section-head h2 { font-size: 32px; margin-bottom: 16px; }
.mirais-theme .section-head p { font-size: 15px; color: var(--text-sub); max-width: 580px; margin: 0 auto; }
.mirais-theme .section.alt { background: var(--bg-alt); }

.mirais-theme .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mirais-theme .feature-card { text-align: center; }
.mirais-theme .feature-icon { width: 72px; height: 72px; background: var(--primary-light); color: var(--primary); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; border-radius: 50%; }
.mirais-theme .feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.mirais-theme .feature-card p { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

.mirais-theme .car-class-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.mirais-theme .car-class-tabs button { padding: 9px 18px; background: #fff; border: 1px solid var(--border); border-radius: 24px; font-size: 13px; color: var(--text); }
.mirais-theme .car-class-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mirais-theme .car-class-tabs button:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.mirais-theme .car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mirais-theme .car-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(32,85,188,0.12); }
/* v1.32.18: 車種カードが Android でタップできない問題の対策。
   カード内の画像・テキストがタッチイベントを吸ってしまい、親 .car-card の
   click が発火しないことがある。画像はタップ透過させ、テキストは選択不可に
   して、タッチが必ずカード本体に届くようにする。 */
.mirais-theme .car-card * {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
.mirais-theme .car-card img {
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
}
.mirais-theme .car-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(32,85,188,0.10); border-color: var(--primary); }
/* v1.34.77: 車種画像は 3:2 固定比率 (padding-top%方式・全ブラウザで安定)。
   固定px高さをやめ、カード幅に追従して常に同じ比率で表示する。 */
.mirais-theme .car-image { background: linear-gradient(135deg, #E8EFF7 0%, #CDD9EA 100%); position: relative; height: 0; padding-top: 66.67%; overflow: hidden; }
.mirais-theme .car-emoji { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 80px; filter: drop-shadow(0 4px 8px rgba(32,85,188,0.15)); }
.mirais-theme .car-class-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
.mirais-theme .car-info { padding: 18px 20px; }
.mirais-theme .car-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.mirais-theme .car-spec { font-size: 12px; color: var(--text-sub); margin-bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.mirais-theme .car-price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.mirais-theme .car-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.mirais-theme .car-price .unit { font-size: 12px; font-weight: 400; color: var(--text-sub); margin-left: 4px; }

.mirais-theme .store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mirais-theme .store-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.mirais-theme .store-card .store-area { display: inline-block; padding: 3px 10px; background: var(--primary-light); color: var(--primary); border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.mirais-theme .store-card h3 { font-size: 18px; margin-bottom: 14px; }
.mirais-theme .store-card .info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--text-sub); }
.mirais-theme .store-card .info-row .icon { width: 16px; flex-shrink: 0; color: var(--primary); }

.mirais-theme .cta-section { padding: 80px 20px; background: linear-gradient(135deg, rgba(13,40,92,.78), rgba(18,90,130,.55)), url(../img/cta-bg.jpg) center/cover no-repeat; color: #fff; text-align: center; }
.mirais-theme .cta-section h2 { font-size: 32px; margin-bottom: 16px; color: #fff; }
.mirais-theme .cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.mirais-theme .cta-btn { display: inline-block; padding: 16px 48px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; }
.mirais-theme .cta-btn:hover { background: #008898; }

.mirais-theme .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mirais-theme .review-card { background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: 10px; }
.mirais-theme .review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 0.05em; }
.mirais-theme .review-text { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 16px; min-height: 110px; }
.mirais-theme .review-meta { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-sub); }
.mirais-theme .review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }

.mirais-theme .site-footer { background: #06243F; color: #B8C5D6; padding: 60px 20px 30px; }
.mirais-theme .footer-inner { max-width: 1200px; margin: 0 auto; }
.mirais-theme .footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.mirais-theme .footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 16px; letter-spacing: 0.05em; }
.mirais-theme .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mirais-theme .footer-col ul li a { color: #B8C5D6; font-size: 12px; cursor: pointer; }
.mirais-theme .footer-col ul li a:hover { color: #fff; }
.mirais-theme .footer-logo { font-size: 18px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.mirais-theme .footer-tagline { font-size: 12px; line-height: 1.7; margin-bottom: 16px; }
.mirais-theme .footer-contact { font-size: 12px; line-height: 1.8; }
.mirais-theme .footer-bottom { border-top: 1px solid #1B3A5A; padding-top: 20px; font-size: 11px; text-align: center; color: #6B7E96; }

/* v1.163.0 関連サイト帯（フッター直上）＋ SNS(Instagram) */
.mirais-theme .related-strip { background: #0F2647; border-top: 1px solid rgba(255,255,255,.08); }
.mirais-theme .related-strip__inner { max-width: 1200px; margin: 0 auto; padding: 11px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #9FB2CC; }
.mirais-theme .related-strip__label { font-weight: 700; letter-spacing: .06em; color: #C2D2E8; }
.mirais-theme .related-strip a { color: #CFE0F3; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.mirais-theme .related-strip a:hover { color: #fff; }
.mirais-theme .footer-sns { margin-top: 16px; display: flex; gap: 10px; }
.mirais-theme .footer-sns a { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; transition: .18s; }
.mirais-theme .footer-sns a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* v1.164.0 会社概要テーブル（[mirais_company] のテキストエリアに .mirais-company-table を貼って使用） */
.mirais-company-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15px; line-height: 1.8; color: #1B2738; }
.mirais-company-table th,
.mirais-company-table td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 1px solid #E2E8F0; }
.mirais-company-table tr:first-child th,
.mirais-company-table tr:first-child td { border-top: 1px solid #E2E8F0; }
.mirais-company-table th { width: 180px; white-space: nowrap; font-weight: 700; color: #153878; background: #F7F9FC; border-left: 3px solid #2055BC; letter-spacing: .02em; }
.mirais-company-branch { display: block; }
.mirais-company-branch + .mirais-company-branch { margin-top: 10px; }
.mirais-company-branch__name { display: inline-block; min-width: 7.5em; font-weight: 700; color: #00A3B4; }
.mirais-company-link { color: #2055BC; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mirais-company-link:hover { color: #153878; }
@media (max-width:600px){
	.mirais-company-table th,
	.mirais-company-table td { display: block; width: auto; padding: 12px 16px; border-bottom: 0; }
	.mirais-company-table tr:first-child th,
	.mirais-company-table tr:first-child td { border-top: 0; }
	.mirais-company-table td { border-bottom: 1px solid #E2E8F0; padding-top: 4px; }
	.mirais-company-branch__name { min-width: 0; margin-right: 8px; }
}

/* v1.165.0 法的文書ページ（特定商取引法/利用規約/プライバシー等）用。.mirais-legal 配下で自己完結 */
.mirais-legal { max-width: 800px; margin: 40px auto; padding: 32px 36px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; font-size: 15px; line-height: 1.9; color: #1B2738; }
.mirais-legal h2 { margin: 0 0 24px; padding: 0 0 10px; font-size: 21px; font-weight: 800; color: #153878; border-bottom: 2px solid #2055BC; }
.mirais-legal-lead { margin: 0 0 24px; }
.mirais-legal-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 14.5px; line-height: 1.8; }
.mirais-legal-table th,
.mirais-legal-table td { text-align: left; vertical-align: top; border: 1px solid #E2E8F0; padding: 14px 16px; }
.mirais-legal-table th { width: 210px; background: #F7F9FC; color: #153878; font-weight: 700; }
.mirais-legal-table ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.mirais-legal-table ul li { margin-bottom: 4px; }
.mirais-legal-table a,
.mirais-legal-contact a { color: #2055BC; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mirais-legal-table a:hover,
.mirais-legal-contact a:hover { color: #153878; }
.mirais-legal-note { font-size: 13px; color: #5C6B7F; }
.mirais-legal-contact { margin: 0 0 24px; padding: 16px 20px; background: #F7F9FC; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 13px; line-height: 2; }
.mirais-legal-foot { padding-top: 16px; border-top: 1px solid #E2E8F0; text-align: right; font-size: 13px; color: #5C6B7F; }
.mirais-legal-foot strong { color: #1B2738; }
@media (max-width:600px){
	.mirais-legal { padding: 22px 16px; margin: 24px auto; }
	.mirais-legal-table, .mirais-legal-table tbody, .mirais-legal-table tr,
	.mirais-legal-table th, .mirais-legal-table td { display: block; width: auto; }
	.mirais-legal-table tr { border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
	.mirais-legal-table th { width: auto; border: 0; border-bottom: 1px solid #E2E8F0; }
	.mirais-legal-table td { border: 0; }
}

.mirais-theme .page { display: none; }
.mirais-theme .page.active { display: block; }

.mirais-theme .breadcrumb-bar { background: var(--bg-alt); padding: 14px 20px; font-size: 12px; color: var(--text-sub); }
.mirais-theme .breadcrumb-bar .inner { max-width: 1200px; margin: 0 auto; }
.mirais-theme .breadcrumb-bar a { color: var(--text-sub); cursor: pointer; }
.mirais-theme .breadcrumb-bar a:hover { color: var(--primary); }
.mirais-theme .breadcrumb-bar .sep { margin: 0 8px; color: #C0CCDC; }

.mirais-theme .car-detail { padding: 50px 20px; }
.mirais-theme .car-detail-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.mirais-theme .car-detail-image { background: linear-gradient(135deg, #E8EFF7 0%, #CDD9EA 100%); border-radius: 16px; padding: 60px; text-align: center; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.mirais-theme .car-detail-image .emoji-big { font-size: 180px; }
.mirais-theme .car-detail-info h1 { font-size: 30px; margin-bottom: 8px; }
.mirais-theme .car-detail-info .class-tag { display: inline-block; padding: 4px 12px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.mirais-theme .car-detail-info .description { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.8; }
.mirais-theme .car-detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 30px; padding: 20px; background: var(--bg-alt); border-radius: 8px; }
.mirais-theme .car-detail-specs .item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mirais-theme .car-detail-specs .item .ic { font-size: 20px; color: var(--primary); }
.mirais-theme .car-detail-specs .item .lbl { color: var(--text-sub); }
.mirais-theme .car-detail-specs .item .val { font-weight: 600; }
.mirais-theme .price-table { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.mirais-theme .price-table h3 { font-size: 14px; margin-bottom: 12px; }
.mirais-theme .price-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mirais-theme .price-table td { padding: 7px 0; border-bottom: 1px solid #F0F4F8; }
.mirais-theme .price-table td:last-child { text-align: right; font-weight: 600; color: var(--primary); }
.mirais-theme .price-table tr:last-child td { border-bottom: none; }
.mirais-theme .reserve-btn-large { width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; }
.mirais-theme .reserve-btn-large:hover { background: #008898; }
.mirais-theme .car-features-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.mirais-theme .car-features-list li { font-size: 13px; color: var(--text); padding-left: 22px; position: relative; }
.mirais-theme .car-features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.mirais-theme .reserve-page { background: var(--bg-alt); padding: 40px 20px 80px; min-height: 80vh; }
.mirais-theme .reserve-inner { max-width: 900px; margin: 0 auto; }
/* v1.32.19: 折りたたみ型 Android など特殊な画面比の端末で、予約フォームの
   操作要素 (select / input / 車種カード等) がタップに反応しないことへの対策。
   - フォーム配下の操作要素に touch-action:manipulation を明示し、
     端末特有のタッチジェスチャ判定でタップが握り潰されるのを防ぐ。
   - 念のため pointer-events:auto を明示し、継承で無効化されないようにする。
   - 操作要素が確実にタップ可能な最小高さを持つようにする。 */
.mirais-theme .reserve-page select,
.mirais-theme .reserve-page input,
.mirais-theme .reserve-page textarea,
.mirais-theme .reserve-page button,
.mirais-theme .reserve-page .car-card {
	touch-action: manipulation;
	pointer-events: auto;
}
.mirais-theme .reserve-page select,
.mirais-theme .reserve-page input {
	min-height: 44px;
}
/* v1.32.30: 自前ドロップダウンUI (Galaxy Z Fold 等でネイティブ select が
   開かない不具合への対策)。既存の input/select のデザインに合わせる。 */
.mirais-theme .mi-dropdown {
	position: relative;
	min-height: 44px;
	border: 1px solid var(--border, #ddd);
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	cursor: pointer;
	box-sizing: border-box;
	font-size: 14px;
	-webkit-tap-highlight-color: rgba(0,163,180,0.1);
	touch-action: manipulation;
}
.mirais-theme .mi-dropdown.open {
	border-color: var(--accent, #00A3B4);
	box-shadow: 0 0 0 2px rgba(0,163,180,0.12);
	/* v1.32.61: 開いているドロップダウンを他のフォーム項目より前面に。
	   これがないと .form-field.is-filled (position:relative) 等の影響で
	   オプションパネルが下の項目と重なって見えることがある。 */
	z-index: 50;
}
.mirais-theme .mi-dropdown-current {
	flex: 1;
	padding: 10px 36px 10px 12px;
	color: var(--text, #222);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mirais-theme .mi-dropdown-caret {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-sub, #888);
	font-size: 12px;
	pointer-events: none;
	transition: transform 0.15s;
}
.mirais-theme .mi-dropdown.open .mi-dropdown-caret {
	transform: translateY(-50%) rotate(180deg);
}
.mirais-theme .mi-dropdown-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	background: #fff;
	border: 1px solid var(--border, #ddd);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.14);
	max-height: 260px;
	overflow-y: auto;
	z-index: 1000;
	-webkit-overflow-scrolling: touch;
}
.mirais-theme .mi-dropdown.open .mi-dropdown-panel {
	display: block;
}
.mirais-theme .mi-dropdown-item {
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text, #222);
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	touch-action: manipulation;
}
.mirais-theme .mi-dropdown-item:last-child {
	border-bottom: none;
}
.mirais-theme .mi-dropdown-item.selected {
	background: rgba(0,163,180,0.08);
	font-weight: 600;
	color: var(--primary, #2055BC);
}
.mirais-theme .mi-dropdown-item.disabled {
	color: #bbb;
	cursor: default;
	font-weight: 400;
	background: #fafafa;
}
.mirais-theme .mi-dropdown-item:not(.disabled):active {
	background: rgba(0,163,180,0.16);
}
/* v1.32.45: 日付 (年月日) ・時刻の select 群のレイアウト */
.mirais-theme .mr-datetime-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.mirais-theme .mr-date-selects {
	display: flex;
	gap: 4px;
	flex: 2.4;
	min-width: 240px;
	align-items: stretch;
}
/* v1.37.7: カレンダーを開く📅ボタン */
.mirais-theme .mr-date-selects .mr-cal-open {
	flex: 0 0 auto;
}
.mirais-theme .mr-datetime-row .mr-time-part {
	flex: 1;
	min-width: 90px;
}
/* 日付・時刻の select も自前ドロップダウン化されるので、
   各パートが狭くなりすぎないよう最小幅を確保 */
.mirais-theme .mr-date-selects .mi-dropdown,
.mirais-theme .mr-datetime-row > .mi-dropdown {
	flex: 1;
	min-width: 0;
}
.mirais-theme .mr-date-selects .mi-dropdown-current,
.mirais-theme .mr-datetime-row > .mi-dropdown .mi-dropdown-current {
	padding-left: 8px;
	padding-right: 28px;
}
.mirais-theme .mr-datetime-row.invalid .mi-dropdown {
	border-color: var(--danger, #D9534F);
}
.mirais-theme .reserve-stepper { display: flex; gap: 0; margin-bottom: 30px; background: #fff; padding: 20px; border-radius: 12px; }
.mirais-theme .reserve-step { flex: 1; display: flex; align-items: center; gap: 10px; opacity: 0.4; transition: opacity 0.3s; }
.mirais-theme .reserve-step.active { opacity: 1; }
.mirais-theme .reserve-step.done { opacity: 1; }
.mirais-theme .reserve-step.done .step-num { background: var(--success); }
.mirais-theme .reserve-step .step-num { width: 32px; height: 32px; background: #C0CCDC; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.mirais-theme .reserve-step.active .step-num { background: var(--primary); }
.mirais-theme .reserve-step .step-label { font-size: 13px; font-weight: 500; }
.mirais-theme .reserve-content { background: #fff; padding: 36px; border-radius: 12px; }
.mirais-theme .reserve-content h2 { font-size: 22px; margin-bottom: 20px; }
.mirais-theme .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.mirais-theme .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mirais-theme .form-field label { font-size: 12px; color: var(--text-sub); font-weight: 500; }
/* v1.32.16: 必須マークを「必須」バッジに格上げ。従来は赤い「*」だけで
   分かりづらかったため、ラベル横に小さな赤バッジを出す。
   バッジの文字は HTML 側 (reserve.js) が翻訳テキストを入れるので、
   CSS は見た目 (赤背景・白文字) だけを担当する。多言語サイトでも正しく出る。 */
.mirais-theme .form-field label .req,
.mirais-theme .reserve-content h3 .req {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: var(--danger);
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	vertical-align: middle;
	margin-left: 4px;
}
/* 任意項目には控えめな「任意」バッジ (任意で使用) */
.mirais-theme .form-field label .opt {
	display: inline-block;
	margin-left: 4px;
	font-size: 10px;
	font-weight: 600;
	color: var(--text-sub);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	padding: 1px 6px;
	border-radius: 4px;
	vertical-align: middle;
}
/* v1.32.16: 未入力の必須欄を薄い色で強調。入力フォーカスや入力済みで解除。
   .needs-input クラスを JS が必須・未入力の項目に付与する。 */
/* v1.34.54: 未入力の必須欄をはっきり目立たせる (赤系の枠+背景+左ライン)。 */
.mirais-theme .form-field input.needs-input,
.mirais-theme .form-field select.needs-input,
.mirais-theme .form-field textarea.needs-input {
	background-color: #FFF4F4;
	border-color: #E8857F;
	border-left: 4px solid #D9534F;
	box-shadow: 0 0 0 2px rgba(217,83,79,0.10);
}
/* v1.41.24: select は enhanceSelects で .mi-dropdown に置き換わって隠れているため、
   needs-input スタイルを隣接する .mi-dropdown にも適用する。
   (例: 大人(12歳以上) の選択ボックスを電話番号と同じく赤く目立たせる) */
.mirais-theme .form-field select.needs-input + .mi-dropdown {
	background-color: #FFF4F4;
	border-color: #E8857F;
	border-left: 4px solid #D9534F;
	box-shadow: 0 0 0 2px rgba(217,83,79,0.10);
}
.mirais-theme .form-field:has(.needs-input) > label::after {
	content: '未入力';
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #D9534F;
	border-radius: 9px;
	vertical-align: middle;
}
/* 入力済み (妥当) の欄: 緑チェックを右端に表示 */
.mirais-theme .form-field.is-filled { position: relative; }
.mirais-theme .form-field.is-filled::after {
	content: '✓';
	position: absolute;
	right: 12px;
	bottom: 12px;
	color: var(--success);
	font-size: 14px;
	font-weight: 700;
	pointer-events: none;
}
/* select は右端にネイティブの矢印があるのでチェックを少し左へ */
.mirais-theme .form-field.is-filled.is-select::after { right: 30px; }
/* エラー状態 */
.mirais-theme .form-field input.invalid,
.mirais-theme .form-field select.invalid,
.mirais-theme .form-field textarea.invalid {
	border-color: var(--danger) !important;
	box-shadow: 0 0 0 2px rgba(163,45,45,0.08);
}
.mirais-theme .form-field .field-msg {
	font-size: 11px;
	line-height: 1.5;
	margin-top: 2px;
	min-height: 13px;
}
.mirais-theme .form-field .field-msg.error { color: var(--danger); font-weight: 600; }
.mirais-theme .form-field .field-msg.ok { color: var(--success); }
/* v1.32.16: 必須項目の入力進捗バー (各ステップ上部) */
.mirais-theme .req-progress {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
}
.mirais-theme .req-progress .rp-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	margin-bottom: 7px;
}
.mirais-theme .req-progress .rp-label { color: var(--text-sub); font-weight: 600; }
.mirais-theme .req-progress .rp-count { font-weight: 700; color: var(--primary); }
.mirais-theme .req-progress .rp-count.complete { color: var(--success); }
.mirais-theme .req-progress .rp-bar {
	height: 8px;
	background: var(--bg-alt);
	border-radius: 5px;
	overflow: hidden;
}
.mirais-theme .req-progress .rp-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--primary));
	border-radius: 5px;
	width: 0;
	transition: width 0.3s ease;
}
.mirais-theme .req-progress .rp-fill.complete {
	background: var(--success);
}
/* v1.32.17: STEP1 のリアルタイム検証メッセージ (期間不整合・入力完了など) */
.mirais-theme .r1-validation-msg {
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}
.mirais-theme .r1-validation-msg.error {
	background: #FFF3F3;
	border: 1px solid var(--danger);
	color: var(--danger);
}
.mirais-theme .r1-validation-msg.ok {
	background: #F1F8F1;
	border: 1px solid var(--success);
	color: #2F6B2F;
}
.mirais-theme .form-field input, .mirais-theme .form-field select, .mirais-theme .form-field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff; box-sizing: border-box; min-width: 0; }
.mirais-theme .form-field input:focus, .mirais-theme .form-field select:focus, .mirais-theme .form-field textarea:focus { outline: none; border-color: var(--primary); }
.mirais-theme .form-field textarea { min-height: 90px; resize: vertical; }
/* v1.32.12: 日付・時刻入力が Android Chrome でタップできない問題の対策。
   テーマCSSが appearance:none を継承させていると、ネイティブの日付/時刻
   ピッカーが起動しなくなる。明示的に appearance を有効化し、入力欄本体と
   カレンダーアイコンの双方をタップ可能にする。十分な高さも確保する。 */
.mirais-theme .form-field input[type="date"],
.mirais-theme .form-field input[type="time"],
.mirais-theme .form-field input[type="datetime-local"] {
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;          /* タップ可能な最小高さ (Android/iOS 推奨) */
	line-height: 1.2;
	pointer-events: auto;
	touch-action: manipulation;
	cursor: pointer;
	background-color: #fff;
}
/* ネイティブのカレンダー/時刻ピッカー起動アイコンを確実に表示・タップ可能に */
.mirais-theme .form-field input[type="date"]::-webkit-calendar-picker-indicator,
.mirais-theme .form-field input[type="time"]::-webkit-calendar-picker-indicator,
.mirais-theme .form-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
	opacity: 1;
	pointer-events: auto;
	cursor: pointer;
	padding: 4px;
}
/* v1.32.12: 日付＋時刻の横並び。デスクトップは横並び、スマホは縦積み。 */
.mirais-theme .mr-datetime-row { display: flex; gap: 6px; }
.mirais-theme .mr-datetime-row input[type="date"] { flex: 1.5; min-width: 0; }
.mirais-theme .mr-datetime-row input[type="time"] { flex: 1; min-width: 0; }
.mirais-theme .reserve-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.mirais-theme .btn-prev { padding: 11px 24px; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text); }
.mirais-theme .btn-next { padding: 11px 32px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; }
.mirais-theme .btn-next:hover { background: var(--primary-dark); }
.mirais-theme .btn-submit { padding: 14px 40px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; }
.mirais-theme .btn-submit:hover { background: #008898; }
.mirais-theme .reserve-car-display { background: var(--bg-alt); padding: 18px; border-radius: 8px; display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.mirais-theme .reserve-car-display .emoji { font-size: 56px; }
.mirais-theme .reserve-car-display .info { flex: 1; }
.mirais-theme .reserve-car-display .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mirais-theme .reserve-car-display .spec { font-size: 12px; color: var(--text-sub); }
/* v1.170.60: 車種カードの定員/荷物は「数字」を主役に。アイコン絵文字は縮小・控えめ(reserve.js側)、数字は太字＋濃色＋やや大きく。 */
.mirais-theme .car-spec,
.mirais-theme .reserve-car-display .spec { color: var(--text); font-weight: 700; font-size: 13px; }
.mirais-theme .reserve-car-display .price { font-size: 20px; font-weight: 700; color: var(--primary); }

.mirais-theme .option-cat-block { margin-bottom: 24px; }
.mirais-theme .option-cat-block h4 { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.mirais-theme .option-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-alt); border-radius: 6px; margin-bottom: 6px; cursor: pointer; }
.mirais-theme .option-item:hover { background: #EBF2FA; }
.mirais-theme .option-item input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.mirais-theme .option-item .opt-info { flex: 1; }
.mirais-theme .option-item .opt-name { font-size: 13px; font-weight: 500; }
.mirais-theme .option-item .opt-desc { font-size: 11px; color: var(--text-sub); white-space: pre-wrap; }
/* v1.41.2: 説明文の2行クランプ（画面幅まで使い、3行以上は…省略） */
.mirais-theme .option-item .opt-desc.opt-desc-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
}
.mirais-theme .option-item .opt-desc-wrap .opt-desc-toggle { display: inline-block; margin-top: 2px; text-decoration: none; }
.mirais-theme .option-item .opt-price { font-size: 13px; font-weight: 600; color: var(--primary); }
.mirais-theme .option-item .opt-price.free { color: var(--success); }

.mirais-theme .confirm-section { margin-bottom: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 6px; box-shadow: 0 1px 3px rgba(21,56,120,.05); }
.mirais-theme .confirm-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 0; border: 0; font-size: 15px; font-weight: 800; color: var(--primary-dark); letter-spacing: .01em; }
.mirais-theme .confirm-section h3::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.mirais-theme .confirm-section .reserve-car-display { margin-bottom: 10px; }
.mirais-theme .confirm-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 9px 0; font-size: 13.5px; border-top: 1px solid #EEF1F6; }
.mirais-theme .confirm-row:first-of-type { border-top: 0; }
.mirais-theme .confirm-row .label { color: var(--text-sub); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.mirais-theme .confirm-row .value { font-weight: 700; color: var(--text); }
/* v1.169.0: STEP4 オプションのチップ表示 */
.mirais-theme .s4-opt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; }
.mirais-theme .s4-opt-chip { display: inline-flex; align-items: center; gap: 7px; background: #EEF3FB; border: 1px solid #D6E2F4; color: var(--primary-dark); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; line-height: 1.4; }
.mirais-theme .s4-opt-chip .s4-opt-qty { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; }
.mirais-theme .s4-opt-empty { color: var(--text-sub); font-size: 13px; padding: 2px 0 10px; }
@media (max-width: 600px) {
  .mirais-theme .confirm-row { grid-template-columns: 104px 1fr; gap: 8px; }
}
.mirais-theme .total-price-bar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 20px 24px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.mirais-theme .total-price-bar .lbl { font-size: 14px; opacity: 0.9; }
.mirais-theme .total-price-bar .val { font-size: 30px; font-weight: 700; }
.mirais-theme .agreement-box { background: var(--bg-alt); padding: 14px; border-radius: 6px; font-size: 12px; margin: 18px 0; }
.mirais-theme .agreement-box label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
/* v1.33.4: テーマ「car」が input{width:100%} 等で上書きするとチェックボックスが
   段落ち・ずれるため、サイズと flex 配置を明示的に固定する。
   v1.41.38: テキスト1行目の中央にチェックボックスを合わせる。span に line-height を
   与え、checkbox の上マージンを (行高-16px)/2 相当にして高さズレを解消。 */
.mirais-theme .agreement-box label input[type="checkbox"] {
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px;
	margin: 0 !important;
	padding: 0 !important;
	-webkit-appearance: checkbox;
	appearance: auto;
}
.mirais-theme .agreement-box label > span { flex: 1 1 auto; line-height: 18px; }

.mirais-theme .complete-screen { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; }
.mirais-theme .complete-icon { width: 100px; height: 100px; background: var(--success); color: #fff; border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.mirais-theme .complete-screen h2 { font-size: 26px; margin-bottom: 12px; color: var(--success); }
.mirais-theme .complete-screen p { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; }
.mirais-theme .complete-screen .reservation-no { background: var(--bg-alt); padding: 18px; border-radius: 8px; margin: 24px auto; max-width: 400px; }
.mirais-theme .complete-screen .reservation-no .lbl { font-size: 11px; color: var(--text-sub); margin-bottom: 4px; }
.mirais-theme .complete-screen .reservation-no .no { font-size: 22px; font-weight: 700; font-family: monospace; color: var(--primary); }

.mirais-theme .faq-list { max-width: 800px; margin: 0 auto; }
.mirais-theme .faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.mirais-theme .faq-q { padding: 18px 24px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; }
.mirais-theme .faq-q::-webkit-details-marker { display: none; }
.mirais-theme .faq-q .arr { transition: transform 0.3s; color: var(--primary); }
/* v1.22.1: <details> open属性に対応 (旧.openクラスベース → 属性セレクタ) */
.mirais-theme .faq-item[open] .faq-q .arr,
.mirais-theme .faq-item.open .faq-q .arr { transform: rotate(180deg); }
.mirais-theme .faq-a { padding: 0 24px 18px; font-size: 13px; color: var(--text-sub); line-height: 1.8; border-top: 1px solid var(--border); padding-top: 14px; }

.mirais-theme .company-info { max-width: 800px; margin: 0 auto; }
.mirais-theme .company-table { width: 100%; border-collapse: collapse; }
.mirais-theme .company-table th, .mirais-theme .company-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.mirais-theme .company-table th { width: 200px; color: var(--text-sub); font-weight: 500; background: var(--bg-alt); }

.mirais-theme .mypage-inner { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.mirais-theme .mypage-header { display: flex; align-items: center; gap: 20px; padding: 24px; background: #fff; border-radius: 12px; margin-bottom: 24px; border: 1px solid var(--border); }
.mirais-theme .mypage-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.mirais-theme .mypage-user h2 { font-size: 20px; margin-bottom: 4px; }
.mirais-theme .mypage-user p { font-size: 13px; color: var(--text-sub); }
/* v1.32.63: マイページのヘッダー操作ボタン (会員情報を編集 / ログアウト)。
   スマホで横幅が足りずボタン内テキストが縦並びに崩れていたのを修正。 */
.mirais-theme .mypage-header-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.mirais-theme .mypage-header-actions a { white-space: nowrap; }
@media (max-width: 600px) {
	.mirais-theme .mypage-header { flex-wrap: wrap; gap: 14px; }
	.mirais-theme .mypage-header-actions { margin-left: 0; width: 100%; }
	.mirais-theme .mypage-header-actions a { flex: 1; text-align: center; }
}
.mirais-theme .reservation-list-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-bottom: 10px; display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; }
.mirais-theme .reservation-list-item .emoji { font-size: 36px; }
.mirais-theme .reservation-list-item .info .id { font-size: 11px; color: var(--text-sub); font-family: monospace; margin-bottom: 4px; }
.mirais-theme .reservation-list-item .info .name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mirais-theme .reservation-list-item .info .period { font-size: 12px; color: var(--text-sub); }
.mirais-theme .reservation-list-item .status-tag { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.mirais-theme .reservation-list-item .status-tag.upcoming { background: var(--primary-light); color: var(--primary); }
.mirais-theme .reservation-list-item .status-tag.done { background: #E8F5E9; color: var(--success); }
.mirais-theme .reservation-list-item .status-tag.cancelled { background: #FFEBEE; color: var(--danger); }

@media (max-width: 900px) {
  .mirais-theme .hamburger { display: block; position: relative; z-index: 5; }
  /* v1.153.0: ☰ドロワーを右スライドのパネル＋オーバーレイ方式に変更。
     position:fixed でビューポート基準（ヘッダー包みの overflow / 重なりに影響されず確実に開く）。 */
  .mirais-theme .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: -12px 0 40px rgba(8,20,42,0.2);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    z-index: 1001;
    padding: 58px 0 16px;
    overflow-y: auto;
  }
  .mirais-theme .site-header.nav-open .site-nav { transform: none; }
  .mirais-theme .site-nav a {
    padding: 15px 22px;
    font-size: 15px;
    border-bottom: 1px solid #f0f3f7;
  }
  .mirais-theme .site-nav a:last-child { border-bottom: none; }
  .mirais-theme .mirais-nav-overlay { display: block; }
  .mirais-theme .mirais-nav-close { display: flex; }
  .mirais-theme .hero h1 { font-size: 30px; }
  .mirais-theme .hero .sub { font-size: 15px; }
  .mirais-theme .search-row { grid-template-columns: 1fr; }
  .mirais-theme .hero { padding: 50px 20px 60px; }
  .mirais-theme .section { padding: 50px 20px; }
  .mirais-theme .section-head h2 { font-size: 24px; }
  .mirais-theme .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .mirais-theme .car-grid { grid-template-columns: 1fr; }
  /* v1.34.77: スマホは1カラム＝カード横幅いっぱい。aspect-ratio で画像も自動的に大きく表示される */
  .mirais-theme .car-emoji { font-size: 100px; }
  .mirais-theme .store-grid { grid-template-columns: 1fr; }
  .mirais-theme .reviews-grid { grid-template-columns: 1fr; }
  .mirais-theme .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mirais-theme .car-detail-inner { grid-template-columns: 1fr; gap: 30px; }
  .mirais-theme .car-detail-image { padding: 30px; min-height: 220px; }
  .mirais-theme .car-detail-image .emoji-big { font-size: 120px; }
  .mirais-theme .form-row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .mirais-theme .form-field input, .mirais-theme .form-field select, .mirais-theme .form-field textarea { font-size: 16px; padding: 10px 12px; }
  /* v1.32.12: スマホでは日付・時刻入力を縦積みにして、それぞれ全幅でタップ
     しやすくする (横並びだと潰れてAndroidでピッカーが起動しにくい)。 */
  .mirais-theme .mr-datetime-row { flex-direction: column; gap: 8px; }
  .mirais-theme .mr-datetime-row input[type="date"],
  .mirais-theme .mr-datetime-row input[type="time"] { flex: 1 1 100%; width: 100%; }
  /* v1.32.56: 縦積み時 align-items:flex-start のままだと .mr-date-selects が
     min-width(200px) に縮こまり、年月日3枠が狭くなって月日が切れる。
     縦積みのときは年月日ラッパーと時刻ドロップダウンを全幅にする。 */
  .mirais-theme .mr-datetime-row > .mr-date-selects { width: 100%; min-width: 0; }
  .mirais-theme .mr-datetime-row > .mi-dropdown { width: 100%; }
  .mirais-theme .reserve-page { padding: 20px 12px 60px; }
  .mirais-theme .reserve-stepper { padding: 14px; flex-wrap: wrap; gap: 8px; }
  .mirais-theme .reserve-stepper .step-label { display: none; }
  .mirais-theme .reserve-content { padding: 16px; }
  .mirais-theme .reserve-content h2 { font-size: 18px; margin-bottom: 14px; }
  .mirais-theme .reserve-car-display { flex-direction: column; text-align: center; gap: 10px; padding: 14px; }
  .mirais-theme .reserve-car-display .price { font-size: 18px; }
  .mirais-theme .reserve-login-hint { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .mirais-theme .reserve-login-hint .ic { font-size: 18px; }
  .mirais-theme .reserve-login-hint .text { font-size: 12px; flex: 1 1 100%; }
  .mirais-theme .flight-lookup-row input { font-size: 13px; padding: 10px 12px; letter-spacing: 0; }
  .mirais-theme .flight-lookup-row input::placeholder { font-size: 11px; }
  .mirais-theme .flight-lookup-row button { padding: 10px 12px; font-size: 12px; }
  .mirais-theme .signup-extra-fields { padding: 14px; margin-top: 14px; }
  .mirais-theme .signup-extra-fields .head h4 { font-size: 13px; }
  .mirais-theme .signup-extra-fields .head p { font-size: 10px; }
    /* 「grid-column:span 2」がスマホで効かないように */
  .mirais-theme .reserve-content .form-field[style*="grid-column"] { grid-column: auto !important; }
  .mirais-theme .car-detail-specs { grid-template-columns: 1fr; }
  .mirais-theme .car-features-list { grid-template-columns: 1fr; }
  .mirais-theme .cta-section h2 { font-size: 24px; }
  .mirais-theme .lang-switcher button, .mirais-theme .lang-switcher a { padding: 3px 6px; font-size: 11px; }
  .mirais-theme .btn-reserve-header { padding: 8px 14px; font-size: 12px; }
  /* v1.149.0(案C): スマホヘッダーは [ロゴ | 言語チップ・予約・☰] の1行。折り返さない。 */
  .mirais-theme .header-inner { padding: 12px 10px; column-gap: 8px; flex-wrap: nowrap; align-items: center; }
  .mirais-theme .site-logo { font-size: 14px; flex-shrink: 0; }
  .mirais-theme .site-logo .logo-mark { width: 30px; height: 30px; font-size: 14px; }
  .mirais-theme .site-logo .logo-image { height: 34px; max-width: 150px; }
  .mirais-theme .header-actions { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: flex-end; }
  .mirais-theme .lang-chip { padding: 7px 9px; font-size: 12px; }
  .mirais-theme .header-auth { padding: 3px 4px; }
  }

@media (max-width: 500px) {
  .mirais-theme .site-logo span:not(.logo-mark) { display: none; }
  .mirais-theme .lang-chip { padding: 7px 8px; font-size: 12px; }
  }

.mirais-theme .back-to-admin { position: fixed; bottom: 20px; right: 20px; padding: 10px 18px; background: rgba(0,0,0,0.7); color: #fff !important; border-radius: 30px; font-size: 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 200; backdrop-filter: blur(4px); text-decoration: none; display: inline-block; }
.mirais-theme .back-to-admin:hover { background: rgba(0,0,0,0.9); }

  /* ===== 認証モーダル ===== */
.mirais-theme .auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.mirais-theme .auth-overlay.open { display: flex; }
.mirais-theme .auth-modal { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative; }
.mirais-theme .auth-header { text-align: center; margin-bottom: 28px; }
.mirais-theme .auth-header .logo-mark { width: 56px; height: 56px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; border-radius: 12px; margin-bottom: 14px; }
.mirais-theme .auth-header h2 { font-size: 22px; margin-bottom: 6px; }
.mirais-theme .auth-header p { font-size: 13px; color: var(--text-sub); }
.mirais-theme .auth-field { margin-bottom: 16px; }
.mirais-theme .auth-field label { display: block; font-size: 12px; color: var(--text-sub); font-weight: 500; margin-bottom: 6px; }
.mirais-theme .auth-field label .req { color: var(--danger); margin-left: 2px; }
.mirais-theme .auth-field input, .mirais-theme .auth-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.mirais-theme .auth-field input:focus, .mirais-theme .auth-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,85,188,0.1); }
.mirais-theme .auth-field .help { font-size: 11px; color: var(--text-sub); margin-top: 4px; }
.mirais-theme .auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mirais-theme .auth-btn-primary { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.mirais-theme .auth-btn-primary:hover { background: var(--primary-dark); }
.mirais-theme .auth-switch { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 14px; }
.mirais-theme .auth-switch a { color: var(--primary); font-weight: 600; cursor: pointer; }
.mirais-theme .auth-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 24px; color: var(--text-sub); cursor: pointer; padding: 4px 10px; border-radius: 6px; line-height: 1; }
.mirais-theme .auth-close:hover { background: var(--bg-alt); }
.mirais-theme .benefit-box { background: linear-gradient(135deg, #E8EEFA 0%, #F0F7FF 100%); border: 1px solid var(--primary-light); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.mirais-theme .benefit-box h4 { font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.mirais-theme .benefit-box ul { list-style: none; padding: 0; }
.mirais-theme .benefit-box ul li { font-size: 12px; padding: 4px 0 4px 22px; position: relative; color: var(--text); }
.mirais-theme .benefit-box ul li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.mirais-theme .agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-sub); margin-bottom: 16px; cursor: pointer; }
.mirais-theme .agree-row input { margin-top: 3px; flex-shrink: 0; }

  /* ヘッダーの未ログイン・ログイン済表示 */
.mirais-theme .header-auth-buttons { display: flex; gap: 8px; align-items: center; }
.mirais-theme .btn-login-header { padding: 7px 14px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; cursor: pointer; }
.mirais-theme .btn-login-header:hover { border-color: var(--primary); color: var(--primary); }
.mirais-theme .btn-signup-header { padding: 7px 14px; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 500; }
.mirais-theme .btn-signup-header:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.mirais-theme .user-menu { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 24px; cursor: pointer; transition: all 0.2s; position: relative; }
.mirais-theme .user-menu:hover { border-color: var(--primary); background: var(--primary-light); }
.mirais-theme .user-menu .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.mirais-theme .user-menu .name { font-size: 13px; font-weight: 500; color: var(--text); }
.mirais-theme .user-menu .arrow { font-size: 10px; color: var(--text-sub); }
.mirais-theme .user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 200px; display: none; z-index: 110; overflow: hidden; }
.mirais-theme .user-dropdown.open { display: block; }
.mirais-theme .user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; color: var(--text); cursor: pointer; }
.mirais-theme .user-dropdown a:hover { background: var(--bg-alt); }
.mirais-theme .user-dropdown a.danger { color: var(--danger); border-top: 1px solid var(--border); }

.mirais-theme .login-required { text-align: center; padding: 80px 20px; background: var(--bg-alt); border-radius: 12px; }
.mirais-theme .login-required .ic { font-size: 56px; margin-bottom: 16px; }
.mirais-theme .login-required h3 { font-size: 20px; margin-bottom: 10px; }
.mirais-theme .login-required p { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.mirais-theme .login-required .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

  /* 予約フォームのログイン誘導 */
.mirais-theme .reserve-login-hint { background: var(--primary-light); border: 1px solid var(--primary); border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.mirais-theme .reserve-login-hint .ic { font-size: 22px; }
.mirais-theme .reserve-login-hint .text { flex: 1; font-size: 13px; color: var(--primary-dark); }
.mirais-theme .reserve-login-hint .text strong { display: block; margin-bottom: 2px; }
.mirais-theme .reserve-login-hint button { padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 500; }
.mirais-theme .reserve-login-hint button:hover { background: var(--primary-dark); }

  /* ===== Phase 2: 事前サイン ===== */
.mirais-theme .presign-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 600; padding: 0; }
.mirais-theme .presign-overlay.open { display: flex; }
.mirais-theme .presign-screen { background: #fff; width: 100%; max-width: 800px; height: 95vh; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mirais-theme .presign-head { padding: 16px 24px; background: var(--primary); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.mirais-theme .presign-head h2 { font-size: 17px; margin: 0; }
.mirais-theme .presign-head .close-btn { background: rgba(255,255,255,0.15); border: none; color: #fff; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.mirais-theme .presign-stepper { display: flex; padding: 14px 24px; background: var(--bg-alt); border-bottom: 1px solid var(--border); gap: 0; }
.mirais-theme .presign-step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); }
.mirais-theme .presign-step.active { color: var(--primary); font-weight: 600; }
.mirais-theme .presign-step.done { color: var(--success); }
.mirais-theme .presign-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.mirais-theme .presign-step.active .presign-step-num { background: var(--primary); }
.mirais-theme .presign-step.done .presign-step-num { background: var(--success); }
.mirais-theme .presign-body { flex: 1; overflow-y: auto; padding: 24px; }
.mirais-theme .presign-foot { padding: 16px 24px; background: var(--bg-alt); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
.mirais-theme .license-upload-area { background: var(--bg-alt); border: 2px dashed var(--border); border-radius: 10px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.mirais-theme .license-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.mirais-theme .license-upload-area.uploaded { border-color: var(--success); background: #E8F5E9; }
.mirais-theme .license-upload-area .icon { font-size: 48px; margin-bottom: 12px; }
.mirais-theme .license-upload-area .label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.mirais-theme .license-upload-area .hint { font-size: 11px; color: var(--text-sub); }
.mirais-theme .sign-canvas-wrap { background: #fff; border: 1px solid var(--primary); border-radius: 8px; overflow: hidden; }
.mirais-theme .sign-canvas-label { padding: 10px 14px; background: var(--primary-light); border-bottom: 1px solid var(--primary); font-size: 13px; font-weight: 500; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; }
.mirais-theme .sign-canvas-label .clear-btn { background: #fff; border: 1px solid var(--border); padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 11px; }
.mirais-theme .sign-canvas { width: 100%; height: 180px; background: #fff; display: block; touch-action: none; cursor: crosshair; }
.mirais-theme .sign-status-bar { padding: 8px 14px; background: var(--bg-alt); border-top: 1px solid var(--border); font-size: 11px; display: flex; justify-content: space-between; }

  /* Phase 2: 写真ギャラリー */
.mirais-theme .photo-gallery { display: flex; flex-direction: column; gap: 12px; }
.mirais-theme .photo-main { background: linear-gradient(135deg, #E8EFF7 0%, #CDD9EA 100%); border-radius: 12px; padding: 60px 20px; text-align: center; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.mirais-theme .photo-main .emoji-huge { font-size: 160px; line-height: 1; }
.mirais-theme .photo-main .photo-caption { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 11px; }
.mirais-theme .photo-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mirais-theme .photo-thumb { background: linear-gradient(135deg, #E8EFF7 0%, #CDD9EA 100%); border-radius: 8px; padding: 20px 8px; text-align: center; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.mirais-theme .photo-thumb:hover { border-color: var(--primary); }
.mirais-theme .photo-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.mirais-theme .photo-thumb .emoji-thumb { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.mirais-theme .photo-thumb .label { font-size: 9px; color: var(--text-sub); }

  /* Phase 2: クーポン */
.mirais-theme .coupon-section { background: linear-gradient(135deg, #FFF8E1 0%, #FFE0B2 100%); border: 1px solid #FFB300; border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.mirais-theme .coupon-section h4 { font-size: 13px; color: #B26A00; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.mirais-theme .coupon-row { display: flex; gap: 8px; align-items: center; }
.mirais-theme .coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid #FFB300; border-radius: 6px; font-size: 14px; font-family: monospace; text-transform: uppercase; background: #fff; }
.mirais-theme .coupon-row button { padding: 10px 18px; background: #B26A00; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.mirais-theme .coupon-row button:hover { background: #8C5500; }
.mirais-theme .coupon-applied { padding: 10px 14px; background: var(--success); color: #fff; border-radius: 6px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.mirais-theme .coupon-applied button { background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; }
.mirais-theme .coupon-suggestions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mirais-theme .coupon-chip { padding: 4px 10px; background: rgba(255,255,255,0.7); border: 1px solid #FFB300; border-radius: 14px; font-size: 11px; cursor: pointer; color: #B26A00; font-family: monospace; }
.mirais-theme .coupon-chip:hover { background: #fff; }

  /* Phase 2: 地図 */
.mirais-theme .map-container { background: linear-gradient(135deg, #DCEEFE 0%, #BFDBF7 100%); border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 16px; }
.mirais-theme .map-placeholder { padding: 0; position: relative; height: 280px; background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px); background-size: 30px 30px; display: flex; align-items: center; justify-content: center; }
.mirais-theme .map-pin { position: absolute; font-size: 36px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.mirais-theme .map-overlay { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.95); padding: 8px 12px; border-radius: 6px; font-size: 11px; color: var(--text-sub); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.mirais-theme .map-controls { position: absolute; bottom: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; }
.mirais-theme .map-controls button { width: 32px; height: 32px; background: #fff; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.mirais-theme .map-info { padding: 14px 18px; background: #fff; }
.mirais-theme .map-info .row { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 6px; }
.mirais-theme .map-info .row .ic { color: var(--primary); width: 16px; flex-shrink: 0; }
.mirais-theme .map-info .directions-btn { display: inline-block; margin-top: 8px; padding: 8px 14px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 12px; text-decoration: none; }

@media (max-width: 900px) {
  .mirais-theme .auth-modal { padding: 28px 20px; }
  .mirais-theme .auth-row2 { grid-template-columns: 1fr; }
  .mirais-theme .user-menu .name { display: none; }
  .mirais-theme .header-auth-buttons { gap: 4px; }
  .mirais-theme .btn-login-header, .mirais-theme .btn-signup-header { padding: 6px 10px; font-size: 12px; }
  .mirais-theme .presign-screen { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .mirais-theme .presign-body { padding: 14px; }
  .mirais-theme .photo-thumbs { grid-template-columns: repeat(3, 1fr); }
  .mirais-theme .photo-main { padding: 30px 16px; min-height: 220px; }
  .mirais-theme .photo-main .emoji-huge { font-size: 100px; }
  }

  /* ===== Phase 3: 電話・チャット予約 ===== */
.mirais-theme .contact-channels-section { background: var(--bg-alt); padding: 50px 20px; }
.mirais-theme .contact-channels-inner { max-width: 900px; margin: 0 auto; }
.mirais-theme .contact-channels-head { text-align: center; margin-bottom: 30px; }
.mirais-theme .contact-channels-head h2 { font-size: 26px; margin-bottom: 10px; }
.mirais-theme .contact-channels-head p { font-size: 14px; color: var(--text-sub); }
.mirais-theme .phone-cta { background: linear-gradient(135deg, #FFB300 0%, #F57C00 100%); color: #fff; border-radius: 12px; padding: 24px 30px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 20px; box-shadow: 0 6px 20px rgba(245,124,0,0.25); cursor: pointer; text-decoration: none; transition: transform 0.2s; }
.mirais-theme .phone-cta:hover { transform: translateY(-2px); }
.mirais-theme .phone-cta .ic { font-size: 38px; }
.mirais-theme .phone-cta .text { text-align: left; }
.mirais-theme .phone-cta .lbl { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.mirais-theme .phone-cta .num { font-size: 28px; font-weight: 700; letter-spacing: 0.04em; font-family: 'Courier New', monospace; }
.mirais-theme .phone-cta .hours { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.mirais-theme .chat-channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mirais-theme .chat-channel-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.mirais-theme .chat-channel-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(32,85,188,0.1); }
.mirais-theme .chat-channel-card.line { border-top: 4px solid #06C755; }
.mirais-theme .chat-channel-card.kakao { border-top: 4px solid #FEE500; }
.mirais-theme .chat-channel-card.whatsapp { border-top: 4px solid #25D366; }
.mirais-theme .chat-channel-card.wechat { border-top: 4px solid #07C160; }
.mirais-theme .chat-channel-card.messenger { border-top: 4px solid #0084FF; }
.mirais-theme .chat-channel-card .ic { font-size: 36px; margin-bottom: 8px; }
.mirais-theme .chat-channel-card .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mirais-theme .chat-channel-card .lang-hint { font-size: 10px; color: var(--text-sub); margin-bottom: 8px; }
.mirais-theme .chat-channel-card .qr-mini { width: 80px; height: 80px; margin: 0 auto; background-image: repeating-linear-gradient(0deg, #000 0px, #000 2px, transparent 2px, transparent 4px), repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 4px); background-color: #fff; border: 1px solid var(--border); position: relative; margin-bottom: 6px; }
.mirais-theme .chat-channel-card .qr-mini .qr-ic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 6px; border-radius: 50%; font-size: 18px; line-height: 1; }
.mirais-theme .chat-channel-card.line .qr-mini .qr-ic { color: #06C755; }
.mirais-theme .chat-channel-card.kakao .qr-mini .qr-ic { color: #3C1E1E; }
.mirais-theme .chat-channel-card.whatsapp .qr-mini .qr-ic { color: #25D366; }
.mirais-theme .chat-channel-card.wechat .qr-mini .qr-ic { color: #07C160; }
.mirais-theme .chat-channel-card .open-btn { display: inline-block; padding: 6px 14px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 500; text-decoration: none; margin-top: 4px; }

  /* QRモーダル */
.mirais-theme .qr-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 700; padding: 20px; }
.mirais-theme .qr-modal-overlay.open { display: flex; }
.mirais-theme .qr-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 380px; width: 100%; text-align: center; position: relative; }
.mirais-theme .qr-modal-close { position: absolute; top: 12px; right: 12px; background: var(--bg-alt); border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; }
.mirais-theme .qr-big { width: 240px; height: 240px; margin: 14px auto; background-image: repeating-linear-gradient(0deg, #000 0px, #000 3px, transparent 3px, transparent 6px), repeating-linear-gradient(90deg, #000 0px, #000 3px, transparent 3px, transparent 6px); background-color: #fff; border: 1px solid var(--border); position: relative; }
.mirais-theme .qr-big .qr-ic-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 14px; border-radius: 12px; font-size: 44px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

  /* ===== Phase 3: 通貨切替 ===== */
.mirais-theme .currency-switcher { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 6px; padding: 3px; background: #fff; }
.mirais-theme .currency-switcher button { background: transparent; border: none; padding: 4px 8px; cursor: pointer; font-size: 11px; color: var(--text-sub); border-radius: 4px; font-weight: 500; }
.mirais-theme .currency-switcher button.active { background: var(--primary); color: #fff; }

  /* ===== Phase 3: ライブチャット ===== */
.mirais-theme .live-chat-bubble { position: fixed; bottom: 80px; right: 20px; width: 60px; height: 60px; background: linear-gradient(135deg, #2055BC 0%, #153878 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; box-shadow: 0 4px 16px rgba(32,85,188,0.4); z-index: 200; transition: transform 0.2s; border: none; }
.mirais-theme .live-chat-bubble:hover { transform: scale(1.05); }
.mirais-theme .live-chat-bubble.has-notification::after { content: ''; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; background: var(--danger); border-radius: 50%; border: 2px solid #fff; }
.mirais-theme .live-chat-panel { position: fixed; bottom: 150px; right: 20px; width: 360px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 200px); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; z-index: 200; }
.mirais-theme .live-chat-panel.open { display: flex; }
.mirais-theme .live-chat-head { background: linear-gradient(135deg, #2055BC 0%, #153878 100%); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.mirais-theme .live-chat-head .title { font-size: 14px; font-weight: 600; }
.mirais-theme .live-chat-head .status { font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.mirais-theme .live-chat-head .status .dot { width: 8px; height: 8px; background: #4CAF50; border-radius: 50%; }
.mirais-theme .live-chat-head .close { background: transparent; border: none; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.mirais-theme .live-chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-alt); }
.mirais-theme .chat-msg { margin-bottom: 12px; display: flex; gap: 8px; }
.mirais-theme .chat-msg.bot { align-items: flex-end; }
.mirais-theme .chat-msg.user { flex-direction: row-reverse; }
.mirais-theme .chat-msg .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.mirais-theme .chat-msg.user .avatar { background: var(--accent); }
.mirais-theme .chat-msg .bubble { background: #fff; padding: 10px 14px; border-radius: 12px; max-width: 240px; font-size: 13px; line-height: 1.6; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.mirais-theme .chat-msg.user .bubble { background: var(--primary); color: #fff; }
.mirais-theme .chat-msg .time { font-size: 10px; color: var(--text-sub); margin-top: 2px; }
.mirais-theme .chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.mirais-theme .chat-quick-replies button { padding: 6px 12px; background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 14px; font-size: 11px; cursor: pointer; }
.mirais-theme .chat-quick-replies button:hover { background: var(--primary); color: #fff; }
.mirais-theme .live-chat-foot { padding: 12px 14px; background: #fff; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.mirais-theme .live-chat-foot input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; }
.mirais-theme .live-chat-foot button { padding: 10px 16px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 13px; cursor: pointer; }

  /* ===== Phase 3: 会員ランクカード ===== */
.mirais-theme .rank-card { background: linear-gradient(135deg, #1B355F 0%, #2055BC 100%); color: #fff; border-radius: 12px; padding: 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.mirais-theme .rank-card.gold { background: linear-gradient(135deg, #B07B0E 0%, #DAA520 100%); }
.mirais-theme .rank-card.platinum { background: linear-gradient(135deg, #4A4A4A 0%, #888 100%); }
.mirais-theme .rank-card.bronze { background: linear-gradient(135deg, #8B4513 0%, #CD7F32 100%); }
.mirais-theme .rank-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; background: rgba(255,255,255,0.07); border-radius: 50%; }
.mirais-theme .rank-card .rank-label { font-size: 10px; opacity: 0.85; letter-spacing: 0.15em; margin-bottom: 4px; }
.mirais-theme .rank-card .rank-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.mirais-theme .rank-card .rank-info { font-size: 12px; opacity: 0.9; margin-bottom: 14px; }
.mirais-theme .rank-card .points-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); }
.mirais-theme .rank-card .points-row .pts { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mirais-theme .rank-card .points-row .next { font-size: 11px; opacity: 0.85; text-align: right; }
.mirais-theme .rank-progress { background: rgba(255,255,255,0.2); height: 5px; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.mirais-theme .rank-progress .fill { background: #fff; height: 100%; transition: width 0.5s; }

  /* ===== Phase 3: SNSログインボタン ===== */
.mirais-theme .social-login-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mirais-theme .social-login-btn { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 500; transition: all 0.2s; }
.mirais-theme .social-login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.mirais-theme .social-login-btn.line { color: #06C755; border-color: #06C755; }
.mirais-theme .social-login-btn.facebook { color: #1877F2; border-color: #1877F2; }
.mirais-theme .social-login-btn.google { color: #DB4437; border-color: #DB4437; }
.mirais-theme .social-login-btn .ic { font-size: 16px; }

@media (max-width: 600px) {
  .mirais-theme .phone-cta { flex-direction: column; gap: 6px; padding: 18px; text-align: center; }
  .mirais-theme .phone-cta .text { text-align: center; }
  .mirais-theme .phone-cta .num { font-size: 22px; }
  .mirais-theme .live-chat-panel { right: 10px; left: 10px; width: auto; bottom: 140px; }
  .mirais-theme .live-chat-bubble { bottom: 70px; right: 14px; width: 52px; height: 52px; font-size: 22px; }
  }

  /* ===== v8: 便名検索 ===== */
.mirais-theme .flight-lookup-row { display: flex; gap: 6px; align-items: stretch; }
.mirais-theme .flight-lookup-row input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: monospace; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; box-sizing: border-box; }
.mirais-theme .flight-lookup-row button { padding: 11px 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; font-weight: 500; flex-shrink: 0; }
.mirais-theme .flight-lookup-row button:hover { background: var(--primary-dark); }
.mirais-theme .flight-info-card { margin-top: 12px; background: linear-gradient(135deg, #E8EEFA 0%, #F0F7FF 100%); border: 1px solid var(--primary); border-radius: 8px; padding: 14px 16px; }
.mirais-theme .flight-info-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(32,85,188,0.2); }
.mirais-theme .flight-info-card .head .flight-no { font-family: monospace; font-weight: 700; color: var(--primary); font-size: 16px; }
.mirais-theme .flight-info-card .head .status-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.mirais-theme .flight-info-card .head .status-badge.on-time { background: var(--success); color: #fff; }
.mirais-theme .flight-info-card .head .status-badge.delayed { background: var(--warning, #BA7517); color: #fff; }
.mirais-theme .flight-info-card .head .status-badge.cancelled { background: var(--danger); color: #fff; }
.mirais-theme .flight-route { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.mirais-theme .flight-route .airport { flex: 1; text-align: center; }
.mirais-theme .flight-route .airport .code { font-family: monospace; font-size: 22px; font-weight: 700; color: var(--primary); }
.mirais-theme .flight-route .airport .name { font-size: 10px; color: var(--text-sub); margin-top: 2px; }
.mirais-theme .flight-route .airport .time { font-size: 13px; margin-top: 4px; font-weight: 500; }
.mirais-theme .flight-route .plane-icon { font-size: 20px; color: var(--primary); }
.mirais-theme .flight-meta { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(32,85,188,0.2); font-size: 11px; color: var(--text-sub); }
.mirais-theme .flight-meta .item { display: flex; align-items: center; gap: 4px; }
.mirais-theme .pickup-suggestion { margin-top: 10px; padding: 10px 12px; background: rgba(255,255,255,0.6); border-radius: 6px; font-size: 12px; color: var(--primary-dark); display: flex; gap: 8px; align-items: center; }
.mirais-theme .pickup-suggestion .ic { font-size: 18px; flex-shrink: 0; }

  /* ===== v8: 保険比較表 ===== */
.mirais-theme .insurance-compare-section { padding: 30px 0; }
.mirais-theme .insurance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mirais-theme .insurance-card { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 20px; position: relative; transition: all 0.2s; }
.mirais-theme .insurance-card.recommended { border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,163,180,0.15); }
.mirais-theme .insurance-card .recommended-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mirais-theme .insurance-card .name { font-size: 16px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.mirais-theme .insurance-card .icon-big { font-size: 38px; text-align: center; margin-bottom: 10px; line-height: 1; }
.mirais-theme .insurance-card .price { text-align: center; font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.mirais-theme .insurance-card .price .unit { font-size: 11px; color: var(--text-sub); font-weight: 400; }
.mirais-theme .insurance-card .tagline { font-size: 11px; color: var(--text-sub); text-align: center; margin-bottom: 14px; min-height: 32px; }
.mirais-theme .insurance-card .features { list-style: none; padding: 0; margin: 0 0 14px 0; border-top: 1px solid var(--border); padding-top: 12px; }
.mirais-theme .insurance-card .features li { font-size: 12px; padding: 6px 0; padding-left: 22px; position: relative; line-height: 1.5; }
.mirais-theme .insurance-card .features li.yes::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.mirais-theme .insurance-card .features li.no::before { content: '✕'; position: absolute; left: 0; color: var(--text-sub); font-weight: 400; }
.mirais-theme .insurance-card .features li.no { color: var(--text-sub); }
.mirais-theme .insurance-card .select-btn { width: 100%; padding: 11px; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.mirais-theme .insurance-card .select-btn:hover { background: var(--primary); color: #fff; }
.mirais-theme .insurance-card.recommended .select-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.mirais-theme .insurance-card.recommended .select-btn:hover { background: #008898; }
.mirais-theme .insurance-card.selected { border-color: var(--success); }
.mirais-theme .insurance-card.selected .select-btn { background: var(--success); color: #fff; border-color: var(--success); }
.mirais-theme .insurance-detail-toggle { text-align: center; margin-top: 14px; }
.mirais-theme .insurance-detail-toggle button { background: transparent; border: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 6px 14px; }
.mirais-theme .insurance-detail-toggle button:hover { text-decoration: underline; }
.mirais-theme .insurance-compare-table { display: none; margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mirais-theme .insurance-compare-table.open { display: block; }
.mirais-theme .insurance-compare-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mirais-theme .insurance-compare-table th, .mirais-theme .insurance-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mirais-theme .insurance-compare-table th { background: var(--bg-alt); font-weight: 500; text-align: left; color: var(--text-sub); }
.mirais-theme .insurance-compare-table td { text-align: center; vertical-align: top; }
.mirais-theme .insurance-compare-table td:first-child { text-align: left; font-weight: 500; }
.mirais-theme .insurance-compare-table td .check { color: var(--success); font-weight: 700; }
.mirais-theme .insurance-compare-table td .x { color: var(--text-sub); }

@media (max-width: 700px) {
  .mirais-theme .insurance-cards { grid-template-columns: 1fr; }
  }

  /* ===== v10: 空車カレンダー ===== */
.mirais-theme .availability-calendar { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin: 18px 0; }
.mirais-theme .availability-calendar .cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mirais-theme .availability-calendar .cal-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mirais-theme .availability-calendar .cal-nav { display: flex; align-items: center; gap: 10px; }
.mirais-theme .availability-calendar .cal-nav button { background: var(--bg-alt); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mirais-theme .availability-calendar .cal-nav button:hover:not(:disabled) { background: var(--primary-light); border-color: var(--primary); }
.mirais-theme .availability-calendar .cal-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.mirais-theme .availability-calendar .cal-month-label { font-size: 14px; font-weight: 600; min-width: 110px; text-align: center; }
.mirais-theme .availability-calendar .cal-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-sub); margin-bottom: 12px; flex-wrap: wrap; }
.mirais-theme .availability-calendar .cal-legend .item { display: flex; align-items: center; gap: 5px; }
.mirais-theme .availability-calendar .cal-legend .dot { width: 12px; height: 12px; border-radius: 3px; }
.mirais-theme .availability-calendar .cal-legend .dot.ok { background: #C8E6C9; border: 1px solid #66BB6A; }
.mirais-theme .availability-calendar .cal-legend .dot.few { background: #FFF3E0; border: 1px solid #FB8C00; }
.mirais-theme .availability-calendar .cal-legend .dot.full { background: #FFCDD2; border: 1px solid #E53935; }
.mirais-theme .availability-calendar .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mirais-theme .availability-calendar .cal-day-label { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-sub); padding: 6px 0; }
.mirais-theme .availability-calendar .cal-day-label.sun { color: #E53935; }
.mirais-theme .availability-calendar .cal-day-label.sat { color: #1E88E5; }
.mirais-theme .availability-calendar .cal-day { aspect-ratio: 1 / 1; min-height: 50px; border: 1px solid var(--border); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.15s; background: #fff; }
.mirais-theme .availability-calendar .cal-day:hover { border-color: var(--primary); box-shadow: 0 2px 6px rgba(32,85,188,0.15); transform: translateY(-1px); }
.mirais-theme .availability-calendar .cal-day.past { opacity: 0.35; cursor: not-allowed; background: var(--bg-alt); }
.mirais-theme .availability-calendar .cal-day.past:hover { border-color: var(--border); box-shadow: none; transform: none; }
.mirais-theme .availability-calendar .cal-day.empty { border: none; cursor: default; background: transparent; }
.mirais-theme .availability-calendar .cal-day.empty:hover { transform: none; box-shadow: none; }
.mirais-theme .availability-calendar .cal-day .num { font-size: 13px; font-weight: 600; }
.mirais-theme .availability-calendar .cal-day.sun .num { color: #E53935; }
.mirais-theme .availability-calendar .cal-day.sat .num { color: #1E88E5; }
.mirais-theme .availability-calendar .cal-day .mark { font-size: 16px; font-weight: 700; line-height: 1; }
.mirais-theme .availability-calendar .cal-day.ok { background: #E8F5E9; border-color: #66BB6A; }
.mirais-theme .availability-calendar .cal-day.ok .mark { color: #2E7D32; }
.mirais-theme .availability-calendar .cal-day.few { background: #FFF3E0; border-color: #FB8C00; }
.mirais-theme .availability-calendar .cal-day.few .mark { color: #E65100; }
.mirais-theme .availability-calendar .cal-day.full { background: #FFEBEE; border-color: #E53935; cursor: not-allowed; }
.mirais-theme .availability-calendar .cal-day.full:hover { transform: none; box-shadow: none; }
.mirais-theme .availability-calendar .cal-day.full .mark { color: #C62828; }
.mirais-theme .availability-calendar .cal-day.today { box-shadow: 0 0 0 2px var(--accent); }
.mirais-theme .availability-calendar .cal-day .price { font-size: 9px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.mirais-theme .availability-calendar .cal-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-sub); text-align: center; }

@media (max-width: 600px) {
  .mirais-theme .availability-calendar { padding: 12px; }
  .mirais-theme .availability-calendar .cal-grid { gap: 2px; }
  .mirais-theme .availability-calendar .cal-day { min-height: 44px; padding: 3px; }
  .mirais-theme .availability-calendar .cal-day .num { font-size: 11px; }
  .mirais-theme .availability-calendar .cal-day .mark { font-size: 13px; }
  .mirais-theme .availability-calendar .cal-day .price { display: none; }
  .mirais-theme .availability-calendar .cal-legend { gap: 8px; font-size: 10px; }
  }

  /* ===== v11: 予約時の会員選択トグル ===== */
.mirais-theme .booking-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; align-items: stretch; }
.mirais-theme .booking-mode-card { background: #fff; border: 2px solid var(--border); border-radius: 10px; padding: 18px; cursor: pointer; transition: all 0.2s; position: relative; display: flex; flex-direction: column; }
.mirais-theme .booking-mode-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(32,85,188,0.08); }
/* v1.32.83: 選択中のカードだけ青枠 + 背景 + ✓。非選択は枠グレーのまま。 */
.mirais-theme .booking-mode-card.active { border-color: var(--primary); background: var(--primary-light); }
.mirais-theme .booking-mode-card.active::before { content: '✓'; position: absolute; top: 10px; right: 14px; width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.mirais-theme .booking-mode-card .title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mirais-theme .booking-mode-card .desc { font-size: 11px; color: var(--text-sub); line-height: 1.6; }
.mirais-theme .booking-mode-card .recommended { display: inline-block; padding: 2px 8px; background: var(--accent); color: #fff; border-radius: 10px; font-size: 9px; font-weight: 600; margin-left: 6px; letter-spacing: 0.04em; vertical-align: middle; }
.mirais-theme .booking-mode-card .benefits { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.mirais-theme .booking-mode-card .benefits li { font-size: 11px; padding: 2px 0 2px 18px; position: relative; list-style: none; line-height: 1.6; color: var(--text); }
.mirais-theme .booking-mode-card .benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.mirais-theme .booking-mode-card.active .benefits li { color: var(--text); }
/* v1.32.58: アイコン廃止 + 「会員登録して予約」カードを強調 (文字大きめ・存在感) */
/* v1.32.83: --featured の常時青枠をやめ、選択時のみ強調。非選択時は他カードと同じグレー枠。 */
.mirais-theme .booking-mode-card--featured { padding: 26px 22px; }
.mirais-theme .booking-mode-card--featured.active { box-shadow: 0 6px 22px rgba(32,85,188,0.16); }
.mirais-theme .booking-mode-card--featured .title { font-size: 20px; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.35; }
.mirais-theme .booking-mode-card--featured .desc { font-size: 13px; }
.mirais-theme .booking-mode-card--featured .recommended { font-size: 10px; padding: 3px 10px; }
.mirais-theme .booking-mode-card--featured .benefits li { font-size: 12.5px; padding-top: 3px; padding-bottom: 3px; }
/* 「会員登録せず予約」カードは相対的に控えめにして会員登録を引き立てる */
.mirais-theme .booking-mode-card:not(.booking-mode-card--featured) { padding: 15px 16px; }
.mirais-theme .booking-mode-card:not(.booking-mode-card--featured) .title { font-size: 13px; font-weight: 600; color: var(--text-sub); }
/* v1.32.83: 「会員登録せず予約」は中身が少ないため、上下中央寄せにして
   PCでカードが間延びして見えるのを防ぐ。 */
.mirais-theme .booking-mode-card:not(.booking-mode-card--featured) { justify-content: center; }
/* v1.32.83: 選択されていないカードはグレースケールにして、選択中が一目で
   分かるようにする。「おすすめ」バッジだけは色を残す。 */
.mirais-theme .booking-mode-cards .booking-mode-card:not(.active) { filter: grayscale(1); opacity: 0.7; }
.mirais-theme .booking-mode-cards .booking-mode-card:not(.active):hover { filter: grayscale(0); opacity: 1; }
.mirais-theme .booking-mode-cards .booking-mode-card:not(.active) .recommended { filter: grayscale(0); }

.mirais-theme .signup-extra-fields { background: linear-gradient(135deg, #E8F5E9 0%, #F1F8F1 100%); border: 1px solid var(--success); border-radius: 8px; padding: 18px; margin-top: 16px; }
.mirais-theme .signup-extra-fields .head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mirais-theme .signup-extra-fields .head .icon { font-size: 22px; }
.mirais-theme .signup-extra-fields .head h4 { font-size: 14px; color: #1B5E20; margin: 0; }
.mirais-theme .signup-extra-fields .head p { font-size: 11px; color: #2E7D32; margin: 2px 0 0 0; }
.mirais-theme .signup-extra-fields .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mirais-theme .signup-extra-fields .form-field label { font-size: 11px; color: var(--text-sub); display: block; margin-bottom: 4px; }
.mirais-theme .signup-extra-fields .form-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: #fff; }
.mirais-theme .signup-extra-fields .form-field input:focus { outline: none; border-color: var(--primary); }
.mirais-theme .signup-extra-fields .agree-mini { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--text-sub); margin-top: 12px; cursor: pointer; }
.mirais-theme .signup-extra-fields .agree-mini input { margin-top: 3px; flex-shrink: 0; }

@media (max-width: 600px) {
  .mirais-theme .booking-mode-cards { grid-template-columns: 1fr; }
  .mirais-theme .signup-extra-fields .form-row { grid-template-columns: 1fr; }
  }




/* v1.49.2: お問い合わせ 連絡チャネルカード (間延び解消・横並びコンパクト) */
.mirais-theme .contact-channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mirais-theme .contact-channel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 12px; text-align: center; transition: all 0.18s ease; }
.mirais-theme .contact-channel:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(32,85,188,0.10); }
.mirais-theme .contact-channel .icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.mirais-theme .contact-channel .name { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.mirais-theme .contact-channel .desc { font-size: 12px; color: var(--text-sub); word-break: break-all; line-height: 1.5; }
.mirais-theme .contact-channel-phone { border-top: 3px solid var(--primary); }
@media (max-width: 480px) {
  .mirais-theme .contact-channels-grid { grid-template-columns: repeat(2, 1fr); }
  .mirais-theme .contact-channel .icon { font-size: 26px; }
}

/* =========================================================================
   v1.170.9: ☰ ハンバーガーメニューを6項目アイコングリッドのパネルに統一
   （PC=2列 / スマホ=1列・アイコン付き・予約CTA）。承認モック準拠。
   末尾に置き、既存の横ナビ/ドロワー指定を上書きする。
   ========================================================================= */
.mirais-theme .hamburger { display: block; }
.mirais-theme .site-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(92vw, 460px);
  display: block;
  background: #fff; box-shadow: -12px 0 40px rgba(8,20,42,0.2);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 1001; padding: 56px 14px 18px; overflow-y: auto;
}
.mirais-theme .site-header.nav-open .site-nav { transform: none; }
.mirais-theme .mirais-nav-overlay { display: block; }
.mirais-theme .mirais-nav-close { display: flex; }
.mirais-theme .mr-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mirais-theme .site-nav a,
.mirais-theme .mr-nav-grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; background: #fff;
}
.mirais-theme .mr-nav-grid a:hover { border-color: var(--primary); background: var(--primary-light); }
.mirais-theme .mr-nav-grid a.active { border-color: var(--primary); color: var(--primary-dark); }
.mirais-theme .mr-nav-ic { font-size: 20px; line-height: 1; }
.mirais-theme .mr-nav-tx { flex: 1; }
.mirais-theme .mr-nav-ar { color: var(--text-sub); font-weight: 700; }
.mirais-theme .site-nav a.mr-nav-cta {
  justify-content: center; gap: 8px; margin-top: 14px; padding: 15px;
  border: none; border-radius: 12px; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 15px;
}
.mirais-theme .site-nav a.mr-nav-cta:hover { background: var(--primary-dark); }
@media (max-width: 560px) {
  .mirais-theme .site-nav { width: 86vw; max-width: 340px; }
  .mirais-theme .mr-nav-grid { grid-template-columns: 1fr; }
}
