/* ========================================
   共通CSS — 吾輩はねこである
   ヘッダー・ピルナビ・説明バー・フッター
   v2.0 — 2026-03-17（UX改善設計書v1準拠）
   ======================================== */

/* リセット・ベース */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #333;
  background: #F5F5F5;
  line-height: 1.8;
}

/* ========================================
   ヘッダー（固定、56px — アプリ本体と統一）
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(25, 118, 210, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
}

/* ロゴ（もっと詳しく知る） */
.site-header .logo {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header .logo a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header .logo a:hover {
  opacity: 0.7;
}

/* ========================================
   ピルナビゲーション（横スクロール可能）
   ======================================== */
.pill-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.pill-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pill-nav-inner::-webkit-scrollbar {
  display: none;
}

.pill-nav-inner a {
  display: inline-block;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #666;
  background: #f0f0f0;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.pill-nav-inner a:hover {
  background: #e0e0e0;
  color: #333;
}

.pill-nav-inner a.current {
  background: #1976D2;
  color: #fff;
  font-weight: 700;
}

/* ========================================
   説明バー（ヒーロー縮小版）
   ======================================== */
.desc-bar {
  background: linear-gradient(135deg, #1976D2, #42A5F5);
  color: #fff;
  padding: 116px 24px 24px;
  text-align: center;
  margin-bottom: 16px;
}

.desc-bar p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   メインコンテンツ
   ======================================== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

h2 {
  color: #1976D2;
  font-size: 1.4rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1976D2;
}

h3 {
  color: #333;
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

p { margin: 12px 0; }

/* ========================================
   CTA（共通）
   ======================================== */
.cta {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 3px solid #1976D2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cta p { color: #555; }

.cta a {
  display: inline-block;
  background: #1976D2;
  color: #fff;
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.cta a:hover { background: #1565C0; }

/* ========================================
   パンくずリスト（ヒーロー無しページ用）
   ======================================== */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 12px;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a { color: #1976D2; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ========================================
   フッター
   ======================================== */
footer {
  background: #333;
  color: #aaa;
  padding: 32px 24px;
  text-align: center;
  margin-top: 48px;
}

footer a {
  color: #90CAF9;
  text-decoration: none;
  margin: 0 12px;
}

footer a:hover { text-decoration: underline; }
footer .links { margin-bottom: 16px; }
footer .copy { font-size: 0.85rem; }

/* ========================================
   レスポンシブ — タブレット（768px以下）
   ======================================== */
@media (max-width: 768px) {
  .desc-bar {
    padding: 112px 20px 20px;
    margin-bottom: 12px;
  }

  .desc-bar p { font-size: 0.9rem; }

  main { padding: 24px 16px; }
  h2 { font-size: 1.2rem; margin: 32px 0 12px; }
  .cta { margin: 32px 0; }
}

/* ========================================
   レスポンシブ — スマートフォン（480px以下）
   ======================================== */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
    height: 56px;
  }

  .site-header .logo {
    font-size: 0.9rem;
  }

  .pill-nav {
    top: 56px;
  }

  .pill-nav-inner {
    padding: 3px 12px;
    gap: 6px;
  }

  .pill-nav-inner a {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 14px;
  }

  .desc-bar {
    padding: 108px 16px 16px;
    margin-bottom: 10px;
  }
  .desc-bar p { font-size: 0.85rem; }

  main { padding: 16px 12px; }
  h2 { font-size: 1.1rem; margin: 24px 0 10px; padding-bottom: 6px; }
  h3 { font-size: 1rem; margin: 16px 0 8px; }

  .breadcrumb { padding: 100px 12px 8px; }

  .cta { padding: 24px 16px; margin: 24px 0; border-radius: 10px; }
  .cta p { font-size: 1rem !important; }
  .cta a { padding: 12px 32px; font-size: 1rem; border-radius: 6px; width: 100%; }

  footer { padding: 24px 16px; margin-top: 32px; }
  footer a { margin: 0 8px; font-size: 0.8rem; }
  footer .links { margin-bottom: 12px; }
  footer .copy { font-size: 0.8rem; }
}
