/* サラリ LP（練習用）— 決まりは design.md */
:root {
  --text: #666666;
  --text-dark: #333333;
  --white: #ffffff;
  --pink-bg: #ffeeff;
  --rose: #b16ea0;
  --lavender: #8874aa;
  --blue: #6e91b9;
  --rose-10: rgba(177, 110, 160, .10);
  --lavender-10: rgba(136, 116, 170, .10);
  --blue-10: rgba(110, 145, 185, .10);
  --col: 410px;
  --pad: 24px;
  --sec: 72px;
}
@media (min-width: 768px) { :root { --sec: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--pink-bg);
  /* 日本語を文節で折り返し、1〜2文字だけ次の行に落ちるのを防ぐ */
  word-break: auto-phrase;
  text-wrap: pretty;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* 背景（画面いっぱい・動かない） */
.bg { position: fixed; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; }

/* 真ん中の列 */
.col { position: relative; width: 100%; max-width: var(--col); margin: 0 auto; }

/* ── 1 最初の画面 ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  container-type: inline-size;
}
.hero__person {
  position: absolute; left: 50%; bottom: 0;
  height: 62%; width: auto; max-width: none;
  transform: translateX(-50%);
}
.hero__bubble {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  animation: fuwa 6s ease-in-out infinite;
}
@keyframes fuwa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }
.hero__catch { position: absolute; top: 6%; left: 0; right: 0; text-align: center; z-index: 2; }
.hero__copy {
  margin-top: 4px; padding: 0 16px;
  color: var(--white); font-size: 16px; line-height: 1.8; letter-spacing: .08em;
  text-shadow: 0 0 6px rgba(177,110,160,.9), 0 0 14px rgba(177,110,160,.6);
}
.hero__btn { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; width: calc(100% - 2 * var(--pad)); }

/* 台座＋商品名（文字は画像にしない） */
.plate { position: relative; width: 76%; margin: 0 auto; font-size: inherit; font-weight: 400; }
.plate img { width: 100%; aspect-ratio: 1536 / 820; object-fit: cover; }
/* 見本に寄せた商品名：太めの英字セリフ体を白で、ピンクの影で板から浮き出させる */
.plate__name {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em;
  color: var(--white); font-size: clamp(26px, 9.5cqi, 38px); line-height: 1;
}
.plate__en {
  font-family: "Cinzel", "Times New Roman", serif; font-weight: 600;
  letter-spacing: .12em; padding-left: .12em;
  text-shadow:
    0 1px 0 #f2b3c8,
    0 2px 0 #e39ab4,
    0 3px 0 #d4869f,
    0 4px 6px rgba(160, 80, 120, .45),
    0 0 12px rgba(255, 255, 255, .35);
}
.plate__ja {
  font-size: .36em; letter-spacing: .4em; padding-left: .4em;
  text-shadow: 0 1px 2px rgba(177,110,160,.7);
}

/* ── ボタン ── */
.btn {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 32px; margin: 40px auto 0; max-width: 100%;
  border: 0; border-radius: 999px; background: var(--rose); color: var(--white);
  font: inherit; font-size: 16px; letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
/* 影はつけない。押せる感じは色の濃さで出す */
.btn:hover { background: #9c5b8c; }
@media (max-width: 359px) { .btn { padding: 0 16px; font-size: 15px; letter-spacing: .04em; } }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

/* ── セクションの共通 ── */
.sec { padding: var(--sec) var(--pad); background: var(--white); }
.sec--pink { background: var(--pink-bg); }
.sec__title {
  font-weight: 400; font-size: 22px; line-height: 1.4; letter-spacing: .08em;
  color: var(--text-dark); text-align: center; margin-bottom: 40px;
}
@media (min-width: 768px) { .sec__title { font-size: 25px; } }
@media (max-width: 359px) { .sec__title { font-size: 20px; letter-spacing: .04em; } }
.sec__title::after { content: ""; display: block; width: 40px; height: 1px; margin: 20px auto 0; background: var(--rose); }
.sec__text { margin-top: 32px; }
.note { font-size: 13px; text-align: center; margin-top: 16px; }

/* 2 悩み */
.worry { display: grid; gap: 16px; }
.worry__item {
  position: relative; padding: 24px 24px 24px 56px; border-radius: 16px; background: var(--white);
  box-shadow: 0 2px 12px rgba(136,116,170,.08);
}
.worry__item::before {
  content: "?"; position: absolute; left: 20px; top: 24px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; line-height: 1; color: var(--white); background: var(--lavender);
}

/* 3 解決 */
.photo img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }

/* 4 選ばれる理由 */
.reason { display: grid; gap: 16px; }
.reason__item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 24px; border-radius: 16px; background: var(--white);
}
/* 番号は順番の意味がないので小さく控えめに（動画のAIっぽさ5） */
.reason__num { grid-row: 1 / 3; align-self: start; padding-top: 4px; font-size: 13px; line-height: 1; color: var(--rose); letter-spacing: .08em; }
.reason__item .icon { width: 28px; height: 28px; color: var(--lavender); }
.reason__item p { color: var(--text-dark); line-height: 1.6; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 5 使い方（Step のカード） */
.step { display: grid; gap: 16px; }
.step__card { padding: 24px; border-radius: 16px; }
.step__card--pink { background: var(--rose-10); }
.step__card--lavender { background: var(--lavender-10); }
.step__card--blue { background: var(--blue-10); }
.step__label { font-size: 13px; letter-spacing: .16em; margin-bottom: 12px; }
.step__card--pink .step__label { color: var(--rose); }
.step__card--lavender .step__label { color: var(--lavender); }
.step__card--blue .step__label { color: var(--blue); }
.step__text { margin-top: 16px; color: var(--text-dark); }

/* 写真の予定の枠（あとで ChatGPT の写真に差しかえる） */
.ph {
  display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 12px;
  background: rgba(255,255,255,.7); border: 1px dashed rgba(136,116,170,.5);
  font-size: 13px; text-align: center; line-height: 1.6;
}
.step__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.price__img { width: 64%; height: auto; margin: 0 auto 16px; }

/* 6 お客様の声 */
.voice { display: grid; gap: 16px; }
.voice__item { padding: 24px; border-radius: 16px; background: var(--white); }
.voice__who { font-size: 13px; color: var(--lavender); margin-bottom: 8px; letter-spacing: .08em; }

/* 7 料金 */
.price { padding: 32px 24px; border-radius: 16px; background: var(--rose-10); text-align: center; }
.price__item { color: var(--text-dark); }
.price__num { color: var(--rose); margin-top: 8px; }
.price__yen { font-size: 40px; letter-spacing: .04em; line-height: 1.2; }
.price__num small { display: block; font-size: 13px; color: var(--text); }
.price .note { margin-top: 8px; }

/* 8 よくある質問 */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: 16px; background: var(--white); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 52px 20px 56px; color: var(--text-dark); line-height: 1.6;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "Q"; position: absolute; left: 24px; top: 18px; color: var(--rose); font-size: 20px; }
.faq__arrow { position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--lavender); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.faq__item[open] .faq__arrow { transform: rotate(180deg); }
.faq__item p { position: relative; padding: 0 24px 20px 56px; }
.faq__item p::before { content: "A"; position: absolute; left: 24px; top: -2px; color: var(--blue); font-size: 20px; }

/* 9 最後の申し込み */
.sec--apply { background: var(--pink-bg); }
.apply__copy { text-align: center; color: var(--rose); letter-spacing: .06em; margin-bottom: 32px; }
.form { display: grid; gap: 20px; padding: 32px 24px; border-radius: 16px; background: var(--white); box-shadow: 0 2px 16px rgba(177,110,160,.10); }
.form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .06em; }
.form input {
  height: 48px; padding: 0 16px; border: 1px solid rgba(136,116,170,.35); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--text-dark); background: var(--white);
}
.form .btn { margin-top: 8px; width: 100%; }
.form__msg { font-size: 13px; text-align: center; color: var(--rose); min-height: 1.75em; }

/* 10 会社の情報 */
.foot { padding: 48px var(--pad) 56px; background: var(--white); font-size: 13px; text-align: center; line-height: 1.9; }
.foot__name { color: var(--text-dark); font-size: 15px; margin-bottom: 4px; }

/* ── 11 パソコンの左右 ── */
.side { display: none; }
@media (min-width: 1024px) {
  .side {
    display: flex; position: fixed; top: 0; bottom: 0; z-index: 1;
    width: calc((100% - var(--col)) / 2);
    flex-direction: column; justify-content: center; align-items: center;
  }
  /* 左は空の上に置く（下半分は花畑で白い文字が読めないため） */
  .side--left { left: 0; container-type: inline-size; justify-content: flex-start; padding-top: 12vh; }
  .side--right { right: 0; }
  .plate--side { width: min(80%, 360px); }
  .plate--side .plate__name { font-size: clamp(28px, 8cqi, 40px); }
  .side__copy {
    margin-top: 8px; color: var(--white); text-align: center; font-size: 19px; line-height: 1.9; letter-spacing: .1em;
    text-shadow: 0 1px 2px rgba(140,70,120,.6), 0 0 6px rgba(177,110,160,.95), 0 0 16px rgba(177,110,160,.7);
    padding: 12px 28px;
    background: radial-gradient(ellipse at center, rgba(177,110,160,.28) 0%, rgba(177,110,160,.12) 50%, rgba(177,110,160,0) 75%);
  }
  .side--right ul { display: grid; gap: 4px; }
  .side--right a:not(.side__btn) {
    display: block; padding: 8px 24px; text-align: center; text-decoration: none; letter-spacing: .1em;
    color: var(--text-dark); border-radius: 999px; background: rgba(255,255,255,.72);
    transition: background .2s, color .2s;
  }
  .side--right a:not(.side__btn):hover { background: var(--white); color: var(--rose); }
  .side__btn {
    margin-top: 24px; padding: 14px 28px; border-radius: 999px; background: var(--rose); color: var(--white);
    text-decoration: none; letter-spacing: .08em; font-size: 15px;
  }
  .col { box-shadow: 0 0 40px rgba(136,116,170,.18); }
}

/* ── スクロールでふわっと出る（JS が動くときだけ隠す） ── */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.is-in { opacity: 1; transform: none; }

/* 視差効果を減らすがオンの人には動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bubble { animation: none; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .btn, .faq__arrow { transition: none; }
}

/* 途中で折りたくない言葉 */
.nw { white-space: nowrap; }

/* ── 見本に寄せた飾り（12/01 夜） ── */
/* 見出しの帯：上に「＼ 一言 ／」、見出しの上下に泡の飾りの線 */
.head {
  margin: 0 calc(-1 * var(--pad)) 40px;
  padding: 28px var(--pad) 24px;
  background: var(--rose); color: var(--white); text-align: center;
}
.head__lead { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.6; letter-spacing: .06em; }
.head__lead::before, .head__lead::after { content: ""; flex: none; width: 22px; height: 1px; background: currentColor; }
.head__lead::before { transform: rotate(60deg); }
.head__lead::after { transform: rotate(-60deg); }
.head__title {
  position: relative; margin: 12px 0 0; padding: 26px 0;
  font-weight: 400; font-size: 24px; line-height: 1.45; letter-spacing: .1em; color: var(--white);
}
.head__title::before, .head__title::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px;
  background: url("../assets/images/sarari-deco-line.webp") center / 100% auto no-repeat;
}
.head__title::before { top: 0; }
.head__title::after { bottom: 0; }
@media (max-width: 359px) { .head__title { font-size: 21px; } .head__lead { font-size: 13px; gap: 10px; } }

/* 吹き出し */
.say {
  position: relative; width: fit-content; margin: 0 auto 32px; padding: 12px 24px;
  border-radius: 12px; background: var(--rose); color: var(--white);
  font-size: 15px; line-height: 1.6; text-align: center; letter-spacing: .06em;
}
.say::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -9px;
  border: 9px solid transparent; border-bottom: 0; border-top-color: var(--rose);
}

/* 角に飾りのある白いカード（左上の飾りを回して4つの角に置く） */
.card { position: relative; background: var(--white); border: 1px solid rgba(177,110,160,.3); border-radius: 6px; }
.card::before, .card::after, .card__corners::before, .card__corners::after {
  content: ""; position: absolute; width: 56px; height: 56px; pointer-events: none;
  background: url("../assets/images/sarari-deco-corner.webp") center / contain no-repeat;
}
.card::before { top: 5px; left: 5px; }
.card::after { bottom: 5px; right: 5px; transform: rotate(180deg); }
.card__corners::before { top: 5px; right: 5px; transform: scaleX(-1); }
.card__corners::after { bottom: 5px; left: 5px; transform: scaleY(-1); }

/* 使い方のカード：地は白に */
.step__card { padding: 36px 28px 32px; }
.step__card--pink, .step__card--lavender, .step__card--blue { background: var(--white); }

/* 選ばれる理由：縦書きのカードを3枚横に */
.reason { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reason__item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 8px 36px; border-radius: 6px;
}
.reason__num { align-self: center; padding-top: 0; }
.reason__text {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 16px; line-height: 1.7; letter-spacing: .12em; color: var(--text-dark);
}
.tcy { text-combine-upright: all; }
@media (max-width: 359px) {
  .reason__text { font-size: 14px; line-height: 1.6; }
  .reason .card::before, .reason .card::after, .reason .card__corners::before, .reason .card__corners::after { width: 40px; height: 40px; }
}

/* 帯はセクションの一番上にぴったり付ける */
.sec > .head:first-child { margin-top: calc(-1 * var(--sec)); }
