/* ヒーローエリア */
.hero {
  position: relative;
  z-index: 0;
  top: 30px;
  margin-bottom: 40px;
}
.hero_png {
  text-align: center;
}
.hero_png img {
  width: 95%;
  border-radius: 50px;
  opacity: 0.4;
}
.hero_txt {
  position: absolute;
  bottom: 40%;
  left: 10vw;
}
.hero_txt_2 {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
}
.hero_txt p {
  font-size: 2vw;
  font-weight: 400;
  text-shadow: 0 0 20px #fff;
}
.hero_txt_2 p {
  font-size: 4vw;
  font-weight: 400;
  text-shadow: 0 0 20px #fff;
}
.hero_txt p span {
  font-size: 3vw;
}

.hero_button {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 7vw;
  bottom: 40px;
}

.hero_button .button_icon_txt {
  width: 10rem;
}

/* ボタンのスタイル */
.button_icon_txt {
  display: flex;
  gap: 8px;
  align-items: center;
  /* width: 100%; */
  max-width: 15rem;
  height: 3rem;
  margin-top: 20px;
  padding: 8px 8px 8px 8px;
  font-family: sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  justify-content: center;
  overflow-wrap: anywhere; /* 改行位置について */
  background-color: #219ebc;
  border-radius: 1.5rem; /* (buttonの高さ / 2) の値 */
}
.button_icon_txt:hover {
  text-decoration: none;
  color: #fff;
}
@media (any-hover: hover) {
  .button_icon_txt {
    transition: background-color 0.2s;
  }
  .button_icon_txt:hover {
    background-color: #1a7d96;
  }
}
/* お知らせエリア */
.information {
  margin: 70px auto 0 auto;
  text-align: center;
  position: relative;
  width: 70%;
  min-width: 320px;
  max-width: 960px;
  padding: 12px;
  background-color: #8ecae620;
}
.info_img {
  height: 3rem;
  opacity: 0.5;
}
.info_txt {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  font-size: 1.5rem;
}
.info_news {
  height: 240px;
  overflow-y: scroll;
}
.news {
  margin-left: 2rem;
  margin-right: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
}
.news dd {
  padding-left: 24px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  text-align: start;
  border-bottom: solid 1px #8ecae680;
}

/* 診療案内 */
.medical_info {
  margin: 0;
}
.medical_info:hover .info_img {
  opacity: 80;
}
.medical_info_countainer {
  text-align: center;
  position: relative;
  margin: 50px auto;
  width: 80%;
  min-width: 320px;
  max-width: 1080px;
  padding: 12px;
}
.medical_info_grid {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
}

.medical_info_con {
  display: block;
  padding: 16px;
  border: solid 2px #1a7d96;
  /* box-shadow: 4px 4px 4px #023047; */
  border-radius: 50px;
  /* background-color: #fff; */
  background-image: url(../img/haikei_3.png);
  background-size: cover;
  background-position: center;
}
.naika {
  background-color: #21bc4820;
}
.naika:hover {
  background-color: #21bc4840;
}
.geka {
  background-color: #219ebc20;
}
.geka:hover {
  background-color: #219ebc40;
}
.syoukaki {
  background-color: #e9289f20;
}
.syoukaki:hover {
  background-color: #e9289f40;
}
.fever,
.healthcheck,
.vaccine {
  background-color: #fb850010;
}
.fever:hover,
.vaccine:hover,
.healthcheck:hover {
  background-color: #fb850030;
}
.medical_info_con dd {
  text-align: start;
  margin: 8px 0;
}
.medical_info_con ul {
  list-style: circle;
}

.link-card {
  text-decoration: none;
  color: #212529;
}
.link-card:hover {
  text-decoration: none;
  color: #212529;
}
/* ごあいさつ */
.doctor {
  margin: 0;
  padding: 100px;
  width: 100%;
  background-color: #8ecae6;
}
.doctor_txt {
  margin: 0 auto;
  padding: 50px;
  display: grid;
  grid-template-columns: auto 1fr;
  width: 85%;
  max-width: 1080px;
  background-color: #fff;
}
.doctor dt {
  writing-mode: vertical-rl;
  font-size: 2rem;
  text-align: center;
  padding-right: 36px;
}

/* 設備紹介 */
.img_scroll {
  margin: 50px 0;
}
.gallery_container {
  width: 100%;
  overflow: hidden;
}
.gallery {
  display: flex;
  white-space: nowrap;
  animation: slide 60s linear infinite;
  gap: 36px;
}
.gallery_item {
  display: flex;
  flex-direction: column;
  width: 240px;
  height: 220px;
  flex-shrink: 0;
}
.gallery_item img {
  width: 240px;
  height: 180px;
  border-radius: 20%;
}
.gallery_item p {
  margin: 10px 0 0;
  padding: 0 10px;
  text-align: center;
  white-space: normal;
}
.gallery:hover {
  animation-play-state: paused;
}

/* アクセス */
.access {
  margin: 30px auto 0 auto;
  text-align: center;
  position: relative;
  width: 100%;
  min-width: 320px;
  padding: 12px;
  background-color: #023047;
}
.access_img {
  height: 3rem;
  opacity: 0.5;
}
.access_txt {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  margin: 0 auto;
  font-size: 1.5rem;
  color: #fff;
}
.map {
  margin-top: 20px;
}
.access li {
  list-style: none;
  text-align: start;
  margin-top: 20px;
  padding: 24px 12px;
  background-color: #ffffff;
  border-radius: 20px;
}
footer {
  text-align: center;
  background-color: #023047;
  color: #fff;
  padding: 12px;
}

/*来院される方へ*/
.request {
  background-color: #ffb80330;
  padding: 20px;
  margin: 30px auto;
  border-left: 5px solid #fb8500;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 1080px;
  width: 95%;
}
.request dt {
  font-size: 1.4rem;
  font-weight: bold;
  color: #343a40;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ffc107;
  display: block;
}
.request dd {
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  margin-bottom: 10px;
}
.request dd {
  padding-left: 0;
}
.request dd span {
  display: block;
  padding-left: 2em;
  font-size: 0.95rem;
  color: #6c757d;
}
