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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  font-size: 62.5%;
  /* font-size: calc(10 / 1280 * 100vw); */
}

.container {
  display: flex;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  height: auto;
}

main {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.wrap_all {
  display: flex;
  justify-content: center;
  color: #4a3222;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  /* ★ これを追加 */
}

.main_content {
  background-color: #ffffff;
}

/* メインコンテンツ */

.front_container {
  background-image: url("../img/chair.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* max-width: 52.6rem; */
  max-width: 100%;
  height: 36rem;
  width: 100%;
}

.responsive_only {
  display: none;
}

.message_area {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

.message_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  writing-mode: vertical-rl;
  gap: 2rem;
  text-decoration: none;
  text-decoration-line: none;
}

.top_message {
  font-weight: bold;
  font-size: 2rem;
  color: #f8994d;
  letter-spacing: 0.1em;
}

.font_change {
  font-weight: bold;
  font-size: 2.1rem;
  color: #f8994d;
  letter-spacing: 0.1em;
}

.sub_message {
  font-weight: bold;
  font-size: 2.4rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.space_change {
  font-weight: bold;
  font-size: 2.4rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  position: relative;
  top: -0.05rem;
  display: inline-block;
}

.comment_container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 中央は不透明度70%の白、外側に向けて透明になるグラデーション */
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 70%);
  /* 画像の前に「半透明の白（不透明度40%）」を重ねてイラストを薄くする */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("../img/green_teeth.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58.2rem auto;
  margin-top: 6rem;
  width: 100%;
  height: 27.9rem;
}

.comment_item {
  font-weight: bold;
  font-size: 2.8rem;
  text-align: center;
  line-height: 2;
  width: 95%;
  letter-spacing: 0.05em;
  /* 上下左右に3ピクセルの白い輪郭線を作る */
  text-shadow:
    0.3rem 0.3rem 0 #ffffff,
    -0.3rem 0.3rem 0 #ffffff,
    0.3rem 0.3rem 0 #ffffff,
    -0.3rem -0.3rem 0 #ffffff,
    0rem 0.3rem 0 #ffffff,
    0rem -0.3rem 0 #ffffff,
    0.3rem 0rem 0 #ffffff,
    -0.3rem 0rem 0 #ffffff;
}

/* カムカム歯科の特徴 */

.feature {
  background-image:
    url(../img/orange_teeth.png), url(../img/clinic_hallway.png);
  background-size:
    20.2rem 22.4rem,
    44.9rem 55.3rem;
  background-repeat: no-repeat;
  background-position:
    top 6rem right 3rem,
    top center;
  margin: 6rem auto;
  padding-top: 12rem;
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 55.3rem;
  position: relative;
}

.clinic_feature {
  font-size: 3.6rem;
  font-weight: bold;
  text-align: center;
  padding-bottom: 3rem;
}

.private_room {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  margin-top: 7rem;
}

.detail_container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.private_detail {
  font-size: 1.6rem;
  font-weight: bold;
}

.button_container {
  background-color: #ffba60;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto -2.25rem auto;
  border-radius: 10rem;
  width: 23.9rem;
  height: 4.5rem;
  transition: transform 0.3s ease;
}

.button_container:hover {
  background-color: #ed6c00;
}

.button_item {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.1em;
  display: inline-block;
}

.button_item::after {
  content: "▷";
  margin-left: 2rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.button_container:hover .button_item::after {
  transform: translateX(0.5rem);
}

/* お知らせ */

.news_container {
  width: 100%;
  background-image: url("../img/big_teeth.png");
  background-size: 63.4rem 60.6rem;
  background-repeat: no-repeat;
  background-position: right -32rem top 2rem;
  padding: 5rem 0 20rem 0;
}

.news_title_container {
  display: flex;
  width: 85%;
  margin: 0 auto;
}

.photo_apple_container3 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo_apple_item3 {
  width: 5.1rem;
  height: 4.5rem;
}

.news_top_container {
  margin-left: 1.5rem;
}

.news {
  font-size: 3.6rem;
  font-weight: bold;
}

.news_en {
  font-size: 1.6rem;
  font-weight: bold;
  color: #1ca63d;
}

.date_container {
  width: 85%;
  margin: 0 auto;
  height: auto;
}

.date {
  font-size: 2.4rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

.date::after {
  content: "";
  flex: 1;
  height: 0.12rem;
  background-color: #1ca63d;
  margin-left: 1em;
}

.article_title {
  margin: 2rem 0;
  height: auto;
  word-break: break-all;
  overflow-wrap: break-word;
}

.article_title_detail {
  color: #4a3222;
  text-decoration: none;
  font-size: 2.1rem;
  font-weight: bold;
}

.article_container {
  width: 100%;
  gap: 2rem;
}

.article_image {
  width: 40%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.article_item {
  object-fit: cover;
  border-radius: 0.8rem;
  height: auto;
  width: 100%;
  max-width: 100%;
}

.date_text {
  font-size: 2rem;
  font-weight: bold;
  height: auto;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 診療時間 */

.clinic_hour_main {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

.calendar_container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo_calendar {
  width: 3.2rem;
  height: 3.2rem;
}

.hour {
  font-size: 2.4rem;
  font-weight: bold;
  margin-left: 1.5rem;
}

.outside_table {
  display: flex;
  justify-content: center;
  width: 85%;
  margin: 2rem auto;
}

.clinic_hour_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.4rem;
  border-right: solid 0.1rem #4a322280;
  margin-top: 1.5rem;
}

.clock_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.photo_clock {
  display: block;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  max-width: none;
}

.clinic_hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #1ca63d;
  line-height: 1.6rem;
  letter-spacing: 0;
  text-align: center;
}

.clinic_hour span {
  display: block;
  width: 100%;
}

.table_detail {
  border-collapse: collapse;
  text-align: center;
}

.week {
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem 0.7rem;
}

.sunday {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: -0.5rem;
  padding: 0.5rem;
}

.morning {
  border-bottom: 0.1rem solid #4A322280;
}


.time {
  font-size: 1.6rem;
  font-weight: bold;
  /* Roboto Monoが読めなくても強制的にゴシック体（sans-serif）にする↓ */
  font-family: "Roboto Mono", sans-serif;
  padding: 0.5rem;
}

.br_none {
  display: none;
}

.round {
  font-size: 1.8rem;
  color: #1ca63d;
}

.slash {
  font-size: 1.8rem;
  -webkit-text-stroke: 0.1rem #1ca63d;
}

.subject_container {
  display: flex;
  width: 80%;
  margin: 0 auto;
  justify-content: left;
  align-items: center;
}

.subject_container_2nd {
  display: flex;
  width: 80%;
  margin: 0 auto;
  justify-content: left;
  align-items: center;
  margin-top: 1rem;
}

.appointment {
  background-color: #ed6c00;
  border-radius: 0.4rem;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  margin-right: 0.6rem;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.subject {
  background-color: #1ca63d;
  width: 20%;
  border-radius: 0.4rem;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  margin-right: 0.6rem;
  padding: 0.2rem 0.5rem;
  text-align: center;
}

.dental {
  font-size: 1.8rem;
  font-weight: bold;
}

.blank_sp {
  margin: 2rem auto;
}

@media screen and (max-width: 1218px) {
  .front_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: 5rem;
  }

  .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;
  }

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

  .tel_number {
    font-size: 2.1rem;
    font-weight: 600;
    /* Roboto Monoが読めなくても強制的にゴシック体（sans-serif）にする */
    font-family: "Roboto Mono", sans-serif;
    color: white;
  }
}

@media screen and (max-width: 526px) {
  html {
    font-size: 55%;
  }

  .clinic_hour_main {
    width: 95%;
    margin: 0 auto;
    justify-content: center;
  }

  .comment_item {
    font-size: 2.5rem;
  }

  .outside_table {
    width: 95%;
  }

  .photo_clock{
    width: 2rem;
    height: 2rem;
  }

  .time {
    font-size: 1.6rem;
    text-align: center;
    padding: 1rem;
  }

  .week {
    font-size: 1.8rem;
    padding: 0.3rem 0.5rem;
  }

  .subject_container {
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 1rem;
    width: 80%;
  }

  .subject_container_2nd {
    width: 80%;
  }

  .appointment {
    width: auto;
    text-align: center;
    letter-spacing: 0.1em;
  }

  .subject {
    width: 25%;
    text-align: center;
    letter-spacing: 0.2em;
  }

  .clinic_hour_box {
    padding: 2rem;
  }

  .clinic_hour {
    font-size: 1.8rem;
    line-height: 2.2rem;
    margin: 1rem 0 0;
  }

  .hour {
    font-size: 2rem;
    margin-left: 1rem;
  }

  .br_none {
    display: block;
  }

}

@media screen and (max-width: 460px) {
  .subject_container {
    width: 80%;
  }

  .subject_container_2nd {
    width: 80%;
  }

  .appointment {
    width: auto;
  }

  .subject {
    width: 30%;
  }
}

@media screen and (max-width: 440px) {
  .subject_container {
    width: 90%;
  }

  .subject_container_2nd {
    width: 90%;
  }

  .subject {
    width: 25%;
  }
}