/* コンタクトセクション専用スタイル */
.section_contact {
  width: 80vw;
  max-width: 1600px;
  margin: 6vw auto;
  padding: 40px;
  background-color: var(--light-blue);
  color: var(--white);
  border-radius: 20px;
}

.section_contact_container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 50px;
}

.section_contact_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
  max-width: 800px;
  gap: 50px;
}

.section_contact_header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section_contact_header .section_heading {
  font-size: 6rem;
  font-weight: 700;
}

.section_contact_header .section_sub {
  font-size: 1.8rem;
  font-weight: 500;
  padding-top: 1rem;
}

.section_contact_description {
  width: 100%;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
}

/* メソッドスタイル（電話・フォーム） */
.section_contact_methods {
  display: flex;
  flex-direction: column;
  width: 410px;
  gap: 40px;
}

.section_contact_method {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.section_contact_method.phone {
  gap: 15px;
}

.section_contact_method.form {
  gap: 8px;
}

.section_contact_method_header {
  display: flex;
  align-items: center;
  width: 100%;
}

.section_contact_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  padding: 10px;
}

.section_phone_icon {
  width: 90px;
  height: 90px;
  background: url('../img/common/icon_phone.png') no-repeat center;
  background-size: cover;
}

.section_form_icon {
  width: 90px;
  height: 90px;
  background: url('../img/common/icon_mail.png') no-repeat center;
  background-size: cover;
}

.section_contact_method_title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 300px;
}

.section_method_name,
.section_method_description,
.section_contact_hours {
  width: 100%;
  margin: 0;
  color: var(--white);
}
.section_contact_hours {
  width: 370px;
  text-align: center;
}

/* 既存の .section_contact_button スタイルを更新 */
.section_contact_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  padding: 20px 60px;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--light-blue); /* 通常時のボーダー */
  transition: all 0.3s ease;
}

/* 電話番号のリンクスタイルを更新 */
.section_phone_number {
  color: var(--light-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  text-align: center;
}

/* 既存の .section_form_link スタイルを更新 */
.section_form_link {
  color: var(--light-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block; /* リンクがボタン全体をカバーするように */
  width: 100%;
  text-align: center;
}

/* ホバー効果を更新 */
.section_contact_button:hover {
  transform: translateY(-3px); /* 既存の動きを維持 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 既存の影効果を維持 */
  background-color: var(--light-blue); /* 背景色を青に */
  border: 1px solid var(--white); /* ボーダーを白に */
}

/* リンクのホバー効果を追加 */
.section_contact_button:hover .section_form_link {
  color: var(--white); /* テキストを白に */
}

/* 電話番号ボタンのスタイル調整 */
.section_contact_method.phone .section_contact_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  padding: 20px 60px;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--light-blue);
  transition: all 0.3s ease;
}

/* 電話番号ボタンのホバー効果を強制適用 */
.section_contact_method.phone .section_contact_button:hover {
  background-color: var(--light-blue) !important;
  border: 1px solid var(--white) !important;
}

/* 電話番号リンクのホバー効果を強制適用 */
.section_contact_method.phone .section_contact_button:hover .section_phone_number,
.section_contact_button:hover .section_phone_number.righteous_regular {
  color: var(--white) !important; /* テキストを白に強制 */
}.section_form_link {
  color: var(--light-blue);
  text-decoration: none;
}

/* コンタクト情報の補足スタイル */
.section_method_name {
  font-size: 18px;
  letter-spacing: 1px;
}

.section_method_description {
  font-size: 1.6rem;
  font-weight: 600;
}

.section_contact_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section_phone_number,
.section_form_link {
  font-size: 18px;
  font-weight: 600;
}

.section_contact_hours {
  font-size: 1.2rem;
  font-weight: 500;
}

/* レスポンシブ対応 - responsive.cssのブレークポイントに合わせて調整 */

/* 大型ディスプレイ (1280px以下) */
@media screen and (max-width: 1280px) {
  .section_contact_container {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .section_contact_header .section_heading {
    font-size: 5rem;
  }

  .section_contact_info {
    width: 50%;
    max-width: 500px;
}
}

/* タブレット (992px以下) */
@media screen and (max-width: 992px) {
  .section_contact {
    width: 90%;
    padding: 40px 20px;
  }
  
  .section_contact_container {
    flex-direction: column;
    padding: 2vw;
  }
  
  .section_contact_info {
    width: 100%;
    max-width: 100%;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .section_contact_methods {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px
  }

  .section_contact_method_header {
     width: 100%;
  }

  .section_contact_method_title {
  width: 100%;
  }

  .section_contact_method.phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
  }
  
  .section_contact_button {
    width: 100%;
    padding: 20px;
  }
  
  .section_contact_method.phone .section_contact_button {
    width: 100%;
    padding: 20px 40px;
  }

  .section_contact_method.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
  }

  .section_contact_hours {
    width: 100%;
    text-align: center;
  }
}

/* モバイル大 (768px以下) */
@media screen and (max-width: 768px) {
  .section_contact {
    width: auto;
    max-width: 800px;
    padding: 40px 20px;
    margin: 0 4vw;
    margin-bottom: 8vw;
  }
  .section_method_name {
    font-size: 16px;
  }
  
  .section_method_description {
    font-size: 14px;
  }
  
  .section_phone_number,
  .section_form_link {
    font-size: 16px;
  }
}

/* モバイル小 (576px以下) */
@media screen and (max-width: 576px) {
  .section_contact_header .section_heading {
    font-size: 3.6em;
  }

  .section_contact_header .section_sub {
    font-size: 1.6rem;
  }

  .section_method_name {
    font-size: 24px;
  }
  .section_contact_methods {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
     gap: 20px;
     width: 100%;
}
  .section_contact_button {
    width: 100%;
  }
  
  .section_contact_hours {
    width: 100%;
    text-align: center;
  }
}