/* ============================================================
   アソビュー！ポイント利用LP — Styles
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --primary:       #FF6B00;
  --primary-dark:  #E05A00;
  --primary-light: #FFF3E8;
  --accent:        #FF3D3D;
  --point-color:   #FF6B00;
  --text:          #1A1A1A;
  --text-sub:      #555555;
  --text-muted:    #888888;
  --bg:            #f5f5f7;
  --bg-card:       #FFFFFF;
  --border:        #E8E8E8;
  --shadow-card:   0 2px 10px rgba(0,0,0,.08);
  --radius-lg:     12px;
  --font:          'Noto Sans JP', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #f5f5f7;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }

/* ---- Layout ---- */
#app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,.08);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}
.header-logo { height: 24px; width: auto; }

/* ============================================================
   KV
   ============================================================ */
.kv { width: 100%; line-height: 0; background: var(--primary-light); }
.kv-img { width: 100%; height: auto; display: block; }

/* ============================================================
   Point Sale Campaign Banner
   ============================================================ */
.point-sale {
  background: var(--bg);
  padding: 24px 16px 4px;
}

.ps-header {
  margin-bottom: 14px;
  text-align: center;
}

.ps-period {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.ps-catch {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text);
}
.ps-catch strong {
  color: var(--primary);
}


/* ポイント購入：矢印表示 */
.ps-from {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}
.ps-arrow {
  font-size: 12px;
  color: var(--text-muted);
}

/* おすすめバッジ */
.ps-popular-row {
  border-color: var(--primary) !important;
  padding-top: 22px !important;
  position: relative;
}
.ps-popular-badge {
  position: absolute;
  top: 0;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: .04em;
}

/* ============================================================
   Lead
   ============================================================ */
.lead-section {
  background: #fff;
  padding: 20px 16px;
  border-bottom: 6px solid var(--bg);
}
.lead-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 10px;
}
.lead-text strong {
  color: var(--primary);
  font-weight: 900;
}
.lead-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   Category Intro（2×2カード）
   ============================================================ */
.ci-chips {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ci-chips::-webkit-scrollbar { display: none; }

.ci-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #f5f5f7;
  border: none;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: box-shadow .15s, transform .1s;
}
.ci-chip:active {
  transform: scale(.96);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.ci-chip-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid #f0c8a0;
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.4;
}

/* ============================================================
   Group Nav
   ============================================================ */
.group-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.group-nav.is-visible {
  max-height: 60px;
  border-bottom: 1px solid var(--border);
}
.group-nav-inner {
  display: flex;
}
.gnav-btn {
  flex: 1;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
  letter-spacing: .03em;
  transition: color .15s, border-color .15s;
}
.gnav-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   Loading / Error States
   ============================================================ */
.state-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 16px;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-error {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 56px 16px;
  gap: 14px;
  color: var(--text-sub);
  font-size: 14px;
  text-align: center;
}
.retry-btn {
  padding: 9px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
   Plan Group
   ============================================================ */
.plan-group {
  padding: 32px 16px 16px;
}
.plan-group + .plan-group {
  border-top: 6px solid var(--bg);
}
.pg-head {
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.pg-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
}
.pg-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

/* ============================================================
   Facility Cards（1カラム）
   ============================================================ */
.pg-facilities {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.facility-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Facility Image */
.fc-img {
  width: 100%;
  background: var(--primary-light);
  overflow: hidden;
}
.fc-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Facility Body */
.fc-body {
  padding: 16px 16px 18px;
}
.fc-name {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
}
.fc-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Plan rows inside facility card */
.fc-plans {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.fc-plan-info {
  flex: 1;
  min-width: 0;
}
.fc-plan-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.fc-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.fc-plan-orig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.fc-plan-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}
.fc-plan-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
}
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}
