/* ============================================================
   横浜・八景島シーパラダイス LP — Styles
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --primary:       #00B4CC;
  --primary-dark:  #0099AE;
  --primary-light: #E5F7FB;
  --accent:        #FF5252;
  --text:          #1A1A1A;
  --text-sub:      #555555;
  --text-muted:    #888888;
  --bg:            #F0FAFC;
  --bg-card:       #FFFFFF;
  --border:        #C8EDF5;
  --shadow-card:   0 2px 10px rgba(0, 140, 170, 0.12);
  --radius-lg:     14px;
  --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: #e8e8e8;
  line-height: 1.6;
  -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; }

/* ============================================================
   Facility Info
   ============================================================ */
.facility-info {
  background: #fff;
  padding: 20px 16px 24px;
  border-bottom: 6px solid var(--bg);
}
.fi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.fi-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.fi-name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.fi-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ============================================================
   Category Intro（2×2カード）
   ============================================================ */
.category-intro {
  background: #fff;
  padding: 14px 16px 16px;
  border-bottom: 6px solid var(--bg);
}

.ci-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.ci-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ci-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
  font-family: var(--font);
}

.ci-card:active {
  transform: scale(.97);
  border-color: var(--primary);
  background: var(--primary-light);
}

.ci-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ci-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ci-card-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
}

.ci-card-count {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
}

/* ============================================================
   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: 24px 16px 8px;
}
.plan-group + .plan-group {
  border-top: 6px solid var(--bg);
}
.pg-head {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.pg-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
}
.pg-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* ============================================================
   Plan Cards Grid（2カラム）
   ============================================================ */
.pg-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ============================================================
   Plan Card
   ============================================================ */
.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.plan-card:active {
  transform: scale(.985);
  box-shadow: 0 1px 4px rgba(0,140,170,.1);
}
.plan-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Image */
.pc-img {
  width: 100%;
  background: var(--primary-light);
  overflow: hidden;
  position: relative;
}
.pc-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.pc-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .03em;
}

/* Card Body */
.pc-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pc-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Card Price */
.pc-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-top: auto;
  padding-top: 6px;
}
.pc-price.has-orig {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.pc-price-orig {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pc-price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

/* ============================================================
   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);
}
