/* ===== レイアウト共通 ===== */
/* セクションの基本レイアウト */
.section__inner {
  margin: 0 auto;
  padding: var(--section-padding);
  background-color: var(--bg-light);
  margin-top: 0;
}

.section__inner_white {
  margin: 0 auto;
  padding: var(--section-padding);
}

/* 見出し部分共通 */
.heading_container, 
.feature_heading_container {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  font-size: var(--font-lg);
  font-weight: 500;
  color: #005250;
  margin-bottom: 6px;
}

.section__subtitle {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.feature_intro_subtitle {
  font-size: var(--font-lg);
  font-weight: 400;
  margin: 0 0 3rem;
  text-align: center;
  letter-spacing: 0.1em;
  color: #005250;
}

/* ===== 共通CTA ===== */
.cta_area {
  position: relative;
  margin-top: 60px;
  z-index: 10;
}

.cta_container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  transform: translateY(50%);
}

.cta_buttons {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.cta_button {
  padding: 30px 60px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta_button.price_simulation {
  background-color: var(--primary-color);
}

.cta_button.reserve_contact {
  background-color: #005250;
}

.cta_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta_text {
  font-size: 28px;
  font-weight: 300;
}

/* ===== ポップアップ ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.popup__content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.popup__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.popup__close:hover {
  color: #333;
}

.popup__heading {
  font-size: 22px;
  color: var(--secondary-color);
  margin: 20px 0 15px;
}

/* テーブルスタイル */
.popup__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popup__table th, 
.popup__table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.popup__table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.popup__table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.popup__table tr:hover {
  background-color: #e9f5f7;
}

/* 注意書きスタイル */
.popup__notes {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.popup__notes-title {
  font-size: var(--font-sm);
  color: #333;
  margin-bottom: 10px;
}

.popup__notes-list {
  padding-left: 20px;
}

.popup__notes-list li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.5;
}

/* ===== フッター ===== */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px 0;
}

.footer__copyright {
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: var(--breakpoint-sm)) {
  /* 共通 */
  .section__inner,
  .section__inner_white {
    padding: 8rem 5vw 0;
  }
  
  .section__title {
    font-size: 28px;
  }
  
  .section__subtitle {
    font-size: 16px;
  }
  
  .feature_intro_subtitle {
    font-size: 1rem;
    margin: 0.3rem 0 1rem;
  }
  
  /* CTA */
  .cta_buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta_container {
    padding: 0 20px;
  }
  
  .cta_text {
    font-size: 22px;
  }
  
  /* ポップアップ */
  .popup__content {
    width: 90%;
    padding: 20px;
  }
  
  .popup__table {
    font-size: 14px;
  }
  
  .popup__table th, 
  .popup__table td {
    padding: 8px 10px;
  }
}

@media (max-width: var(--breakpoint-xs)) {
  /* CTA */
  .cta_button {
    padding: 20px 30px;
  }
  
  .cta_text {
    font-size: 18px;
  }
  
  /* ポップアップ */
  .popup__content {
    width: 95%;
    padding: 15px;
  }
  
  .popup__heading {
    font-size: 18px;
  }
  
  .popup__table {
    font-size: 12px;
  }
  
  .popup__notes-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 780px) {
  .section__title {
    font-size: 2.2em;
  }  

  .section__subtitle {
    font-size: 1.4em;
  }

  .heading_container, .feature_heading_container {
    margin-bottom: 140px;
  }

  .cta_container {
    max-width: 680px;
    transform: translateY(-10%);
  }

  .cta_buttons {
    flex-direction: column;
    gap: 40px;
    padding: 10px;
  }

  .section__inner_white {
    padding: 8rem 4vw 0;
  }

  .popup__content {
    width: 90%;
    max-width: 800px;
  }

  @media screen and (max-width: 780px) {
    /* テーブルを縦並びに変更 */
    .popup__table {
      width: 100%;
    }
    
    .popup__table, 
    .popup__table thead, 
    .popup__table tbody, 
    .popup__table th, 
    .popup__table td, 
    .popup__table tr {
      display: block;
    }
    
    .popup__table thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    
    .popup__table tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
    }
    
    .popup__table td {
      border: none;
      border-bottom: 1px solid #ddd;
      position: relative;
      padding-left: 50%;
      text-align: right;
    }
    
    .popup__table td:before {
      position: absolute;
      top: 12px;
      left: 12px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      text-align: left;
      font-weight: bold;
      content: attr(data-label);
    }
    
    /* 1つ目のテーブル */
    .popup__table:nth-of-type(1) td:nth-of-type(1):before { content: "当日・無連絡"; }
    .popup__table:nth-of-type(1) td:nth-of-type(2):before { content: "前日・2日前"; }
    .popup__table:nth-of-type(1) td:nth-of-type(3):before { content: "３日〜１週間前"; }
    .popup__table:nth-of-type(1) td:nth-of-type(4):before { content: "１ヶ月前"; }
    .popup__table:nth-of-type(1) td:nth-of-type(5):before { content: "２ヶ月前"; }
    
    /* 2つ目のテーブル */
    .popup__table:nth-of-type(2) td:nth-of-type(1):before { content: "当日・無連絡"; }
    .popup__table:nth-of-type(2) td:nth-of-type(2):before { content: "前日・2日前"; }
    .popup__table:nth-of-type(2) td:nth-of-type(3):before { content: "３日〜１週間前"; }
    .popup__table:nth-of-type(2) td:nth-of-type(4):before { content: "１ヶ月前"; }
    .popup__table:nth-of-type(2) td:nth-of-type(5):before { content: "３ヶ月前"; }
    .popup__table:nth-of-type(2) td:nth-of-type(6):before { content: "６ヶ月前"; }
  }  
}


@media screen and (max-width: 480px) {
  .cta_container {
    max-width: 460px;
  }

  .cta_buttons {
    gap: 20px;
  }

  .cta_button {
    padding: 20px;
  }

  .cta_text {
    font-size: 1.4em;
  }
}