/* アクセス見出しと医院名の間隔調整：スマートフォンのみ */
@media screen and (max-width: 620px) {
  #access > h2 {
    margin-bottom: 6px;
  }

  #access > .access-grid {
    margin-top: 0;
  }

  #access > .access-grid > div:first-child > h3 {
    margin-top: 0;
  }
}


/* HTML内から移動：ヘルペス注意事項ボックス */
.herpes-alert {
    margin: 18px 0 8px;
    padding: 18px 20px;
    border: 2px solid #b94b55;
    border-left: 6px solid #b94b55;
    border-radius: 8px;
    background: #fff8f7;
    color: #292929;
    line-height: 1.85;
  }
  .herpes-alert h4 {
    margin: 0 0 10px;
    color: #9f303b;
    font-size: 18px;
    font-weight: 700;
  }
  .herpes-alert p { margin: 8px 0; }
  .herpes-alert ul { margin: 8px 0; padding-left: 1.5em; }
  .herpes-alert li { margin: 6px 0; }
  .herpes-alert strong { color: #9f303b; }
  .herpes-alert .herpes-alert-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e7c5c7;
    font-size: 14px;
  }
  @media (max-width: 600px) {
    .herpes-alert { padding: 14px; }
    .herpes-alert h4 { font-size: 17px; }
  }

/* HTML内から移動：施術の流れ・写真レイアウト */
/* 施術の流れ：参考画像に合わせたテキスト＋写真の2カラム */
  .flow-photo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 34px;
    align-items: center;
    max-width: 1080px;
    margin: 30px auto 0;
  }
  .flow-photo-layout .flow-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
  }
  .flow-photo-layout .flow-list > div {
    min-width: 0;
  }
  .flow-treatment-photo {
    margin: 0;
    width: 100%;
  }
  .flow-treatment-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
  }
  .flow-treatment-photo figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    opacity: .82;
  }
  @media (max-width: 760px) {
    .flow-photo-layout {
      grid-template-columns: 1fr;
      gap: 24px;
      margin-top: 22px;
    }
    .flow-treatment-photo {
      max-width: 520px;
      margin: 0 auto;
    }
    .flow-treatment-photo img {
      max-height: none;
      border-radius: 14px;
    }
  }

/* タブレット表示：PC版ファーストビューを構図ごと縮小 */
@media screen and (min-width: 621px) and (max-width: 1000px) {
  /* PC版と同じ左右配置・画像位置を保ち、画面幅に合わせて縮小 */
  .hero {
    min-height: clamp(260px, 30vw, 480px);
  }

  .hero-image {
    left: 10%;
    background-position: right center;
    background-size: auto 100%;
  }

  .hero-inner {
    width: 60%;
    max-width: 850px;
    padding: clamp(18px, 3vw, 48px) 0 clamp(18px, 3vw, 48px) 6.875vw;
  }

  .eyebrow {
    margin-bottom: clamp(8px, 1vw, 16px);
    font-size: clamp(11px, 1.18vw, 17px);
  }

  .hero h1 {
    font-size: clamp(22px, 3.6vw, 52px);
    line-height: 1.4;
  }

  .hero-lead {
    margin: clamp(8px, 1.1vw, 16px) 0 clamp(9px, 1.25vw, 18px);
    font-size: clamp(15px, 1.8vw, 26px);
  }

  .counseling-note {
    margin-top: clamp(6px, .7vw, 10px);
    font-size: clamp(11px, .97vw, 14px);
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      #11100e 0%,
      #11100e 19%,
      rgba(17,16,14,.72) 27%,
      rgba(17,16,14,.38) 36%,
      rgba(17,16,14,.10) 47%,
      rgba(17,16,14,0) 58%
    );
  }

  /* アクセス欄：住所と地図を縦並びにして地図の横切れを防止 */
  #access > .access-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #access > .access-grid > div {
    min-width: 0;
    width: 100%;
  }

  #access > .access-grid .map-placeholder {
    width: 100%;
    min-width: 0;
  }

  #access > .access-grid .map-placeholder > a {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #access > .access-grid .map-placeholder img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 270px;
    object-fit: contain;
  }
}

/* 無料カウンセリング見出し：スマートフォンのみ左寄せ（PCは中央のまま） */
@media screen and (max-width: 620px) {
  #contact > .section-kicker,
  #contact > h2 {
    text-align: left;
  }
}
