/* ========================================================
   尾張・名古屋地区 高校進学ナビ 共通スタイルシート (common.css)
   トーン＆マナー：温かみのあるカフェ・進学ノート風デザイン
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Noto+Sans+JP:wght@400;500;700;800&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

:root {
  /* 背景・ベースカラー */
  --bg-base: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-cream: #FFFDF9;
  --text-main: #2C3437;
  --text-sub: #52606D;
  --text-muted: #7E8B9B;
  --border-soft: #EAE4DC;
  --border-card: #E4DCD3;
  
  /* メインカラー（安心のディープグリーン ＆ 優しいネイビー） */
  --primary: #2C4A6F;
  --primary-dark: #1E3550;
  --primary-light: #EEF4FA;
  --forest: #2E6F40;
  --forest-light: #F0F7F2;
  --forest-border: #A3D9B1;
  
  /* シャチフク・アクセント（ウォームアンバー / 山吹色） */
  --accent: #E67E22;
  --accent-warm: #F59E0B;
  --accent-light: #FFF9EE;
  --accent-border: #FCD34D;
  
  /* 最激戦区（内申34〜36）ハイライト */
  --focus35-gold: #D97706;
  --focus35-bg: #FEF9C3;
  --focus35-border: #F59E0B;
  --focus35-card-border: #FBBF24;

  /* 区分カラー */
  --public-color: #0284C7;
  --public-bg: #F0F9FF;
  --public-border: #BAE6FD;
  --private-color: #D97706;
  --private-bg: #FFFBEB;
  --private-border: #FDE68A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.68;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-round {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================================
   グローバルナビゲーション
   ======================================================== */
.top-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.top-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.top-nav-inner::-webkit-scrollbar {
  display: none;
}
.top-nav a {
  text-decoration: none;
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #F3F1EC;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #BFDBFE;
}
.top-nav a.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}
.top-nav a.nav-community {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #C7D2FE;
}
.top-nav a.nav-community:hover, .top-nav a.nav-community.active {
  background: #4338CA;
  color: #FFFFFF;
}
.top-nav a.nav-blog {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FED7AA;
}

/* ========================================================
   ヘッダー（脱AI・カフェ進学ノート風）
   ======================================================== */
header.site-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F1EB 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 34px 20px 28px;
  text-align: center;
  position: relative;
}
.header-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mascot-hero-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mascot-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(230, 126, 34, 0.22);
  background: #FFFFFF;
  object-fit: cover;
  flex-shrink: 0;
}
.mascot-bubble {
  background: #FFFFFF;
  border: 2px solid var(--accent-border);
  border-radius: 18px;
  padding: 10px 18px;
  position: relative;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  text-align: left;
  max-width: 520px;
}
.mascot-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--accent-border);
}
@media (max-width: 640px) {
  .mascot-bubble::before {
    display: none;
  }
}
.mascot-bubble-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mascot-bubble-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #78350F;
  margin-top: 2px;
  line-height: 1.45;
}
.site-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0F7F2;
  border: 1px solid var(--forest-border);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-top: 4px;
}
header.site-header h1 {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
header.site-header h1 span {
  color: var(--accent);
}
header.site-header p.hero-desc {
  font-size: 0.94rem;
  color: var(--text-sub);
  max-width: 820px;
  line-height: 1.65;
}

/* ========================================================
   共通カード・ノートスタイル
   ======================================================== */
.content-card, .section-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}
.content-card h2, .section-card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 8px;
}
.content-card h3, .section-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1E293B;
  margin: 18px 0 10px;
}
.content-card p, .section-card p {
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* 比較テーブル */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  text-align: left;
}
.compare-table th {
  background: #F8F6F2;
  font-weight: 800;
  color: var(--text-sub);
}
.compare-table tr:hover {
  background: #FAF8F5;
}

/* 蛍光ペン風マーカー */
.highlighter-text {
  background: linear-gradient(transparent 60%, #FEF08A 60%);
  font-weight: 700;
  color: #1E293B;
}

/* ノート風ポイント枠 */
.note-box {
  background: #FFFDF8;
  border: 1.5px solid #FDE68A;
  border-left: 5px solid var(--accent-warm);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.6;
}

/* ========================================================
   広告枠共通スタイル
   ======================================================== */
.ad-banner-wrapper {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}
.ad-banner-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
  text-align: center;
}
.study-sponsor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  max-width: 680px;
  margin: 0 auto;
}
.study-sponsor-pill {
  display: inline-block;
  background: #EEF4FA;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

/* ========================================================
   フッター ＆ モーダル共通
   ======================================================== */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-soft);
  padding-top: 30px;
}
.footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.footer-links a:hover {
  text-decoration: underline;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.modal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0F172A;
}
.modal-card h3 {
  font-size: 1.02rem;
  margin: 16px 0 6px;
  color: var(--primary);
  font-weight: 700;
}
.modal-card p {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 10px;
}
.close-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 22px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 16px;
  float: right;
  font-family: 'Zen Maru Gothic', sans-serif;
}

/* ========================================================
   通学ルート検索モーダル（Googleマップ連携）
   ======================================================== */
.btn-route-check {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #86EFAC;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn-route-check:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
  transform: translateY(-1px);
}
.route-modal-card {
  max-width: 580px !important;
}
.route-school-badge {
  background: #EEF4FA;
  color: var(--primary);
  border: 1px solid #BFDBFE;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.route-origin-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.route-mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.route-mode-btn {
  background: #F4F2ED;
  border: 1.5px solid var(--border-soft);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
}
.route-mode-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.quick-station-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.station-chip {
  background: #F8F6F2;
  border: 1px solid #CBD5E1;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
}
.station-chip:hover {
  background: #E2E8F0;
  color: #1E293B;
}
.btn-open-google-maps {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.btn-open-google-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.36);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ========================================================
   Google AdSense / ネイティブインフィード広告スタイル
   ======================================================== */
.ad-infeed-card {
  background: #FFFDF9;
  border: 1.5px dashed var(--accent-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  min-height: 280px;
}
.ad-infeed-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ad-infeed-badge {
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #FDE68A;
}
.ad-sponsor-label {
  font-size: 0.7rem;
  color: #94A3B8;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.ad-infeed-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
}
.ad-infeed-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 12px;
}
.ad-infeed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  width: 100%;
  overflow: hidden;
}
.ad-container-native {
  width: 100%;
  text-align: center;
  margin: 16px auto;
  overflow: hidden;
}
