/* === Base Reset & Variables === */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --secondary: #34a853;
  --accent: #ea4335;
  --orange: #fbbc04;
  --dark: #1e293b;
  --gray-dark: #374151;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.7; font-size: 16px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-container { padding: 40px 20px; }
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; max-width: 1200px; margin: 0 auto; }

/* === Header === */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.site-logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.main-nav .nav-list { display: flex; gap: 4px; align-items: center; }
.main-nav .nav-list a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--gray-dark); transition: all 0.2s; }
.main-nav .nav-list a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a73e8 50%, #0ea5e9 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}
.hero-title { font-size: 2.6rem; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px; }
.hero-search { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 28px; max-width: 700px; margin: 0 auto; }
.search-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.5); background: transparent; color: var(--white); font-size: 0.95rem; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.tab-btn:hover, .tab-btn.active { background: var(--white); color: var(--primary); border-color: var(--white); }
.tab-content { display: none; text-align: center; }
.tab-content.active { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 4px 12px rgba(26,115,232,0.4); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #2d9248; color: var(--white); }
.btn-hero { background: var(--white); color: var(--primary); }
.btn-hero:hover { background: #f0f7ff; color: var(--primary-dark); }
.btn-hero-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-booking { background: #003580; color: var(--white); }
.btn-booking:hover { background: #00296a; color: var(--white); }
.btn-agoda { background: #5392f9; color: var(--white); }
.btn-agoda:hover { background: #3a7bf7; color: var(--white); }
.btn-skyscanner { background: #0770e3; color: var(--white); }
.btn-skyscanner:hover { background: #0562c7; color: var(--white); }
.btn-ferry { background: #0891b2; color: var(--white); }
.btn-ferry:hover { background: #0e7490; color: var(--white); }
.btn-cruise { background: #7c3aed; color: var(--white); }
.btn-cruise:hover { background: #6d28d9; color: var(--white); }
.btn-tp { background: #00b27a; color: var(--white); }
.btn-tp:hover { background: #00975c; color: var(--white); }
.btn-expedia { background: #ffc72c; color: var(--dark); }
.btn-expedia:hover { background: #f5b800; color: var(--dark); }
.btn-outline { background: transparent; border-color: var(--gray-light); color: var(--gray-dark); }
.btn-outline:hover { background: var(--gray-light); color: var(--dark); }
.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }

/* === Stats Bar === */
.stats-bar { background: var(--dark); color: var(--white); padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.85rem; opacity: 0.7; }

/* === Categories === */
.categories-section { padding: 60px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 32px; text-align: center; color: var(--dark); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow); transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--dark); border: 2px solid transparent;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.category-flights:hover { border-color: var(--primary); }
.category-hotels:hover { border-color: #003580; }
.category-ferries:hover { border-color: #0891b2; }
.category-cruises:hover { border-color: #7c3aed; }
.category-tips:hover { border-color: var(--secondary); }
.category-icon { font-size: 2.4rem; }
.category-card h3 { font-size: 1rem; font-weight: 700; }
.category-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }
.category-link { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* === Widget Section === */
.widget-section { background: #f0f7ff; padding: 60px 0; }
.widget-cta-box { background: var(--white); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.widget-cta-box p { font-size: 1.05rem; margin-bottom: 20px; color: var(--gray-dark); }
.or-divider { color: var(--gray); margin: 16px 0; font-size: 0.9rem; }
.widget-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.widget-link { padding: 8px 20px; border: 2px solid var(--gray-light); border-radius: 50px; color: var(--gray-dark); font-size: 0.9rem; font-weight: 500; }
.widget-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* === Article Grid === */
.latest-articles { padding: 60px 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card a { color: inherit; }
.article-card a:hover { text-decoration: none; }
.card-image-placeholder { height: 160px; display: flex; align-items: center; justify-content: center; }
.card-icon { font-size: 3rem; }
.card-body { padding: 20px; }
.card-title { font-size: 1rem; font-weight: 700; margin: 8px 0; line-height: 1.5; }
.card-excerpt { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; line-height: 1.6; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray); }
.price-tag { background: #fef3c7; color: #92400e; padding: 2px 10px; border-radius: 50px; font-weight: 600; }
.price-from { background: #dcfce7; color: #15803d; padding: 2px 10px; border-radius: 50px; font-weight: 600; font-size: 0.82rem; }

/* === Category Badge === */
.category-badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 6px;
}
.category-badge { background: #dbeafe; color: #1e40af; }
.category-flights { background: #dbeafe; color: #1e40af; }
.category-hotels { background: #f3e8ff; color: #7e22ce; }
.category-ferries { background: #cffafe; color: #155e75; }
.category-cruises { background: #ede9fe; color: #6d28d9; }
.category-tips { background: #dcfce7; color: #15803d; }

/* === Affiliate Section === */
.affiliate-section { background: var(--dark); color: var(--white); padding: 60px 0; }
.affiliate-section .section-title { color: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.service-header { padding: 20px; text-align: center; }
.service-booking { background: #003580; }
.service-agoda { background: #5392f9; }
.service-skyscanner { background: #0770e3; }
.service-travelpayouts { background: #00b27a; }
.service-logo { font-size: 1.4rem; font-weight: 700; color: var(--white); }
.service-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.service-body { padding: 20px; }
.service-body h3 { font-size: 1rem; margin-bottom: 12px; }
.service-body ul { margin-bottom: 16px; }
.service-body ul li { font-size: 0.82rem; opacity: 0.8; padding: 4px 0; padding-left: 16px; position: relative; line-height: 1.5; }
.service-body ul li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); }

/* === Sidebar === */
.affiliate-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-light); }
.search-widget { display: flex; flex-direction: column; gap: 10px; }
.affiliate-notice { background: linear-gradient(135deg, #fef3c7, #fff7ed); border: 1px solid #fde68a; }
.affiliate-notice p:first-child { font-size: 0.95rem; margin-bottom: 6px; }
.affiliate-notice p:last-of-type { font-size: 0.82rem; color: var(--gray); margin-bottom: 12px; }

/* === Article Page === */
.section-header { margin-bottom: 32px; }
.section-header h1 { font-size: 2rem; font-weight: 700; }
.section-lead { font-size: 1.05rem; color: var(--gray); margin-top: 8px; }
.article-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--gray-light); }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--gray); }
.article-title { font-size: 2rem; font-weight: 700; line-height: 1.4; }
.article-lead { font-size: 1.1rem; color: var(--gray-dark); margin-top: 12px; padding: 16px; background: #f0f7ff; border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.article-body { font-size: 1rem; line-height: 1.9; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-light); }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; list-style: disc; }
.article-body ul li, .article-body ol li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.article-body th { background: var(--dark); color: var(--white); padding: 12px 16px; text-align: left; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); }
.article-body tr:hover td { background: #f8fafc; }
.article-body blockquote { background: #f0f7ff; border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic; color: var(--gray-dark); }

/* === Affiliate Banner === */
.affiliate-banner { margin: 24px 0; }
.affiliate-banner a { display: block; background: linear-gradient(135deg, #1e3a8a, #1a73e8); border-radius: var(--radius); padding: 20px 24px; color: var(--white); transition: all 0.3s; }
.affiliate-banner a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,115,232,0.3); text-decoration: none; }
.banner-content { display: flex; align-items: center; gap: 16px; }
.banner-icon { font-size: 2rem; }
.banner-content > div { flex: 1; }
.banner-content strong { font-size: 1.05rem; display: block; margin-bottom: 4px; }
.banner-content p { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.banner-cta { background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* === Affiliate Links Box === */
.affiliate-links-box { background: var(--white); border: 2px solid var(--gray-light); border-radius: var(--radius); padding: 28px; margin: 32px 0; }
.affiliate-links-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; color: var(--dark); }
.affiliate-grid { display: flex; flex-direction: column; gap: 12px; }
.affiliate-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 2px solid var(--gray-light); border-radius: var(--radius-sm); color: var(--dark); transition: all 0.2s; }
.affiliate-card:hover { border-color: var(--primary); background: #f0f7ff; text-decoration: none; transform: translateX(4px); }
.affiliate-icon { font-size: 1.6rem; }
.affiliate-info { flex: 1; }
.affiliate-info strong { font-size: 0.95rem; display: block; margin-bottom: 2px; }
.affiliate-info p { font-size: 0.82rem; color: var(--gray); margin: 0; }
.affiliate-arrow { font-size: 1.1rem; color: var(--primary); }

/* === Section Banner === */
.section-banner { margin-bottom: 32px; }

/* === Footer === */
.site-footer { background: var(--dark); color: var(--white); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--white); }
.footer-col p { font-size: 0.85rem; opacity: 0.7; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.affiliate-disclosure { font-size: 0.8rem; opacity: 0.6; margin-bottom: 8px; }
.footer-bottom > p:last-child { font-size: 0.82rem; opacity: 0.5; }

/* === Travelpayouts Widget === */
.travelpayouts-widget { max-width: 800px; margin: 0 auto; }

/* === Responsive === */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .affiliate-sidebar { order: -1; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .search-tabs { flex-wrap: wrap; }
  .tab-content.active { flex-direction: column; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; width: 100%; background: var(--white); padding: 12px; box-shadow: var(--shadow); }
  .nav-list.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

/* === Price Comparison Table === */
.price-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.price-table th { background: var(--primary); color: var(--white); padding: 14px 16px; }
.price-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.price-table tr:nth-child(even) td { background: #f8fafc; }
.price-table tr:hover td { background: #eff6ff; }
.price-table .best-price { color: var(--secondary); font-weight: 700; font-size: 1.1rem; }
.price-table .btn-sm { padding: 6px 16px; font-size: 0.82rem; }

/* === Tips Box === */
.tips-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.tips-box h4 { color: #92400e; font-size: 0.95rem; margin-bottom: 10px; }
.tips-box ul { padding-left: 18px; list-style: disc; }
.tips-box li { font-size: 0.9rem; color: #78350f; margin-bottom: 6px; }

/* === Alert Box === */
.alert-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; color: #991b1b; font-size: 0.9rem; }
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; color: #1e40af; font-size: 0.9rem; }
