/* ===== 色・共通設定（ここを変えると全体の雰囲気が変わります） ===== */
:root {
  /* ロゴの色：こげ茶 #6f3f28 / テラコッタ #b86445 / クリーム #f6e2c8 */
  --brown: #6f3f28;       /* 見出し（ロゴの文字色） */
  --text: #5a4034;        /* 本文（ロゴのこげ茶を少しやわらかく） */
  --muted: #806a5e;       /* 補足の文字（白い背景で読みやすいよう、コントラスト比4.5以上の濃さ） */
  --pink: #d9958a;        /* アクセントのピンク（テラコッタ寄りのコーラル） */
  --pink-dark: #b86a5e;   /* 文字に使うピンク */
  --pink-light: #f6e1dc;
  --bg-soft: #fcf8f4;     /* セクション背景（ロゴのクリームをごく薄く） */
  --line: #f0e6df;        /* 罫線・枠線 */
  --line-strong: #e2d3c8;
  --white: #ffffff;
  --line-green: #00853b;  /* LINEボタン：LINEの緑（#06C755）を、白い文字が読みやすい濃さにしたもの */
  --sale-red: #e2604f;      /* モニター価格の赤（大きな数字用。サイトのピンクになじむコーラル寄り） */
  --sale-red-text: #b8463a; /* 小さな文字用の赤（読みやすいよう少し濃く） */
  --sale-red-light: #fde8e3;
  --radius: 16px;
  --header-h: 72px;
  --gutter: 24px;         /* 画面の左右の余白（ロゴ・ご注文ボタン・ヒーローの文字の位置） */
  --shadow: 0 4px 16px rgba(111, 63, 40, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* 動きの終わりがふわっと止まる */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

h1, h2, h3 { color: var(--brown); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* 画面には出さず、読み上げソフトにだけ伝える */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-order {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 149, 138, 0.35); /* ピンクのやわらかい影 */
}
.btn-order:hover { background: var(--pink-dark); box-shadow: 0 10px 24px rgba(184, 106, 94, 0.35); }
.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink-dark); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #006e31; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* 画面いっぱいに広げて、ロゴは左端・ご注文ボタンは右端に */
.header-inner {
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img { height: 48px; width: auto; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 24px; list-style: none; }
.global-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--pink-dark);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.global-nav a:hover { color: var(--pink-dark); }
.global-nav a:hover::after { transform: scaleX(1); }

.header-inner .btn-order { padding: 10px 22px; font-size: 0.95rem; }

.menu-toggle { display: none; }

/* ===== ホーム（ファーストビュー） ===== */
/* 画面いっぱいのメイン画像の上に、キャッチコピーを重ねる */
.hero {
  /* メイン画像の高さ：画面の幅に合わせた16:9。ただし画面の高さより大きくはしない */
  --hero-img-h: min(56.25vw, calc(100svh - var(--header-h)));
  position: relative;
  display: grid;
  overflow: hidden;
  background: #fdf8f3; /* 画像が透けて見える、クリーム色の下地 */
}
.hero-visual {
  grid-area: 1 / 1;
  height: var(--hero-img-h);
  overflow: hidden;
  /* 画像の下のほうを、だんだん消していく */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 96%);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.78; /* 少し透明に。小さくするほど薄くなります */
}
/* キャッチコピー：画像の高さの60%あたり（2人の顔の下）から始まる */
.hero-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  padding: calc(var(--hero-img-h) * 0.6) var(--gutter) 104px;
  text-align: center;
}
.hero-sub {
  margin-bottom: 12px;
  color: var(--brown);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-sub em { font-style: normal; color: var(--pink-dark); }
/* キャッチコピーは、マーカーで書いたような手書き風の「Yusei Magic」で */
.hero-catch {
  margin-bottom: 20px;
  font-family: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.25rem, 6.4vw, 3.6rem); /* 小さいスマホでも「写真から、世界にひとつの」が1行に収まる大きさ */
  font-weight: 400; /* Yusei Magic は太さが1種類だけ */
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap; /* <br> の位置以外では改行しない */
  text-shadow: 0 2px 16px rgba(253, 248, 243, 0.9); /* 画像の上でも読みやすいように、文字のまわりをふんわり明るく */
}
.hero-catch em { font-style: normal; color: var(--pink-dark); }
.hero-lead {
  color: var(--text);
  word-break: auto-phrase; /* 画面が狭くて折り返すときは、言葉の区切りで改行 */
}
/* 下の端を波の形にして、次のセクション（白）へつなげる */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28C240 56 480 56 720 32S1200 0 1440 24V56H0Z' fill='white'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }
/* クリーム色のセクション：上下を波の形にして、隅にうっすら色のにじみ
   （にじみは上下の端に届かない位置に置いて、波との境目が見えないようにしています） */
.section-soft {
  position: relative;
  background:
    radial-gradient(26% 28% at 0% 34%, rgba(246, 222, 214, 0.5), transparent 70%),
    radial-gradient(26% 26% at 100% 70%, rgba(222, 232, 210, 0.45), transparent 70%),
    var(--bg-soft);
}
.section-soft::before,
.section-soft::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C240 2 480 0 720 16S1200 38 1440 12V40Z' fill='%23fcf8f4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.section-soft::before,
.site-footer::before { top: -39px; }
.section-soft::after { bottom: -39px; transform: scale(-1, -1); } /* 下の波は上下左右を反転 */

.section-title { margin-bottom: 56px; text-align: center; }
/* 見出しの上の英字は、少し傾けた手書きの筆記体で */
.en {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--pink);
  font-family: "Caveat", cursive;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
}
/* 見出しはトップのキャッチコピーと同じ手書き風。下にクレヨンで描いたような波線 */
.section-title h2 {
  font-family: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 400;
  word-break: auto-phrase; /* 「スタンプ／に。」のように言葉の途中で改行しない */
}
.section-title h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 12px;
  margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 12'%3E%3Cpath d='M3 7c6-5 11-5 17 0s11 5 17 0 11-5 17 0 11 5 17 0' fill='none' stroke='%23d9958a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-lead {
  margin-top: 20px;
  color: var(--muted);
  word-break: auto-phrase; /* 折り返すときは、言葉の区切りで改行 */
}

/* ===== ビフォーアフター ===== */
.ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}
.ba-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(111, 63, 40, 0.12);
}
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after .ba-img { background: #f6e8dc; } /* スタンプ画像の背景色と同じ */
.ba-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.ba-after .ba-label { background: var(--pink); color: var(--white); }
.ba-item figcaption {
  margin-top: 14px;
  color: var(--brown);
  font-weight: 700;
  text-align: center;
}
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 38px; /* 下の説明文のぶん上げて、画像の真ん中にそろえる */
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink-dark);
}
.ba-arrow svg { width: 24px; height: 24px; }

/* ===== モニター募集（ファーストビューのすぐ下） ===== */
.monitor { padding: 40px 0 64px; }
.monitor-box {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 40px 36px;
  border: 2px solid var(--pink);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff5f1 0%, var(--white) 70%);
  box-shadow: 0 16px 40px rgba(111, 63, 40, 0.08);
  text-align: center;
}
/* 枠の上にはみ出させた「オープン記念」のリボン */
.monitor-badge {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 22px;
  border: 1px solid #f3c0b6;
  border-radius: 999px;
  background: var(--sale-red-light);
  color: var(--sale-red-text);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(226, 96, 79, 0.15);
}
.monitor-badge strong { margin: 0 2px; font-size: 1.2em; }
.monitor h2 {
  margin-bottom: 14px;
  word-break: auto-phrase; /* 「受付中」の途中で改行しない */
  font-family: "Yusei Magic", "Zen Maru Gothic", sans-serif; /* トップのキャッチコピーと同じ手書き風 */
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 400;
}
.monitor-lead { color: var(--text); word-break: auto-phrase; }
.monitor-prices {
  display: grid;
  gap: 10px;
  max-width: 460px;
  margin: 28px auto 32px;
  list-style: none;
}
.monitor-prices li {
  display: grid;
  grid-template-columns: 3.2em 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.monitor-count { color: var(--brown); font-size: 1.1rem; font-weight: 700; text-align: left; }
.monitor-regular { color: var(--muted); font-size: 0.9rem; text-align: right; }
.monitor-regular s { margin-left: 4px; text-decoration-thickness: 1.5px; }
.monitor-arrow { color: var(--pink); font-weight: 700; }
.monitor-price { color: var(--sale-red); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.monitor-price small { margin-left: 1px; font-size: 0.5em; }
/* モニターの条件（大事なので、赤い枠で囲んで目立たせる） */
.monitor-condition {
  max-width: 460px;
  margin: 0 auto 28px;
  padding: 14px 20px 16px;
  border: 2px solid var(--sale-red);
  border-radius: 14px;
  background: var(--sale-red-light);
  text-align: left;
}
.monitor-condition-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--sale-red-text);
  font-size: 0.9rem;
  font-weight: 700;
}
/* 見出しの前の「!」マーク */
.monitor-condition-title::before {
  content: "!";
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sale-red-text);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1;
}
.monitor-condition-text {
  color: var(--brown);
  font-weight: 700;
  line-height: 1.7;
  word-break: auto-phrase;
}
.monitor-condition-note {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
  word-break: auto-phrase;
}
/* 料金プランのカードの上にも同じ条件を */
.plans-condition { max-width: 640px; margin: -16px auto 48px; }
.monitor-notes {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  word-break: auto-phrase;
}

/* ===== 料金・プラン ===== */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.plan.is-popular { border-color: var(--pink); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 16px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.plan h3 { margin-bottom: 4px; font-size: 1.3rem; }
.plan-desc {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: auto-phrase; /* 狭い画面で折り返すときは、言葉の区切りで改行 */
}
/* プランの違いはスタンプの個数だけなので、個数を目立たせる */
.plan-count {
  color: var(--brown);
  font-weight: 700;
}
.plan-count strong {
  margin: 0 4px;
  color: var(--pink-dark);
  font-size: 2.2rem;
  line-height: 1;
}
/* 修正回数・完成目安：左に項目名、右に内容 */
.plan-spec {
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  list-style: none;
}
.plan-spec li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 240px);
  margin: 0 auto;
  padding: 5px 0;
}
.plan-spec li + li { border-top: 1px dashed var(--line-strong); }
.plan-spec span { color: var(--muted); white-space: nowrap; }
.plan-spec strong { color: var(--brown); white-space: nowrap; }
/* モニター価格：通常価格に打ち消し線を引き、モニター価格を赤で大きめに */
.plan-monitor {
  align-self: center;
  margin-top: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sale-red-light);
  color: var(--sale-red-text);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-price {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 28px;
  font-weight: 700;
}
.plan-price-regular { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.plan-price-regular s { text-decoration-thickness: 1.5px; }
.plan-price-now { color: var(--sale-red); font-size: 2.5rem; line-height: 1.2; }
.plan-price small { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
/* 掲載なしの方向けの、通常価格の商品へのリンク（ボタンの下に控えめに） */
.plan-regular-link {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: auto-phrase;
}
.plan-regular-link:hover { color: var(--pink-dark); }
.plans-note { margin-top: 32px; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ===== ご利用の流れ ===== */
/* 左に番号、右に説明。番号どうしを縦の線でつないで、上から順に読めるようにしています */
.flow,
.flow-info { max-width: 860px; margin: 0 auto; }
.flow { --num: 60px; list-style: none; }
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: var(--num) 1fr;
  gap: 24px;
  padding-bottom: 24px;
}
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: var(--num);
  bottom: 0;
  left: calc(var(--num) / 2);
  width: 1px;
  background: var(--line-strong);
}
.flow-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--num);
  height: var(--num);
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.flow-num small { margin-bottom: 3px; font-size: 0.55rem; letter-spacing: 0.1em; }
.flow-body {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.flow h3 { margin-bottom: 8px; font-size: 1.15rem; }
/* 言葉の区切りで改行し、最後の行に1〜2文字だけ残らないように */
.flow-body,
.info-box { word-break: auto-phrase; text-wrap: pretty; }
.flow p { font-size: 0.95rem; }
.flow p + p { margin-top: 6px; }
.flow-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
/* ステップ1：写真の送り先（LINE） */
.flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.flow-line .btn { padding: 10px 24px; font-size: 0.95rem; }
.flow-line strong { color: var(--brown); }
.flow-line small { color: var(--muted); font-size: 0.85rem; }

/* 申請について・おすすめ・ご準備いただくもの */
.flow-info { margin-top: 56px; }
.info-box {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.info-box h3 { margin-bottom: 12px; font-size: 1.1rem; }
.info-box p { font-size: 0.95rem; }
.info-box p + p { margin-top: 8px; }
.info-box strong { color: var(--brown); }
.info-box em { font-style: normal; font-weight: 700; color: var(--pink-dark); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.check-list { list-style: none; font-size: 0.95rem; }
.check-list li { position: relative; padding: 4px 0 4px 30px; }
/* チェックマーク：ピンクの丸 ＋ レ点 */
.check-list li::before {
  content: "";
  position: absolute;
  top: calc(4px + 0.9em - 10px);
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink-light);
}
.check-list li::after {
  content: "";
  position: absolute;
  top: calc(4px + 0.9em - 6px);
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--pink-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== よくある質問 ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq summary {
  position: relative;
  padding: 20px 56px 20px 60px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q.";
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  color: var(--pink-dark);
  font-size: 1.1rem;
}
.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 20px 60px; color: var(--muted); }
/* 「苦／手です。」のように言葉の途中で改行せず、最後の行に1〜2文字だけ残らないように */
.faq summary,
.faq-answer { word-break: auto-phrase; text-wrap: pretty; }

/* ===== こぼく工房について ===== */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
/* 丸いエンブレム：画像の四隅を丸く切り取り、ヒーロー画像と同じやわらかい影で少し浮かせる */
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(111, 63, 40, 0.12);
}
.about-catch {
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.5;
}
.about-catch em { font-style: normal; color: var(--pink-dark); }
.about p + p { margin-top: 12px; }

/* 言葉の区切りで改行し、最後の行に1〜2文字だけ残らないように */
.about-text p,
.about-name p,
.about-message { word-break: auto-phrase; text-wrap: pretty; }

/* 「こぼく工房」の由来 */
.about-name {
  max-width: 900px;
  margin: 72px auto 0;
  padding: 48px 56px;
  border-radius: 24px;
  background: var(--bg-soft);
  text-align: center;
}
.about-name h3 { margin-bottom: 16px; font-size: 1.3rem; }
.about-name-lead {
  margin-bottom: 16px;
  color: var(--brown);
  font-size: 1.15rem;
  font-weight: 700;
}
.about-name-lead em { font-style: normal; color: var(--pink-dark); }
.about-name p + p { margin-top: 8px; }

/* 締めくくりのメッセージ：イラストの下に、メッセージを中央ぞろえで */
.about-closing { max-width: 900px; margin: 72px auto 0; }
/* LINEのアイコンのように、丸く切り抜いて少し浮かせる */
.about-closing-img {
  width: min(260px, 64%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(111, 63, 40, 0.12);
}
.about-message {
  color: var(--brown);
  font-size: 1.1rem;
  line-height: 2.2;
  text-align: center;
}
.about-message strong { color: var(--pink-dark); font-size: 1.3rem; }

/* ===== ご注文 ===== */
#order { padding-top: 0; }
.order-box {
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-soft);
  text-align: center;
}
.order-box h2 {
  margin-bottom: 12px;
  font-family: "Yusei Magic", "Zen Maru Gothic", sans-serif; /* セクションの見出しと同じ手書き風 */
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.5;
  word-break: auto-phrase; /* 「つくりません／か？」のように言葉の途中で改行しない */
}
.order-box p { margin-bottom: 32px; color: var(--muted); word-break: auto-phrase; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.order-actions .btn { min-width: min(100%, 250px); } /* 縦に並んだときも同じ幅に */

/* ===== フッター ===== */
.site-footer {
  position: relative; /* 上の端の波（.section-soft と共通）の基準 */
  padding: 48px 0 32px;
  background: var(--bg-soft);
  text-align: center;
}
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { height: 40px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  list-style: none;
}
.footer-nav a:hover { color: var(--pink-dark); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  list-style: none;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--pink-dark); }
.copyright { color: var(--muted); font-size: 0.8rem; }

/* ===== ページ全体の動き ===== */
/* スクロールして画面に入ったら、下からふわっと表示（対象は script.js の REVEAL_TARGETS） */
.has-reveal .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.8s ease,
    translate 0.8s var(--ease-out),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.has-reveal .reveal.is-visible { opacity: 1; translate: none; }

/* ページを開いたとき、メイン画像が少し大きい状態からゆっくり落ち着き、キャッチコピーがふわっと現れる */
.hero-visual img { animation: hero-zoom 2.4s var(--ease-out) both; }
.hero-copy { animation: hero-in 1.2s var(--ease-out) 0.4s both; }
@keyframes hero-zoom {
  from { opacity: 0; transform: scale(1.08); }
}
@keyframes hero-in {
  from { opacity: 0; translate: 0 24px; }
}

/* スクロールしたら、ヘッダーの下にうっすら影 */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(111, 63, 40, 0.08); }

/* マウスを乗せると、プランのカードが少し浮く／ビフォーアフターの画像が少し大きくなる */
.plan { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(111, 63, 40, 0.1); }
.ba-img img { transition: transform 0.6s var(--ease-out); }
.ba-img:hover img { transform: scale(1.04); }

/* エンブレムと親子のイラストが、ゆっくりふわふわ上下する */
.about-photo { animation: float 6s ease-in-out infinite; }
.about-closing-img { animation: float 6s ease-in-out 1.5s infinite; }
@keyframes float {
  50% { transform: translateY(-10px); }
}

/* ビフォーアフターの矢印が、行き来する */
.ba-arrow svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(3px); }
}

/* 「動きを減らす」設定にしている人には、動きを出さない（スクロールでの表示は script.js で止めています） */
@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .hero-copy,
  .about-photo,
  .about-closing-img,
  .ba-arrow svg { animation: none; }
  .plan:hover,
  .ba-img:hover img { transform: none; }
}

/* ===== タブレット・スマホ：メニューを折りたたむ ===== */
@media (max-width: 1024px) {
  .header-inner .btn-order { margin-left: auto; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .global-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .global-nav a::after { display: none; }
}

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }

  /* ビフォーアフターは縦に並べ、矢印を下向きに */
  .ba { grid-template-columns: 1fr; gap: 16px; max-width: 420px; }
  .ba-arrow { margin: 0 auto; transform: rotate(90deg); }

  .about { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-photo { width: 220px; margin: 0 auto; }
}

/* スマホ：16:9のままだと画像が細くなるので、縦長にして左右を切る（2人の顔が入る位置に合わせる） */
@media (max-width: 600px) {
  .hero { --hero-img-h: 112vw; }
  .hero-visual img { object-position: 52% 35%; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .logo img { height: 36px; }
  .header-inner .btn-order { padding: 8px 14px; font-size: 0.85rem; }
  .hero::after { height: 32px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-sub { font-size: 0.85rem; letter-spacing: 0.04em; } /* 小さいスマホでも1行に収まるように */

  /* モニター募集：価格の行は「左に個数／右に通常価格、その下にモニター価格」の2段に */
  .monitor { padding: 32px 0 48px; }
  .monitor-box { padding: 44px 16px 28px; }
  .monitor-lead { font-size: 0.9rem; }
  .monitor-prices { margin: 24px auto 28px; }
  .monitor-prices li {
    grid-template-columns: auto 1fr;
    grid-template-areas: "count regular" "count price";
    gap: 2px 12px;
    padding: 10px 14px;
  }
  .monitor-count { grid-area: count; }
  .monitor-regular { grid-area: regular; font-size: 0.8rem; white-space: nowrap; }
  .monitor-arrow { display: none; }
  .monitor-price { grid-area: price; justify-self: end; font-size: 1.6rem; white-space: nowrap; }
  .monitor .btn-lg { padding: 14px 24px; }
  .hero-lead br { display: none; }
  .section { padding: 64px 0; }
  .section-lead { text-align: left; }
  .plan { padding: 36px 24px; }
  .flow { --num: 44px; }
  .flow li { gap: 14px; padding-bottom: 16px; }
  .flow-num { font-size: 1.1rem; }
  .flow-num small { font-size: 0.45rem; }
  .flow-body,
  .info-box { padding: 20px; }
  /* スマホでは、長い文章は左寄せのほうが読みやすい */
  .about-text p,
  .about-name p:not(.about-name-lead) { text-align: left; }
  .about-name { margin-top: 48px; padding: 32px 20px; }
  .about-closing { margin-top: 48px; }
  .about-closing-img { width: min(200px, 60%); margin-bottom: 20px; }
  .about-message { font-size: 1rem; }
  .about-message strong { font-size: 1.15rem; }
}

/* とても小さいスマホ：文章の幅が狭いので、言葉の区切りにこだわらず行いっぱいまで使う */
@media (max-width: 360px) {
  .flow-body,
  .info-box,
  .faq-answer,
  .about-text p,
  .about-name p:not(.about-name-lead) { word-break: normal; }
  .flow h3,
  .info-box h3 { word-break: auto-phrase; } /* 見出しは言葉の途中で切らない */
}
