/* ================================================
   ホテルプール特集 LP
   テイスト: 高級感 / 清涼感 / リラックス
   ベース構成は 202607_timeshift_LP を踏襲（SP幅480px固定・カード2列）
   ================================================ */

:root {
  --deep: #06283d;      /* 深水のネイビー */
  --deep-2: #0d4f63;
  --aqua: #2ec4d9;      /* 水面のアクア */
  --aqua-light: #eaf7fa;
  --gold: #c8a34a;      /* 高級感のアクセント */
  --night: #1b2a5e;
  --sun: #f0a13c;
  --ink: #10202b;
  --gray: #5b6b76;
  --line: #e5e7eb;
  --price: #e5352b;
}

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

html, body { margin: 0; padding: 0; width: 100%; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #e8e8e8;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, .1);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ================================================
   Header
   ================================================ */
.header {
  background-color: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container { display: flex; align-items: center; justify-content: center; padding: 12px 16px; }
.header-logo img { height: 24px; width: auto; }

/* ================================================
   1. ファーストビュー
   ================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #041d2c 0%, var(--deep) 35%, var(--deep-2) 100%);
  color: #fff;
}

.hero-image { width: 100%; height: auto; display: block; }

/* ================================================
   セクション共通
   ================================================ */
.section { padding: 40px 0; }
.container { padding: 0 18px; margin: 0 auto; max-width: 1280px; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .01em;
  margin-bottom: 20px;
}

/* ================================================
   Loading & Error
   ================================================ */
.loading-container, .error-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; padding: 32px 16px;
}
.loading-content, .error-content { text-align: center; }
.spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 4px solid var(--deep-2); border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--gray); }
.error-text { font-size: 14px; color: #dc2626; margin-bottom: 12px; }
.retry-button {
  padding: 8px 16px; background-color: var(--deep-2); color: #fff;
  border: none; border-radius: 999px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* ================================================
   2. 施設一覧
   ================================================ */
.section-catalog { background: #fff; padding-top: 8px; scroll-margin-top: 52px; }

.filter-block { margin-bottom: 12px; }
.filter-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.filter-scroll, .time-filter-scroll, .scene-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-scroll::-webkit-scrollbar,
.time-filter-scroll::-webkit-scrollbar,
.scene-filter-scroll::-webkit-scrollbar { display: none; }

.filter-btn, .time-filter-btn, .scene-filter-btn {
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background-color: #fff;
  color: #9ca3af;
}
.filter-btn:not(.active):hover,
.time-filter-btn:not(.active):hover,
.scene-filter-btn:not(.active):hover { border-color: var(--deep-2); color: var(--deep-2); }

.filter-btn.active {
  background-color: var(--deep); color: #fff; border-color: var(--deep);
}
.time-filter-btn.active { color: #fff; border-color: transparent; }
.time-filter-btn.active:not(.day):not(.night) { background-color: #374151; }
.time-filter-btn.day.active { background-color: var(--sun); }
.time-filter-btn.night.active { background-color: var(--night); }

.scene-filter-btn.active { color: #fff; border-color: transparent; }
.scene-filter-btn.active:not(.girls):not(.couple):not(.family) { background-color: #374151; }
.scene-filter-btn.girls.active  { background-color: #a24d84; }
.scene-filter-btn.couple.active { background-color: #3a6ea5; }
.scene-filter-btn.family.active { background-color: #10897f; }

.result-count {
  font-size: 11.5px;
  color: var(--gray);
  margin: 14px 0 10px;
  font-weight: 700;
}
.result-count b { color: var(--price); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.product-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #eef1f3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(6, 40, 61, .09);
  transition: box-shadow .2s, transform .15s;
  cursor: pointer;
  height: 100%;
}
.product-card:hover { box-shadow: 0 6px 14px rgba(6, 40, 61, .14); transform: translateY(-2px); }

.product-card-image { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #eef1f3; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.time-badge {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: #fff; line-height: 1.6;
}
.time-badge.day   { background-color: rgba(240, 161, 60, .94); }
.time-badge.night { background-color: rgba(27, 42, 94, .94); }

.set-badge {
  position: absolute; bottom: 6px; left: 6px;
  padding: 2px 7px; border-radius: 4px;
  font-size: 9.5px; font-weight: 700; color: #fff; line-height: 1.6;
  background: rgba(6, 40, 61, .82);
}

.incentive-badge {
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  color: var(--price); border: 1px solid var(--price);
  line-height: 1.5; margin-right: auto;
}

.product-card-content { padding: 11px; flex: 1; display: flex; flex-direction: column; }
.card-area {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--gray); margin-bottom: 6px; min-width: 0;
}
.card-area span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facility-name { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.45; }
.card-plan {
  font-size: 11.5px; line-height: 1.55; font-weight: 500;
  margin-bottom: 8px; color: #4b5b66; overflow: hidden; flex: 1;
}
.card-price-row {
  display: flex; align-items: baseline; gap: 4px;
  justify-content: flex-end; margin-top: auto; flex-wrap: wrap;
}
.card-price-org { font-size: 11px; color: #9ca3af; text-decoration: line-through; }
.card-price { font-size: 22px; font-weight: 900; color: var(--price); }
.card-price small { font-size: 11px; font-weight: 700; }

.empty-state { text-align: center; padding: 40px 16px; font-size: 13px; color: var(--gray); }

/* ================================================
   Footer
   ================================================ */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 18px; }
.footer-content { text-align: center; }
.footer-content p { font-size: 12px; color: var(--gray); }
