/* =========================================================
   AOSHIRO Match 提案書 - スタイルシート
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS変数（カラーパレット・共通値）
   --------------------------------------------------------- */
:root {
  --ocean-blue: #0D7CC4;
  --deep-blue: #0A3D62;
  --sky-blue: #EDF5FA;
  --sand: #FDFAF5;
  --white: #FFFFFF;
  --sunset-orange: #E8653A;
  --sunset-gold: #F0A030;
  --coral: #E04848;
  --text: #1B2838;
  --text-sub: #5A6B7D;
  --green: #2D9F5A;
  --sidebar-bg: #F8FAFB;
  --border-color: #E8ECF0;
  --sidebar-width: 220px;
}

/* ---------------------------------------------------------
   2. リセット + ベーススタイル
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

a {
  color: var(--ocean-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ---------------------------------------------------------
   3. サイドメニュー
   --------------------------------------------------------- */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* サイドバー ロゴ/タイトル */
.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-logo .logo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-blue);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sidebar-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* サイドバー 目次 */
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav li {
  position: relative;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 20px;
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
  word-break: keep-all;
}

.sidebar-nav li a .nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav li a:hover {
  color: var(--ocean-blue);
  background: rgba(13, 124, 196, 0.04);
}

.sidebar-nav li a:hover .nav-num {
  background: var(--ocean-blue);
  color: var(--white);
}

/* アクティブ項目 */
.sidebar-nav li a.active {
  border-left-color: var(--ocean-blue);
  color: var(--ocean-blue);
  font-weight: 600;
  background: rgba(13, 124, 196, 0.06);
}

.sidebar-nav li a.active .nav-num {
  background: var(--ocean-blue);
  color: var(--white);
}

/* サイドバー グループヘッダー */
.nav-group-header {
  padding: 12px 20px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ocean-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  list-style: none;
}

.nav-group-header:empty {
  padding: 4px;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

/* サイドバー 印刷ボタン */
.fab-pdf-btn {
  position: sticky;
  top: 16px;
  float: right;
  margin-right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--deep-blue);
  color: var(--white);
  border: none;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fab-pdf-btn:hover {
  background: var(--ocean-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------------------------------------------------------
   4. メインコンテンツ
   --------------------------------------------------------- */
main {
  margin-left: var(--sidebar-width);
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  background: #E8ECF2;
  height: 100vh;
}

section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8ECF2;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  min-height: 715px;
}

/* スマホ用PDF画面（PC時は非表示） */
#mobile-pdf-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sky-blue);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.mobile-pdf-inner {
  text-align: center;
  padding: 40px 24px;
}
.mobile-pdf-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 16px;
}
.mobile-pdf-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.mobile-pdf-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* .slide-card: 固定サイズカードラッパー */
.slide-card {
  width: 1200px;
  height: 675px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.10),
    0 24px 64px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 28px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

/* ---------------------------------------------------------
   5. ヒーローセクション
   --------------------------------------------------------- */
#hero {
  background: #0a2a45;
}

#hero .slide-card {
  background: linear-gradient(150deg, #0A3D62 0%, #0D7CC4 50%, #1B8FD4 100%);
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

#hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

#hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

#hero .hero-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------
   6. セクションタイトル
   --------------------------------------------------------- */
.section-header {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.section-header h2 {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--deep-blue);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ocean-blue);
  margin: 0;
  gap: 10px;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ocean-blue);
  margin-bottom: 6px;
}

.section-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13, 124, 196, 0.25);
}

/* コンテンツエリアは残りスペースを使う */
.section-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 10px;
  margin-top: 20px;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 14px;
}

p {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

li {
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------
   7. カードグリッド & カード
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.card h3 {
  margin-top: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.card p {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 0;
  line-height: 1.6;
}

.card svg {
  max-height: 48px;
  margin-bottom: 8px;
}

/* カラーバリエーション */
.card.accent-blue {
  border-top: 4px solid var(--ocean-blue);
}

.card.accent-orange {
  border-top: 4px solid var(--sunset-orange);
}

.card.accent-green {
  border-top: 4px solid var(--green);
}

.card.accent-tiktok {
  border-top: 4px solid #fe2c55;
}

/* ---------------------------------------------------------
   8. フローステップ
   --------------------------------------------------------- */
.flow-steps {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  text-align: center;
}

.flow-step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 8px;
}

.flow-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.flow-step-desc {
  font-size: 0.68rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--ocean-blue);
  padding-top: 32px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ===== リッチフローステップ ===== */
.rich-flow-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.rich-flow-step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 8px;
}

.rich-flow-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.rich-flow-illustration svg {
  width: 100%;
  max-width: 200px;
  max-height: 150px;
  height: auto;
}

.rich-flow-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rich-flow-number {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  margin-bottom: 0;
}

.rich-flow-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  text-align: left;
}

.rich-flow-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.rich-flow-connector {
  display: flex;
  align-items: center;
  padding-top: 35px;
  flex-shrink: 0;
}

.rich-flow-connector svg {
  width: 32px;
  height: 32px;
}

.rich-flow-down-arrow {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.rich-flow-down-arrow svg {
  width: 36px;
  height: 28px;
}

/* 印刷時（richフロー用スタイルはメインの @media print ブロックに統合済み） */

/* ---------------------------------------------------------
   9. スマホモック
   --------------------------------------------------------- */
.phone-mock {
  width: 200px;
  height: 400px;
  border: 3px solid #333;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  padding: 8px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-mock::before {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 6px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sky-blue);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   10. iPadモック
   --------------------------------------------------------- */
.ipad-mock {
  width: 460px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid #333;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  padding: 10px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ipad-screen {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sky-blue);
}

.ipad-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   11. クーポンカード
   --------------------------------------------------------- */
.coupon-grid {
  gap: 28px;
}

.coupon-card {
  background: linear-gradient(135deg, var(--sunset-gold), var(--sunset-orange));
  color: var(--white);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.coupon-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.coupon-label {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.coupon-value {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.coupon-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   12. タイムライン（ロードマップ）
   --------------------------------------------------------- */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--ocean-blue), var(--deep-blue));
  z-index: 0;
}

.timeline-phase {
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.timeline-dot {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 12px;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--ocean-blue);
  position: relative;
}

.timeline-phase.completed .timeline-dot {
  background: var(--deep-blue);
}

.timeline-phase.upcoming .timeline-dot {
  background: #b0bec5;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px #b0bec5;
}

.timeline-period {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ocean-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.timeline-items {
  font-size: 0.76rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   13. 統計カード
   --------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.stat-card {
  text-align: center;
  padding: 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ocean-blue);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-number span.unit {
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.4;
}

/* ---------------------------------------------------------
   14. テーブル
   --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: var(--deep-blue);
  color: var(--white);
}

thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

tbody tr:nth-child(odd) {
  background: var(--white);
}

tbody tr:nth-child(even) {
  background: var(--sky-blue);
}

tbody tr:hover {
  background: rgba(0, 153, 204, 0.08);
}

tbody td {
  padding: 12px 20px;
  color: var(--text);
  border-bottom: 1px solid #e2e8f0;
}

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

/* テーブル内バッジ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge.blue {
  background: rgba(0, 153, 204, 0.12);
  color: var(--deep-blue);
}

.badge.green {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.badge.orange {
  background: rgba(255, 112, 67, 0.12);
  color: #c62828;
}

.badge.coral {
  background: rgba(255, 82, 82, 0.12);
  color: var(--coral);
}

/* ---------------------------------------------------------
   15. ハイライトボックス
   --------------------------------------------------------- */
.highlight-box {
  background: var(--sky-blue);
  border-left: 4px solid var(--ocean-blue);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box.warning {
  background: #fff8e1;
  border-left-color: var(--sunset-gold);
}

.highlight-box.success {
  background: #f1f8e9;
  border-left-color: var(--green);
}

/* ---------------------------------------------------------
   16. プライバシー項目
   --------------------------------------------------------- */
.privacy-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.privacy-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.privacy-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin: 0 0 4px;
}

.privacy-text p {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   17. SVG共通
   --------------------------------------------------------- */
svg {
  max-width: 100%;
  height: auto;
}

/* セクション内のイラストSVG（positionが絶対でないもの）は高さを制限 */
section svg:not([style*="position:absolute"]):not(.hero-wave) {
  max-height: 180px;
}

/* 座席マップSVGは高さ制限を解除 */
.seat-map-area svg {
  max-height: none;
  height: auto;
}

/* two-col内のSVGは少し大きめに制限 */
section .two-col svg:not(.hero-wave) {
  max-height: 340px;
  height: auto;
}

/* ---------------------------------------------------------
   18. アニメーション（スクロールリビール）
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ディレイバリエーション */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------
   19. ユーティリティ
   --------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.gap-32       { gap: 32px; }
.flex-wrap    { flex-wrap: wrap; }

.color-ocean   { color: var(--ocean-blue); }
.color-deep    { color: var(--deep-blue); }
.color-orange  { color: var(--sunset-orange); }
.color-coral   { color: var(--coral); }
.color-green   { color: var(--green); }
.color-sub     { color: var(--text-sub); }

.font-bold { font-weight: 700; }
.font-sm   { font-size: 0.875rem; }
.font-xs   { font-size: 0.78rem; }
.font-lg   { font-size: 1.125rem; }

/* CTA ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--ocean-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ocean-blue);
  border: 2px solid var(--ocean-blue);
}

/* 区切り線 */
.divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 40px 0;
}

/* アイコン付きリスト */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  padding: 2px 0;
}

.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 価格テーブル */
.price-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.price-card.featured {
  background: linear-gradient(135deg, var(--ocean-blue), var(--deep-blue));
  color: var(--white);
  transform: scale(1.04);
  z-index: 1;
}

.price-card .price-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.price-card.featured .price-label {
  color: rgba(255, 255, 255, 0.8);
}

.price-card .price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.price-card.featured .price-amount {
  color: var(--white);
}

.price-card .price-unit {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.price-card.featured .price-unit {
  color: rgba(255, 255, 255, 0.75);
}

/* おすすめバッジ */
.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   20. 追加コンポーネントスタイル（インラインから移動）
   --------------------------------------------------------- */

/* 波アニメーション */
.hero-wave { animation: waveMove 4s ease-in-out infinite alternate; }
@keyframes waveMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-30px); }
}

/* 2カラムレイアウト */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin-top: 12px; }
.two-col .col-left,
.two-col .col-right { min-width: 0; }

/* サンセットセクション */
.sunset-section { background: #2a0f05; }
.sunset-section .slide-card { background: linear-gradient(135deg, #FF7043 0%, #FF8F00 30%, #7B1FA2 100%); color: #fff; }
.sunset-section h2 { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.sunset-section h2 .section-num { background: rgba(255,255,255,0.25); }
.sunset-section .section-desc { color: rgba(255,255,255,0.85); }
.sunset-section .card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.sunset-section .card h3 { color: #fff; }
.sunset-section .card p { color: rgba(255,255,255,0.85); }
.sunset-section .highlight-box { background: rgba(255,255,255,0.15); border-left-color: #fff; }
.sunset-section .highlight-box p { color: #fff; }
.sunset-catchcopy { font-size: 1.4rem; font-weight: 800; color: #fff; text-align: center; margin: 16px 0; line-height: 1.4; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* クーポンカラーバリエーション */
.coupon-blue { background: linear-gradient(135deg, #0099CC, #005A8E); }
.coupon-green { background: linear-gradient(135deg, #4CAF50, #2E7D32); }

/* マッチングフローSVG（specificityを上げて一般ルールに勝つ） */
section svg.matching-flow-svg:not(.hero-wave) { margin: 8px auto; display: block; max-height: none; width: 80%; }

/* iPadダッシュボード */
.ipad-dashboard { background: #1a2a3a; border-radius: 12px; padding: 16px; font-family: monospace; color: #e0e0e0; font-size: 0.8rem; }
.ipad-dashboard .db-header { color: #4FC3F7; font-weight: bold; border-bottom: 1px solid #4FC3F7; padding-bottom: 8px; margin-bottom: 12px; font-size: 0.85rem; }
.ipad-dashboard .db-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ipad-dashboard .db-stat { background: #243344; border-radius: 8px; padding: 10px; text-align: center; }
.ipad-dashboard .db-stat .num { font-size: 1.4rem; font-weight: bold; color: #4FC3F7; }
.ipad-dashboard .db-stat .label { font-size: 0.65rem; color: #90a4ae; }
.ipad-dashboard .db-notif { background: #243344; border-radius: 8px; padding: 10px; }
.ipad-dashboard .db-notif .notif-title { color: #FFB74D; font-size: 0.75rem; margin-bottom: 6px; font-weight: bold; }
.ipad-dashboard .notif-item { padding: 4px 0; border-bottom: 1px solid #2d4050; font-size: 0.72rem; color: #cfd8dc; }
.notif-item .match { color: #69F0AE; font-weight: bold; }

/* フェーズグリッド */
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.phase-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-top: 4px solid var(--ocean-blue); }
.phase-card.p2 { border-top-color: var(--sunset-orange); }
.phase-card.p3 { border-top-color: var(--green); }
.phase-title { font-size: 0.85rem; font-weight: 800; color: var(--deep-blue); margin-bottom: 2px; }
.phase-period { font-size: 0.7rem; color: var(--text-sub); margin-bottom: 8px; font-weight: 600; }
.phase-card ul { list-style: none; padding: 0; }
.phase-card ul li { font-size: 0.75rem; color: var(--text); padding: 3px 0; border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; gap: 6px; }
.phase-card ul li::before { content: '✓'; background: var(--ocean-blue); color: #fff; border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: bold; flex-shrink: 0; }
.phase-card.p2 ul li::before { background: var(--sunset-orange); }
.phase-card.p3 ul li::before { background: var(--green); }

/* 効果グリッド */
.effect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.effect-card { background: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.effect-number { font-size: 2rem; font-weight: 900; color: var(--ocean-blue); line-height: 1; margin: 8px 0; }
.effect-card h3 { margin-top: 0; color: var(--deep-blue); }

/* シートマップ */
.seat-map-area { margin: 12px 0; }

/* シンプルフロー */
.flow-simple { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.flow-simple-step { background: var(--sky-blue); border: 1px solid var(--ocean-blue); border-radius: 8px; padding: 8px 14px; font-size: 0.82rem; font-weight: 600; color: var(--deep-blue); white-space: nowrap; }
.flow-simple-arrow { color: var(--ocean-blue); font-size: 1.2rem; }

/* クロージングボックス */
.closing-box { background: linear-gradient(135deg, var(--ocean-blue), var(--deep-blue)); color: #fff; border-radius: 12px; padding: 16px 24px; text-align: center; margin-top: 12px; }
.closing-box h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.closing-box p { color: rgba(255,255,255,0.85); font-size: 0.78rem; }

/* チャプタータイトルセクション */
.chapter-title-section {
  background: #d0dfe8;
}

.chapter-title-section .slide-card {
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--white) 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.chapter-title-content {
  max-width: 600px;
}

.chapter-icon {
  margin-bottom: 16px;
}

.chapter-icon svg {
  width: 90px;
  height: 90px;
}

.chapter-title {
  font-size: 2rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
  border: none;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
  justify-content: center;
}

.chapter-subtitle {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
}

#sec-staff {
  background: #d0dfe8;
}

#sec-staff .slide-card {
  background: linear-gradient(135deg, #FFF3E0 0%, var(--white) 100%);
  align-items: center;
  justify-content: center;
}

/* =========================================================
   TikTok販促プランセクション
   ========================================================= */
.promo-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 16px auto;
  max-width: 560px;
}

.promo-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.promo-timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-timeline-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.promo-timeline-desc {
  font-size: 0.7rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.promo-timeline-arrow {
  font-size: 1.3rem;
  color: var(--ocean-blue);
  padding: 0 6px;
  margin-top: 10px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   21. 概算費用テーブル
   --------------------------------------------------------- */

#sec-cost .slide-card {
  padding: 20px 40px;
}

#sec-cost .section-header {
  margin-bottom: 6px;
}

/* 概算費用テーブル */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cost-table th {
  background: var(--deep-blue);
  color: white;
  padding: 6px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.cost-table th:last-child {
  text-align: right;
  min-width: 140px;
}

.cost-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  line-height: 1.4;
}

.cost-table tbody tr:hover {
  background: rgba(13, 124, 196, 0.03);
}

.cost-category {
  font-weight: 600;
  color: var(--deep-blue);
  white-space: nowrap;
}

.cost-price {
  text-align: right;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.cost-total-label {
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--deep-blue);
  padding: 8px 12px;
  border-top: 2px solid var(--deep-blue);
}

.cost-total-price {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-blue);
  padding: 8px 12px;
  border-top: 2px solid var(--deep-blue);
  white-space: nowrap;
}

.cost-category-block {
  margin-bottom: 8px;
}

.cost-category-block:last-child {
  margin-bottom: 0;
}

.cost-category-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-blue);
  padding: 4px 0 4px 12px;
  border-left: 4px solid var(--deep-blue);
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   22. 相談事項
   --------------------------------------------------------- */
.discuss-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.discuss-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.discuss-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.discuss-content {
  flex: 1;
}

.discuss-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.discuss-content p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.discuss-comparison {
  display: flex;
  gap: 16px;
  margin: 10px 0;
}

.discuss-option {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
}

.discuss-option.recommend {
  background: #EBF5FB;
  border-color: var(--ocean-blue);
}

.discuss-option-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.discuss-option ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.discuss-option ul li {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 12px;
  position: relative;
}

.discuss-option ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-sub);
}

.discuss-note {
  font-weight: 600;
  color: var(--ocean-blue) !important;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------
   22. レスポンシブ（モバイル）
   --------------------------------------------------------- */
@media screen and (max-width: 900px) {
  #sidebar {
    display: none;
  }

  #mobile-pdf-screen {
    display: flex;
  }

  main {
    display: none !important;
  }

  main {
    margin-left: 0;
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  section {
    height: auto;
    padding: 16px;
    background: #f5f5f5 !important;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .slide-card {
    width: 100%;
    aspect-ratio: unset;
    max-height: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px 20px;
  }

  #hero {
    background: #0a2a45 !important;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  #hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .section-num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  /* カードグリッドを1列に */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* フローを縦並びに */
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .rich-flow-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .rich-flow-step {
    max-width: 100%;
    width: 100%;
  }

  .rich-flow-connector {
    transform: rotate(90deg);
    padding-top: 0;
    margin: 4px 0;
  }

  .rich-flow-down-arrow {
    display: none;      /* 縦並びなのでdown arrowは不要 */
  }

  .rich-flow-illustration svg {
    max-width: 240px;
  }

  /* 2カラムレイアウトを1カラムに */
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-column {
    flex-direction: column;
  }

  /* デバイスモック */
  .phone-mock {
    width: 180px;
    height: 360px;
    margin: 16px auto;
  }

  .ipad-mock {
    width: 100%;
    max-width: 360px;
    margin: 16px auto;
  }

  /* チャプタータイトル */
  .chapter-title {
    font-size: 1.6rem;
  }

  .chapter-subtitle {
    font-size: 0.9rem;
  }

  /* クーポングリッド */
  .coupon-grid {
    grid-template-columns: 1fr;
  }

  /* テーブル横スクロール */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* ハイライトボックス */
  .highlight-box {
    padding: 16px;
    font-size: 0.85rem;
  }

  /* タイムライン縦並び */
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-phase {
    display: flex;
    gap: 16px;
    text-align: left;
    min-width: unset;
    width: 100%;
    padding: 0 0 24px 0;
  }

  .timeline-dot {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* フェーズグリッド・効果グリッド */
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .effect-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: scale(1);
  }
}

/* さらに小さいスマホ */
@media screen and (max-width: 480px) {
  section {
    padding: 24px 16px;
  }

  #hero {
    min-height: 60vh;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.05rem;
    gap: 8px;
  }

  h2 {
    font-size: 1.05rem;
  }

  .card {
    padding: 16px;
  }

  .rich-flow-illustration svg {
    max-width: 200px;
  }

  .phase-card {
    padding: 12px;
  }
}

/* ---------------------------------------------------------
   PDFローディングオーバーレイ
   --------------------------------------------------------- */
#pdf-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pdf-loading-inner {
  background: #fff;
  border-radius: 16px;
  padding: 40px 56px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pdf-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #0099CC;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.pdf-loading-text {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

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

/* ---------------------------------------------------------
   印刷用スタイル（最小限）
   --------------------------------------------------------- */
@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #sidebar, .fab-pdf-btn, #mobile-pdf-screen {
    display: none !important;
  }

  html, body {
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main {
    display: block !important;
    margin-left: 0 !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }

  section {
    page-break-after: always;
    page-break-inside: avoid;
  }

  section:last-of-type {
    page-break-after: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
