@charset "UTF-8";

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* ===== カラー ===== */
  --color-bg:        #f5f4f3;  /* ベース背景色 */
  --color-text:      #5c5c5c;  /* 本文テキスト色（グレー） */
  --color-footer-bg: #828282;  /* フッター背景 */
  --color-footer-fg: #fffbf1;  /* フッターテキスト */
  --color-line:      #d9d9d9;  /* 罫線・プレースホルダー */
  --color-accent:    #a48d73;  /* ブランドアクセント（カウンセリング予約CTA） */
  --color-accent-deep: #8f7d64; /* アクセント濃色（予約ボタンのRESERVATIONリング文字） */
  --color-white:     #ffffff;
  --color-text-strong: #393531; /* ヘッダー／予約ボタンのテキスト・罫線（Figma: text/main） */
  --color-beige-300:   #d7d2c6; /* SP固定CTAの背景（Figma: beige/300） */
  --color-cta-line:    #b4aea3; /* SP固定CTAの区切り線 */

  /* ===== フォント ===== */
  --font-en:       "Comme", sans-serif;                 /* 欧文見出し */
  --font-serif-jp: "Noto Serif JP", serif;              /* 和文明朝（見出し・キャッチ） */
  --font-sans-jp:  "Noto Sans JP", sans-serif;          /* 和文ゴシック（本文） */
  --font-info-jp:  "Zen Kaku Gothic New", sans-serif;   /* フッター情報 */
  --font-mincho-old: "Zen Old Mincho", serif;           /* 予約ボタンのラベル */

  /* ===== レイアウト ===== */
  --header-height: 56px;
  --sp-cta-height: 56px;
  --content-width: 1248px;
  --max-width:     1440px;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }

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;
}

/* タブレット */
@media (min-width: 768px) and (max-width: 1024px) {
  html { font-size: 1.5625vw; } /* 16 / 1024 * 100 */
}

/* SP（極端な拡大を防ぐためclampで上下限を設定） */
@media (max-width: 767px) {
  html { font-size: clamp(13px, 4.2667vw, 17px); } /* 16 / 375 * 100 */
}

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;
}

/* ============================================================
   Layout / Utility
   ============================================================ */
.l-inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 6rem;
}

@media (max-width: 767px) {
  .l-inner { padding-inline: 1.5rem; }
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* SPのみ表示する改行 */
.u-br-sp { display: none; }
@media (max-width: 767px) {
  .u-br-sp { display: inline; }
}

/* PCのみ表示する改行（SPでは改行しない） */
@media (max-width: 767px) {
  .u-br-pc { display: none; }
}

/* セクション見出し（Doctor / Menu 共通） */
.p-sec-head__en {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-sec-head__ja {
  margin-top: 1.5rem; /* 24px：英字見出し → 和文 */
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@media (max-width: 767px) {
  .p-sec-head__en { font-size: 2.125rem; }
  .p-sec-head__ja { margin-top: 0.75rem; font-size: 0.75rem; }
}

/* ============================================================
   Header
   ============================================================ */
.p-header {
  align-items: center;
  background-color: var(--color-bg);
  border-bottom: 0.5px solid var(--color-text-strong);
  display: flex;
  height: var(--header-height);
  inset: 0 0 auto 0;
  justify-content: space-between;
  padding-left: 1.5rem;
  position: fixed;
  z-index: 50;
}

.p-header__logo img {
  height: 2.25rem;
  width: auto;
}

/* 予約ボタン（PC・タブレット） */
.p-header__nav {
  align-self: stretch;
  display: flex;
}

.p-header__btn {
  align-items: center;
  border-left: 0.5px solid var(--color-text-strong);
  color: var(--color-text-strong);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  width: 12.5rem;
}

.p-header__btn-icon {
  flex-shrink: 0;
  height: 1.25rem;
  width: auto;
}

.p-header__btn-label {
  font-family: var(--font-mincho-old);
  font-size: max(0.9375rem, 13px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .p-header__logo img { height: 2rem; }
  .p-header__nav { display: none; } /* SPは下部固定CTAに集約 */
}

/* ============================================================
   Hero
   ============================================================ */
.p-hero {
  padding-top: var(--header-height);
}

.p-hero__tagline {
  padding: 5rem 1rem 4.5rem;
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 2.75rem;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.35em;
  text-align: center;
  text-indent: 0.35em; /* letter-spacingによる左右非対称を補正 */
}

.p-hero__visual { overflow: hidden; }

/* clip-pathで左右からクリップ → スクロールで中央から全幅へ広がる */
.p-hero__fv {
  height: clamp(20rem, 47vw, 42.5rem);
  clip-path: inset(0 22%);
  will-change: clip-path;
}

.p-hero__fv-inner {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.p-hero__fv-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .p-hero__tagline {
    padding: 2.75rem 1rem 2.5rem;
    font-size: 1.125rem;
    line-height: 1.9;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
  .p-hero__fv {
    height: clamp(20rem, 123vw, 33rem);
    clip-path: inset(0 0%); /* SPは固定表示（演出なし） */
  }
}

/* ============================================================
   Concept
   ============================================================ */
/* Concept + Doctor をまたぐ大理石背景 */
.l-marble {
  background-image: url("../images/concept_bg.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 70%; /* 高さ90%で塗り、下部に余白を残して少し短く */
}

.p-concept {
  padding-block: 7.5rem;
}

.p-concept__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.p-concept__date {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.p-concept__date span { font-size: 0.6em; }

.p-concept__deco {
  flex-shrink: 0;
  width: min(360px, 40%);
}

.p-concept__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.p-concept__photo {
  flex-shrink: 0;
  width: 360px;
}

.p-concept__photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.p-concept__text {
  flex: 1;
  padding-top: 3rem;
}

.p-concept__catch {
  margin-bottom: 3.5rem; /* 56px：キャッチ → 本文ブロック */
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  /* Figmaと同じく行間の余白を文字の端で詰める */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-concept__lead,
.p-concept__body {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  line-height: 2.2;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-concept__lead { margin-bottom: 2.5rem; }
.p-concept__body + .p-concept__body { margin-top: 2.5rem; }
.p-concept__lead + .p-concept__body { margin-top: 0; }

@media (max-width: 767px) {
  /* SPはマーブル背景を連続させず、Conceptセクション内だけに敷く */
  .l-marble { background-image: none; }
  .p-concept {
    background-image: url("../images/concept_bg.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding-block: 4.5rem;
  }

  /* 見出し（左）＋小画像（右上）のコラージュ */
  .p-concept__head {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
  }
  .p-concept__date { font-size: 1.75rem; }
  .p-concept__deco {
    width: 144px;
    align-self: flex-start;
    margin-top: 2.5rem;
  }

  .p-concept__main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  /* 施術室写真は左寄せの小サイズ */
  .p-concept__photo {
    width: 160px;
    align-self: flex-start;
    margin-top: 1.5rem;
  }
  .p-concept__photo img {
    height: auto;
    aspect-ratio: 160 / 184;
  }
  .p-concept__text { padding-top: 0; }

  /* キャッチは右寄せ2行 */
  .p-concept__catch {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    text-align: right;
  }
  .p-concept__lead,
  .p-concept__body {
    font-size: 0.8125rem;
    line-height: 2;
  }
  .p-concept__lead { margin-bottom: 2rem; }
  .p-concept__body + .p-concept__body { margin-top: 2rem; }
}

/* ============================================================
   Doctor
   ============================================================ */
.p-doctor {
  padding-block: 5rem;
}

/* 見出し → 下に本文ブロック。本文ブロック内で写真を右に回り込ませる */
.p-doctor .p-sec-head {
  margin-bottom: 3rem;
}

.p-doctor__body {
  display: flow-root; /* float を内包 */
}

.p-doctor__photo {
  float: right;
  width: 30%;
  max-width: 320px;
  margin-top: -8rem; /* 見出し脇まで写真を引き上げる */
  margin-left: 3rem;
  margin-bottom: 2rem;
}

.p-doctor__photo img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
}

.p-doctor__name {
  margin-top: 7rem; /* 氏名＋本文を下げる */
  margin-bottom: 2.5rem; /* 40px：氏名 → 本文 */
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-doctor__title {
  margin-right: 0.75em;
  font-size: 1.125rem;
}

.p-doctor__text {
  font-size: 0.875rem;
  line-height: 2.2;
  letter-spacing: 0.04em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@media (max-width: 767px) {
  .p-doctor { padding-block: 3.5rem; }
  .p-doctor .p-sec-head {
    margin-bottom: 0;
    text-align: center;
  }
  /* 写真 → 氏名 → 本文 を中央寄せで縦並び */
  .p-doctor__body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .p-doctor__photo {
    float: none;
    width: 280px;
    max-width: 100%;
    margin: 1.5rem 0 0;
  }
  .p-doctor__photo img {
    aspect-ratio: 280 / 320;
  }
  .p-doctor__name {
    width: 100%;
    margin: 2.75rem 0 0;
    font-size: 1.25rem;
    text-align: center;
  }
  .p-doctor__title { font-size: 0.875rem; }
  .p-doctor__text {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    line-height: 2;
  }
}

/* ============================================================
   Menu
   ============================================================ */
.p-menu {
  padding-block: 5rem 7.5rem;
}

/* PC：見出し左上／美容外科＝左カラム下／美容皮膚科＝右カラム上
   カードは各41%幅・段違い配置（Figma 482:847 の比率） */
.p-menu__grid {
  display: grid;
  grid-template-columns: 10.5% minmax(0, 36%) 7% minmax(0, 36%);
  align-items: start;
  row-gap: 6.5rem; /* 見出し → 美容外科 の段差 */
}

.p-menu__col { display: contents; }

.p-menu .p-sec-head {
  grid-column: 1 / 3;
  grid-row: 1;
}

.p-menu__col--left .p-menu__item {
  grid-column: 2;
  grid-row: 2;
}

.p-menu__col--right .p-menu__item {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: start;
}

.p-menu__photo img {
  width: 100%;
  aspect-ratio: 392 / 256;
  object-fit: cover;
}

.p-menu__title {
  margin-top: 2.5rem; /* 40px：画像 → タイトル */
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-menu__text {
  margin-top: 2.5rem; /* 40px：タイトル → 本文 */
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: 0.04em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@media (max-width: 767px) {
  .p-menu { padding-block: 3rem 4.5rem; }
  /* SP：見出しを全幅、2カラムの段違い（左:美容外科を下げる） */
  .p-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.125rem;
    row-gap: 0;
    align-items: start;
  }
  .p-menu .p-sec-head { grid-column: 1 / -1; grid-row: auto; margin-bottom: 2rem; }
  .p-menu__col--left .p-menu__item { grid-column: 1; grid-row: auto; margin-top: 4.5rem; }
  .p-menu__col--right .p-menu__item { grid-column: 2; grid-row: auto; }
  .p-menu__title {
    margin-top: 1.25rem;
    font-size: 1rem;
  }
  .p-menu__text {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.9;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.p-footer {
  margin-top: 5rem;
  padding-block: 9rem 1rem;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-fg);
}

.p-footer__inner {
  display: flex;
  align-items: stretch; /* ロゴ上端と地図上端を揃え、地図を左カラムと同じ高さに */
  justify-content: center;
  gap: 6.625rem; /* 106px：左ブロック ⇔ 地図 */
}

.p-footer__left {
  display: flex;
  flex-direction: column;
  gap: 4.5rem; /* 72px：ロゴ ⇔ 情報 */
  flex-shrink: 0;
  width: 27rem;
}

.p-footer__logo img {
  width: auto;
  height: 6.1875rem; /* 99px：デザインのロゴ実寸 */
  /* グレーのSVGロゴを背景に映えるよう白系に反転 */
  filter: brightness(0) invert(1);
}

.p-footer__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-info-jp);
  font-weight: 400;
  font-size: 0.875rem;
}

.p-footer__row {
  display: grid;
  grid-template-columns: 4.625rem 1fr; /* ラベル列74px ＋ gap24px → 値は98px位置 */
  gap: 1.5rem;
  line-height: 1.8;
}

.p-footer__row dt { letter-spacing: 0.08em; }

/* 行間の余白を文字端で詰め、デザインのコンパクトな行ピッチに合わせる */
.p-footer__row dt,
.p-footer__row dd {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.p-footer__map {
  flex-shrink: 1;
  width: 612px;
  max-width: 100%;
  aspect-ratio: 612 / 378;
  background-color: var(--color-line);
}

/* PCのみ：地図を左カラムと同じ高さに伸長（上端＝ロゴ上端） */
@media (min-width: 1025px) {
  .p-footer__map {
    align-self: stretch;
    aspect-ratio: auto;
  }
}

.p-footer__copyright {
  margin-top: 4.5rem;
  font-family: var(--font-info-jp);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .p-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
  }
  .p-footer__left { width: 100%; }
}

@media (max-width: 767px) {
  .p-footer {
    margin-top: 3rem;
    padding-block: 4rem 6.5rem; /* SP固定CTAぶんの余白を確保 */
  }
  /* ロゴ → 地図 → 情報 の順に中央寄せで縦積み */
  .p-footer__inner {
    align-items: center;
    gap: 2.5rem;
  }
  .p-footer__left { display: contents; }

  .p-footer__logo {
    order: 1;
    width: 100%;
    text-align: center;
  }
  .p-footer__logo img {
    height: 3.5rem;
    margin-inline: auto;
  }
  .p-footer__map {
    order: 2;
    width: 100%;
    aspect-ratio: 358 / 240;
  }
  .p-footer__info {
    order: 3;
    width: 100%;
  }
  .p-footer__row {
    grid-template-columns: 4.75rem 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  .p-footer__copyright {
    margin-top: 3rem;
    padding-inline: 1rem;
    font-size: 0.625rem;
    letter-spacing: 0.02em;
  }
}

/* ============================================================
   Reservation CTA（PC：右下固定の追従丸ボタン）
   ============================================================ */
.p-reserve {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.p-reserve__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--color-accent-deep);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.p-reserve__label {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ============================================================
   SP Fixed CTA（初期スタイルはメディアクエリ外）
   ============================================================ */
.p-sp-cta {
  display: none;
  inset: auto 0 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  z-index: 100;
}

.p-sp-cta__btn {
  align-items: center;
  background-color: var(--color-beige-300);
  color: var(--color-text-strong);
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  font-family: var(--font-mincho-old);
  font-size: max(0.875rem, 12px);
  font-weight: 500;
  gap: 0.625rem;
  height: var(--sp-cta-height);
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  white-space: nowrap;
}

.p-sp-cta__btn + .p-sp-cta__btn {
  border-left: 1px solid var(--color-cta-line);
}

.p-sp-cta__icon {
  flex-shrink: 0;
  height: 1rem;
  width: auto;
}

@media (max-width: 767px) {
  .p-reserve { display: none; }   /* SPでは丸ボタンを隠す */
  .p-sp-cta { display: flex; }    /* 下部固定バーを表示 */

  /* 固定CTAでフッターが隠れないよう下部に余白を確保 */
  body { padding-bottom: calc(var(--sp-cta-height) + env(safe-area-inset-bottom)); }
}
