:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #d9e2f0;
  --text: #14213a;
  --sub: #54627c;
  --accent: #0d63c9;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  background-color: var(--bg);
  background: radial-gradient(1200px 600px at 80% -100px, #e8f0ff 0%, var(--bg) 55%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}

@supports (-webkit-touch-callout: none) {
  .topbar {
    position: static;
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0e2d59;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6f93;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.nav-legal {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.lang-pill {
  border: 1px solid #cad7ed;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #37527d;
  background: #f4f8ff;
}

.lang-pill.active {
  color: #ffffff;
  background: #1a5fc0;
  border-color: #1a5fc0;
}

.hero {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #122e59 0%, #275ca3 100%);
  color: #fff;
  padding: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 38px);
}

.hero p {
  margin: 8px 0 0;
  color: #dce8ff;
}

.section {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 20px;
}

.section.continent-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 240px at -8% 118%, rgba(91, 136, 202, 0.1) 0%, rgba(91, 136, 202, 0) 70%),
    radial-gradient(460px 230px at 106% -10%, rgba(72, 120, 191, 0.1) 0%, rgba(72, 120, 191, 0) 70%),
    var(--card);
}

.section.continent-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(75, 117, 178, 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 32% 54%, rgba(75, 117, 178, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 24%, rgba(75, 117, 178, 0.12) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 60%, rgba(75, 117, 178, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 34%, rgba(75, 117, 178, 0.12) 0 3px, transparent 4px);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.sub {
  color: var(--sub);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.seo-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid #c5d3ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2d4f83;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.seo-fav-btn.is-active {
  border-color: #f28aa6;
  color: #d94778;
  background: #fff4f7;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef3fc;
}

.thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #6d7a93;
  background: linear-gradient(145deg, #eaf1fd, #dde8f8);
}

.card-body {
  padding: 10px;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.meta {
  margin-top: 6px;
  color: var(--sub);
  font-size: 12px;
}

.chips {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid #cfd9ea;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #37527d;
  background: #f7faff;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.home-search input {
  width: 100%;
  border: 1px solid #c9d8ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #ffffff;
  color: var(--text);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-form button {
  border: 1px solid #95b5e6;
  border-radius: 10px;
  padding: 10px 14px;
  background: #eaf3ff;
  color: #124282;
  font-weight: 700;
  cursor: pointer;
}

.search-results {
  margin-top: 10px;
}

.search-count {
  margin-top: 8px;
  color: #3b5178;
  font-size: 13px;
  font-weight: 600;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
}

.search-media {
  width: 66px;
}

.search-thumb {
  width: 66px;
  height: 50px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #d6dfef;
  background: #eef3fc;
}

.search-text {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
}

.search-item.is-disabled {
  opacity: 0.7;
}

.search-type {
  border: 1px solid #cfd9ea;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #37527d;
  background: #f7faff;
}

.search-main {
  font-weight: 600;
}

.search-sub {
  font-size: 12px;
  color: var(--sub);
  grid-column: 2 / span 1;
}

.search-extra {
  grid-column: 2 / span 1;
  font-size: 11px;
  color: #45638f;
}

.country-card {
  position: relative;
  border: 1px solid #d4e0f2;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 45, 89, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-cover-wrap {
  margin: -16px -16px 12px;
  border-bottom: 1px solid #dce6f6;
  background: #eaf1fd;
}

.country-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.country-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  color: #52698f;
  font-weight: 700;
  background: linear-gradient(145deg, #e7effc, #dbe8fb);
}

.country-card::before {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 99, 201, 0.24), rgba(13, 99, 201, 0));
}

.country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 45, 89, 0.12);
}

.country-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.country-card .sub + .sub {
  margin-top: 6px;
}

.country-action,
.country-soon {
  margin-top: 8px;
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.country-action {
  border: 1px solid #94b5e6;
  color: #124282;
  background: #eaf3ff;
}

.country-action:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.country-soon {
  border: 1px solid #d7deeb;
  color: #667896;
  background: #f4f7fc;
}

.breadcrumbs {
  margin-top: 18px;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--sub);
}

.breadcrumbs a {
  color: #375a8c;
}

.spot-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.spot-hero .cover {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spot-hero .panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.footer {
  margin: 38px 0 34px;
  color: var(--sub);
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: #203b64;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-bottom {
  margin-top: 10px;
  font-size: 11px;
  color: #6b7892;
}

.spot-detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.spot-detail-list li {
  color: var(--text);
  font-size: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.photo-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.photo-item .thumb {
  aspect-ratio: 4 / 3;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.review-card p {
  margin: 0;
  line-height: 1.55;
}

.review-meta {
  margin-bottom: 6px;
  color: var(--sub);
  font-size: 12px;
}

.spot-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  display: inline-block;
  border: 1px solid #94b5e6;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #124282;
  background: #eaf3ff;
}

.action-btn.secondary {
  border-color: #c7d4ea;
  color: #2f4b73;
  background: #f5f8fd;
}

.spot-map-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef3fc;
}

@media (max-width: 860px) {
  .topbar {
    background: #f5f7fb;
  }

  .topbar-inner {
    min-height: 0;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav-legal {
    border-left: 0;
    padding-left: 0;
  }

  .lang-switch {
    border-left: 0;
    padding-left: 0;
  }

  .spot-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 20px;
    padding: 20px;
  }

  .section {
    margin-top: 20px;
    padding: 16px;
  }

  .spot-map-frame {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
}
