@charset "UTF-8";

/* =========================================
   Teaser page specific styles
   - 共通パーツ (header / footer 等) は common.css
   - このファイルは teaser.html 固有のスタイルのみ
   ========================================= */


/* =========================================
   KV : Section2_KV (Node ID: 3Rqay)
   ========================================= */
.kv {
  display: flex;
  width: 100%;
  height: 668px;
  overflow: hidden;
}

/* ---------- Left: text area ---------- */
.kv__text {
  position: relative;
  width: 41%; /* 587 / 1440 */
  flex-shrink: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)),
    url('../images/kv-text-bg.png') center/cover no-repeat,
    #F5F5F5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  overflow: hidden;
  container-type: size; /* COMMING SOON の cqh 計算用 */
}

/* COMMING SOON 縦書き装飾
   font-size は KV エリアの高さ (cqh) に追従。
   "COMMING SOON" の縦の総高さがエリア高さにぴったり収まるように設定。 */
.kv__coming-soon {
  position: absolute;
  top: 50%;
  left: 0;
  /* line-box の左余白(font 由来)を相殺して、文字の左端が画面端にぴったり付くように */
  transform: translateY(-50%) translateX(-0.18em);
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-en-cap);
  font-size: 14.5cqh;
  font-weight: 600;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, .4);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* クリニック名 - 1440時に44px → 3.06vw */
.kv__clinic-name {
  position: relative;
  margin: 0;
  font-family: var(--font-jp-serif);
  font-size: clamp(20px, 3.06vw, 44px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

/* 日付 + 開院 */
.kv__date-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
/* 日付 - 1440時に113px → 7.85vw */
.kv__date {
  margin: 0;
  font-family: var(--font-en-num);
  font-size: clamp(48px, 7.85vw, 113px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.01em;
}
/* 開院 - 1440時に53px → 3.68vw */
.kv__opening {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-jp-serif);
  font-size: clamp(24px, 3.68vw, 53px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
  padding-bottom: 0.41em; /* 日付下端と揃える(53pxの時22px相当) */
}

/* ---------- Right: photo ---------- */
.kv__visual {
  flex: 1;
  height: 100%;
  overflow: hidden;
}
.kv__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* デザインのトリミングに合わせて中央のトンネル部分にズーム */
  transform: scale(1.7);
  transform-origin: 50% center;
}


/* =========================================
   KV : Tab (820 - 1080)
   ========================================= */
@media (max-width: 1080px) {
  .kv {
    height: 520px;
  }
  .kv__text {
    padding: 0 24px;
    gap: 20px;
  }
}


/* =========================================
   KV : narrow Tab (768 - 819) — 縦積みに切替
   ========================================= */
@media (max-width: 819px) {
  .kv {
    flex-direction: column-reverse;
    height: auto;
  }
  .kv__text {
    width: 100%;
    height: fit-content;
    padding-top: 30px;
    padding-bottom: 30px;
    container-type: normal; /* fit-content に切り替えるため size コンテナ解除 */
  }
  .kv__visual {
    width: 100%;
    height: 280px;
  }
  /* COMMING SOON: 横書き + 下部 absolute 配置(画面幅いっぱい) */
  .kv__coming-soon {
    position: absolute;
    top: auto;
    /* line-box の descender 分だけ下にずらして、文字下端をコンテナ底に揃える */
    bottom: -0.25em;
    left: 0;
    right: 0;
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 14vw;
  }
  /* 他のテキストを大きめにオーバーライド */
  .kv__clinic-name {
    font-size: clamp(26px, 4.5vw, 44px);
  }
  .kv__date {
    font-size: clamp(60px, 11vw, 113px);
  }
  .kv__opening {
    font-size: clamp(30px, 5.5vw, 53px);
  }
}


/* =========================================
   KV : SP (〜 767)
   ========================================= */
@media (max-width: 767px) {
  .kv__text {
    padding-top: 36px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 14px;
  }
  .kv__visual {
    height: 220px;
  }
}


/* =========================================
   ACCESS section (Node ID: GKZva)
   ========================================= */
.access {
  background: var(--color-white);
  padding: 160px 0;
}
.access__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Title with gradient underline ---------- */
.access__title-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 16px;
}
.access__title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    var(--color-primary) 0%,
    var(--color-primary) 5%,
    #E0E0E0 5%,
    #E0E0E0 100%);
}

/* SectionTitle/Horizontal */
.section-title-h {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-title-h__en {
  margin: 0;
  font-family: var(--font-en-decor);
  font-size: clamp(70px, 5.55vw, 80px);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}
.section-title-h__jp {
  margin: 0;
  padding-bottom: 5px;
  font-family: var(--font-jp-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* ---------- Content layout ---------- */
.access__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}
.access__info {
  width: fit-content;
  flex-shrink: 0;
}
.access__map {
  flex: 1;
  min-width: 0;
  max-width: 570px;
}

/* ---------- Info list ---------- */
.access-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.access-info-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.access-info-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px; /* テキスト1行目の中央に視覚的に揃える */
  color: var(--color-meta);
  display: inline-flex;
}
.access-info-list__icon svg {
  width: 100%;
  height: 100%;
}
.access-info-list__text {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.5;
}

/* ---------- Map (Google Maps embed) ---------- */
.access__map-iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}


/* =========================================
   ACCESS : Tab (820 - 1080)
   ========================================= */
@media (max-width: 1080px) {
  .access {
    padding: 120px 0;
  }
  .access__content {
    gap: 32px;
  }
}


/* =========================================
   ACCESS : narrow Tab (768 - 819) — 縦積み
   ========================================= */
@media (max-width: 819px) {
  .access {
    padding: 80px 0;
  }
  .access__content {
    flex-direction: column;
    gap: 32px;
  }
  .access__info {
    width: 100%;
  }
  .access__map {
    width: 100%;
    max-width: none;
  }
  .section-title-h__en {
    font-size: clamp(50px, 5.55vw, 80px);
  }
}


/* =========================================
   ACCESS : SP (〜 767)
   ========================================= */
@media (max-width: 767px) {
  .access {
    padding: 60px 0;
  }
  .access__inner {
    gap: 20px;
  }
  .section-title-h {
    gap: 12px;
  }
  .section-title-h__jp {
    font-size: 13px;
    padding-bottom: 2px;
  }
  .access-info-list__text {
    font-size: 14px;
  }
  .access__map-iframe {
    height: 240px;
  }
}
