:root {
  --sky: #e8f4fd;
  --sky-mid: #b8d9f0;
  --sky-deep: #4a9fd4;
  --sky-accent: #1a7ab5;
  --green: #3aaa6e;
  --green-light: #e8f7ef;
  --sakura: #f5a7b8;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --white: #ffffff;
  --bg: #f0f7fd;
  --border: #d0e5f5;
  --shadow: 0 2px 12px rgba(74,159,212,0.12);
  --radius: 10px;
  --font: 'Noto Sans JP', sans-serif;
  --font-heading: 'Zen Kaku Gothic New', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; }

/* HEADER */
#site-header {
  background: var(--white);
  border-bottom: 2px solid var(--sky-mid);
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(74,159,212,0.1);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 52px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--sky-accent);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--green); }
nav { display: flex; gap: 4px; margin-left: 10px; }
nav a {
  padding: 6px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 13px;
  transition: background 0.2s;
}
nav a:hover, nav a.active { background: var(--sky); color: var(--sky-accent); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn-sm {
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-outline { border: 1.5px solid var(--sky-deep) !important; background: transparent; color: var(--sky-accent); }
.btn-primary { background: var(--sky-accent); color: white; }

/* HERO */
#hero {
  background: linear-gradient(135deg, #1a7ab5 0%, #4a9fd4 50%, #7ec8e3 100%);
  padding: 36px 20px 28px;
  text-align: center;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#hero h1 {
  font-family: var(--font-heading);
  font-size: 28px; color: white; margin-bottom: 6px;
  position: relative;
}
#hero p { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 20px; position: relative; }
.search-box {
  display: flex; gap: 8px; max-width: 620px; margin: 0 auto;
  position: relative;
}
.search-box input {
  flex: 1; padding: 12px 18px; border-radius: 30px;
  border: none; font-size: 14px; font-family: var(--font);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  outline: none;
}
.search-box select {
  padding: 12px 14px; border-radius: 30px; border: none;
  font-size: 13px; font-family: var(--font);
  background: white; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-search {
  padding: 12px 24px; border-radius: 30px; border: none;
  background: var(--green); color: white; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.btn-search:hover { background: #2d8f5c; }

/* QUICK TAGS */
.quick-tags {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 14px; flex-wrap: wrap; position: relative;
}
.quick-tag {
  padding: 4px 12px; background: rgba(255,255,255,0.2);
  border-radius: 20px; color: white; font-size: 12px;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.quick-tag:hover { background: rgba(255,255,255,0.35); }

/* MAIN LAYOUT */
#main {
  max-width: 1200px; margin: 20px auto; padding: 0 16px;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 16px;
  align-items: start;
}

/* SIDEBAR LEFT */
.sidebar-left { position: sticky; top: 72px; }
.side-section {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.side-title {
  font-size: 12px; font-weight: 700; color: var(--sky-accent);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--sky);
  display: flex; align-items: center; gap: 6px;
}
.side-list { list-style: none; }
.side-list li a {
  display: flex; justify-content: space-between;
  padding: 5px 4px; color: var(--text); text-decoration: none;
  font-size: 12px; border-radius: 4px;
  transition: background 0.15s;
}
.side-list li a:hover { background: var(--sky); color: var(--sky-accent); }
.side-list li a span { color: var(--text-light); font-size: 11px; }
.pref-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.pref-btn {
  padding: 5px 6px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--sky); font-size: 11px; cursor: pointer;
  text-align: center; color: var(--text);
  transition: all 0.15s; font-family: var(--font);
}
.pref-btn:hover, .pref-btn.active {
  background: var(--sky-accent); color: white; border-color: var(--sky-accent);
}

/* CENTER */
.center-col {}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 18px;
  background: var(--sky-accent); border-radius: 2px;
}
.see-all { font-size: 12px; color: var(--sky-accent); text-decoration: none; }

/* SPOT CARDS */
.spot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.spot-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.spot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74,159,212,0.2);
}
.spot-img {
  width: 100%; height: 130px; object-fit: cover;
  background: linear-gradient(135deg, var(--sky-mid), var(--sky-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; position: relative;
}
.spot-img .badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--sky-accent); color: white;
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
}
.spot-body { padding: 10px 12px; }
.spot-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.spot-area { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.spot-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.spot-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  background: var(--sky); color: var(--sky-accent);
}

/* LIST ARTICLES */
.article-list { margin-bottom: 20px; }
.article-item {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; gap: 12px; align-items: center;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.article-item:hover { background: var(--sky); }
.article-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, var(--sky-mid), var(--sky-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.article-info { flex: 1; min-width: 0; }
.article-title { font-size: 13px; font-weight: 500; margin-bottom: 3px; line-height: 1.4; }
.article-meta { font-size: 11px; color: var(--text-light); display: flex; gap: 8px; }
.article-arrow { color: var(--sky-accent); font-size: 16px; }

/* SIDEBAR RIGHT */
.sidebar-right { position: sticky; top: 72px; }
.hotel-card {
  background: var(--white); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 8px; cursor: pointer;
  transition: transform 0.15s;
}
.hotel-card:hover { transform: translateY(-2px); }
.hotel-img {
  width: 100%; height: 80px; border-radius: 6px;
  background: linear-gradient(135deg, #f0c080, #e8965a);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 8px;
}
.hotel-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.hotel-area { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.hotel-price { font-size: 13px; font-weight: 700; color: var(--sky-accent); }
.hotel-price small { font-size: 10px; color: var(--text-light); font-weight: 400; }
.stars { color: #f5a623; font-size: 11px; margin-bottom: 2px; }

.ranking-list { }
.rank-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky-mid); color: var(--sky-accent);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rank-num.gold { background: #ffd700; color: #8b6914; }
.rank-num.silver { background: #c0c0c0; color: #666; }
.rank-num.bronze { background: #cd7f32; color: white; }
.rank-info { flex: 1; }
.rank-name { font-size: 12px; font-weight: 500; }
.rank-area { font-size: 10px; color: var(--text-light); }

/* LOADING / ERROR */
.loading {
  text-align: center; padding: 30px; color: var(--text-light);
  font-size: 13px;
}
.loading-spinner {
  width: 32px; height: 32px; border: 3px solid var(--sky-mid);
  border-top-color: var(--sky-accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  text-align: center; padding: 20px; font-size: 11px; margin-top: 30px;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 8px; }

/* CATEGORY ICONS */
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px;
  padding-bottom: 4px;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  cursor: pointer; flex-shrink: 0; min-width: 68px;
  transition: all 0.15s; box-shadow: var(--shadow);
}
.cat-item:hover, .cat-item.active {
  background: var(--sky-accent); border-color: var(--sky-accent);
}
.cat-item:hover .cat-label, .cat-item.active .cat-label { color: white; }
.cat-icon { font-size: 22px; }
.cat-label { font-size: 10px; color: var(--text-light); }

/* TABS */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  cursor: pointer; border: 1.5px solid var(--border);
  background: white; font-family: var(--font); color: var(--text);
  transition: all 0.15s;
}
.tab.active { background: var(--sky-accent); color: white; border-color: var(--sky-accent); }

/* NOTICE */
.api-notice {
  background: var(--green-light); border: 1px solid #a8dcc0;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 11px; color: #2a7a50;
  display: flex; align-items: flex-start; gap: 8px;
}

/* REGION CARDS (area.html) */
.region-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.region-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.region-card:hover, .region-card.active {
  background: var(--sky-accent); border-color: var(--sky-accent); color: white;
  transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,122,181,0.3);
}
.region-card:hover .region-sub, .region-card.active .region-sub { color: rgba(255,255,255,0.8); }
.region-emoji { font-size: 32px; margin-bottom: 8px; }
.region-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.region-sub { font-size: 11px; color: var(--text-light); }

/* TIPS CARDS (tips.html) */
.tips-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 20px;
}
.tip-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(74,159,212,0.2); }
.tip-card-header {
  padding: 20px; font-size: 32px; text-align: center;
  background: linear-gradient(135deg, var(--sky), var(--sky-mid));
}
.tip-card-body { padding: 12px 14px; }
.tip-card-cat {
  font-size: 10px; color: var(--sky-accent); font-weight: 700;
  margin-bottom: 4px; text-transform: uppercase;
}
.tip-card-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.tip-card-desc { font-size: 11px; color: var(--text-light); line-height: 1.6; }

/* HOTEL SEARCH (hotel.html) */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.filter-select {
  padding: 7px 12px; border-radius: 20px; border: 1.5px solid var(--border);
  font-size: 12px; font-family: var(--font); background: white;
  color: var(--text); cursor: pointer; outline: none;
}
.filter-select:focus { border-color: var(--sky-accent); }
.hotel-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.hotel-full-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.hotel-full-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(74,159,212,0.2); }
.hotel-full-img {
  width: 100%; height: 120px;
  background: linear-gradient(135deg, #f0c080, #e8965a);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.hotel-full-body { padding: 10px 12px; }
.hotel-type-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: var(--sky); color: var(--sky-accent);
  display: inline-block; margin-bottom: 4px;
}

/* SPOT DESC (card) */
.spot-desc {
  font-size: 11px; color: var(--text-light); margin-top: 6px;
  line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55); align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.12); color: var(--text);
  font-size: 14px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 10;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(0,0,0,0.22); }
.modal-hero {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--sky), var(--sky-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; border-radius: 16px 16px 0 0;
}
.modal-content { padding: 20px 24px 28px; }
.modal-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: var(--sky-accent); color: white; font-weight: 700;
}
.modal-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  margin-bottom: 4px; color: var(--text);
}
.modal-area { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.modal-desc {
  font-size: 13px; line-height: 1.8; color: var(--text);
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-info-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-info-item {}
.modal-info-label {
  font-size: 11px; font-weight: 700; color: var(--sky-accent);
  margin-bottom: 2px;
}
.modal-info-val { font-size: 12px; color: var(--text); line-height: 1.6; }
.modal-tips {
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tips-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.tips-list li {
  font-size: 12px; color: var(--text); line-height: 1.5;
  padding-left: 16px; position: relative;
}
.tips-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btn {
  flex: 1; min-width: 140px; padding: 11px 16px; border-radius: 25px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  text-align: center; transition: opacity 0.15s; cursor: pointer;
}
.modal-btn:hover { opacity: 0.85; }
.modal-btn-map { background: var(--sky-accent); color: white; }
.modal-btn-hotel { background: var(--green); color: white; }
.modal-btn-rakuten { background: #bf0000; color: white; }

/* ARTICLE PAGE */
.article-page { max-width: 800px; margin: 0 auto; padding: 24px 0; }
.breadcrumb {
  font-size: 12px; color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--sky-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-light); }
.article-hero {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.article-hero-emoji { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.article-hero-cat {
  display: inline-block; background: var(--sky); color: var(--sky-accent);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.article-hero-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  line-height: 1.4; color: var(--text); margin-bottom: 10px;
}
.article-hero-desc {
  font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px;
}
.article-hero-meta {
  display: flex; gap: 14px; font-size: 12px; color: var(--text-light);
}
.article-body {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
  box-shadow: var(--shadow); line-height: 1.9;
}
.article-body h2 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  color: var(--sky-accent); margin: 28px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--sky-mid);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 20px 0 8px; padding-left: 10px;
  border-left: 3px solid var(--green);
}
.article-body p { margin-bottom: 14px; font-size: 14px; color: var(--text); }
.article-body ul, .article-body ol {
  margin: 10px 0 16px 20px; display: flex; flex-direction: column; gap: 6px;
}
.article-body li { font-size: 14px; color: var(--text); }
.article-tip-box {
  background: var(--green-light); border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 16px 0;
}
.article-tip-box strong { color: var(--green); display: block; margin-bottom: 4px; font-size: 13px; }
.article-tip-box p { margin-bottom: 0; font-size: 13px; color: var(--text); }
.article-tags {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.article-tag-label { font-size: 12px; color: var(--text-light); margin-right: 4px; }
.article-tag {
  background: var(--sky); color: var(--sky-accent);
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  text-decoration: none;
}
.related-section { margin-bottom: 32px; }
.related-section .section-title { margin-bottom: 12px; font-size: 16px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.related-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,159,212,0.18); }
.related-card-emoji { font-size: 28px; }
.related-card-cat { font-size: 11px; color: var(--sky-accent); font-weight: 700; }
.related-card-title { font-size: 13px; font-weight: 700; line-height: 1.4; }
.back-link {
  display: inline-block; margin-bottom: 40px;
  color: var(--sky-accent); text-decoration: none; font-size: 13px;
}
.back-link:hover { text-decoration: underline; }
