

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.container {
  padding: 0 16px;
}

.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 0;
}

.header-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  height: 24px;
  display: block;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #F3F4F6;
}

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

.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  z-index: 90;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
}

.nav-btn {
  flex: 1;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: #3D7FE0;
}

.nav-btn.active {
  background-color: #3D7FE0;
  border-color: #3D7FE0;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn[data-section="pickup"]:hover  { border-color: #0B9CE6; }
.nav-btn[data-section="catalog"]:hover { border-color: #0B9CE6; }
.nav-btn[data-section="new"]:hover     { border-color: #51D5F2; }

.nav-btn[data-section="pickup"].active {
  background-color: #0B9CE6;
  border-color: #0B9CE6;
}
.nav-btn[data-section="catalog"].active {
  background-color: #0B9CE6;
  border-color: #0B9CE6;
}
.nav-btn[data-section="new"].active {
  background-color: #51D5F2;
  border-color: #51D5F2;
  color: #333; 
}

.section-pickup {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding-bottom: 40px;
  
  background: linear-gradient(180deg,
    #0B9CE6 0%,
    #0B9CE6 18%,
    #7FD6F5 55%,
    #7FD6F5 100%
  );
}

.must-go-text {
  position: absolute;
  top: -25px;
  left: -5px;
  font-size: min(27vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  white-space: nowrap;
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  color: #FFFFFF;
}

.pickup-header {
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
  padding: 60px 16px 0 16px;
}

.pickup-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.pickup-subtitle {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.9;
}

.pickup-header.no-subtitle .pickup-title { margin-bottom: 0; }

.carousel-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  scroll-padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.carousel-container {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
  padding-left: 20px;
  padding-right: 20px;
}

.pickup-card {
  flex-shrink: 0;
  width: 100%;
  background: white;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
}

.pickup-card:active {
  transform: scale(0.98);
}

.pickup-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; 
  overflow: hidden;
  background-color: #FFFFFF; 
}

.pickup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center top; 
}

.pickup-card-content {
  padding: 2px 12px 12px 12px; 
}

.section-catalog {
  padding: 32px 0;
  background-color: #F9FAFB;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #333;
}

.section-desc {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 16px;
  line-height: 1.5;
}

.filter-bar {
  margin-bottom: 16px;
  position: relative;
}

body.nav-jump .filter-bar,
body.nav-filter .filter-bar {
  position: sticky;
  top: 0;   
  z-index: 80;
  background-color: #F9FAFB;   
  margin: 0 -16px 12px;   
  padding: 4px 16px 0;    
}

.area-heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 20px 0 12px;
  padding-left: 8px;
  border-left: 4px solid #0B9CE6;
}
.area-section:first-of-type .area-heading {
  margin-top: 4px;
}

.filter-bar::before,
.filter-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 20px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s;
}

.filter-bar::before {
  left: 0;
  background: linear-gradient(to right, #F9FAFB, transparent);
}

.filter-bar::after {
  right: 0;
  background: linear-gradient(to left, #F9FAFB, transparent);
}

.filter-bar.at-start::before {
  opacity: 0;
}

.filter-bar.at-end::after {
  opacity: 0;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

#filterBar.nav-2row {
  flex-direction: column;
  overflow-x: visible;
  gap: 7px;
}
#filterBar.nav-2row .filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#filterBar.nav-2row .filter-row::-webkit-scrollbar {
  display: none;
}

.filter-btn.filter-btn-sm {
  padding: 2px 9px;
  font-size: 10px;
}

#filterBar.nav-2row .filter-row-minor {
  min-height: 21px;
}

.filter-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #0B9CE6;
}

.filter-btn.active {
  background-color: #0B9CE6;
  border-color: #0B9CE6;
  color: #333; 
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

@keyframes catalogFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
#catalogGrid.catalog-fade { animation: catalogFade 0.28s ease both; }

.pc-name { font-size: 12px; font-weight: 600; line-height: 1.3; color: #111827; margin-bottom: 4px; }
.pc-desc {
  font-size: 11px; line-height: 1.4; font-weight: 500; color: #333; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-price { text-align: right; margin-top: auto; }  
.pc-price .orig { font-size: 10px; color: #9ca3af; text-decoration: line-through; margin-right: 4px; }
.pc-price .now { font-size: 15px; font-weight: 800; color: #F44336; }  

.loc-chip {
  position: absolute;
  left: 4px; bottom: 4px;
  display: flex; align-items: center; gap: 2px;
  background: rgba(17,24,39,.55);
  color: #fff;
  font-size: 9px; font-weight: 500; letter-spacing: 0.06em;
  padding: 1px 8px 2px;
  border-radius: 999px;
  z-index: 2;
}
.loc-chip svg { width: 10px; height: 10px; flex-shrink: 0; position: relative; top: 0.5px; }

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card--large {
  grid-column: 1 / -1;
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; 
  overflow: hidden;
  background-color: #FFFFFF; 
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center top; 
}

.product-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #6B7280;
  font-size: 13px;
}

.section-new {
  padding: 32px 0;
  background-color: #FFFFFF;
}

.new-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-item {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.new-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-item-image {
  position: relative;
  width: 120px;
  align-self: stretch;      
  min-height: 120px;        
  flex-shrink: 0;
  overflow: hidden;
  background-color: #FFFFFF;
}

.new-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;
}

.new-item-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.section-campaigns {
  padding: 32px 0;
  background-color: #F9FAFB;
}

.campaign-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-banner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
  aspect-ratio: 3 / 1;
  display: block;
}

.campaign-banner:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.campaign-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer {
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  padding: 32px 0;
  text-align: center;
}

.footer-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-content p {
  font-size: 13px;
  color: #4B5563;
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.loading-container,
.error-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.loading-content,
.error-content {
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #F44336;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: #6B7280;
}

.error-text {
  font-size: 14px;
  color: #DC2626;
  margin-bottom: 16px;
}

.retry-button {
  padding: 8px 16px;
  background-color: #00A5BB;
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}

.retry-button:hover {
  background-color: #008FA3;
}

[data-display-status="preview-only"],
[data-display-status="upcoming"],
[data-display-status="ended"] {
  position: relative;
}

[data-display-status="preview-only"]::after,
[data-display-status="upcoming"]::after,
[data-display-status="ended"]::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #E53935;
  border-radius: 8px;
  pointer-events: none;
  z-index: 4;
}

.preview-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #E53935;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 施設カード用: 画像にも施設名にも重ならないよう、カード最上部の帯として表示 */
.preview-banner {
  background-color: #E53935;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.pr-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(255, 255, 255, 0.82);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.35);
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
  z-index: 5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;          
  margin-bottom: 2px;
}
.tag-pill {
  font-size: 9px;
  font-weight: 600;
  color: #269fcf;        
  white-space: nowrap;
}

/* ============================================================
   テーマ上書き: ペア割・グループ割特集（秋・KVパレット）
   KV基準色: オレンジ #E07A28 / クリーム #F9F2DF / ブラウン #4A3220
   ============================================================ */

.theme-ribbon {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #F2A03D 0%, #E07A28 50%, #C9573B 100%);
}

.section-pickup {
  background: linear-gradient(180deg,
    #E07A28 0%,
    #E07A28 18%,
    #F2C287 55%,
    #F2C287 100%
  );
}

.section-catalog {
  background: linear-gradient(180deg,
    #F9F2DF 0px,
    #F7EDD4 600px,
    #F4E9CC 1200px,
    #F6EDD8 2000px,
    #F6EDD8 100%);
}

body.nav-jump .filter-bar,
body.nav-filter .filter-bar { background-color: #F9F2DF; }
.filter-bar::before { background: linear-gradient(to right, #F9F2DF, transparent); }
.filter-bar::after  { background: linear-gradient(to left,  #F9F2DF, transparent); }

.nav-btn:hover { border-color: #E07A28; }
.nav-btn.active,
.nav-btn[data-section="pickup"].active,
.nav-btn[data-section="catalog"].active {
  background-color: #E07A28;
  border-color: #E07A28;
  color: white;
}
.nav-btn[data-section="pickup"]:hover,
.nav-btn[data-section="catalog"]:hover { border-color: #E07A28; }

.area-heading { border-left-color: #E07A28; }

.tag-pill { color: #C0762B; }

.filter-btn {
  background-color: #FFFFFF;
  border-color: #E7DCC2;
  color: #8A7A5C;
}
.filter-btn:hover {
  border-color: #E07A28;
  background-color: #FBF4E4;
  color: #A05A1E;
}
.filter-btn.active {
  background-color: #FCE9CF;
  border-color: #E07A28;
  color: #B4530F;
}

body {
  background: linear-gradient(160deg, #F9F2DF 0%, #F4E9CC 55%, #F6EDD8 100%);
  background-attachment: fixed;
}

.section-title { font-size: 22px; }
.section-desc  { font-size: 12px; }

.area-select-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.area-select {
  -webkit-appearance: none; appearance: none;
  padding: 6px 30px 6px 14px;
  background-color: #FFFFFF;
  border: 1px solid #E7DCC2;
  border-radius: 9999px;
  font-size: 12px; font-weight: 700; color: #8A7A5C;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.area-select-wrap::after {
  content: '▾'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); pointer-events: none; font-size: 10px; color: #8A7A5C;
}
.area-select-wrap.active .area-select {
  background-color: #FCE9CF; border-color: #E07A28; color: #B4530F;
}
.area-select-wrap.active::after { color: #B4530F; }

/* 割引タイプフィルタ（ペア割/グループ割）: エリアより一段強い主フィルタ */
.discount-filter {
  margin-bottom: 6px;
  padding-bottom: 4px;
}
.filter-btn--type {
  font-size: 13px;
  padding: 7px 18px;
  border-width: 1.5px;
  color: #7A6A4C;
}
.filter-btn--type.active {
  background-color: #E07A28;
  border-color: #E07A28;
  color: #FFFFFF;
}

/* 割引内容バッジ（プランカード） */
.pc-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #FFF6F0;
  border: 1.5px solid #E8443A;
  color: #E8443A;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* ============================================================
   施設カード（全施設共通・同一施設のプランはこの中にまとめる）
   ============================================================ */
.product-grid { gap: 14px; }        /* 全幅カードの縦間隔 */

.facility-card {
  grid-column: 1 / -1;              /* 2カラムグリッドの全幅に広げる＝1列で積む */
  position: relative;
  background: #FFFFFF;
  border: 1px solid #ECE0C8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(74, 50, 32, 0.06);
}

.facility-head {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
  min-height: 116px;         /* 施設名が1行でも2行でもヘッダー高さを一定に保つ */
}

.facility-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F4EEE1;
}
.facility-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.facility-meta { min-width: 0; flex: 1; }
.facility-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #33261A;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* 名前は最大2行。以降は…で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.facility-intro {
  font-size: 12px;
  color: #7A6A52;
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;         /* 紹介文は1行に固定 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.facility-area {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8A7454;
  letter-spacing: 0.02em;
}
.facility-area svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #E07A28;
  position: relative;
  top: -0.5px;
}

/* プラン行 */
.plan-list { padding: 0 16px 6px; }
.plan-row {
  display: flex;
  flex-direction: column;        /* プラン名を上・値段を下の2段（どの画面幅でも切れない） */
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  min-height: 70px;              /* 全プラン行の高さを一定に */
  padding: 9px 10px;
  margin: 0 -10px;               /* タップ範囲と背景を少し外へ広げる（plan-listのpadding16px内に収まる） */
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #F1E7D5;
  border-radius: 8px;
  transition: background-color 0.15s;
  -webkit-tap-highlight-color: rgba(224, 122, 40, 0.12);
}
.plan-row:first-child { border-top: 1px solid #ECE0C8; border-radius: 0; }
.plan-row:hover { background: #FBF3E6; }
.plan-row:hover .plan-label { color: #B4530F; }
.plan-row:active { background: #F6EAD3; }

/* リンクだと分かる右端の矢印 */
.plan-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #FBEAD6;
  color: #C4661C;
}
.plan-go svg { width: 13px; height: 13px; }
.plan-row:hover .plan-go { background: #F3D6B0; }

/* 1段目: プラン名（左揃え） */
.plan-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-label {
  font-size: 13px;
  font-weight: 700;
  color: #3A2C1E;
  line-height: 1.4;
  transition: color 0.15s;
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;       /* 入りきらない時だけ…で省略 */
}
/* 2段目: 割引バッジ＋値段（セットで右揃え）＋矢印。列がそろうよう固定 */
.plan-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-price-group {
  margin-left: auto;         /* バッジ+値段のセットを右へ寄せる＝各行の右端がそろう */
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.plan-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: #D8402F;
  background: #FCE9E5;
  border-radius: 5px;
  padding: 2px 7px;
  line-height: 1.5;
  white-space: nowrap;
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.pr-orig {
  font-size: 11px;
  color: #B6A78E;
  text-decoration: line-through;
}
.pr-now {
  font-size: 16px;
  font-weight: 800;
  color: #E8443A;
  font-variant-numeric: tabular-nums;
}
.pr-ask {
  font-size: 12px;
  font-weight: 600;
  color: #9C8B72;
}
