/* ============================================
   Nippon Rain — Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@400;700&display=swap');

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #2C3E50;
  background-color: #ECF0F1;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 { font-size: 2.6em; }
h2 { font-size: 2em; margin-top: 40px; }
h3 { font-size: 1.5em; margin-top: 30px; }
h4 { font-size: 1.2em; margin-top: 24px; }

p {
  margin-bottom: 18px;
  font-size: 1.05em;
}

a {
  color: #E67E22;
  text-decoration: none;
}

a:hover {
  color: #D35400;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header --- */
#header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #BDC3C7;
  padding: 24px 0 16px;
  position: relative;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

#logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  font-weight: 700;
  color: #2C3E50;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

#logo:hover {
  color: #E67E22;
  text-decoration: none;
}

/* --- Navigation --- */
#nav {
  margin-top: 8px;
}

#nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

#nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  color: #2C3E50;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

#nav a:hover {
  color: #E67E22;
  border-bottom-color: #E67E22;
  text-decoration: none;
}

/* --- Mobile Menu --- */
#menu-toggle {
  display: none;
  background: none;
  border: 1px solid #BDC3C7;
  padding: 8px 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  color: #2C3E50;
  cursor: pointer;
  border-radius: 4px;
  margin: 10px auto 0;
}

#menu-toggle:hover {
  background-color: #ECF0F1;
}

/* --- Hero Section --- */
#hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-box {
  color: #FFFFFF;
  padding: 0 20px;
  max-width: 700px;
}

.hero-box h1 {
  font-size: 2.8em;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-box p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- Main Content --- */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.content-section {
  margin-bottom: 50px;
}

/* --- Feature Blocks --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.feature-card {
  background-color: #FFFFFF;
  border: 1px solid #BDC3C7;
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 14px;
}

.feature-card p {
  font-size: 0.98em;
  color: #7F8C8D;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn-main {
  display: inline-block;
  background-color: #E67E22;
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-main:hover {
  background-color: #D35400;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #E67E22;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  text-decoration: none;
  border: 2px solid #E67E22;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: #E67E22;
  color: #FFFFFF;
  text-decoration: none;
}

/* --- Cards --- */
.card-item {
  background-color: #FFFFFF;
  border: 1px solid #BDC3C7;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
}

.card-item h3 {
  margin-top: 0;
}

/* --- City Layout --- */
.city-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 30px;
}

.city-list {
  list-style: none;
}

.city-list li {
  margin-bottom: 8px;
}

.city-list a {
  display: block;
  padding: 10px 14px;
  color: #2C3E50;
  font-weight: 700;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.city-list a:hover {
  background-color: #FFFFFF;
  border-left-color: #E67E22;
  text-decoration: none;
  color: #E67E22;
}

.city-list a.active {
  background-color: #FFFFFF;
  border-left-color: #E67E22;
  color: #E67E22;
}

.city-detail {
  background-color: #FFFFFF;
  border: 1px solid #BDC3C7;
  border-radius: 6px;
  padding: 32px;
}

.city-detail h3 {
  margin-top: 0;
}

.city-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background-color: #ECF0F1;
  border-radius: 4px;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #E67E22;
  display: block;
}

.stat-label {
  font-size: 0.85em;
  color: #7F8C8D;
  margin-top: 4px;
  display: block;
}

/* --- Packing List --- */
.packing-list {
  list-style: none;
  padding: 0;
}

.packing-list li {
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid #BDC3C7;
  position: relative;
  font-size: 1.02em;
}

.packing-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #E67E22;
  font-weight: 700;
  font-size: 1.2em;
}

.packing-list li:last-child {
  border-bottom: none;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2C3E50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1em;
  color: #2C3E50;
  background-color: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E67E22;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2C3E50;
  color: #FFFFFF;
  padding: 18px 20px;
  z-index: 1000;
  display: none;
}

#cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.92em;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  cursor: pointer;
  border: none;
}

.cookie-btn-accept {
  background-color: #E67E22;
  color: #FFFFFF;
}

.cookie-btn-accept:hover {
  background-color: #D35400;
}

.cookie-btn-decline {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid #95A5A6;
}

.cookie-btn-decline:hover {
  background-color: rgba(255,255,255,0.1);
}

.cookie-btn-learn {
  background-color: transparent;
  color: #95A5A6;
  text-decoration: underline;
  padding: 8px 10px;
}

.cookie-btn-learn:hover {
  color: #FFFFFF;
}

/* --- Cookie Modal --- */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.6);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

#cookie-modal.show {
  display: flex;
}

.cookie-modal-box {
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-box h3 {
  margin-top: 0;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #ECF0F1;
}

.cookie-toggle-row:last-child {
  border-bottom: none;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #BDC3C7;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #E67E22;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-close {
  margin-top: 20px;
  text-align: right;
}

/* --- Footer --- */
#footer {
  background-color: #2C3E50;
  color: #95A5A6;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15em;
  color: #FFFFFF;
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #95A5A6;
  font-size: 0.92em;
}

.footer-col a:hover {
  color: #E67E22;
}

.footer-col p {
  font-size: 0.9em;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 900px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85em;
  color: #7F8C8D;
}

/* --- Thanks Page --- */
.thanks-box {
  text-align: center;
  padding: 60px 20px;
}

.thanks-box h1 {
  font-size: 2.4em;
  margin-bottom: 20px;
}

.thanks-box p {
  font-size: 1.1em;
  color: #7F8C8D;
  margin-bottom: 30px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #nav {
    display: none;
    margin-top: 14px;
  }

  #nav.open {
    display: block;
  }

  #nav ul {
    flex-direction: column;
    gap: 6px;
  }

  #nav a {
    display: block;
    padding: 8px 0;
    border-bottom: none;
  }

  .hero-box h1 {
    font-size: 1.9em;
  }

  .hero-box p {
    font-size: 1em;
  }

  #hero {
    height: 360px;
  }

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

  .city-layout {
    grid-template-columns: 1fr;
  }

  .city-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
  h3 { font-size: 1.25em; }
}

@media (max-width: 480px) {
  .hero-box h1 {
    font-size: 1.6em;
  }

  #hero {
    height: 300px;
  }

  .main-content {
    padding: 30px 16px;
  }

  .btn-main {
    padding: 12px 24px;
    font-size: 0.9em;
  }
}
