/* ========================================
   Nippon Climat - Main Stylesheet
   Pure CSS3 - No frameworks
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  color: #004D40;
  background-color: #FAFAFA;
  line-height: 1.7;
  font-size: 16px;
  padding-top: 60px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  line-height: 1.3;
  color: #004D40;
}

h1 { font-size: 2.4em; }
h2 { font-size: 1.8em; margin-top: 1.5em; margin-bottom: 0.6em; }
h3 { font-size: 1.35em; margin-top: 1.3em; margin-bottom: 0.5em; }
h4 { font-size: 1.1em; margin-top: 1em; margin-bottom: 0.4em; }

p {
  margin-bottom: 1em;
}

a {
  color: #004D40;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}

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

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

/* --- Header --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  color: #004D40;
  text-decoration: none;
}

.logo:hover {
  color: #004D40;
  text-decoration: none;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9em;
  color: #546E7A;
  text-decoration: none;
}

.nav-links a:hover {
  color: #004D40;
  text-decoration: underline;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #004D40;
  cursor: pointer;
  padding: 5px;
}

/* --- Hero Section --- */
.hero-area {
  background-color: #004D40;
  padding: 80px 20px 70px;
  text-align: center;
}

.hero-area h1 {
  color: #FFFFFF;
  font-size: 2.6em;
  margin-bottom: 0.3em;
  font-weight: 700;
}

.hero-area .hero-sub {
  color: #B2DFDB;
  font-size: 1.15em;
  max-width: 600px;
  margin: 0 auto 25px;
  font-weight: 400;
}

.hero-line {
  width: 40px;
  height: 3px;
  background-color: #FFAB00;
  margin: 0 auto;
}

/* Hero with image variant (home page) */
.hero-with-image {
  background-color: #004D40;
  padding: 0;
}

.hero-image-top {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-text-area {
  padding: 50px 20px 55px;
  text-align: center;
}

.hero-text-area h1 {
  color: #FFFFFF;
  font-size: 2.4em;
  margin-bottom: 0.3em;
}

.hero-text-area .hero-sub {
  color: #B2DFDB;
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto 25px;
}

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

/* Inner page layout with sidebar */
.inner-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 0 0 70%;
  max-width: 70%;
}

.sidebar-right {
  flex: 0 0 30%;
  max-width: 30%;
}

/* --- Quick Stats Box --- */
.quick-stats {
  background-color: #FFFFFF;
  border: 2px solid #004D40;
  padding: 24px;
  margin-bottom: 24px;
}

.quick-stats h3 {
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E0E0E0;
}

.stat-row {
  margin-bottom: 14px;
}

.stat-label {
  font-size: 0.8em;
  color: #546E7A;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1.1em;
  color: #004D40;
}

.stat-highlight {
  color: #FFAB00;
  font-weight: 700;
}

/* --- Comparison Blocks --- */
.compare-section {
  margin: 50px 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.compare-block {
  background-color: #FFFFFF;
  border-top: 4px solid #E0E0E0;
  padding: 28px;
}

.compare-block.tokyo-block { border-top-color: #FFAB00; }
.compare-block.osaka-block { border-top-color: #FF6D00; }
.compare-block.hokkaido-block { border-top-color: #0288D1; }

.compare-block img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 18px;
}

.compare-block h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25em;
}

.compare-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.compare-block ul li {
  padding: 5px 0;
  font-size: 0.95em;
  color: #546E7A;
  border-bottom: 1px solid #F5F5F5;
}

.compare-block ul li:last-child {
  border-bottom: none;
}

.price-tag {
  color: #FFAB00;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95em;
}

.data-table th,
.data-table td {
  border: 1px solid #E0E0E0;
  padding: 12px 16px;
  text-align: left;
}

.data-table th {
  background-color: #004D40;
  color: #FFFFFF;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}

.data-table tr:nth-child(even) {
  background-color: #FAFAFA;
}

.data-table tr:nth-child(odd) {
  background-color: #FFFFFF;
}

/* --- Read Blocks (article sections) --- */
.read-block {
  margin-bottom: 40px;
}

.read-block img {
  margin: 20px 0;
  border-radius: 0;
}

/* --- Two Column Layout (general) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.two-col img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* --- Lists --- */
.content-list {
  margin: 16px 0 24px 20px;
  padding: 0;
}

.content-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* --- Blockquote --- */
.quote-block {
  border-left: 4px solid #FFAB00;
  padding: 16px 24px;
  margin: 24px 0;
  background-color: #FFFFFF;
  font-style: italic;
  color: #546E7A;
}

/* --- CTA Links --- */
.click-link {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  color: #004D40;
  text-decoration: underline;
}

.click-link:hover {
  color: #BF360C;
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.85em;
  color: #546E7A;
  margin-bottom: 10px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E0E0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1em;
  color: #004D40;
  background-color: #FFFFFF;
}

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

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

.submit-btn {
  background-color: #004D40;
  color: #FFFFFF;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  padding: 14px 36px;
  border: none;
  font-size: 1em;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #00352C;
}

/* --- Thanks Page --- */
.thanks-area {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.thanks-area h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

/* --- Footer --- */
#site-footer {
  background-color: #004D40;
  color: #B2DFDB;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 1;
}

.footer-logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1.2em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.85em;
  line-height: 1.8;
  color: #B2DFDB;
  margin-bottom: 16px;
}

.footer-address a {
  color: #FFFFFF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  text-decoration: none;
}

.footer-address a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  column-count: 2;
  column-gap: 30px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #B2DFDB;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9em;
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8em;
  color: #80CBC4;
  text-align: center;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-top: 2px solid #004D40;
  padding: 20px;
  z-index: 2000;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

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

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

.cookie-text {
  flex: 1;
  font-size: 0.9em;
  color: #546E7A;
  min-width: 250px;
}

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

.cookie-btn {
  padding: 10px 20px;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
}

.cookie-btn.okay {
  background-color: #004D40;
  color: #FFFFFF;
}

.cookie-btn.decline {
  background-color: #FAFAFA;
  color: #546E7A;
  border: 1px solid #E0E0E0;
}

.cookie-btn.manage {
  background-color: transparent;
  color: #004D40;
  text-decoration: underline;
}

/* --- Cookie Modal --- */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

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

.modal-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-box p {
  font-size: 0.9em;
  color: #546E7A;
  margin-bottom: 20px;
}

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

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

.cookie-option-label strong {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  color: #004D40;
  margin-bottom: 4px;
}

.cookie-option-label span {
  font-size: 0.85em;
  color: #546E7A;
}

/* toggle switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.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: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

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

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

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

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
    font-size: 15px;
  }

  .menu-toggle {
    display: block !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-area {
    padding: 50px 20px 45px;
  }

  .hero-area h1 {
    font-size: 1.7em;
  }

  .hero-text-area h1 {
    font-size: 1.7em;
  }

  .hero-image-top {
    height: 200px;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .inner-layout {
    flex-direction: column;
  }

  .main-content,
  .sidebar-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    column-count: 2;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .data-table {
    font-size: 0.85em;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}

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

  h2 {
    font-size: 1.4em;
  }

  .footer-links {
    column-count: 1;
  }
}

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

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #004D40;
  color: #FFFFFF;
  padding: 8px;
  z-index: 5000;
}

.skip-link:focus {
  top: 0;
}
