/* トップページ専用スタイル */

/* Clinic セクション */
.clinic {
  position: relative;
  padding-block: 60px 80px;
  background-color: #fff;
  background-image: url("/system_panel/uploads/images/point_bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .clinic {
    padding-block: 80px 100px;
  }
}

@media screen and (min-width: 1024px) {
  .clinic {
    padding-block: 115px 120px;
    margin-top: 90px;
  }
}

/* インナー */
.clinic__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .clinic__inner {
    padding-inline: 25px;
  }
}

/* 施設情報＋画像の全体レイアウト */
.clinic__body {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  width: 100%;
  margin-bottom: 100px;
}

.clinic__body:last-child {
  margin-bottom: 0;
}

/* タブレット */
@media screen and (min-width: 769px) {
  .clinic__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 120px;
  }
}

/* PC：カンプ基準 */
@media screen and (min-width: 1200px) {
  .clinic__body {
    grid-template-columns: minmax(0, 550px) minmax(0, 600px);
    justify-content: space-between;
    align-items: start;
    gap: 50px;
    margin-bottom: 150px;
  }
}

/* 左側：医院情報 */
.clinic__info {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* 医院名 */
.clinic__title {
  margin: 0;
  color: #665f53;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.607;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 1024px) {
  .clinic__title {
    font-size: 28px;
    line-height: 45px;
  }
}

/* 医院の説明 */
.clinic__lead {
  margin: 25px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .clinic__lead {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .clinic__lead {
    font-size: 16px;
    line-height: 30px;
  }
}

/* 医院情報の表 */
.clinic__details {
  box-sizing: border-box;
  width: 100%;
  max-width: 550px;
  margin-top: 30px;
}

/* 表の各行 */
.clinic__row {
  display: grid;
  grid-template-columns: minmax(90px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding-block: 20px 15px;
  border-bottom: 1px solid #c0b1a3;
}

@media screen and (min-width: 1200px) {
  .clinic__row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    padding-block: 30px 20px;
  }
}

/* 表の項目名 */
.clinic__label {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .clinic__label {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .clinic__label {
    font-size: 16px;
    line-height: 30px;
  }
}

/* 表の内容 */
.clinic__value {
  min-width: 0;
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .clinic__value {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .clinic__value {
    font-size: 16px;
    line-height: 30px;
  }
}

/* 表の下の説明文 */
.clinic__note {
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .clinic__note {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .clinic__note {
    font-size: 16px;
    line-height: 30px;
  }
}

/* LINEボタン */
.clinic__button-wrap {
  display: flex;
  margin-top: 40px;
}

@media screen and (min-width: 1024px) {
  .clinic__button-wrap {
    margin-top: 57px;
  }
}

/* Clinic・Reservation Guide 共通LINEボタン */
.clinic .contact__button,
.reservation-guide .contact__button {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
  min-height: 60px;
  padding: 10px 55px 10px 125px;
  font-size: 16px;
  text-decoration: none;
}

/* LINEアイコン */
.clinic .contact__button::before,
.reservation-guide .contact__button::before {
  position: absolute;
  top: 50%;
  left: 55px;
  width: 30px;
  height: 30px;
  margin: 0;
  transform: translateY(-50%);
}

/* ボタンのテキスト */
.clinic .contact__button-text,
.reservation-guide .contact__button-text {
  position: static;
  min-width: 0;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

/* 右端の矢印 */
.clinic .contact__button::after,
.reservation-guide .contact__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 24px;
  height: 6px;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: translateY(-70%) skewX(45deg);
  pointer-events: none;
}

/* 予約案内のボタン幅 */
.reservation-guide .contact__button {
  padding: 10px 55px 10px 145px;
}

.reservation-guide .contact__button::before {
  left: 70px;
}

/* LINEボタン SP調整 */
@media screen and (max-width: 550px) {
  .clinic .contact__button,
  .reservation-guide .contact__button {
    width: 100%;
    min-height: 60px;
    padding: 10px 40px 10px 85px;
    font-size: 14px;
  }
  .clinic .contact__button::before,
  .reservation-guide .contact__button::before {
    left: 30px;
    width: 30px;
    height: 30px;
  }
  .clinic .contact__button-text,
  .reservation-guide .contact__button-text {
    font-size: 14px;
    white-space: nowrap;
  }
  .clinic .contact__button::after,
  .reservation-guide .contact__button::after {
    right: 15px;
    width: 20px;
  }
  .reservation-guide .contact__button {
    padding: 10px 40px 10px 85px;
  }
  .reservation-guide .contact__button::before {
    left: 30px;
  }
  .clinic .clinic__button-wrap > .contact__button,
  .reservation-guide .contact__button {
    justify-content: center;
    gap: 20px;
    padding: 10px 40px;
  }
  .clinic .clinic__button-wrap > .contact__button::before,
  .reservation-guide .contact__button::before {
    position: static;
    flex: 0 0 30px;
    transform: none;
  }
  .clinic .clinic__button-wrap .contact__button-text,
  .reservation-guide .contact__button-text {
    flex: 0 0 auto;
    text-align: center;
  }
}

/* 施術拠点と予約案内のボタン内で、アイコンと文字をまとめて中央配置 */

/* 右側：画像・Googleマップ */
.clinic__visual {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  min-width: 0;
}

/* PC：カンプの画像とマップの間隔 */
@media screen and (min-width: 1200px) {
  .clinic__visual {
    gap: 46px;
  }
}

/* 施設画像 */
.clinic__image-wrap {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}

/* 準備中の画像 */
.clinic__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #bdbbbb;
  color: #fff;
  font-size: 20px;
  text-align: center;
}

/* 実際の画像 */
.clinic__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Googleマップ */
.clinic__map {
  box-sizing: border-box;
  width: 100%;
  /* 吹き出しと中央のピンの間に余裕を持たせる */
  height: clamp(450px, 40vw, 550px);
  overflow: hidden;
}

.clinic__map > div {
  width: 100%;
  height: 100%;
}

.clinic__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Reservation Guide */
.reservation-guide {
  padding-block: 70px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .reservation-guide {
    padding-block: 90px;
  }
}

@media screen and (min-width: 1024px) {
  .reservation-guide {
    padding-block: 120px;
  }
}

/* Reservation Guide インナー */
.reservation-guide__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .reservation-guide__inner {
    padding-inline: 25px;
  }
}

/* 枠線付きボックス */
.reservation-guide__box {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 40px 20px 50px;
  border: 1px solid #c0b1a3;
  background-color: #fff;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .reservation-guide__box {
    padding: 50px 60px 60px;
  }
}

@media screen and (min-width: 1024px) {
  .reservation-guide__box {
    padding: 56px 125px 70px;
  }
}

/* タイトル */
.reservation-guide__title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 3px;
  border-bottom: 1px solid #c0b1a3;
  color: #665f53;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.64;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .reservation-guide__title {
    font-size: 23px;
  }
}

@media screen and (min-width: 1024px) {
  .reservation-guide__title {
    font-size: 25px;
    line-height: 41px;
  }
}

/* 説明文 */
.reservation-guide__text {
  margin: 35px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  text-align: center;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .reservation-guide__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .reservation-guide__text {
    font-size: 16px;
    line-height: 30px;
  }
}

/* 1024〜1041pxでも4行を保てるよう、本文の幅を左右10pxずつ広げる */
@media screen and (min-width: 1024px) and (max-width: 1041px) {
  .reservation-guide__text {
    margin-inline: -10px;
  }
}

/* LINEボタン */
.reservation-guide__button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.reservation-guide .contact__button {
  width: 100%;
  max-width: 380px;
  min-height: 60px;
}

/* SPの文章の改行を調整 */
@media screen and (max-width: 768px) {
  .reservation-guide__text {
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }
}

/* 864px以下は説明文を左寄せ */
@media screen and (max-width: 864px) {
  .reservation-guide__text {
    text-align: left;
  }
}
