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

:root {
  --active: #7c5cbf;
  --active-light: #f0eafb;
  --gray: #f5f6f8;
  --border: #e8e9ec;
  --text: #1a1a2e;
  --text-sub: #6b7280;
  --radius: 12px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  background: #fafbfc;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.header-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-links a {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.header-links a:hover { background: var(--gray); color: var(--text); }
@media (max-width: 600px) {
  .header-links a:not([href*="community"]) { display: none; }
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: white;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--active);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.breadcrumb-inner a:hover { opacity: 0.7; text-decoration: underline; }
.breadcrumb-sep {
  color: #ccc;
  font-size: 12px;
  user-select: none;
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 600px) {
  .breadcrumb-inner { padding: 8px 14px; font-size: 12px; }
}

/* ── PRE-HERO SPOT HEADER ── */
#spotHeader {
  background: white;
  border-bottom: 1px solid var(--border);
}
.spot-pre-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 16px;
}
.spot-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.spot-pre-hero .spot-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  flex: 1;
}
.spot-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.status-upcoming { background: #e3f2fd; color: #1565c0; }
.status-blooming { background: #e8f5e9; color: #2e7d32; }
.status-peak     { background: #fff3e0; color: #ef6c00; }
.status-ended    { background: #f5f5f5; color: #757575; }
@media (max-width: 600px) {
  .spot-pre-hero { padding: 14px 16px 12px; }
  .spot-pre-hero .spot-name { font-size: 22px; }
}

/* ── HERO IMAGE / GALLERY ── */
.hero-img-wrap {
  width: 100%;
  background: var(--gray);
  padding: 16px;
  box-sizing: border-box;
}
.hero-img-wrap img {
  width: 100%;
  max-width: 507px;
  aspect-ratio: 4/3;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.hero-placeholder { font-size: 64px; text-align: center; padding: 60px 0; }

.hero-gallery-wrap {
  width: 100%;
  background: var(--gray);
  padding: 16px 0;
}
.hero-gallery-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.hero-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 0 16px;
}
.hero-gallery.dragging { cursor: grabbing; user-select: none; }
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-gallery img {
  flex: 0 0 calc(88% - 10px);
  scroll-snap-align: start;
  object-fit: cover;
  aspect-ratio: 4/3;
  max-height: 380px;
  max-width: 507px;
  border-radius: 12px;
  display: block;
  pointer-events: none;
}
.hero-arrow-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.hero-arrow-btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.26); }
.hero-arrow-btn.hidden { opacity: 0; pointer-events: none; }
.hero-arrow-left  { left: 8px; }
.hero-arrow-right { right: 8px; }
@media (hover: hover) { .hero-arrow-btn { display: flex; } }
@media (max-width: 600px) {
  .hero-img-wrap { padding: 12px; }
  .hero-img-wrap img { max-height: 240px; }
  .hero-gallery-wrap { padding: 12px 0; }
  .hero-gallery img { max-height: 240px; }
}

/* ── MAIN ── */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ── SPOT TITLE ── */
.spot-title-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.spot-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
.spot-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}


/* ── BLOOM STATUS CARD ── */
.bloom-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.bloom-status-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bloom-status-icon { font-size: 26px; }
.bloom-status-label { font-size: 20px; font-weight: 800; }
.bloom-status-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.bloom-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.bloom-date-item {
  padding: 11px 14px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.bloom-date-item:last-child { border-right: none; }
.bloom-date-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.bloom-date-val { font-size: 15px; font-weight: 700; }

/* ── SECTION HEADING ── */
.section-heading {
  font-size: 25px;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-top: 40px;
  margin-bottom: 16px;
}

/* ── BLOG LAYOUT ── */
.blog-img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 14px;
}
.blog-para {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .blog-img { max-height: 260px; }
  .blog-para { font-size: 16px; margin-bottom: 22px; }
}

/* ── INFO TABLE ── */
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.6;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-weight: 700;
  color: var(--text-sub);
  flex-shrink: 0;
  width: 64px;
  font-size: 12px;
  padding-top: 2px;
}
.info-val { color: var(--text); }
.info-val .access-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.info-val .access-item:last-child { margin-bottom: 0; }

/* ── MAP EMBED ── */
.map-embed-wrap {
  margin-top: 4px;
}
.map-embed {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: var(--radius);
  display: block;
}
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--active);
  text-decoration: none;
  font-weight: 500;
}
.map-link:hover { text-decoration: underline; }

/* ── SIBLINGS / SPOT CARDS ── */
.siblings-section { margin-top: 8px; }
.spot-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--active);
  padding: 14px 16px 14px 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}
.spot-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.spot-card .spot-info { flex: 1; min-width: 0; }
.spot-card .spot-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.spot-card .spot-address { font-size: 12px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.spot-card .spot-period-row { font-size: 12px; color: var(--text-sub); }
.spot-card .spot-period-row span { color: var(--active); font-weight: 500; }
.spot-card .spot-arrow { color: #c0c4cc; font-size: 16px; flex-shrink: 0; }

.loading { text-align: center; padding: 60px 20px; color: var(--text-sub); font-size: 14px; }
.error-msg { text-align: center; padding: 60px 20px; color: var(--text-sub); }

footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
footer a { color: var(--text-sub); text-decoration: none; }

@media (max-width: 600px) {
  .header-inner { padding: 0 14px; }
  .main { padding: 16px 16px 48px; }
  .spot-name { font-size: 22px; }
  .bloom-status-label { font-size: 18px; }
  .bloom-date-val { font-size: 14px; }
  .hero-img-wrap { aspect-ratio: 4/3; }
  .info-label { width: 56px; }
}
