@charset "UTF-8";

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* ===== カラー ===== */
  --color-bg:          #f6f6f3; /* ベース背景 */
  --color-bg-sub:      #f0f0eb; /* サブ背景（COLUMN） */
  --color-white:       #ffffff;
  --color-text:        #404040; /* 本文テキスト */
  --color-text-dark:   #333333;
  --color-accent:      #f0a276; /* ブランドカラー */
  --color-accent-400:  #f18a61; /* CTAテキスト等 */
  --color-accent-500:  #f4894c; /* グラデ濃色 */
  --color-placeholder: #d9d9d9;
  --color-placeholder-2: #dedede;
  --gradient-reserve:  linear-gradient(11deg, #f4894c 1.37%, #f0a276 70.26%);

  /* ===== フォント ===== */
  --font-serif-jp: "Noto Serif JP", serif;       /* 見出し・リード（明朝） */
  --font-sans-jp:  "Noto Sans JP", sans-serif;   /* 本文（ゴシック） */
  --font-gothic:   "Zen Kaku Gothic New", sans-serif; /* UI */
  --font-en:       "Work Sans", sans-serif;      /* 日付等 欧文 */

  /* ===== レイアウト ===== */
  --header-height: 72px;
  --content-width: 1248px; /* コンテンツ最大幅 */
  --max-width:     1440px; /* サイト全体の最大幅 */
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd, figure {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

@media (hover: hover) {
  a:hover { opacity: 0.7; }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全幅セクション（FV・COLUMN・フッター）は画面いっぱいに表示し、
   内側コンテンツのみ .l-inner で中央寄せする */

/* コンテンツ内側の最大幅（両端に最低24pxのガターを確保） */
.l-inner {
  margin-inline: auto;
  width: min(100% - 48px, var(--content-width));
}

/* ===== ユーティリティ ===== */
/* SP のみ改行（PC・タブレットでは無効） */
.u-br-sp { display: none; }

/* ============================================================
   HEADER
   ============================================================ */
.p-header {
  align-items: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  padding-inline: 24px;
  position: fixed; /* スクロールしても常に上部に固定 */
  top: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  width: 100%;
  z-index: 100;
}

/* p-concept まで来たら背景を付け、ロゴをダークに切り替え */
.p-header.is-scrolled {
  background-color: var(--color-bg);
  border-bottom-color: var(--color-bg);
}

.p-header__logo {
  height: 34px;
}

.p-header__logo-img {
  height: 34px;
  width: auto;
}

.p-header__cta {
  align-items: center;
  background-color: var(--color-accent);
  border-radius: 5px;
  color: var(--color-white);
  display: flex;
  font-family: var(--font-gothic);
  font-size: 1.0625rem; /* 17px */
  font-weight: 500;
  gap: 12px;
  height: 48px;
  justify-content: center;
  padding: 14px 24px;
}

.p-header__cta-icon { width: 23px; height: 24px; }

/* ============================================================
   FV
   ============================================================ */
.p-fv {
  background-image: url("../images/fv-bg.webp");
  background-position: center;
  background-size: cover;
  height: 780px;
  position: relative;
  width: 100%;
}

.p-fv__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 0;
}

.p-fv__date {
  align-self: flex-start; /* PC：中央揃えの親内で左寄せ */
  color: var(--color-white);
  font-family: var(--font-serif-jp);
  font-size: 2.5rem; /* 40px */
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: left;
  padding-left: 24px;
}

.p-fv__title {
  width: 100%;
}

.p-fv__title img { width: 100%; height: auto; }

/* ============================================================
   CONCEPT
   ============================================================ */
.p-concept {
  margin-top: 160px;
  position: relative;
}

.p-concept__label {
  height: 443px;
  left: 0;
  position: absolute;
  top: 4px;
  width: 73px;
  z-index: 2;
}

.p-concept__card {
  background-color: var(--color-white);
  border-radius: 30px;
  display: flex;
  gap: 96px;
  justify-content: center;
  padding: 88px 120px;
}

.p-concept__heading {
  color: var(--color-text);
  flex-shrink: 0;
  font-family: var(--font-serif-jp);
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8;
  transform: translateX(-40px); /* PC：見出しを少し左へ */
  white-space: nowrap;
}

.p-concept__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(40px); /* PC：本文を少し右へ */
}

.p-concept__body p {
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 2;
}

/* ============================================================
   GALLERY
   ============================================================ */
.p-gallery {
  margin-top: 132px;
  overflow: hidden;
  padding-bottom: 96px; /* 下にずらすカードのはみ出し分を確保 */
}

.p-gallery__list {
  /* 1セット分の移動距離 = 6枚 ×（カード幅 + gap） */
  --marquee-shift: 1680px; /* 6 * (240 + 40) */
  animation: p-gallery-marquee 40s linear infinite;
  display: flex;
  gap: 40px;
  width: max-content;
}

@keyframes p-gallery-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--marquee-shift) * -1)); }
}

.p-gallery__item {
  border-radius: 20px;
  flex-shrink: 0;
  height: 293px;
  overflow: hidden;
  width: 240px;
}

.p-gallery__item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-gallery__item--placeholder { background-color: var(--color-placeholder); }

/* スタッガード（波打つ）配置：6枚周期で繰り返す */
.p-gallery__item:nth-child(6n+1) { transform: translateY(32px); }
.p-gallery__item:nth-child(6n+2) { transform: translateY(0); }
.p-gallery__item:nth-child(6n+3) { transform: translateY(64px); }
.p-gallery__item:nth-child(6n+4) { transform: translateY(96px); }
.p-gallery__item:nth-child(6n+5) { transform: translateY(64px); }
.p-gallery__item:nth-child(6n+6) { transform: translateY(0); }

/* アニメーションを抑制する設定のユーザーには動きを止める */
@media (prefers-reduced-motion: reduce) {
  .p-gallery__list { animation: none; }
}

/* ============================================================
   DOCTOR
   ============================================================ */
.p-doctor {
  align-items: stretch;
  display: flex;
  margin-top: 160px;
}

.p-doctor__card {
  background-color: var(--color-white);
  border-radius: 30px;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
  padding: 72px;
}

.p-doctor__head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
}

.p-doctor__title { height: 46px; width: auto; }

.p-doctor__sub {
  color: var(--color-text);
  font-family: var(--font-serif-jp);
  font-size: 0.875rem; /* 14px */
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.p-doctor__profile {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-doctor__name-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-doctor__name {
  align-items: center;
  display: flex;
  gap: 56px;
}

.p-doctor__name-ja {
  color: var(--color-text);
  font-family: var(--font-serif-jp);
  font-size: 1.75rem; /* 28px */
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.p-doctor__name-title {
  font-size: 1.125rem; /* 18px */
  letter-spacing: 0.04em;
}

.p-doctor__name-instagram {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .p-doctor__name-instagram:hover { opacity: 0.7; }
}

.p-doctor__name-icon { height: 32px; width: 32px; }

.p-doctor__degree {
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  font-size: 0.9375rem; /* 15px */
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.p-doctor__text {
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  font-weight: 300;
  line-height: 2;
}

.p-doctor__photo {
  flex-shrink: 0;
  width: 426px;
}

.p-doctor__photo img {
  border-radius: 30px;
  height: 565px;
  object-fit: cover;
  width: 100%;
}

/* ============================================================
   COLUMN
   ============================================================ */
.p-column {
  background-color: var(--color-bg-sub);
  margin-top: 200px;
}

.p-column__inner {
  display: flex;
  justify-content: space-between;
  padding-block: 160px;
}

.p-column__head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
}

.p-column__title { height: 46px; width: auto; }

.p-column__sub {
  color: var(--color-text);
  font-family: var(--font-serif-jp);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.p-column__list {
  display: flex;
  flex-direction: column;
  width: 844px;
}

.p-column__item {
  align-items: center;
  border-top: 0.5px solid var(--color-text);
  display: flex;
  gap: 32px;
  padding-block: 24px;
}

.p-column__item:last-child { border-bottom: 0.5px solid var(--color-text); }

.p-column__thumb {
  background-color: var(--color-placeholder-2);
  border-radius: 5px;
  flex-shrink: 0;
  height: 120px;
  width: 200px;
}

.p-column__detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding-right: 16px;
}

.p-column__meta {
  align-items: center;
  display: flex;
  gap: 10px;
}

.p-column__date {
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 0.75rem; /* 12px */
  font-feature-settings: "palt" 1;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.p-column__tags {
  align-items: center;
  display: flex;
  gap: 8px;
}

.p-column__tag {
  align-items: center;
  background-color: var(--color-white);
  border-radius: 2px;
  color: var(--color-text);
  display: flex;
  font-size: 0.75rem; /* 12px */
  height: 20px;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1.8;
  padding-inline: 12px;
}

.p-column__item-title {
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* コラムがない場合の表示 */
.p-column__empty {
  align-items: center;
  background-color: var(--color-bg);
  border-radius: 30px;
  display: none; /* 既定は非表示 */
  justify-content: center;
  min-height: 504px;
  padding: 40px;
  text-align: center;
  width: 844px;
}

.p-column__empty-text {
  color: var(--color-text);
  font-family: var(--font-serif-jp);
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

/* p-column--empty 付与時：一覧を隠し、準備中メッセージを表示 */
.p-column--empty .p-column__list { display: none; }
.p-column--empty .p-column__empty { display: flex; }

/* ============================================================
   RESERVATION / FOOTER
   ============================================================ */
.p-footer {
  background-image: var(--gradient-reserve);
  padding: 120px 0 28px;
}

.p-footer__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.p-footer__reserve {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.p-footer__reserve-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-footer__sub {
  color: var(--color-white);
  font-family: var(--font-serif-jp);
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;
}

.p-footer__title { height: 46px; width: auto; }

.p-footer__btn {
  align-items: center;
  background-color: var(--color-bg);
  border-radius: 48px;
  color: var(--color-accent-400);
  display: flex;
  font-size: 1.375rem; /* 22px */
  height: 72px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 280px;
}

.p-footer__divider {
  align-self: stretch;
  background-color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  width: 1px;
}

.p-footer__info {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  width: 718px;
}

.p-footer__address {
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem; /* 12px */
  gap: 24px;
  padding-block: 16px;
  font-weight: 400;
}

.p-footer__address-label { line-height: 1.6; }
.p-footer__address-text { line-height: 1.8; }

.p-footer__map {
  height: 240px;
  width: 400px;
}

.p-footer__map iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.p-footer__copyright {
  color: var(--color-white);
  font-size: 0.6875rem; /* 11px */
  line-height: 1.8;
  margin-top: 96px;
  text-align: center;
  font-weight: 400;
}

/* ============================================================
   SP固定CTA（初期スタイルはメディアクエリ外）
   ============================================================ */
.p-sp-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.p-sp-fixed-cta__btn {
  align-items: center;
  background-color: var(--color-accent);
  box-shadow: 0 0 4px #d87848;
  color: var(--color-white);
  display: flex;
  font-family: var(--font-gothic);
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  gap: 16px;
  height: 56px;
  justify-content: center;
  width: 100%;
}

.p-sp-fixed-cta__icon { height: 24px; width: 23px; }

/* ============================================================
   スクロールでフェードイン
   ============================================================ */
.js-fadein {
  opacity: 0;
  transform: translateY(5rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fadein.is-scrollin {
  opacity: 1;
  transform: translateY(0);
}

/* アニメーションを抑制する設定のユーザーには動きを付けない */
@media (prefers-reduced-motion: reduce) {
  .js-fadein {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   レスポンシブ：タブレット以下（~1024px）
   ※タブレット専用デザインなし。SP構成をベースに余白を拡大して縦積み
   ============================================================ */
@media (max-width: 1024px) {
  /* FV */
  .p-fv { height: 520px; }
  .p-fv__inner { gap: 40px; padding-bottom: 24px; }
  .p-fv__date { align-self: flex-start; font-size: 2rem; text-align: left; }

  /* CONCEPT */
  .p-concept { margin-top: 100px; }
  .p-concept__card {
    flex-direction: column;
    gap: 48px;
    padding: 64px 48px 64px 96px;
  }
  .p-concept__heading { font-size: 1.375rem; transform: none; white-space: normal; }
  .p-concept__body { transform: none; }

  /* GALLERY（PC同様、段差付きでブリード表示） */
  .p-gallery { margin-top: 80px; }

  /* DOCTOR：写真を上、テキストカードを下に縦積み（1枚のカードに） */
  .p-doctor {
    flex-direction: column;
    gap: 0;
    margin-top: 100px;
  }
  .p-doctor__card {
    border-radius: 0 0 30px 30px;
    padding: 56px 48px;
  }
  .p-doctor__photo { order: -1; width: 100%; }
  .p-doctor__photo img {
    aspect-ratio: 358 / 472;
    border-radius: 30px 30px 0 0;
    height: auto;
  }

  /* COLUMN */
  .p-column { margin-top: 120px; }
  .p-column__inner {
    flex-direction: column;
    gap: 48px;
    padding-block: 100px;
  }
  .p-column__list { width: 100%; }
  .p-column__empty { min-height: 360px; width: 100%; }

  /* FOOTER */
  .p-footer { padding-block: 96px 28px; }
  .p-footer__inner { flex-direction: column; gap: 64px; }
  .p-footer__divider { display: none; }
  /* マップを上、住所を下に */
  .p-footer__info {
    align-items: center;
    flex-direction: column-reverse;
    gap: 24px;
    width: 100%;
  }
  .p-footer__address {
    align-items: baseline;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    padding-block: 0;
  }
  .p-footer__map { max-width: 480px; width: 100%; }
}

/* ============================================================
   レスポンシブ：スマートフォン（~767px）／ SPデザイン準拠
   ============================================================ */
@media (max-width: 767px) {
  :root { --header-height: 56px; }

  /* SP固定CTA分の余白を確保 */
  body { padding-bottom: 56px; }

  /* SP改行を有効化 */
  .u-br-sp { display: inline; }

  /* 左右ガターを16pxに（SPデザイン基準） */
  .l-inner { width: min(100% - 32px, var(--content-width)); }

  /* HEADER：ロゴ中央、PC用CTAは非表示しSP固定CTAへ */
  .p-header {
    justify-content: center;
    padding-inline: 16px;
  }
  .p-header__logo { height: 29px; }
  .p-header__logo-img { height: 29px; }
  .p-header__cta { display: none; }
  .p-sp-fixed-cta { display: flex; }

  /* FV：日付は上部、タイトルは下端 */
  .p-fv {
    aspect-ratio: 390 / 536;
    background-image: url("../images/fv-bg-sp.webp");
    height: auto;
  }
  .p-fv__inner {
    gap: 0;
    justify-content: flex-end;
    padding: 0;
  }
  /* FV幅（=全幅）に比例させ、タイトルと重ならないよう vw で指定（設計基準390px） */
  .p-fv__date {
    bottom: 16.7vw; /* 390px時 ≈65px */
    font-size: max(4.6vw, 14px); /* 390px時 ≈18px */
    letter-spacing: 0.04em;
    line-height: 1.2;
    position: absolute;
    right: 2.8vw; /* 390px時 ≈11px */
    text-align: right;
  }
  .p-fv__title { width: 100%; }

  /* CONCEPT */
  .p-concept { margin-top: 96px; }
  .p-concept__card {
    gap: 56px;
    padding: 72px 24px 72px 96px;
  }
  .p-concept__label { height: 343px; top: 72px; width: 56px; }
  .p-concept__heading { font-size: 1.375rem; } /* 22px */

  /* GALLERY：カード120×147・段差付き・左へ流れる */
  .p-gallery { margin-top: 56px; padding-bottom: 56px; }
  .p-gallery__list { --marquee-shift: 864px; gap: 24px; } /* 6 * (120 + 24) */
  .p-gallery__item { border-radius: 14px; height: 147px; width: 120px; }
  .p-gallery__item:nth-child(6n+1) { transform: translateY(22px); }
  .p-gallery__item:nth-child(6n+2) { transform: translateY(0); }
  .p-gallery__item:nth-child(6n+3) { transform: translateY(34px); }
  .p-gallery__item:nth-child(6n+4) { transform: translateY(56px); }
  .p-gallery__item:nth-child(6n+5) { transform: translateY(34px); }
  .p-gallery__item:nth-child(6n+6) { transform: translateY(0); }

  /* DOCTOR */
  .p-doctor { margin-top: 56px; }
  .p-doctor__card { gap: 56px; padding: 72px 24px; }
  .p-doctor__head { gap: 16px; }
  .p-doctor__title { height: 36px; }
  .p-doctor__sub { font-size: 0.75rem; }
  .p-doctor__name-block { gap: 16px; }
  .p-doctor__name {
    gap: 16px;
    justify-content: space-between;
    width: 100%;
  }
  .p-doctor__name-ja { font-size: 1.5rem; }   /* 24px */
  .p-doctor__name-title { font-size: 1rem; }  /* 16px */
  .p-doctor__degree { font-size: 0.875rem; }

  /* COLUMN */
  .p-column { margin-top: 96px; }
  .p-column__inner { gap: 40px; padding-block: 72px; }
  .p-column__title { height: 36px; }
  .p-column__sub { font-size: 0.75rem; }
  .p-column__item { align-items: flex-start; gap: 16px; }
  .p-column__thumb { height: 72px; width: 120px; }
  .p-column__detail { gap: 12px; padding-right: 0; }
  .p-column__tag { height: 16px; padding-inline: 8px; }
  .p-column__item-title { font-size: 0.875rem; }
  .p-column__empty { min-height: 240px; padding: 40px 24px; }
  .p-column__empty-text { font-size: 0.9375rem; } /* 15px */

  /* FOOTER */
  .p-footer { padding-block: 72px 28px; }
  .p-footer__inner { gap: 72px; }
  .p-footer__reserve { gap: 56px; }
  .p-footer__reserve-head { gap: 16px; }
  .p-footer__title { height: 36px; }
  .p-footer__info { gap: 24px; }
  .p-footer__address {
    align-items: baseline;
    gap: 24px;
    justify-content: flex-start;
    text-align: left;
  }
  .p-footer__map { height: 215px; max-width: none; }
  .p-footer__copyright { margin-top: 56px; }
}

/* ============================================================
   【一旦非表示】カウンセリング予約ボタン
   予約受付を開始したら、このブロックごと削除して復帰する
   ============================================================ */
.p-header__cta,
.p-footer__reserve,
.p-footer__divider,
.p-sp-fixed-cta {
  display: none;
}

/* 予約ブロックを消した分、フッター情報を中央寄せ */
.p-footer__inner { justify-content: center; }

/* SP固定CTA分の下部余白をリセット */
@media (max-width: 767px) {
  body { padding-bottom: 0; }
}
