/* ===== 共通リセット ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f0f4f8;
  color: #2d3436;
}

/* ===== トップ一覧ページ ===== */
.top-body {
  padding: 32px 16px;
  max-width: 900px;
  margin: auto;
}

.top-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #2d3436;
}
.top-subtitle {
  color: #636e72;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* ランクセクション */
.rank-section { margin-bottom: 40px; }
.rank-label {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}
.rank-s { background: #ffeaa7; color: #b7950b; }
.rank-a { background: #dfe6e9; color: #2d3436; }
.rank-b { background: #d5f5e3; color: #1e8449; }

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: #2d3436;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.card-s::before { background: linear-gradient(90deg, #f39c12, #e74c3c); }
.card-a::before { background: linear-gradient(90deg, #3498db, #8e44ad); }
.card-b::before { background: linear-gradient(90deg, #2ecc71, #1abc9c); }

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card-emoji { font-size: 2.8rem; margin-bottom: 12px; }
.card-title { font-size: 0.95rem; font-weight: bold; margin-bottom: 6px; }
.card-subtitle { font-size: 0.75rem; color: #636e72; margin-bottom: 8px; }
.card-meta { font-size: 0.75rem; color: #b2bec3; }

/* ===== 個別プランページ ===== */
.back-btn {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  position: fixed;
  top: 12px;
  left: 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: background 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.35); }

.plan-header {
  padding: 80px 24px 40px;
  text-align: center;
  color: white;
}
.rank-badge {
  display: inline-block;
  background: #f39c12;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.plan-emoji { font-size: 3.5rem; margin-bottom: 12px; }
.plan-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.plan-subtitle { font-size: 0.95rem; opacity: 0.85; margin-bottom: 16px; }
.plan-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* 日付入力 */
.plan-date-input {
  font-size: 0.9rem;
  opacity: 0.9;
}
.date-input {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 4px 12px;
  color: white;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  width: 200px;
  text-align: center;
}
.date-input::placeholder { color: rgba(255,255,255,0.7); }
.date-input:focus { outline: none; background: rgba(255,255,255,0.35); }

/* コンテナ */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

section { margin-bottom: 28px; }

h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent, #4a90d9);
  padding-left: 10px;
  font-family: 'Noto Serif JP', serif;
}

/* タイムライン */
.timeline {}
.day {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.day h3 {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent, #4a90d9);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.spot {
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.88rem;
  line-height: 1.5;
}
.spot:last-child { border-bottom: none; }
.note {
  font-size: 0.78rem;
  color: #e67e22;
  background: #fef9f0;
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 4px;
}

/* 良い点・注意点 */
.pros-cons {
  list-style: none;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.pros-cons li {
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f5f5f5;
}
.pros-cons li:last-child { border-bottom: none; }

/* ホテルカード */
.hotel-list { display: flex; flex-direction: column; gap: 10px; }
.hotel-card {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid var(--accent, #4a90d9);
}
.hotel-name { font-weight: bold; font-size: 0.9rem; margin-bottom: 4px; }
.hotel-desc { font-size: 0.8rem; color: #636e72; }

/* 場所一覧 */
.map-spots {
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.map-spot {
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f5f5f5;
}
.map-spot:last-child { border-bottom: none; }

/* 警告ボックス */
.warning-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.6;
}