/* --------------------------------------------------
   【白い大きなカード本体】（ヘッダー下〜フッター直前まで）
-------------------------------------------------- */
.intro_card {
  background-color: #ffffff;
  width: 52.6rem;
  /* カードの幅 */
  max-width: 100%;
  margin: 0 auto -0.1rem auto;
  /* 上：丸ロゴの下に重ねる / 下：フッターとの余白 */

  /* 下側の余白 */
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* 写真の上の角をカードに合わせて丸める */

  font-family: "M PLUS Rounded 1c", sans-serif;
  flex-shrink: 0;
}

.photo_wrapper {
  max-width: 100%;
  margin-bottom: 3rem;
}

.photo_container {
  width: 100%;
  aspect-ratio: 526 / 350;
  background-image: url("../img/outside.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.responsive_only {
  display: none;
}

/* 外観の画像 */
.exterior_img {
  width: 52.6rem;
  height: auto;
  display: block;
}

/* りんごのロゴアイコン */
.intro_icon {
  width: 6.1rem;
  height: auto;
  display: block;
}

.intro_title_wrap {
  display: flex;
  /* justify-content: center; */
  align-items: center;
  gap: 3rem;
  padding: 5rem 3rem 4rem 3rem;
}

/* 「医院・院長の紹介」 */
.intro_main_title {
  font-size: 3.6rem;
  color: #4a3828;
  /* こげ茶色 */
}

/* 「Introduction」 */
.intro_sub_title {
  font-size: 1.6rem;
  font-family: "Roboto Mono", sans-serif;
  font-weight: bold;
  color: #2db34a;
  /* グリーン */
  margin: 0.4rem 0 0 0;
  line-height: 1;
}

/* --------------------------------------------------
   【3 & 4. テキストエリア】
-------------------------------------------------- */
/* キャッチコピー（赤茶色） */
.intro_catchphrase {
  font-size: 2.4rem;
  font-weight: bold;
  color: #c84027;
  line-height: 1.6;
  padding: 0 3.5rem;
  margin-top: 0;
  margin-bottom: 2.4rem;
}

.intro_catchphrase_br {
  display: none;
}

.intro_description_br {
  display: none;
}

/* 本文 */
.intro_description {
  font-size: 2rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.8;
  padding: 0 3.5rem;
  margin: 0;
}

.intro_history {
  width: 100%;
  height: 40rem;
  background-image: url("../img/intro_people.png");
  background-size: 25rem;
  background-repeat: no-repeat;
  background-position: right 1.2rem top 1.5rem;
  padding: 0 3.5rem;
}

/*  院長の経歴　タイトル*/
.intro_history_title {
  font-size: 3rem;
  color: #cd4630;
}

/* カムカム歯科クリニック　院長　テキスト */
.intro_history_position {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 3;
}

/* カムカム歯科クリニックの後のスペース */
.intro_history_position_item {
  margin-left: 2rem;
}

/* 名前 */
.intro_history_name {
  font-size: 2.4rem;
}

/* 名前の間のスペース */
.intro_history_name_item {
  margin-left: 1.5rem;
}

/* 年表・経歴　囲い */
.intro_history_item {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

/* 年 */
.intro_history_year {
  font-size: 1.6rem;
  font-weight: bold;
}

/* 経歴 */
.intro_history_detail {
  font-size: 1.6rem;
  font-weight: bold;
}

.intro_history_detail_2 {
  font-size: 1.6rem;
  font-weight: bold;
  -webkit-text-stroke: 0.15rem #ffffff;
  /* 線の太さと色 */
  paint-order: stroke fill;
  /* 縁取りが文字の内側を潰さないように設定 */

}

.intro_facility {
  padding: 0 3.3rem;
}

.intro_facility_title {
  font-size: 3rem;
  color: #cd4630;
}

.intro_facility_list {
  display: grid;
  column-gap: 2rem;
  /* 左右のカード間隔 */
  row-gap: 3rem;
  /* 上下のカード間隔 */
  margin-top: 3rem;
}

.intro_facility_item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 画像の上線（緑） */
.intro_facility_img.is-green {
  border-top: 0.4rem solid #2db34a;
  /* グリーン */
}

/* 画像の上線（オレンジ） */
.intro_facility_img.is-orange {
  border-top: 0.4rem solid #f39800;
  /* オレンジ */
}

.intro_facility_img {
  width: 100%;
  max-width: 100%;
  /* width: 225px; */
  height: auto;
  box-sizing: border-box;
  /* 4pxのborderを含めた幅計算にする（重要） */
}

.intro_facility_text {
  font-size: 1.7rem;
  margin-top: 3rem;
}

.blank_sp {
  margin: 2rem auto;
}

@media screen and (max-width: 1218px) {
  .photo_container {
    display: flex;
    justify-content: flex-end;
  }

   .responsive_only {
    display: block;
    background-color: #ffca8399;
    border-radius: 2rem 0 0 2rem;
    width: 13.5rem;
    height: auto;
    margin-top: 1.7rem;
    margin-bottom: 6rem;
  }

  .hygiene_container {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .hygiene_container svg,
  .curved_btn_wrapper svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    /* これがあるため、HTMLの width="300" よりもCSSが優先されて綺麗に縮みます */
    height: auto;
    /* これがあるため、HTMLの height="100" を無視して横幅に比例した高さになります */
  }

  .application_container {
    background-image: url("../img/white_teeth.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9rem 8.7rem;
    margin-top: -1rem;
    margin-bottom: 0.5rem;
  }

  .part_time {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
  }

  .recruitment {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
  }

  .blank {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
  }

  .short_time {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
  }

  .telephone_container {
    width: 9.6rem;
    height: 9.6rem;
    border-radius: 50%;
    background-color: #8c4a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: solid 0.3rem #ed6c00;
    background-image: url("../img/color_teeth.png");
    background-size: 5rem 5rem;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 1.3rem auto;
  }

  .phone_call {
    text-align: center;
    text-decoration: none;
    padding-bottom: 1rem;
  }

  .tel_number {
    font-size: 2.1rem;
    font-weight: 600;
    font-family: "Roboto Mono";
    color: white;
  }

}

@media screen and (max-width: 526px) {


   .all_wrapper,
  .access_container {
    width: 100%;
    max-width: 100%;
  }


  /* カード本体と上部画像のレスポンシブ化 */
  .intro_card,
  .photo_wrapper,
  .exterior_img {
    width: 100%;
    max-width: 100%;
  }

  .intro_main_title {
    font-size: 3.3rem;
  }

  .intro_catchphrase {
    font-size: 2.3rem;
  }

  .intro_description {
    font-size: 1.8rem;
  }

  .responsive_only {
    height: 100%;
  }

  .intro_history {
    height: auto;
    /* 高さを自動調整にして文字のはみ出しを防ぐ */
    min-height: 40rem;
    padding: 0 3.5rem;

    /* 背景画像を小さくして右下に移動 */
    background-size: 27rem;
    background-position: right -4rem bottom 2rem;
  }

  .intro_history_detail_2 {
    -webkit-text-stroke: 0.15rem #ffffff;
    /* 線の太さと色 */
    paint-order: stroke fill;
    /* 縁取りが文字の内側を潰さないように設定 */
  }

  .intro_catchphrase_br {
    display: block;
  }

  .intro_description_br {
    display: block;
  }

  .intro_history {
    width: 100%;
    height: 40rem;
    background-image: url("../img/intro_people.png");
    background-size: 25rem;
    background-repeat: no-repeat;
    background-position: right 1.2rem top 1.5rem;
    padding: 0 3.5rem;
  }

    .photo_container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 35rem;
  }

  .responsive_only {
    width: 13.5rem;
    height: auto;
    margin: 0;
    padding: 1rem 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #ffca8399;
    border-radius: 2rem 0 0 2rem;
  }

  .telephone_container {
    flex-shrink: 0;
    margin: 0 auto 1rem;
  }



}

@media screen and (max-width: 415px) {

  .intro_history {
    background-image: url("../img/intro_people.png");
    background-size: 20rem;
    background-position: right 1.2rem top 7rem;
  }


}