/* キズナメイト ランディングページ
   トークンはアプリのデザイン指針をそのまま移植している。
   ここにある値以外の色・太さ・影を足さないこと。 */

/* ---------- 書体 ---------- */

@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/ZenMaruGothic-Regular.woff2) format("woff2");
}

@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/ZenMaruGothic-Medium.woff2) format("woff2");
}

/* ---------- 色 ---------- */

:root {
  --bg: #F4F7EA;
  --surface: #FFFEF8;
  --orb: #CBE6BF;
  --orb-active: #B6DCA8;
  --accent: #367A4C;
  --ink: #2A3A2E;
  --ink-soft: #5F6F63;
  --line: #E1E8D9;

  --accent-pressed: #2F6B42;

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;

  --shadow-mochi: 0 14px 28px rgba(54, 122, 76, 0.18);
  --shadow-card: 0 4px 12px rgba(42, 58, 46, 0.06);
}

/* ---------- 土台 ---------- */

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

html {
  font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "BIZ UDPGothic", sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--accent);
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- 文字の役割 ---------- */

.display {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 500;
}

.title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 500;
}

/* 系譜。見出しではなく本文扱いなので字間は 0。 */
.lineage p {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
}

.body {
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
}

.sub {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
}

.caption,
.kicker {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.kicker {
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.soft {
  color: var(--ink-soft);
}

/* ---------- スキップリンク ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 15px;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  background-color: rgba(244, 247, 234, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-link {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- セクション ---------- */

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

/* ---------- もち ---------- */

.mochi {
  background-color: var(--orb);
  background-image: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.35), transparent 48%);
  border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%;
  box-shadow: var(--shadow-mochi);
}

.mochi-hero {
  width: 240px;
  height: 240px;
}

.mochi-start {
  width: 120px;
  height: 120px;
}

.mochi-pair {
  width: 96px;
  height: 96px;
  flex: none;
}

.breathing {
  animation:
    mochi-breathe 3.9s ease-in-out infinite,
    mochi-wobble 7.8s ease-in-out infinite;
}

@keyframes mochi-breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes mochi-wobble {
  0% { border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%; }
  33% { border-radius: 49% 51% 49% 51% / 50% 50% 54% 46%; }
  66% { border-radius: 46% 54% 53% 47% / 54% 46% 50% 50%; }
  100% { border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%; }
}

/* ---------- ボタン ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.pill-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  transition: background-color 0.18s ease-in-out;
}

.btn-primary:hover {
  background: var(--accent-pressed);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-secondary {
  background: var(--orb);
  color: var(--ink);
}

.pill-muted {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* ---------- 1. hero ---------- */

.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-lead {
  max-width: 30em;
}

.hero-note {
  color: var(--ink-soft);
}

/* ---------- 2. mate ---------- */

.lineage-here {
  color: var(--accent);
}

.mate-body {
  max-width: 34em;
  margin-top: 24px;
}

.note-card {
  margin-top: 28px;
  max-width: 34em;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.note-card .caption {
  color: var(--ink-soft);
}

/* ---------- 3. days ---------- */

.scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.scene {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.scene-time {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.scene-title {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.scene-body {
  margin-top: 10px;
}

.scene-talk {
  margin-top: 16px;
}

.scene-talk dt {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.scene-talk dd {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
}

.scene-talk dd:last-child {
  margin-bottom: 0;
}

.scene-split {
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.days-close {
  margin-top: 28px;
  text-align: center;
}

/* ---------- 4. promises ---------- */

.promises {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.promise-no {
  color: var(--accent);
}

.promise-title {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.promise-body {
  margin-top: 6px;
  max-width: 32em;
}

/* ---------- 5. make ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--orb);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.step-title {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.step-body {
  margin-top: 6px;
}

.make-close {
  margin-top: 28px;
  text-align: center;
}

/* ---------- 6. nearby ---------- */

.nearby-body {
  max-width: 34em;
}

.nearby-sub {
  margin-top: 14px;
  max-width: 34em;
  color: var(--ink-soft);
}

.nearby-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.nearby-link {
  width: 40px;
  height: 1px;
  background: var(--line);
  flex: none;
}

/* ---------- 7. memory ---------- */

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 34em;
}

.memory-list dt {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.memory-list dd {
  margin: 6px 0 0;
}

.memory-note {
  margin-top: 28px;
  color: var(--ink-soft);
}

/* ---------- 8. start ---------- */

.start {
  text-align: center;
}

.start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.start .cta {
  justify-content: center;
}

.start-env {
  color: var(--ink-soft);
}

.start-env span {
  display: block;
}

.start-plan {
  color: var(--ink-soft);
}

/* ---------- 9. footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 40px;
  padding-bottom: 48px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.footer-company {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-links {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-sep {
  padding: 0 2px;
}

.footer-copy {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---------- 準備中ページ・404 ---------- */

.plain {
  min-height: 46vh;
  padding-top: 64px;
  padding-bottom: 64px;
}

.plain-body {
  margin-top: 16px;
}

.plain-back {
  margin-top: 24px;
}

/* ---------- 768px 以上 ---------- */

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .wrap {
    padding-left: 40px;
    padding-right: 40px;
  }

  .display {
    font-size: 56px;
  }

  .title {
    font-size: 38px;
  }

  .lineage p {
    font-size: 40px;
  }

  .body {
    font-size: 18px;
  }

  .sub {
    font-size: 16px;
  }

  .caption,
  .kicker {
    font-size: 14px;
  }

  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 112px;
  }

  /* 右列の幅はもちの実寸で決まる。左列は minmax(0, 1fr) で残りを取る。 */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    align-items: center;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-art {
    grid-column: 2;
    grid-row: 1;
  }

  .mochi-hero {
    width: 280px;
    height: 280px;
  }

  .scenes {
    grid-template-columns: repeat(3, 1fr);
  }

  .scene-title,
  .promise-title,
  .step-title,
  .memory-list dt {
    font-size: 22px;
  }

  .scene-talk dt {
    font-size: 14px;
  }

  .scene-talk dd {
    font-size: 16px;
  }

  .scene-time {
    font-size: 14px;
  }

  .promises {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .plain {
    padding-top: 112px;
    padding-bottom: 112px;
  }
}

/* ---------- 1024px 以上 ---------- */

@media (min-width: 1024px) {
  .mochi-hero {
    width: 320px;
    height: 320px;
  }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 場面カードの感覚ラベル(2026-09-14 追加) */
.scene-feel {
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 6px;
}


/* 2026-09-15 追加: 遠慮の節、店長の三日間 */
.freedoms p { margin: 0 0 6px; }
.enryo-close { margin-top: 20px; font-size: 24px; }
.story .story-row { padding: 12px 0; border-top: 1px solid var(--line); }
.story .story-row:first-of-type { border-top: 0; }
.story .story-close { margin-top: 12px; }
@media (min-width: 768px) { .enryo-close { font-size: 32px; } }

/* 2026-09-18 追加: 三つの感覚のカード、遠慮の対比、店長の節 */
.feel-analogy { margin: 0; }
.feel-mate { margin-top: 14px; color: var(--accent); font-weight: 500; }
.enryo-lead { max-width: 34em; margin-bottom: 28px; }
.freedoms p { margin: 0 0 18px; }
.freedom-human { display: block; margin-bottom: 2px; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--ink-soft); }
.freedom-mate { display: block; }
.story-lead { max-width: 34em; }
@media (min-width: 768px) {
  .freedom-human { font-size: 15px; }
  .freedoms p { margin-bottom: 22px; }
}
