/* ============================================================
   ゆる編み（YURUAMI）LP
   同じ毛糸で、ちがうかたちを。
   — つなぐのは色のトーン。モバイルファースト —
   ============================================================ */

:root {
  /* カラーパレット（やさしい赤・青・黄／パステルより一段元気） */
  --cream:      #FAF6EE;  /* ベース：温かいオフホワイト */
  --blue:       #9BBCE0;  /* やさしい空色 */
  --blue-bg:    #E4EDF8;  /* 空色の淡い背景 */
  --pink:       #F0BFC9;  /* やさしいピンク */
  --pink-bg:    #F9E4E8;  /* ピンクの淡い背景 */
  --yellow:     #E8C96A;  /* やさしい黄 */
  --yellow-bg:  #FBF3D6;  /* クリームイエローの淡い背景 */
  --yarn:       #E08A8A;  /* アクセント：やさしい赤（いちごミルクのコーラル） */
  --ink:        #4A443E;  /* テキスト：こげ茶寄りダークグレー */
  --ink-soft:   #6E675F;  /* 補足テキスト */

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 2;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  /* 固定CTAに隠れないための余白 */
  padding-bottom: 84px;
}

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

a { color: inherit; }

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 620px; }

.section { padding: 88px 0; }

/* トーンでつながるセクション背景（黄→ピンク→空色がやさしく続く） */
.section--cream  { background: var(--cream); }
.section--blue   { background: var(--blue-bg); }
.section--pink   { background: var(--pink-bg); }
.section--yellow { background: var(--yellow-bg); }

/* ---------- 見出し・本文 ---------- */
.heading {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
  text-align: center;
}
.heading .line { display: block; }

.prose p {
  margin-bottom: 2em;
  text-align: center;
  font-size: 0.98rem;
}
.prose p:last-child { margin-bottom: 0; }

.lead {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* 編み目を思わせる小さな区切り（赤・青・黄の3色の編み目） */
.stitch {
  width: 84px;
  height: 8px;
  margin: 0 auto 32px;
  background-image:
    radial-gradient(circle at 6px 4px,  var(--yarn)   2px, transparent 2.2px),
    radial-gradient(circle at 20px 4px, var(--blue)   2px, transparent 2.2px),
    radial-gradient(circle at 34px 4px, var(--yellow) 2px, transparent 2.2px);
  background-size: 42px 8px;
  background-repeat: repeat-x;
  opacity: 0.8;
}

/* 毛糸が1本するっと伸びる、手描き風の区切り（セクション間の遊び心） */
.yarn-divider {
  display: block;
  width: min(280px, 70%);
  height: 28px;
  margin: 0 auto;
  color: var(--yarn);
}
.yarn-divider--blue   { color: var(--blue); }
.yarn-divider--yellow { color: var(--yellow); }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 64px; text-align: center; }

.hero__brand {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.hero__brand-en {
  font-size: 0.7em;
  letter-spacing: 0.35em;
  margin-left: 0.6em;
  color: var(--yarn);
}

.hero__title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.14em;
  margin-bottom: 40px;
}
.hero__title .line { display: block; }

.hero__sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.hero__sub .line { display: block; }

/* シグネチャー：一本の毛糸 → ふたつのかたち */
.yarn-signature {
  max-width: 300px;
  margin: 0 auto 40px;
  color: var(--yarn);
}
.yarn-signature svg { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .yarn-thread {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 2.4s ease-out 0.4s forwards;
  }
  .yarn-thread--right { animation-delay: 1.2s; }
  .yarn-shape {
    opacity: 0;
    animation: appear 1.2s ease-out 2.2s forwards;
  }
  @keyframes draw   { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- 写真プレースホルダー ---------- */
.photo {
  background:
    linear-gradient(135deg, var(--blue-bg) 0%, var(--pink-bg) 100%);
  border: 1.5px dashed var(--blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.8;
  text-align: center;
}
.photo__note { padding: 16px; }

.photo { position: relative; }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.photo--hero {
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin: 0 auto 48px;
  overflow: hidden;
}

/* セクション5用の情景写真（横長・後差し込み） */
.photo--scene {
  aspect-ratio: 3 / 2;
  max-width: 620px;
  margin: 48px auto 0;
  overflow: hidden;
}

/* ---------- CTA ---------- */
.cta { text-align: center; margin-top: 48px; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn:hover { opacity: 0.85; }
.btn:focus-visible {
  outline: 3px solid var(--yarn);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--yarn);
  color: #FFFDF9;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 16px 44px;
  box-shadow: 0 4px 16px rgba(74, 68, 62, 0.12);
}

.btn--xl {
  font-size: 1.1rem;
  padding: 20px 56px;
  width: 100%;
  max-width: 420px;
}

.cta__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- ギャラリー ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.card {
  background: #FFFDF9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(74, 68, 62, 0.07);
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--blue);
}
/* カードごとに糸の色が変わる（赤・青・黄の繰り返し） */
.card:nth-child(3n+1) { border-top-color: var(--blue); }
.card:nth-child(3n+2) { border-top-color: var(--yarn); }
.card:nth-child(3n)   { border-top-color: var(--yellow); }

.card .photo {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
  border-bottom: 1.5px dashed var(--pink);
}

.card__body { padding: 28px 24px 32px; text-align: center; }

.card__title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.card .btn--primary {
  font-size: 0.9rem;
  padding: 12px 28px;
}

/* ---------- 素材 ---------- */
.material {
  margin-top: 64px;
  padding: 36px 24px;
  border-top: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
  text-align: center;
}
.material__title {
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  color: var(--yarn);
}
.material__body { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 制作の流れ ---------- */
.steps {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 64px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
}
.step + .step { border-top: 1px dashed var(--blue); }

.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFDF9;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
/* ステップごとに毛糸の色が変わる */
.step:nth-child(1) .step__num { background: var(--yarn); }
.step:nth-child(2) .step__num { background: var(--blue); }
.step:nth-child(3) .step__num { background: var(--yellow); }
.step:nth-child(4) .step__num { background: var(--pink); }

.step__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.step__body p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 価格 ---------- */
.price {
  text-align: center;
  background: #FFFDF9;
  border-radius: 16px;
  padding: 36px 24px;
  max-width: 480px;
  margin: 0 auto 40px;
  box-shadow: 0 2px 14px rgba(74, 68, 62, 0.07);
}
.price__main {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.price__note { font-size: 0.85rem; color: var(--ink-soft); }

.assure {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--pink);
  padding: 64px 0 48px;
  text-align: center;
}

.footer__brand {
  letter-spacing: 0.3em;
  margin-bottom: 28px;
}
.footer__brand-en {
  font-size: 0.75em;
  letter-spacing: 0.35em;
  margin-left: 0.6em;
  color: var(--yarn);
}

.footer__sns {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  font-size: 0.9rem;
}
.footer__sns a { color: var(--ink-soft); }
.footer__tag { color: var(--yarn); }

.tokushoho {
  max-width: 520px;
  margin: 0 auto 36px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.tokushoho summary {
  cursor: pointer;
  text-align: center;
  padding: 10px;
  letter-spacing: 0.08em;
}
.tokushoho summary:focus-visible {
  outline: 3px solid var(--yarn);
  outline-offset: 2px;
}
.tokushoho dl {
  margin-top: 16px;
  padding: 20px;
  background: #FFFDF9;
  border-radius: 12px;
}
.tokushoho dt { font-weight: 500; margin-top: 12px; }
.tokushoho dt:first-child { margin-top: 0; }
.tokushoho dd { margin-left: 0; }

.footer__copy { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.2em; }

/* ---------- 固定CTA（スマホ下部・常時表示） ---------- */
.fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--pink);
  text-align: center;
  z-index: 100;
}
.btn--fixed {
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ---------- スクロールフェードイン ---------- */
.fade {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* 背景色は常に見せて、中身だけ静かにフェードイン */
  .fade > .container {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s ease, transform 1s ease;
  }
  .fade.is-visible > .container {
    opacity: 1;
    transform: none;
  }
}

/* ---------- PC（タブレット以上） ---------- */
@media (min-width: 768px) {
  .section { padding: 120px 0; }

  .hero { padding: 96px 0 88px; }
  .hero__title { font-size: 2.6rem; }
  .hero__sub { font-size: 1rem; }

  .heading { font-size: 1.7rem; }

  .gallery { grid-template-columns: 1fr 1fr; }

  body { padding-bottom: 88px; }
}
