/* ── Kaori Yamamoto atelier LP 共通スタイル ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ECEBE7;         /* 地の色 */
  --bg-light: #F8F8F6;   /* 明るい面 */
  --ph-1: #CFCDC6;       /* 写真仮枠（大きい） */
  --ph-2: #D6D4CD;       /* 写真仮枠（小さい・淡い） */
  --ph-note: #45443F;    /* 仮枠内の説明文字 */
  --text: #262624;       /* 文字 */
  --muted: #5B5A55;      /* 補足の文字 */
  --line: #C9C7C0;       /* 線 */
  --btn: #3F4536;        /* 予約ボタン */

  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover { color: var(--muted); }
a:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 3px;
}

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

/* ページ全体を最大480pxの読みやすい幅に収め、中央にそろえる。
   背景色は帯として画面幅いっぱいに塗る（.band 参照）。 */
.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

/* 明るい面のセクション用：帯は画面幅いっぱい、内容は .page と同じ480pxに収める */
.band-light { background: var(--bg-light); }

/* ── テキストリンク（下線つき） ── */
.text-link {
  align-self: flex-start;      /* 縦並びの箱の中でも、下線を文字の幅だけにする */
  display: inline-block;
  font-size: 13px;
  padding: 12px 0;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}
.text-link:hover { color: var(--muted); border-bottom-color: var(--muted); }

/* 文字リンクを横に並べる（入りきらなければ折り返す） */
.link-row {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

/* インライン中の下線リンク（段落内） */
.inline-link {
  text-underline-offset: 3px;
  text-decoration-line: underline;
}

/* ── ヘッダー ── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  min-height: 65px;          /* ロゴ45px + 上下10px */
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img {
  display: block;
  height: 45px;          /* ロゴ(スマホ)。文字は約9.5px相当 */
  width: auto;
}
.site-header .reserve-link {
  font-size: 13px;
  padding: 12px 0 12px 16px;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ── 写真の仮枠 ── */
.ph {
  background: var(--ph-1);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.ph--sub { background: var(--ph-2); }
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph .ph-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--ph-note);
}
/* 画像が入ったら .ph に .has-photo を付けて注記を隠す */
.ph.has-photo .ph-note { display: none; }
/* 本物の写真：仮枠の余白をなくし、枠いっぱいに敷く（枠の大きさは各セクションで決める） */
.ph.has-photo { padding: 0; }
.ph.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 写真ごとの切り出し位置 */
.hero .ph img { object-position: 72% 62%; }          /* トレイと指輪を持つ手（右下寄り） */
.essay-photo img { object-position: 55% 50%; }       /* 花とジュエリーのテーブル */
.atelier-photo img { object-position: 52% 60%; }     /* テーブルと椅子 */

/* ── 1. 最初の画面 ── */
.hero {
  display: flex;
  gap: 20px;
  padding: 16px 24px 0 0;
  height: 480px;
}
.hero .ph { flex-grow: 1; }
.hero h1 {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 7vw, 30px);
  letter-spacing: 0.28em;
  line-height: 1.6;
  padding-top: 24px;
  white-space: nowrap;
}

/* ── 2. 考え方 ── */
.essay {
  padding: 88px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2.15;
  letter-spacing: 0.03em;
}
.essay p { margin: 0; }

.essay-photo {
  margin: 0 32px 96px 88px;
  height: 260px;
}

/* ── 見出し共通 ── */
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.section-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── モデルカット（文字・影・角丸・枠線なし） ── */
.model { margin: 0; }
.model figure { margin: 0; }
.model img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--ph-2);
}
.model-single { margin-bottom: 96px; }
.model-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ── 3. 指輪 ── */
.rings-section {
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.rings-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}
.ring-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ring-group h3 {
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.ring-lead {
  margin: -4px 0 0;
  padding: 0 8px;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.ring-lead:empty { display: none; }
.ring-group + .ring-group { margin-top: 48px; }

/* 系統（甲丸・signet など）：区切り線は使わず、余白で分ける */
.ring-families {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 24px;
}
.ring-family { display: flex; flex-direction: column; gap: 22px; }
.family-head { padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.family-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.family-text { text-wrap: pretty; margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* スマホ：指輪を上下に並べ、1点ごとに 写真(左)＋名前・紹介文・spec(右) */
.ring-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 8px;
}
.ring-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  text-decoration: none;
}
.ring-card .ph {
  aspect-ratio: 1 / 1;
  background: var(--bg-light);
  padding: 0;
  align-items: stretch;
}
.ring-body { display: flex; flex-direction: column; gap: 6px; }
.ring-card .ring-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text);
}
.ring-card .ring-desc {
  text-wrap: pretty;           /* 末尾に1〜2文字だけ残る行を避ける */
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ph-note);
}
.ring-card .ring-spec {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ring-fallback {
  font-size: 13px;
  padding: 8px;
}

/* ── 4. 3つの作り方 ── */
.making-section {
  padding: 96px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.making-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.making-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.making-item .making-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.making-item h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
}
.making-item .making-type {
  font-size: 12px;
  color: var(--muted);
}
.making-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}
.making-item { gap: 8px; }

/* ── 5. 価格の目安 ── */
.price-section {
  padding: 96px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.price-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-table { display: flex; flex-direction: column; }
.price-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row .price-name {
  font-family: var(--font-serif);
  font-size: 16px;
}
.price-row .price-value {
  font-size: 16px;
  letter-spacing: 0.02em;
}
.price-row .price-note {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}
.price-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-group h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.price-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.9;
}
.price-caption p { margin: 0; }

/* ── 6. お渡しのあと ── */
.aftercare-section {
  padding: 0 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.aftercare-section p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.1;
}

/* ── 5-2. つくる流れ ── */
.flow-section {
  padding: 0 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.flow-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flow-group h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.flow-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-steps li {
  font-size: 14px;
  line-height: 1.8;
}
/* スマホ：手順のあいだに ↓ */
.flow-steps li:not(:last-child)::after {
  content: "↓";
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}
.flow-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── 7. 重ねるもの ── */
.overlay-section {
  padding: 0 32px 104px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.overlay-section .ph {
  width: 60%;
  aspect-ratio: 3 / 4;
  padding: 10px;
}
.overlay-section .ph .ph-note { font-size: 10px; line-height: 1.6; }
.overlay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overlay-body h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.overlay-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}
.overlay-body .text-link { padding: 10px 0; font-size: 13px; }

/* ── 8. アトリエとご予約 ── */
.atelier-section {
  padding: 0 0 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.atelier-photo { height: 260px; }
.atelier-body {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.atelier-body p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.1;
}
.atelier-body p.is-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
}
.atelier-map { font-size: 13px; }
.atelier-map a { padding: 8px 0; display: inline-block; min-height: 44px; }
.btn-reserve {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  background: var(--btn);
  color: #FFFFFF;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.btn-reserve:hover { color: #FFFFFF; opacity: 0.85; }

/* ── フッター ── */
.site-footer {
  padding: 56px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .footer-logo {
  align-self: flex-start;
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}
.footer-brand .footer-sub {
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 13px;
}
.footer-links a {
  padding: 12px 0;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.footer-note a { color: var(--ph-note); }

/* ── PC幅（900px以上）：1200pxまで広げ、写真を大きく・余白を広く使う ──
   すべてのセクションで左右の余白を --desk-pad に統一し、文章の左端をそろえる。
   明るい面（3.作り方／8.アトリエ）は背景を画面幅いっぱいに塗り、中身だけ
   --desk-pad で1200px相当に収める（セクション自体は幅を制限しない）。 */
@media (min-width: 900px) {
  :root {
    --desk-pad: max(48px, calc((100% - 1200px) / 2));
    --header-h: 80px;     /* PCのヘッダーの高さ（ロゴ51px+上下余白） */
  }

  .page { max-width: none; }

  .site-header {
    height: var(--header-h);
    padding: 0 var(--desk-pad);
  }
  .site-header .logo img { height: 51px; }
  .footer-brand .footer-logo { height: 56px; }

  /* モデルカットA：中央に1枚。高さは画面の高さを超えない */
  .model-single {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding: 0 var(--desk-pad) 140px;
  }
  .model-single img {
    width: auto;
    height: min(calc(100vh - var(--header-h)), 820px);
    max-width: 100%;
  }
  /* モデルカットB：2枚を横に、間は24px。全体は中央 */
  .model-pair {
    --pair-h: min(calc(100vh - var(--header-h)), 720px);
    grid-template-columns: repeat(2, min(calc((100% - 24px) / 2), calc(var(--pair-h) * 2 / 3)));
    gap: 24px;
    justify-content: center;
    padding: 0 var(--desk-pad);
  }

  /* 1. 最初の画面：写真は最大720px、縦書きコピーは残りの幅で */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 720px) 1fr;
    align-items: stretch;
    gap: 0;
    --hero-h: clamp(560px, calc(100vh - var(--header-h)), 860px);
    height: var(--hero-h);
    padding: 0 var(--desk-pad);
  }
  .hero .ph { height: 100%; }
  .hero .ph .ph-note { font-size: 13px; }
  .hero h1 {
    justify-self: center;
    align-self: center;
    /* 縦書き11文字（字間込みで約14.2em）が写真の高さに収まる大きさにする */
    font-size: clamp(30px, min(4.5vw, calc((var(--hero-h) - 96px) / 14.2)), 64px);
    padding-left: 56px;
  }

  /* 2. 考え方：左に文章（最大560px）、右に写真 */
  .essay-row {
    display: grid;
    grid-template-columns: 560px 1fr;
    align-items: center;
    gap: 64px;
    padding: 140px var(--desk-pad);
  }
  .essay-row .essay { padding: 0; gap: 32px; }
  .essay-row .essay-photo {
    margin: 0;
    height: 100%;
    min-height: 480px;
    max-height: 640px;
  }

  /* 3. 指輪：常に4列 */
  .rings-section {
    padding: 140px var(--desk-pad);
    gap: 56px;
  }
  /* 1本の幅は「4列のときの1列分」にそろえ、横には最大3本。右側は余白 */
  .rings-intro,
  .ring-lead,
  .family-head { padding: 0; }
  .ring-group h3 { padding: 0; }
  .ring-group + .ring-group { margin-top: 80px; }
  .ring-families { gap: 112px; margin-top: 32px; }
  .ring-family { gap: 28px; }
  .ring-grid {
    display: grid;
    grid-template-columns: repeat(3, calc((100% - 72px) / 4));
    justify-content: start;
    gap: 40px 24px;
    padding: 0;
  }
  .ring-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ring-body { margin-top: 14px; gap: 8px; }
  .ring-card .ring-desc { font-size: 13px; }
  .ring-card .ring-spec { font-size: 12px; }

  /* 4. 3つの作り方：横に3つ並べる（背景は画面幅いっぱい） */
  .making-section {
    padding: 140px var(--desk-pad);
    gap: 56px;
  }
  .making-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  /* 5・6. 価格の目安／お渡しのあと：左右2列 */
  .price-aftercare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 64px;
    padding: 140px var(--desk-pad);
  }
  .price-aftercare-row .price-section,
  .price-aftercare-row .aftercare-section {
    padding: 0;
  }

  /* 5-2. つくる流れ：横に並べて → でつなぐ（選ぶ場合の3手順も同じ列幅にそろえる） */
  .flow-section {
    padding: 0 var(--desk-pad) 140px;
    gap: 48px;
  }
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 28px;
  }
  .flow-steps li {
    position: relative;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    text-wrap: balance;          /* 1文字だけ次の行に残らないよう、行の長さをそろえる */
  }
  .flow-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 14px;
    right: -25px;
    width: 22px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg);
  }
  .flow-note { max-width: 560px; }

  /* 7. 重ねるもの：控えめな縦長写真(約40%)＋文章。全体は640px、左端は他セクションとそろえる */
  .overlay-section {
    display: grid;
    grid-template-columns: 256px minmax(0, 344px);
    column-gap: 40px;
    justify-content: start;
    align-items: center;
    padding: 0 var(--desk-pad) 160px;
  }
  .overlay-section .ph { width: 100%; }

  /* 8. アトリエとご予約：左に写真、右に文章＋予約ボタン（背景は画面幅いっぱい） */
  .atelier-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 0 var(--desk-pad) 140px;
  }
  .atelier-section .atelier-photo {
    margin: 0;
    height: 100%;
    min-height: 480px;
    max-height: 640px;
  }
  .atelier-section .atelier-body {
    padding: 0;
    max-width: 560px;
    gap: 24px;
  }

  /* フッター */
  .site-footer {
    padding: 80px var(--desk-pad) 64px;
  }
  .footer-links { gap: 8px 32px; }
}

/* ── アニメーションを好まない設定への配慮（本サイトは元々アニメーションなし） ── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
