/* =========================================================
   山形ウォーキング｜奥山千尋
   目次
   1. 基本設定（色・文字・余白）
   2. 共通パーツ
   3. ヘッダー
   4. ヒーロー
   5. 黄色の帯
   6. 01 ストーリー
   7. 02 レッスン
   8. 03 Q&A
   9. お問い合わせ
   10. フッター
   11. 下層ページ（つぼ美ウォーキング／よくあるご質問／お問い合わせ）
   ========================================================= */

/* ---------- 1. 基本設定 ---------- */
:root {
  --pink: #f3c9cf;
  --pink-light: #fff2f2;
  --yellow: #ffd300;
  --ink: #252223;
  --paper: #fffdf9;
  --gray: #6a6263;
  --line: rgba(37, 34, 35, .17);

  --serif: "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);        /* 左右の余白 */
  --section: clamp(72px, 10vw, 144px);     /* セクション上下の余白 */
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
/* 対応ブラウザでは、文節の区切りで改行する */
p, li { text-wrap: pretty; }
summary, .promise li, .contact-copy p, .page-lead, .section-lead { word-break: auto-phrase; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- 2. 共通パーツ ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 見出しなどを「文節のかたまり」で改行させる（途中で切れない） */
h1 span, h2 span, blockquote span,
.lesson-cta p span, .profile li span { display: inline-block; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; color: #fff; background: var(--ink); font-size: .85rem;
}
.skip:focus { top: 8px; }

.kicker {
  margin-bottom: 18px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .26em;
}

.section-no {
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 6vw, 80px);
}
/* 番号を外したので、見出しは1列 */
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 6.3vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: .04em;
}
.section-lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--gray);
}

/* 下線つきのリンク */
.line-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  transition: gap .2s;
}
.line-link {
  padding: 14px 4px;
  border-bottom: 2px solid var(--ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.line-link:hover, .text-link:hover { gap: 34px; }

/* ---------- 3. ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.logo b { font-size: .86rem; font-weight: 900; letter-spacing: .12em; }
.logo span {
  padding-left: 10px;
  border-left: 1px solid var(--ink);
  font-size: .72rem;
  letter-spacing: .2em;
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.menu-bars { display: grid; gap: 6px; width: 26px; }
.menu-bars i { height: 2px; background: currentColor; transition: transform .2s; }
.menu[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-label { font-size: .66rem; font-weight: 700; letter-spacing: .18em; }

/* スマホ：ヘッダーの下に開くメニュー */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(37, 34, 35, .08);
}
.nav.is-open { display: flex; }
.nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
}
.nav a:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  :root { --header-h: 76px; }
  .menu { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: .82rem;
    white-space: nowrap;
  }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .nav a.nav-cta {
    padding: 10px 20px;
    border: 0;
    color: #fff;
    background: var(--ink);
  }
  .nav a.nav-cta:hover { color: var(--ink); background: var(--yellow); }
}

/* ---------- 4. ヒーロー ---------- */
/* スマホ：タイトル → 写真 → 黒い箱 の順に縦に並べる（重ねない） */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "photo" "card";
  background: var(--pink);
}

.hero-title {
  grid-area: title;
  padding: 28px var(--gutter) 24px;
  color: var(--paper);
  font-weight: 900;
  font-size: clamp(2.6rem, 16.5vw, 7rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.hero-title span { display: block; }
.hero-title .is-outline {
  padding-left: .4em;
  letter-spacing: .015em;
  /* 白いフチ文字：フチを先に描き、上からピンクで塗って線の重なりを消す */
  color: var(--pink);
  -webkit-text-stroke: 3px var(--paper);
  paint-order: stroke fill;
}

.hero-photo {
  grid-area: photo;
  position: relative;
  background: #eef1f2;
}
.hero-photo img { width: 100%; }
.hero-sign {
  position: absolute;
  top: 20px;
  right: 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .85rem;
  font-style: italic;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
}

.hero-card {
  grid-area: card;
  padding: 44px var(--gutter) 48px;
  color: #fff;
  background: var(--ink);
}
.hero-card .kicker { color: var(--yellow); }
.hero-card h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 8.4vw, 2.8rem);
  line-height: 1.4;
  letter-spacing: .06em;
}
.hero-lead {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
}
.text-link {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--yellow);
  font-family: var(--serif);
  font-size: .92rem;
}
.text-link span { color: var(--yellow); }

/* PC・タブレット：左にタイトルと黒い箱、右に写真 */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "title photo"
      "card  photo";
    min-height: min(calc(100svh - var(--header-h)), 880px);
  }
  .hero-title {
    align-self: end;
    padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) 0;
    font-size: clamp(3rem, 7.6vw, 8.4rem);
  }
  .hero-title .is-outline { -webkit-text-stroke-width: 4px; }
  .hero-photo { min-height: 560px; }
  .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 25%;
  }
  .hero-sign { top: 28px; right: 22px; font-size: .95rem; }
  .hero-card {
    align-self: start;
    max-width: 580px;
    margin: clamp(28px, 3.2vw, 48px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px);
    padding: clamp(32px, 3.6vw, 56px);
  }
  .hero-card h1 { font-size: clamp(1.9rem, 3.1vw, 3.2rem); }
}

/* ---------- 5. 黄色の帯 ---------- */
.manifesto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px clamp(14px, 4vw, 64px);
  padding: 26px var(--gutter);
  background: var(--yellow);
  font-size: clamp(.62rem, 2.4vw, .74rem);
  font-weight: 900;
  letter-spacing: .2em;
}
.manifesto li { display: flex; align-items: center; gap: clamp(14px, 4vw, 64px); }
.manifesto li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- 6. 01 ストーリー ---------- */
.story { padding-top: var(--section); }
.story .section-no { color: var(--pink); }

.story-visual { position: relative; }
.story-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.profile {
  position: relative;
  /* スマホ：写真のすぐ下に付ける（足元に重ねない） */
  margin: 0 12px 0 24px;
  padding: 36px 28px;
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}
.profile .kicker { margin-bottom: 14px; color: var(--yellow); }
.profile h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
}
.profile-en {
  color: rgba(255, 255, 255, .6);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .8rem;
  font-style: italic;
  letter-spacing: .06em;
}
.profile ul {
  margin: 22px 0 24px;
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  line-height: 1.75;
}
.profile li {
  position: relative;
  padding-left: 1.2em;
}
.profile li + li { margin-top: 8px; }
.profile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}
.profile-note { color: rgba(255, 255, 255, .6); font-size: .72rem; }

.story-text {
  display: grid;
  gap: 36px;
  margin-top: clamp(64px, 8vw, 110px);
  margin-bottom: var(--section);
}
.story-text blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.6;
  letter-spacing: .04em;
}
.story-copy p { color: #4f494a; }
.story-copy p + p { margin-top: 1.6em; }

.promise { color: #fff; background: var(--ink); }
.promise-inner {
  display: grid;
  gap: 28px;
  padding-block: clamp(56px, 7vw, 96px);
}
.promise .kicker { margin: 0; color: var(--yellow); }
.promise ol { display: grid; gap: 32px; }
.promise li {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.9;
}
.promise b {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .1em;
}

@media (min-width: 860px) {
  /* 写真と黒い箱を同じ行に置き、箱は写真の右下の角にだけ重ねる（ドレスや足元にかからない） */
  .story-visual {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    padding-bottom: 14px;
  }
  .story-photo { grid-column: 1 / span 9; grid-row: 1; align-self: start; }
  .profile {
    grid-column: 8 / -1;
    grid-row: 1;
    margin: 50% 14px 0 0;
    padding: clamp(28px, 2.8vw, 40px);
    box-shadow: 14px 14px 0 var(--yellow);
  }
  .story-text {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
    margin-top: clamp(72px, 8vw, 110px);
  }
  .promise-inner { grid-template-columns: minmax(0, .28fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
  .promise ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
}

/* ---------- 7. 02 レッスン ---------- */
.lesson { padding-block: var(--section); background: var(--pink-light); }
.lesson .section-no { color: var(--pink); }
.lesson .section-head { align-items: start; }

.lesson-cards { display: grid; }
.lesson-cards article {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.6vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
}
.card-no {
  margin-bottom: clamp(28px, 6vw, 90px);
  color: var(--pink);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}
.lesson-cards h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.4;
}
.lesson-cards article > p:last-child { color: var(--gray); font-size: .93rem; }

.lesson-cards .card-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.lesson-cards .card-dark .card-no { color: rgba(255, 255, 255, .22); }
.lesson-cards .card-dark > p:last-child { color: rgba(255, 255, 255, .78); }
.lesson-cards .card-yellow { background: var(--yellow); border-color: var(--yellow); }
.lesson-cards .card-yellow .card-no { color: rgba(37, 34, 35, .2); }
.lesson-cards .card-yellow > p:last-child { color: rgba(37, 34, 35, .82); }

.lesson-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(56px, 7vw, 96px);
}
.lesson-cta::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: 12px;
  background: var(--ink);
}
.lesson-cta p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.7;
}

@media (min-width: 860px) {
  /* 3枚を少しずつ下にずらして並べる */
  .lesson-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 64px; }
  .lesson-cards .card-dark { transform: translateY(32px); }
  .lesson-cards .card-yellow { transform: translateY(64px); }
}

/* ---------- 8. 03 Q&A ---------- */
.faq { padding-block: var(--section); }
.faq-inner { display: grid; gap: 44px; }
.faq .section-no { margin-bottom: 20px; color: var(--yellow); }
.faq-title h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.3vw, 3rem);
  line-height: 1.55;
  letter-spacing: .03em;
}

.questions { border-top: 2px solid var(--ink); }
.questions details { border-bottom: 1px solid var(--ink); }
.questions summary {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) 1.2em;
  gap: 12px;
  align-items: baseline;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
}

.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.questions details[open] summary::after { content: "−"; }
.questions summary b {
  color: #8a6a00;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
}
.questions details > p {
  padding: 0 calc(1.2em + 16px) 28px calc(2.4em + 16px);
  color: var(--gray);
}
.faq-body .line-link { margin-top: 32px; }

@media (min-width: 860px) {
  .faq-inner {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: start;
  }
  .faq-title { position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-title h2 { font-size: clamp(1.6rem, 3.2vw, 2.7rem); }
}

/* ---------- 9. お問い合わせ ---------- */
.contact { overflow: hidden; background: var(--yellow); }
.contact-inner {
  display: grid;
  gap: 44px;
  padding-top: var(--section);
}
.contact-copy h2 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  line-height: 1.45;
  letter-spacing: .04em;
}
.contact-copy > p:last-child { max-width: 30em; }

.contact-actions { border-top: 2px solid var(--ink); }
.contact-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  transition: padding .2s, background .2s, color .2s;
}
.contact-actions a:hover { padding-inline: 16px; color: #fff; background: var(--ink); }
.contact-actions .act { min-width: 0; line-height: 1.6; }
.contact-actions small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .02em;
  opacity: .8;
}

/* 背景の大きな英字（画面幅に必ず収まる大きさ） */
.contact-bg {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 0 var(--gutter) clamp(20px, 3vw, 40px);
  color: rgba(37, 34, 35, .1);
  font-weight: 900;
  font-size: clamp(2.4rem, 15.2vw, 13rem);
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 860px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
  }
}

/* ---------- 10. フッター ---------- */
.footer { color: rgba(255, 255, 255, .78); background: var(--ink); font-size: .74rem; letter-spacing: .1em; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-block: 26px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer a:hover { color: var(--yellow); }

/* ---------- 11. 下層ページ ---------- */
/* ページ上部のピンクの見出しエリア */
.page-hero {
  padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px);
  background: var(--pink);
}
.page-hero .hero-title {
  padding: 0;
  margin-bottom: clamp(24px, 4vw, 48px);
  font-size: clamp(2.4rem, 13vw, 8rem);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.45;
  letter-spacing: .06em;
}
.page-lead { max-width: 38em; margin-top: 16px; }
.page-lead span { display: inline-block; }

.block { padding-block: var(--section); }
.block.is-pink { background: var(--pink-light); }
/* ごく薄いモスグリーン（健康ウォーキングの背景） */
.block.is-green { background: #eef2e5; }
.section-no.is-pink { color: var(--pink); }

/* 文章：段落の間をあける */
.prose p + p { margin-top: 1.4em; }
.prose .line-link { margin-top: 32px; }
.prose a:not(.line-link), .questions details a { text-underline-offset: 4px; }

/* 左右2列（スマホは縦並び） */
.split { display: grid; gap: 36px; }
.split-title,
.pull {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.6;
  letter-spacing: .04em;
}
.split-title { margin-bottom: 24px; }
.split-title span, .pull span, .next p span { display: inline-block; }
.split .contact-actions { align-self: start; }

/* 写真と黒い箱 */
.media { position: relative; }
.media-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* スマホでは縦長の写真を切らずに全身で見せる */
@media (max-width: 859px) {
  .media-photo.is-tall-sp img { aspect-ratio: auto; height: auto; }
}
/* PC・タブレットで、16:9より縦に余裕を持たせたい写真用（4:3） */
@media (min-width: 860px) {
  .media-photo.is-43 img { aspect-ratio: 4 / 3; }
}
.media-card {
  position: relative;
  /* スマホ：写真のすぐ下にぴったり付ける（写真には重ねない） */
  margin: 0 12px 0 24px;
  padding: 36px 28px;
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}
.media-card .kicker { color: var(--yellow); }
.media-card p + p { margin-top: 1em; }
.media-card .text-link { margin-top: 26px; }

.faq-note { margin-top: 28px; color: var(--gray); }
.faq:has(.faq-note) .faq-title { position: static; }

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.next p { font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.7; }

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 7vw, 110px);
  }
  /* 写真と黒い箱を同じ行に置き、箱を写真の右下に重ねる。
     文章が長くなっても箱が上にはみ出さない（行の高さが箱に合わせて伸びる） */
  .media {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }
  .media-photo { grid-column: 1 / span 9; grid-row: 1; align-self: start; }
  .media-card {
    grid-column: 8 / -1;
    grid-row: 1;
    /* 上の余白は箱の幅に対する割合。写真の高さの約半分まで下げ、ドレスにかからないようにする */
    margin: 50% 14px 0 0;
    padding: clamp(28px, 2.8vw, 40px);
    box-shadow: 14px 14px 0 var(--yellow);
  }
  .media { padding-bottom: 14px; }

  /* 縦長の全身写真用：写真を左、黒い箱を右に並べる。
     箱は写真の右端の余白にだけ少し重ね、人物（足元）にはかからない */
  .media.is-portrait { align-items: center; }
  .media.is-portrait .media-photo { grid-column: 1 / span 5; align-self: center; }
  .media.is-portrait .media-card { grid-column: 6 / -1; margin: 0 14px 0 -5%; }
}

/* タブレット縦（700〜859px）でも、縦長写真は横並びにして写真が大きくなりすぎないようにする */
@media (min-width: 700px) and (max-width: 859px) {
  .media.is-portrait {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    padding-bottom: 14px;
  }
  .media.is-portrait .media-photo { grid-column: 1 / span 5; grid-row: 1; }
  .media.is-portrait .media-card { grid-column: 6 / -1; grid-row: 1; margin: 0 14px 0 -5%; padding: 28px 24px; }
}

/* 縦長の全身写真は、どの画面幅でも切り抜かない */
.media.is-portrait .media-photo img { aspect-ratio: auto; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 写真を小さめに見せる指定（ハイヒールの写真用）。写真の枠ごと、これまでの65%の大きさにしている */
.media-photo.is-small { width: 65%; }
/* スマホ・タブレット縦：小さくした写真は中央に置く */
@media (max-width: 859px) {
  .media-photo.is-small { margin-inline: auto; }
}
@media (min-width: 860px) {
  /* 写真が小さくなった分、黒い箱を左へ広げて写真の右端の壁の部分にだけ重ねる（靴・テーブルにはかからない） */
  .media.is-compact .media-card { grid-column: 6 / -1; margin-top: 26%; }
}

/* ---------- 本体サイト（仙台・つぼ美ウォーキングレッスン）へのリンク ---------- */
/* トップページの紹介枠：ピンクの帯に黒い箱 */
.sister { padding-block: var(--section); background: var(--pink); }
.sister-card {
  max-width: 780px;
  margin-right: 10px;
  padding: 36px 28px;
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}
.sister-card .kicker { color: var(--yellow); }
.sister-card h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 5.6vw, 2.2rem);
  line-height: 1.5;
  letter-spacing: .04em;
}
.sister-card h2 span { display: inline-block; }
.sister-card .text-link { margin-top: 26px; }
@media (min-width: 860px) {
  .sister-card { margin-right: 14px; padding: clamp(36px, 4vw, 56px); box-shadow: 14px 14px 0 var(--yellow); }
}
/* ストーリー本文の中のリンク */
.story-copy a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.story-copy a:hover { background: var(--yellow); }

/* ---------- 本体サイトへのリンク（ページの一番上・全ページ共通） ---------- */
/* 仙台のサイトの緑（#88c100）を基調に、ベタ塗りにせず淡い色＋木漏れ日のぼかしで上品に見せる。
   スクロールするとこの部分だけ流れて消え、メニューは今までどおり上に残る */
.sendai-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px var(--gutter);
  color: #0a4f3d;
  background:
    radial-gradient(60px 26px at 12% 0%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(90px 30px at 30% 110%, rgba(136, 193, 0, .22), transparent 70%),
    radial-gradient(70px 28px at 68% -10%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(110px 34px at 88% 120%, rgba(136, 193, 0, .26), transparent 70%),
    linear-gradient(90deg, #f6faea 0%, #e9f3cf 50%, #f6faea 100%);
  border-bottom: 1px solid #b7d86a;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-decoration: none;
}
.sendai-bar .leaf { flex: none; color: #88c100; }
.sendai-bar .arrow { color: #5d9300; transition: transform .2s; }
.sendai-bar a:hover .arrow { transform: translateX(4px); }

/* PC：左は空け、メニュー（ホーム〜お問い合わせ）の真上に同じ幅のボタンとして置く。
   幅は script.js がメニューの実際の幅を測って --nav-w に入れる（測れないときは近い値で表示） */
@media (min-width: 860px) {
  .sendai-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px var(--gutter) 0;
    background: rgba(255, 253, 249, .94);
  }
  .sendai-bar a {
    width: var(--nav-w, clamp(440px, 36vw, 510px));
    min-height: 34px;
    padding: 5px 16px;
    border: 1px solid #a9cf52;
    font-size: .78rem;
    box-shadow: 0 1px 0 rgba(10, 79, 61, .08);
    transition: border-color .2s, box-shadow .2s;
  }
  .sendai-bar a:hover { border-color: #88c100; box-shadow: 0 2px 8px rgba(136, 193, 0, .28); }
  .sendai-bar .arrow { margin-left: 6px; }
}

/* 緑の帯（PCは緑のボタン）も、メニューと一緒に画面上部に残す（スクロールしても消えない）。
   その高さ（--bar-h）ぶん、メニューを下げ、ページ内リンクの止まる位置なども合わせる */
:root { --bar-h: 46px; }
html { scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 12px); }
.sendai-bar { position: sticky; top: 0; z-index: 51; }
.header { top: var(--bar-h); }
/* スマホ・タブレット縦：左右いっぱいの帯ではなく、余白と細い緑の枠を付けた横長のボタンにする
   （模様ではなく、押せるボタンだと分かるように） */
@media (max-width: 859px) {
  :root { --bar-h: 46px; }
  .sendai-bar { height: 46px; padding: 8px var(--gutter) 0; background: var(--paper); }
  .sendai-bar a {
    height: 36px; min-height: 0; padding: 0 14px; white-space: nowrap;
    border: 1px solid #a9cf52;
    box-shadow: 0 1px 0 rgba(10, 79, 61, .08);
  }
  .header { background: var(--paper); backdrop-filter: none; }
}
@media (min-width: 860px) {
  :root { --bar-h: 44px; }
  /* 緑のボタンの段とメニューの段の色がずれて継ぎ目が見えないよう、PCではどちらも同じ不透明の地色にする */
  .sendai-bar { height: 44px; background: var(--paper); }
  .header { background: var(--paper); backdrop-filter: none; }
  .sendai-bar a { height: 34px; min-height: 0; padding-block: 0; white-space: nowrap; }
  .hero { min-height: min(calc(100svh - var(--header-h) - var(--bar-h)), 880px); }
  .faq-title { top: calc(var(--header-h) + var(--bar-h) + 32px); }
}
