/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---------------------------------------------------------
     design_tokens.css（KOBスイート共通デザイントークン）へのエイリアス。
     変数名はkob_portal既存のものを維持し、値だけを共通トークンに合わせる。
     design_tokens.css がこのファイルより前に読み込まれている前提。
     --------------------------------------------------------- */
  --navy: var(--color-navy-700);           /* #1a2f5a 既存値と完全一致 */
  --navy-dark: var(--color-navy-900);      /* #0f1e3d 既存値と完全一致 */
  --navy-mid: var(--color-navy-600);       /* #243970 既存値と完全一致 */
  --primary: var(--color-accent-portal);       /* #2563eb 既存値と完全一致 */
  --primary-light: var(--color-accent-portal-light); /* #dbeafe 既存値と完全一致 */
  --accent: #3b82f6; /* 共通トークンに厳密一致する値が無いため既存値を据え置き（サマリーカードの中立区分色） */
  --success: var(--color-success);   /* #16a34a 既存値と完全一致 */
  --danger: var(--color-danger);     /* #dc2626 既存値と完全一致 */
  --warning: var(--color-warning);   /* #d97706 既存値と完全一致 */
  --info: var(--color-info);         /* #0284c7 既存値と完全一致 */
  --text: var(--color-text);             /* #1e293b 既存値と完全一致 */
  --text-muted: var(--color-text-muted); /* #64748b 既存値と完全一致 */
  --border: var(--color-border);   /* #e2e8f0 既存値と完全一致 */
  --bg: var(--color-bg);           /* #f8fafc 既存値と完全一致（背景色は変更なし） */
  --white: var(--color-surface);   /* #ffffff 既存値と完全一致 */
  --radius: var(--radius-lg);      /* 10px→12px。トークンのカード/モーダル基準に統一 */
  --shadow: var(--shadow-sm);      /* トークンの標準カード影に統一 */
  --shadow-md: var(--shadow-md);   /* トークンのホバー/ドロップダウン影に統一 */
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== コンテナ ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 500px; }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo-link {
  display: flex; align-items: center; gap: 10px; color: var(--navy);
}
.logo-link:hover { text-decoration: none; }
.header-logo { height: 36px; width: auto; object-fit: contain; }
.header-brand {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  letter-spacing: .03em;
}
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a { color: var(--text); font-size: .9rem; font-weight: 500; }
.nav-menu a:hover { color: var(--navy); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ===== フッター ===== */
.site-footer {
  background: var(--navy-dark); color: #cbd5e1; margin-top: 80px; padding: 48px 0 28px;
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo-img { height: 44px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.footer-tagline { font-size: .85rem; color: #94a3b8; }
.footer-section-title { font-size: .8rem; font-weight: 600; color: #94a3b8; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.footer-app-logos { display: flex; flex-direction: column; gap: 10px; }
.footer-app-logo { height: 28px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.footer-nav a { color: #94a3b8; font-size: .85rem; }
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-copy { font-size: .78rem; color: #475569; }

/* ===== ボタン ===== */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 700; cursor: pointer; border: 2px solid transparent;
  transition: all .18s; text-align: center; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-white {
  background: var(--white); color: var(--navy); border-color: var(--white);
}
.btn-white:hover { background: #f1f5f9; color: var(--navy); text-decoration: none; }
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.8);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: .83rem; }
.btn-block { width: 100%; display: block; text-align: center; }

/* ===== フラッシュメッセージ ===== */
.flash-messages { padding: 12px 0; }
.admin-flash-messages { padding: 12px 32px 0; }
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 8px;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: var(--success); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--warning); }
.alert-info    { background: #f0f9ff; color: #075985; border-color: var(--info); }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #2563eb 100%);
  color: var(--white); padding: 72px 0 64px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  background: rgba(255,255,255,.15); display: inline-block;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title { font-size: 2.4rem; font-weight: 900; line-height: 1.35; margin-bottom: 18px; }
.hero-sub { font-size: 1rem; opacity: .88; margin-bottom: 32px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-lineup {
  max-width: 100%; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ===== セクション ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: 1.7rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--navy); }
.section-title-tight { margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

/* ===== アプリカード ===== */
.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.app-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.app-card-logo { height: 48px; width: auto; object-fit: contain; max-width: 220px; }
.app-card-name { font-size: 1.1rem; font-weight: 700; }
.app-card-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.app-price { font-size: .95rem; }
.app-card-detail { max-width: 440px; }
.app-cards-lg { justify-items: center; }

/* ===== フィーチャー ===== */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 20px; }
.feature { text-align: center; padding: 28px 20px; background: var(--bg); border-radius: var(--radius); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature p { color: var(--text-muted); font-size: .9rem; }

/* ===== CTA ===== */
.cta-section { background: var(--primary-light); }
.cta-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; color: var(--navy); }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== 近日公開 ===== */
.coming-soon-section { margin-top: 64px; }
.coming-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.coming-app {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 12px;
  opacity: .7;
}
.coming-app-logo { height: 36px; width: auto; object-fit: contain; flex: 1; }
.badge-soon { background: #fef9c3; color: #854d0e; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }

/* ===== 料金カード ===== */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 40px 0; justify-items: center; }
.pricing-card {
  width: 100%; max-width: 380px;
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.pricing-logo { height: 52px; width: auto; object-fit: contain; max-width: 240px; }
.pricing-price { margin: 8px 0; }
.price-amount { font-size: 2.8rem; font-weight: 900; color: var(--navy); }
.price-unit { font-size: .95rem; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; }
.pricing-features { text-align: left; width: 100%; }
.pricing-features li { padding: 7px 0; color: var(--text-muted); font-size: .9rem; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }

/* ===== ページコンテンツ ===== */
.page-content { padding: 44px 0 64px; }
.page-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 16px; color: var(--navy); }
.page-lead { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header .page-title { margin-bottom: 0; }
.back-link { margin-top: 36px; }
.back-link a { color: var(--text-muted); font-size: .9rem; }
.text-muted { color: var(--text-muted); }

/* ===== アプリヘッダー ===== */
.app-header { margin-bottom: 32px; }
.app-header-logo { height: 56px; width: auto; object-fit: contain; max-width: 280px; margin-bottom: 10px; }

/* ===== フォーム ===== */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--navy); }
.label-required { color: var(--danger); font-size: .8rem; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; transition: border .2s; background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,47,90,.1); }
.form-control-sm {
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; background: var(--white);
}
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.form-check label { font-weight: normal; margin-bottom: 0; font-size: .9rem; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }
.js-hidden { display: none; }

/* ===== テーブル ===== */
.info-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.info-table th, .info-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: .93rem; }
.info-table th { background: var(--bg); font-weight: 700; width: 180px; color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* ===== ダッシュボード ===== */
.dashboard-section { margin-bottom: 48px; }
.dashboard-section h2 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 18px;
  border-bottom: 2px solid var(--border); padding-bottom: 10px; color: var(--navy);
}
.sub-status { font-size: .85rem; font-weight: 700; }
.sub-status-grace { color: var(--color-warning-dark); }
.status-active   { color: var(--success); }
.status-trial    { color: var(--info); }
.status-expired, .status-cancelled { color: var(--text-muted); }
.empty-state { background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.empty-state p { margin-bottom: 16px; color: var(--text-muted); }

/* ===== アプリメニュー ===== */
.app-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 32px 0; }
.app-menu-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 28px 16px; text-align: center; color: var(--navy);
  box-shadow: var(--shadow); transition: all .18s;
}
.app-menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--navy); }
.menu-icon { font-size: 2rem; margin-bottom: 10px; }
.menu-label { font-weight: 700; font-size: .95rem; }

/* ===== プレースホルダー ===== */
.placeholder-box {
  background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 64px; text-align: center; color: var(--text-muted);
}
.placeholder-box p { margin-bottom: 8px; font-size: 1rem; }

/* ===== 連絡先 ===== */
.contact-info {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin: 24px 0;
}
.contact-info p { margin-bottom: 10px; }

/* ===== ユーティリティ ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 28px; }
.mb-1 { margin-bottom: 16px; }
.m-0 { margin: 0; }
.d-inline { display: inline; }
.sep-dot { margin: 0 12px; color: var(--border); }

/* ===== エラーページ ===== */
.error-code { font-size: 6rem; font-weight: 900; color: var(--navy); margin-bottom: 16px; }

/* ===== バッジ ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }
.badge-lg { font-size: .85rem; padding: 6px 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }

/* ===== 管理画面 ===== */
.admin-body { background: #f1f5f9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; background: var(--navy-dark); color: var(--white); flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-logo { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo a { display: flex; flex-direction: column; gap: 6px; color: var(--white); text-decoration: none; }
.admin-logo a:hover { text-decoration: none; }
.admin-logo-img { height: 30px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.admin-logo span { font-size: .78rem; color: #94a3b8; font-weight: 600; letter-spacing: .06em; }
.admin-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.admin-nav a { padding: 10px 18px; color: #94a3b8; font-size: .9rem; font-weight: 500; transition: all .15s; }
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.admin-nav hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 10px 0; }
.admin-main { flex: 1; overflow-x: auto; }
.admin-page { padding: 36px; }
.admin-page h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 28px; color: var(--navy); }
.admin-page h2 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 14px; color: var(--navy); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 2.4rem; font-weight: 900; color: var(--navy); }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
.admin-shortcuts { display: flex; gap: 12px; margin-top: 8px; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--bg); font-size: .83rem; font-weight: 700; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--navy); }
.admin-table td { padding: 11px 14px; font-size: .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form-sm { display: flex; gap: 4px; }
.filter-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.table-empty-note { padding: 16px 0; }

/* ===== 管理画面テーブル: セル書式ユーティリティ ===== */
.cell-nowrap { white-space: nowrap; }
.cell-xs { font-size: .8rem; }
.cell-sm { font-size: .85rem; }
.cell-md { font-size: .88rem; }
.cell-wrap { white-space: pre-wrap; }
.cell-break { word-break: break-all; }
.cell-w-220 { max-width: 220px; }
.cell-w-180 { max-width: 180px; }

/* ===== サマリーカード ===== */
.summary-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.summary-cards-sm { margin: 16px 0 24px; }
.summary-card { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); border-left: 4px solid var(--border); }
.summary-income  { border-left-color: var(--success); }
.summary-expense { border-left-color: var(--danger); }
.summary-balance { border-left-color: var(--navy); }
.summary-neutral { border-left-color: var(--accent); }
.summary-label  { font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.summary-amount { font-size: 1.55rem; font-weight: 800; color: var(--navy); }
.text-income { color: var(--success); }
.text-expense { color: var(--danger); }

/* ===== データテーブル ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-table th { background: var(--bg); font-size: .83rem; font-weight: 700; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--navy); }
.data-table td { padding: 11px 14px; font-size: .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tfoot td { border-top: 2px solid var(--border); border-bottom: none; }
.tfoot-total { background: var(--bg); }
.text-right { text-align: right; }

/* ===== バッジ（種別・ステータス） ===== */
.badge-type  { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge-income  { background: #dcfce7; color: #166534; }
.badge-expense { background: #fee2e2; color: #991b1b; }
.badge-rsv { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge-rsv-confirmed { background: #dbeafe; color: #1e40af; }
.badge-rsv-completed { background: #dcfce7; color: #166534; }
.badge-rsv-cancelled { background: #f1f5f9; color: #64748b; }

/* ===== 月切替ナビ ===== */
.month-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.month-current { font-size: 1.1rem; font-weight: 700; color: var(--navy); min-width: 120px; text-align: center; }

/* ===== アプリセクション ===== */
.app-section { margin-top: 36px; }
.app-header-sub { color: var(--text-muted); font-size: .95rem; margin-top: 6px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.link-more { font-size: .85rem; color: var(--primary); }

/* ===== フィルターバー ===== */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ===== ラジオグループ ===== */
.radio-group { display: flex; gap: 24px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }

/* ===== 削除・危険ボタン ===== */
.btn-danger-outline { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-danger-outline:hover { background: #fef2f2; }

/* ═══════════════════════════════════════════
   マーケティング / 販売LP専用スタイル
   ═══════════════════════════════════════════ */

/* ── ヒーロー（LP） ── */
.mkt-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 55%, #2563eb 100%);
  color: var(--white); padding: 80px 0 72px;
}
.mkt-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.mkt-eyebrow {
  display: inline-block; background: rgba(255,255,255,.15);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 14px; border-radius: 99px; margin-bottom: 18px;
}
.mkt-h1 {
  font-size: 2.6rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px;
}
.mkt-hero-sub {
  font-size: 1rem; opacity: .9; line-height: 1.85; margin-bottom: 34px;
}
.mkt-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-xl { padding: 15px 34px; font-size: 1.05rem; border-radius: 12px; }
.mkt-hero-visual { display: flex; justify-content: center; align-items: center; }
.mkt-hero-img {
  max-width: 100%; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

/* ── トラストバー ── */
.mkt-trust {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.mkt-trust-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 20px; justify-content: center;
}
.mkt-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
}
.ti-icon { color: var(--success); font-size: 1rem; }
.mkt-trust-sep { color: var(--border); font-size: 1.2rem; }

/* ── アプリカードグリッド（LP） ── */
.mkt-app-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px;
}
.mkt-app-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px;
}
.mkt-app-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.mkt-app-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.mkt-app-card-top { padding: 32px 28px 20px; border-bottom: 1px solid var(--border); }
.mkt-app-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: 14px; }
.mkt-app-catch { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.5; }
.mkt-app-target { font-size: .85rem; color: var(--text-muted); }
.mkt-feature-list { padding: 20px 28px; flex: 1; }
.mkt-feature-list li {
  font-size: .92rem; padding: 7px 0; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mkt-feature-list li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.mkt-feature-list li:last-child { border-bottom: none; }
.mkt-app-card-footer { padding: 20px 28px 28px; }
.mkt-price-tag { font-size: .88rem; color: var(--text-muted); margin-bottom: 12px; }
.mkt-price-tag strong { font-size: 1.2rem; color: var(--navy); }
.mkt-app-btn-group { display: flex; gap: 10px; }
.mkt-app-btn-group .btn { flex: 1; font-size: .88rem; }
.mkt-app-existing-user { margin: 10px 0 0; font-size: .78rem; text-align: center; color: var(--text-muted, #666); }
.mkt-app-existing-user a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ── Why / 選ばれる理由グリッド ── */
.mkt-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px;
}
.mkt-why-item {
  background: var(--bg); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
}
.mkt-why-icon { font-size: 2.2rem; margin-bottom: 12px; }
.mkt-why-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.mkt-why-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ── 料金プレビュー（LP内） ── */
.mkt-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px;
  margin: 32px auto 0;
}
.mkt-pricing-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 32px auto 0;
}
.mkt-pricing-card-full {
  background: var(--white); border: 2px solid var(--border); border-radius: 16px;
  padding: 36px 30px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  transition: box-shadow .2s;
}
.mkt-pricing-card-full.featured {
  border-color: var(--navy); box-shadow: 0 4px 24px rgba(26,47,90,.18);
}
.mkt-plan-logo { height: 44px; width: auto; object-fit: contain; max-width: 200px; }
.mkt-price-main {
  font-size: 3rem; font-weight: 900; color: var(--navy); line-height: 1;
}
.price-yen { font-size: 1.2rem; font-weight: 400; }
.price-yen-sm { font-size: 1rem; font-weight: 400; }
.mkt-price-sub { font-size: .88rem; color: var(--text-muted); margin-top: -8px; }
.mkt-plan-features { text-align: left; width: 100%; padding-left: 0; }
.mkt-plan-features li {
  font-size: .9rem; padding: 7px 0; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mkt-plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.mkt-plan-features li:last-child { border-bottom: none; }
.btn-stack { display: flex; flex-direction: column; gap: 10px; }
.btn-stack-full { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pricing-card-existing-user { margin: 2px 0 0; font-size: .8rem; text-align: center; color: var(--text-muted, #666); }
.pricing-card-existing-user a { color: inherit; text-decoration: underline; font-weight: 600; }
.btn-row-mt { display: flex; gap: 10px; margin-top: 10px; }
.btn-row-center { display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ── ステップ ── */
.mkt-steps {
  display: flex; align-items: flex-start; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}
.mkt-step {
  flex: 1; min-width: 200px; max-width: 280px;
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.mkt-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 1.4rem; font-weight: 900; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 14px;
}
.mkt-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.mkt-step p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.mkt-step-arrow { font-size: 1.6rem; color: var(--border); padding-top: 36px; }

/* ── 最終CTA ── */
.mkt-cta-final {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 80px 0;
}
.mkt-cta-final h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 12px; color: var(--white); }
.mkt-cta-final p { opacity: .85; margin-bottom: 30px; }
.mkt-cta-sub { margin-top: 18px; font-size: .9rem; opacity: .75; }
.mkt-cta-sub a { color: #93c5fd; }
.mkt-cta-sub a:hover { color: var(--white); }

/* ── 製品詳細ページ（ヒーロー） ── */
.product-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 64px 0 56px;
}
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-hero-logo { height: 52px; width: auto; object-fit: contain; margin-bottom: 20px; filter: brightness(0) invert(1); }
.product-hero h1 { font-size: 2.1rem; font-weight: 900; line-height: 1.35; margin-bottom: 16px; }
.product-hero-sub { font-size: 1rem; opacity: .88; line-height: 1.85; margin-bottom: 28px; }
.product-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.product-hero-existing-user { margin-top: 16px; font-size: .85rem; opacity: .85; }
.product-hero-existing-user a { color: inherit; text-decoration: underline; font-weight: 600; }
.product-hero-visual { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.product-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 12px 18px; font-size: .9rem;
}

/* ── こんな方に ── */
.target-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px;
}
.target-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow);
}
.target-icon { font-size: 2rem; flex-shrink: 0; }
.target-card h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.target-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── 機能グリッド ── */
.features-grid-lg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.feature-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-card p { font-size: .86rem; color: var(--text-muted); line-height: 1.65; }

/* ── 料金カード（製品詳細ページ） ── */
.product-pricing-wrap {
  max-width: 480px; margin: 0 auto;
}
.product-pricing-card {
  background: var(--white); border: 2px solid var(--navy); border-radius: 16px;
  padding: 40px 36px; text-align: center; box-shadow: 0 4px 24px rgba(26,47,90,.15);
}
.product-pricing-logo { height: 44px; width: auto; object-fit: contain; max-width: 200px; margin: 0 auto 16px; }
.product-price-main { font-size: 3.6rem; font-weight: 900; color: var(--navy); line-height: 1; }
.product-price-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.product-price-trial { font-size: .95rem; color: var(--success); font-weight: 700; margin-bottom: 20px; }
.product-plan-features { text-align: left; margin: 20px 0; }
.product-plan-features li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.product-plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.product-plan-features li:last-child { border-bottom: none; }
.product-pricing-note { font-size: .82rem; color: var(--text-muted); margin-top: 16px; line-height: 1.7; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list-spaced { margin-top: 24px; }
.faq-wrap { max-width: 720px; margin: 56px auto 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px;
  background: var(--white);
}
.faq-q {
  width: 100%; background: none; border: none; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .97rem; font-weight: 700; color: var(--navy); cursor: pointer; text-align: left;
}
.faq-q:hover { background: var(--bg); }
.faq-q-icon { font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a p { font-size: .92rem; color: var(--text-muted); line-height: 1.8; }

/* ── 免責事項ボックス ── */
.disclaimer-box {
  background: #fffbeb; border: 1.5px solid #d97706; border-radius: var(--radius);
  padding: 20px 24px; margin-top: 16px;
}
.disclaimer-box p { font-size: .87rem; color: #78350f; line-height: 1.8; }
.disclaimer-box-narrow { max-width: 720px; margin: 32px auto 0; }

/* ── 料金ページ専用 ── */
.pricing-section-title { text-align: center; margin-bottom: 8px; }
.pricing-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 900px; margin: 40px auto 0;
}
.pricing-cards-grid-3 {
  grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 40px auto 0;
}
.pricing-card-new {
  background: var(--white); border: 2px solid var(--border); border-radius: 16px;
  padding: 40px 32px; text-align: center; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.pricing-card-new.featured {
  border-color: var(--navy); box-shadow: 0 6px 32px rgba(26,47,90,.18);
}
.pricing-card-salon { border-color: #c49a6c; }
.pricing-card-logo { height: 44px; width: auto; object-fit: contain; max-width: 200px; }
.pricing-card-price-main { font-size: 3rem; font-weight: 900; color: var(--navy); line-height: 1; }
.pricing-card-price-sub { font-size: .88rem; color: var(--text-muted); }
.pricing-card-trial { color: var(--success); font-size: .9rem; font-weight: 700; }
.pricing-card-features { text-align: left; width: 100%; }
.pricing-card-features li { font-size: .9rem; padding: 7px 0; border-bottom: 1px solid var(--border); }
.pricing-card-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.pricing-card-features li:last-child { border-bottom: none; }
.pricing-note { text-align: center; font-size: .88rem; color: var(--text-muted); margin-top: 24px; }
.pricing-final-cta {
  text-align: center; margin-top: 64px; padding: 48px;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
}
.pricing-final-cta h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.pricing-final-cta p { color: var(--text-muted); margin-bottom: 24px; }

/* ── お問い合わせページ ── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.contact-side-box h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contact-side-box p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ── 法的ページ ── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 32px 0 10px; border-left: 4px solid var(--navy); padding-left: 14px; }
.legal-content h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 22px 0 8px; }
.legal-content p { font-size: .93rem; color: var(--text); line-height: 1.9; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: .93rem; color: var(--text); line-height: 1.9; list-style: disc; }
.legal-date { font-size: .85rem; color: var(--text-muted); margin-bottom: 28px; }
.legal-note { margin-top: 28px; font-size: .88rem; color: var(--text-muted); }

/* ── 特定商取引法テーブル ── */
.tokusho-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.tokusho-table th, .tokusho-table td { padding: 14px 18px; border: 1px solid var(--border); font-size: .93rem; text-align: left; }
.tokusho-table th { background: var(--bg); font-weight: 700; width: 200px; color: var(--navy); vertical-align: top; }
.tokusho-table td { line-height: 1.8; }

/* ── 管理画面：お問い合わせ一覧 ── */
.contact-unread { background: #eff6ff; }
.contact-read-btn { font-size: .8rem; padding: 4px 10px; }
.contact-detail-row { background: #fafafa; }
.contact-detail-cell { padding: 12px 18px; font-size: .88rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   レスポンシブ
   ═══════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-title { font-size: 1.9rem; }
  .mkt-hero-inner { grid-template-columns: 1fr; }
  .mkt-hero-visual { display: none; }
  .mkt-h1 { font-size: 2rem; }
  .mkt-app-grid { grid-template-columns: 1fr; }
  .mkt-app-grid-3 { grid-template-columns: 1fr 1fr; }
  .mkt-why-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .mkt-pricing-grid-3 { grid-template-columns: 1fr 1fr; }
  .mkt-steps { flex-direction: column; align-items: center; }
  .mkt-step-arrow { transform: rotate(90deg); padding-top: 0; }
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-visual { display: none; }
  .features-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards-grid { grid-template-columns: 1fr; max-width: 480px; }
  .pricing-cards-grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 20px 24px;
    gap: 16px; box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .admin-nav a { padding: 8px 12px; font-size: .82rem; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; }
  .footer-top { flex-direction: column; }
  .mkt-why-grid { grid-template-columns: 1fr; }
  .mkt-app-grid-3 { grid-template-columns: 1fr; }
  .mkt-pricing-grid-3 { grid-template-columns: 1fr; }
  .pricing-cards-grid-3 { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr; }
  .features-grid-lg { grid-template-columns: 1fr; }
  .mkt-hero-cta { flex-direction: column; }
  .product-hero-btns { flex-direction: column; }
  .tokusho-table th { width: 120px; font-size: .85rem; }
}

@media (max-width: 480px) {
  /* 小型スマートフォン向けの最終調整（--bp-sm相当） */
  .container { padding: 0 16px; }
  .page-content { padding: 32px 0 48px; }
  .page-title { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .hero-title { font-size: 1.6rem; }
  .mkt-h1 { font-size: 1.7rem; }
  .product-hero h1 { font-size: 1.6rem; }
  .mkt-price-main, .product-price-main, .pricing-card-price-main { font-size: 2.2rem; }
  .price-amount { font-size: 2.2rem; }
  .stat-number { font-size: 1.9rem; }
  .error-code { font-size: 3.6rem; }
  .btn-xl { padding: 12px 20px; font-size: .95rem; }
  .form-card { padding: 24px 20px; }
  .admin-page { padding: 20px; }
  .pricing-final-cta { padding: 28px 20px; margin-top: 40px; }
}
