/* ============================================
   Hotel Info - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;600;700;900&display=swap');

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --accent-red: #E53935;
  --accent-green: #2E7D32;
  --accent-orange: #F57C00;
  --accent-purple: #7B1FA2;
  --bg: #F8F9FA; /* 少し明るいグレーへ */
  --bg-white: #FFFFFF;
  --text: #212121;
  --text-secondary: #5F6368; /* Googleライクなグレー */
  --text-light: #9AA0A6;
  --border: #E8EAED;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px; /* 少し丸みを強調 */
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
.site-header { background: #FFFFFF; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 12px rgba(0,0,0,0.08); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: var(--header-height); justify-content: space-between; }

/* --- Logo --- */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.site-logo:hover {
  opacity: 0.85;
}
.site-logo-img {
  height: 64px; /* アイコンを大きめに表示 */
  width: auto;
  display: block;
  object-fit: contain;
}
.site-logo-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  display: block;
}
.site-logo-tagline span {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 8px; }
.main-nav a { color: var(--text); padding: 8px 16px; border-radius: 20px; font-size: 0.95rem; font-weight: 700; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); background: rgba(0,0,0,0.04); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* --- Sub Nav --- */
.sub-nav { background: var(--primary); }
.sub-nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; gap: 0; overflow-x: auto; }
.sub-nav a { color: rgba(255,255,255,0.8); padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
.sub-nav a:hover, .sub-nav a.active { color: white; border-bottom-color: white; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-top: 30px; }
.main-content { min-width: 0; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: white; padding: 48px 0; }
.hero h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.hero p { font-size: 1rem; opacity: 0.9; margin-bottom: 32px; }

/* --- Region Selector --- */
.region-selector { background: rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px); }
.region-selector h2 { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.region-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: white; padding: 12px 8px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: center; display: block; font-family: inherit; }
.region-btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); color: white; }
.region-btn .count { display: block; font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }

/* --- Prefecture Drill-down --- */
.prefecture-section { margin-top: 20px; }
.prefecture-section h3 { font-size: 0.95rem; margin-bottom: 12px; font-weight: 500; opacity: 0.9; }
.prefecture-group { margin-bottom: 16px; }
.prefecture-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prefecture-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.prefecture-link {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  transition: all 0.2s;
  display: inline-block;
}
.prefecture-link:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}
/* For use on light backgrounds */
.prefecture-list--light .prefecture-link {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-secondary);
}
.prefecture-list--light .prefecture-link:hover {
  background: #E3F2FD;
  color: var(--primary);
  border-color: var(--primary);
}

/* --- Section Titles --- */
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.section-title .more-link { margin-left: auto; font-size: 0.85rem; font-weight: 500; }

/* --- Cards --- */
.card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img.img-hotel { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-img.img-support { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-img.img-sale { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-img.img-news { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-img.img-hokkaido { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.card-img.img-kyoto { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.card-img.img-okinawa { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-light); }

/* --- Featured Grid --- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

/* --- Badges --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px; }
.badge-support { background: #E8F5E9; color: var(--accent-green); }
.badge-new-hotel { background: #E3F2FD; color: var(--primary); }
.badge-sale { background: #FFEBEE; color: var(--accent-red); }
.badge-news { background: #FFF3E0; color: var(--accent-orange); }
.badge-tips { background: #F3E5F5; color: var(--accent-purple); }

.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.status-active { background: #E8F5E9; color: var(--accent-green); }
.status-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); }
.status-upcoming { background: #FFF3E0; color: var(--accent-orange); }
.status-ended { background: #FAFAFA; color: var(--text-light); }

/* --- Article List --- */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item { display: grid; grid-template-columns: 200px 1fr; gap: 16px; background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.article-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-item .card-img { height: 100%; min-height: 140px; aspect-ratio: auto; }
.article-item .card-body { display: flex; flex-direction: column; justify-content: center; padding: 16px 16px 16px 0; }

/* --- Booking Links --- */
.booking-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid;
}
.booking-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.booking-link--official {
  background: #FFF3E0;
  border-color: #FFB74D;
  color: #E65100;
}
.booking-link--official:hover { background: #FFE0B2; color: #E65100; }
.booking-link--rakuten {
  background: #FFEBEE;
  border-color: #EF9A9A;
  color: #C62828;
}
.booking-link--rakuten:hover { background: #FFCDD2; color: #C62828; }
.booking-link--jalan {
  background: #F3E5F5;
  border-color: #CE93D8;
  color: #6A1B9A;
}
.booking-link--jalan:hover { background: #E1BEE7; color: #6A1B9A; }
.booking-link--ikyu {
  background: #E8EAF6;
  border-color: #9FA8DA;
  color: #283593;
}
.booking-link--ikyu:hover { background: #C5CAE9; color: #283593; }

/* --- Sidebar --- */
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); align-self: start; }
.sidebar-widget { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.sidebar-widget h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.sidebar-list li a:hover { color: var(--primary); }
.sidebar-list .rank { color: var(--primary); font-weight: 700; font-size: 0.85rem; min-width: 20px; }
.sidebar-categories { list-style: none; }
.sidebar-categories li { margin-bottom: 6px; }
.sidebar-categories li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg); border-radius: var(--radius); color: var(--text); font-size: 0.88rem; transition: all 0.2s; }
.sidebar-categories li a:hover { background: #E3F2FD; color: var(--primary); }
.sidebar-categories .cat-count { background: var(--primary); color: white; font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* --- Region Page Header --- */
.region-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 40px 0; }
.region-header h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.region-header p { opacity: 0.9; font-size: 0.95rem; }
.region-stats { display: flex; gap: 24px; margin-top: 20px; }
.region-stat { text-align: center; }
.region-stat .num { font-size: 1.8rem; font-weight: 900; display: block; }
.region-stat .label { font-size: 0.8rem; opacity: 0.8; }

/* --- Prefecture Tabs (Region Page) --- */
.prefecture-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.prefecture-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.prefecture-tab:hover,
.prefecture-tab.active {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}

/* --- Breadcrumb --- */
.breadcrumb { padding: 12px 0; font-size: 0.82rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { margin: 0 8px; }

/* --- Deal Card --- */
.deal-section { margin-bottom: 32px; }
.deal-card { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 12px; border-left: 4px solid var(--primary); transition: all 0.3s; }
.deal-card:hover { box-shadow: var(--shadow-hover); }
.deal-card.deal-support { border-left-color: var(--accent-green); }
.deal-card.deal-new { border-left-color: var(--primary-light); }
.deal-card.deal-sale { border-left-color: var(--accent-red); }
.deal-card.deal-tips { border-left-color: var(--accent-purple); }
.deal-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.deal-card h3 { font-size: 1.05rem; font-weight: 700; }
.deal-card h3 a { color: var(--text); }
.deal-card h3 a:hover { color: var(--primary); }
.deal-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.deal-detail { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.deal-detail .detail-label { color: var(--text-light); font-size: 0.8rem; }
.deal-detail .detail-value { font-weight: 700; color: var(--accent-red); }
.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #E3F2FD; }
.btn-sm { padding: 5px 14px; font-size: 0.8rem; }
.btn-success { background: var(--accent-green); color: white; }
.btn-danger { background: var(--accent-red); color: white; }

/* --- Support Page --- */
.support-filter { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-white); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; font-family: inherit; color: var(--text-secondary); }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-card { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transition: all 0.3s; position: relative; overflow: hidden; }
.support-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.support-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.support-card h3 { font-size: 1rem; font-weight: 700; }
.support-card .prefecture { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.support-info { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; margin-bottom: 12px; }
.support-info-row { display: flex; gap: 8px; }
.support-info-row .label { color: var(--text-light); min-width: 60px; }
.discount-amount { font-size: 1.2rem; font-weight: 900; color: var(--accent-red); margin-bottom: 8px; }

/* --- New Hotels --- */
.hotel-timeline { position: relative; }
.hotel-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-month { margin-bottom: 32px; }
.timeline-month-label { position: relative; background: var(--primary); color: white; display: inline-block; padding: 6px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; margin-left: 8px; z-index: 1; }
.hotel-card { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); margin-left: 44px; margin-bottom: 12px; display: grid; grid-template-columns: 200px 1fr; overflow: hidden; transition: all 0.3s; }
.hotel-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hotel-card-img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.hotel-card-body { padding: 20px; }
.hotel-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.hotel-brand { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; }
.hotel-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; margin-bottom: 12px; }
.hotel-info-item { display: flex; align-items: center; gap: 4px; }
.hotel-info-item .info-label { color: var(--text-light); }

/* --- Footer --- */
.site-footer { background: #263238; color: rgba(255,255,255,0.8); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* --- Page Title --- */
.page-title-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 32px 0; }
.page-title-section h1 { font-size: 1.6rem; font-weight: 900; }
.page-title-section p { opacity: 0.9; font-size: 0.9rem; margin-top: 4px; }

/* --- Notification --- */
.notification-banner { background: linear-gradient(90deg, var(--accent-red), #FF7043); color: white; text-align: center; padding: 10px 20px; font-size: 0.85rem; font-weight: 500; }
.notification-banner a { color: white; text-decoration: underline; font-weight: 700; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: #FFFFFF; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-top: 1px solid var(--border); }
  .featured-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 120px 1fr; }
  .article-item .card-img { min-height: 100px; }
  .hotel-card { grid-template-columns: 1fr; }
  .hotel-card-img { min-height: 180px; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .deal-details { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.fw-bold { font-weight: 700; }
