@charset "utf-8";

/* ====== 初診の方へエリア ====== */
.first {
  text-align: center;
  margin: 5% auto;
}

.first-text p {
  margin-top: 3%;
  line-height: 2.5;
  @media (width <= 800px) {
    font-size: 14px;
  }
}

.first-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.first-text-grid h3 {
  width: 300px;
  margin-top: 8%;
  margin-left: 20%;
  line-height: 2.5;
  letter-spacing: 0.2em;
  border-radius: 30px;
  color: #333;
  text-align: center;
  background: #c16479;
  @media (width <= 800px) {
    margin-top: 30%;
    width: 250px;
    font-size: 16px;
    padding: 0 0.1em;
  }
}

.first-text-grid p {
  font-size: 14px;
  margin-top: 1%;
  margin-left: 2%;
  @media (width <= 800px) {
    font-size: 12px;
  }
}

.pdf::after {
  content: ""; /*何も入れない*/
  display: inline-block;
  width: 24px; /*画像の幅*/
  height: 24px; /*画像の高さ*/
  background-image: url(../images/first.images/pdf.svg);
  background-size: contain;
  vertical-align: middle;
}

.window::after {
  content: ""; /*何も入れない*/
  display: inline-block;
  width: 24px; /*画像の幅*/
  height: 24px; /*画像の高さ*/
  background-image: url(../images/first.images/window.svg);
  background-size: contain;
  vertical-align: middle;
}

.first-text-grid h3:hover {
  transform: scale(1.1); /* 拡大 */
  transition: 0.1s;
  font-weight: 500;
  opacity: 0.6;
}

/* ====== ご来院の前にエリア ====== */

.initial-before {
  display: grid;
  grid-template-columns: 60% 40%;
  @media (width <= 800px) {
    grid-template-columns: 1fr;
    height: 80%;
  }
}

.initial-grid01 p:first-child {
  content: "";
  text-align: left;
  margin-top: 10%;
  font-weight: 700;
  text-decoration: underline 1px solid #333;
  @media (width <= 800px) {
    margin-left: 10%;
  }
}

.initial-grid01 p {
  margin-top: 10%;
  margin-bottom: 5%;
  text-align: left;
  @media (width <= 800px) {
    margin-left: 10%;
  }
}

/* ====== リストの左揃え　親 ====== */
.initial-grid01 {
  text-align: center;
  @media (width <= 800px) {
    margin-left: 10%;
  }
}
/* ====== リストの左揃え　子 ====== */
.initial-grid01 ul {
  display: inline-block;
  line-height: 2.5;
  font-size: 15px;
  text-align-last: left;
  @media (width <= 800px) {
    font-size: 14px;
  }
}

.initial-before img {
  height: 50%;
  aspect-ratio: 5 / 4;
  margin-top: 80%;
  @media (width <= 800px) {
    margin-top: 0;
    margin-left: 50%;
    margin-bottom: 0%;
    height: 250px;
  }
}

.initial-grid01-last-txt {
  font-size: 16px;
  margin-left: 8%;
  @media (width <= 800px) {
    font-size: 14px;
    margin-left: 20%;
  }
}

/* ====== ご来院の際には　エリア ====== */

.initial-when {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 10%;
  @media (width <= 800px) {
    grid-template-columns: 1fr;
    margin-top: 0;
    margin-bottom: 0;
    gap: 0;
  }
}

.initial-when img {
  height: 442px;
  @media (width <= 800px) {
    margin-top: -10%;
    margin-left: 10%;
    height: 250px;
    /* background-color: #fff; */
  }
}

.initial-text-when {
  content: "";
  text-align: left;
  margin-top: 10%;
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline 1px solid #333;
  @media (width <= 800px) {
    display: block;
    margin-left: 10%;
  }
}

.initial-grid02 p {
  margin-bottom: 5%;
  line-height: 2.5;
  text-align: left;
  @media (width <= 800px) {
    margin-left: 10%;
    line-height: 2;
  }
}

/* ====== ①診察室～ の左揃え　 ====== */
.initial-grid02 p:nth-child(2) {
  line-height: 2.5;
  font-size: 16px;
  text-align-last: left;
  @media (width <= 800px) {
    margin-left: 10%;
  }
}

.initial-grid02 {
  max-width: 90%;
  @media (width <= 800px) {
    margin-left: 10%;
    font-size: 14px;
    /* background-color: #fff; */
  }
}
/* ====== ②その子を～ の左揃え　 ====== */
.initial-grid02 p:nth-child(5) {
  line-height: 2.5;
  font-size: 16px;
  text-align-last: left;
}

.break-word {
  max-width: 90%;
  font-size: 14px;
  text-align-last: left;
  margin-left: 5%;
  /* background-color: #fff; */
}

.initial-lasttext {
  margin-top: 10%;
  line-height: 2.5;
  font-size: 16px;
  text-align-last: center;
  @media (width <= 800px) {
    font-size: 14px;
    margin-top: 18%;
  }
  /* background-color: #fff; */
}

.initial-lasttext p:last-child {
  margin-top: 5%;
  line-height: 2.5;
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline 1px solid #333;
  text-align-last: center;
  @media (width <= 800px) {
    font-size: 18px;
  }
  /* background-color: #fff; */
}

/* ====== よくある質問 エリア ====== */

.qa-h2 {
  width: 450px;
  /* letter-spacing: 1.5em; */
  @media (width <= 800px) {
    width: 200px;
    margin-left: 38%;
    padding-left: 1%;
    letter-spacing: 0.5em;
    font-size: 18px;
  }
}

/* ====== アコーディオンエリア ====== */

/*============ アコーディオン 上 width =============*/
.s_01 .accordion_one {
  max-width: 900px;
  margin: 0 auto;
  @media (width <= 800px) {
    max-width: 600px;
  }
}

/* ========= アコーディオン 上 枠 =========== */
.s_01 .accordion_one .accordion_header {
  margin-top: 5%;
  box-shadow: 6px 6px 10px 0px rgba(34, 34, 34, 0.4);
  color: #333;
  font-size: 24px;
  font-weight: 600;
  padding: 20px 8%;
  text-align: left;
  border: 1px solid #333;
  border-radius: 10px;
  position: relative;
  z-index: +1;
  cursor: pointer;
  transition-duration: 0.2s;
  @media (width <= 800px) {
    font-size: 16px;
    padding: 15px 60px 15px 15px;
  }
}

/* ====== アコーディオン 上　txt ====== */
.s_01 .accordion_one .accordion_header span {
  display: inline-block;
  margin-bottom: 2%;
  padding-left: 3%;
  margin-top: 2%;
  font-size: 20px;
  @media (width <= 800px) {
    font-size: 16px;
  }
}

/* ====== アコーディオン 上　face ====== */
.s_01 .accordion_one .accordion_header::before {
  content: ""; /*何も入れない*/
  display: inline-block;
  width: 50px; /*画像の幅*/
  height: 50px; /*画像の高さ*/
  background-image: url(../images/first.images/face-surprise.svg);
  background-size: contain;
  vertical-align: middle;
  @media (width <= 800px) {
    width: 40px; /*画像の幅*/
    height: 40px; /*画像の高さ*/
  }
}

.s_01 .accordion_one .accordion_header:hover {
  background-color: #fff;
  opacity: 0.8;
}

/* ====== アコーディオン 横　四角 ====== */
.s_01 .accordion_one .accordion_header .i_box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 5%;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  margin-top: -20px;
  box-sizing: border-box;
  border-radius: 2px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  transform-origin: center center;
  transition-duration: 0.2s;
  @media (width <= 800px) {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }
}

/* ====== アコーディオン 横　四角の中　プラス ====== */
.s_01 .accordion_one .accordion_header .i_box .one_i {
  display: block;
  width: 18px;
  height: 18px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  transform-origin: center center;
  transition-duration: 0.2s;
  position: relative;
}

/* ====== アコーディオン 横　四角の中　動き ====== */
.s_01 .accordion_one .accordion_header.open .i_box {
  -webkit-transform: rotate(-360deg);
  transform: rotate(-360deg);
}

/* ====== アコーディオン 横　四角の中　表示 ====== */
.s_01 .accordion_one .accordion_header .i_box .one_i:before,
.s_01 .accordion_one .accordion_header .i_box .one_i:after {
  display: flex;
  content: "";
  background-color: #333;
  border-radius: 10px;
  width: 18px;
  height: 4px;
  position: absolute;
  top: 7px;
  left: 0;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  transform-origin: center center;
}

/* ====== アコーディオン 横　四角の中　横棒 ====== */
.s_01 .accordion_one .accordion_header .i_box .one_i:before {
  width: 4px;
  height: 18px;
  top: 0;
  left: 7px;
}

/* ====== アコーディオン 横　四角の中　－になるよう縦消す ====== */
.s_01 .accordion_one .accordion_header.open .i_box .one_i:before {
  content: none;
}

/* ====== アコーディオン 横　四角の中　－になるよう角度調整 ====== */
.s_01 .accordion_one .accordion_header.open .i_box .one_i:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* ====== アコーディオン 下　枠 ====== */
.s_01 .accordion_one .accordion_inner {
  display: none;
  padding: 30px 30px;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  border-radius: 10px;
  box-shadow: 6px 6px 10px 0px rgba(34, 34, 34, 0.4);
  box-sizing: border-box;
}

/* ====== アコーディオン 下　枠hight ====== */
.s_01 .accordion_one .accordion_inner .box_one {
  height: 180px;
  margin-bottom: 5%;
  @media (width <= 800px) {
    height: 100px;
  }
}

/* ====== アコーディオン 下　txt ====== */
.s_01 .accordion_one .accordion_inner p.txt_a_ac {
  max-width: 760px;
  text-align: left;
  height: 50px;
  padding-right: 50px;
  line-height: 2.5;
  font-size: 16px;
  @media (width <= 800px) {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* ====== アコーディオン 下　face ====== */
.smile {
  width: 50px; /*画像の幅*/
  height: 50px; /*画像の高さ*/
  background-image: url(../images/first.images/face-smile.svg);
  margin-top: -6%;
  margin-left: 90%;
  @media (width <= 800px) {
    width: 40px; /*画像の幅*/
    height: 40px; /*画像の高さ*/
    background-size: cover;
    margin-top: -10%;
  }
}


