/* ============================================================
   Moromoro — トップページ専用。
   下層ページ（privacy / terms / support）は style.css のまま。
   地は和紙、見出しは明朝。アプリの中と同じ手ざわりにする。
   ============================================================ */

:root {
  --paper:      #f0eae0;
  --paper-warm: #f6f2ea;
  --paper-deep: #e7dfd1;
  --ink:        #57574d;
  --ink-strong: #3b3a32;
  --ink-2:      #87877d;
  --ink-3:      #a8a89a;
  --sage:       #7d7d63;
  --line:       rgba(184, 179, 166, 0.42);
  --line-soft:  rgba(184, 179, 166, 0.24);

  --mincho: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;

  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 紙の目。全面にごく薄く乗せる */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* width/height 属性は縦横比のヒントとして残し、実寸は CSS で決める */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage); text-underline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gut);
}

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

.top {
  position: relative;
  z-index: 10;
  padding-block: 1.6rem;
}
.top .shell {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark {
  font-family: var(--mincho);
  font-size: 1.1rem; font-weight: 600; letter-spacing: .16em;
  color: var(--ink-strong); text-decoration: none;
}
.top nav { display: flex; align-items: center; gap: 1.6rem; font-size: .85rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink-strong); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

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

.cta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  background: var(--ink-strong);
  color: var(--paper-warm);
  font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--ink-strong);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s, background .35s;
  box-shadow: 0 2px 4px rgba(60,52,34,.14), 0 12px 30px rgba(60,52,34,.16);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(60,52,34,.16), 0 18px 42px rgba(60,52,34,.20); }
.cta:active { transform: translateY(0); }
.cta svg { flex: none; }

/* 未公開のあいだの見た目。JS が URL を入れると通常ボタンに変わる */
.cta[aria-disabled="true"] {
  background: transparent;
  color: var(--ink-2);
  border: 1px dashed var(--line);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* ---------- App Store バッジ ----------
   Apple 配布の公式アートワーク（badges/app-store-ja.svg）。
   加工・色変え・作り直しは規約で禁止なので、拡大縮小だけにとどめる。
   まわりの余白はバッジ高さの 1/4 以上を空ける決まり。 */

.store { display: inline-flex; align-items: center; text-decoration: none; }
.store-badge { display: none; height: 60px; width: auto; }
.store-sm .store-badge { height: 46px; }

/* 公開後（html.store-live）だけバッジを出す */
.store-live .store-badge { display: block; }
.store-live .store-soon { display: none; }
.store-live .store { padding: 0; border: 0; background: none; }
.store-live .store:hover .store-badge { opacity: .86; }
.store-badge { transition: opacity .3s; }

/* 未公開のあいだの仮表示 */
.store-soon {
  display: inline-flex; align-items: center;
  padding: .95rem 1.9rem;
  border: 1px dashed var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: .95rem; letter-spacing: .04em;
}
.store-sm .store-soon { padding: .65rem 1.2rem; font-size: .85rem; }
.store[aria-disabled="true"] { pointer-events: none; }

/* ---------- ロゴの組み ---------- */

.lockup {
  display: flex; align-items: center; gap: .85rem;
  margin: 0 0 1.7rem;
}
.lockup-mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 22.4%;                    /* iOS の角丸に寄せる */
  box-shadow: 0 1px 2px rgba(78,69,50,.14), 0 6px 16px rgba(78,69,50,.14);
}
.lockup-name {
  font-family: var(--mincho);
  font-size: 1.32rem; font-weight: 600; letter-spacing: .13em;
  color: var(--ink-strong); line-height: 1;
}
.lockup-kind {
  font-size: .7rem; letter-spacing: .24em; color: var(--ink-3);
  text-transform: uppercase; line-height: 1;
  padding-left: .85rem; margin-left: .1rem;
  border-left: 1px solid var(--line);
}
@media (max-width: 860px) { .lockup { justify-content: center; } }
@media (max-width: 420px) {
  .lockup-kind { display: none; }
  .lockup-mark { width: 40px; height: 40px; }
}

.cta-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink-2); font-size: .88rem; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: .15rem;
}
.cta-ghost:hover { color: var(--ink-strong); border-color: var(--ink-3); }

.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.req { margin: 1.1rem 0 0; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- ヒーロー ---------- */

.hero { position: relative; padding-block: clamp(2rem, 7vw, 5rem) clamp(3rem, 10vw, 7rem); }
.hero .shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.eyebrow {
  font-size: .74rem; letter-spacing: .3em; color: var(--ink-3);
  text-transform: uppercase; margin: 0 0 1.6rem;
}
.hero h1 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 4.4rem);
  line-height: 1.34;
  letter-spacing: .01em;
  color: var(--ink-strong);
  margin: 0 0 1.6rem;
}
.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-2);
  margin: 0 0 2.4rem;
  max-width: 26em;
}
.hero-device { position: relative; justify-self: center; }
.hero-device img {
  width: min(340px, 78vw);
  filter: drop-shadow(0 10px 22px rgba(78,69,50,.16)) drop-shadow(0 40px 70px rgba(78,69,50,.20));
  position: relative;
  z-index: 1;
}
/* 実機録画。枠画像のスクリーン領域（実測値）にはめ込む */
.hero-video {
  position: absolute;
  left: 5.24%; top: 2.54%;
  width: 89.52%; height: 94.92%;
  max-width: none;
  object-fit: cover;
  /* 枠のスクリーン角より少し内側に収める角丸。静止画の上に重ねるので
     動画が読めない間も枠と静止画がそのまま見える。 */
  border-radius: 7.5% / 3.42%;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

@media (max-width: 860px) {
  .hero .shell { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-group { justify-content: center; }
  .hero-device { margin-top: 2.5rem; }
}

/* ---------- 区切りの石 ---------- */

.pebble { display: block; margin: 0 auto; width: 26px; height: 26px; opacity: .5; }

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

section { position: relative; }
.band { background: var(--paper-deep); }
.band-warm { background: var(--paper-warm); }

.sec { padding-block: clamp(3.5rem, 9vw, 7rem); }

.label {
  display: flex; align-items: center; gap: .8rem;
  font-size: .72rem; letter-spacing: .26em; color: var(--ink-3);
  margin: 0 0 1.4rem;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

h2 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.5;
  color: var(--ink-strong);
  margin: 0 0 1.2rem;
  letter-spacing: .01em;
}
h3 {
  font-family: var(--mincho);
  font-size: 1.18rem; font-weight: 600; color: var(--ink-strong);
  margin: 0 0 .6rem; line-height: 1.6;
}
.sec p { margin: 0 0 1.1rem; max-width: 34em; text-wrap: pretty; }
.sec p:last-child { margin-bottom: 0; }

/* 交互に並ぶ端末＋文章 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.split.flip .split-media { order: 2; }
/* 段が狭いぶん、見出しを一段小さく。長音符が行頭に落ちるのを防ぐ */
.split-copy h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); }
.split-media img {
  width: min(300px, 70vw);
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(78,69,50,.14)) drop-shadow(0 34px 60px rgba(78,69,50,.18));
}
.split:nth-of-type(odd) .split-media img { transform: rotate(1.8deg); }
.split:nth-of-type(even) .split-media img { transform: rotate(-1.8deg); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.flip .split-media { order: 0; }
  .split-media img { transform: none !important; }
}

/* 機能を縦に積むときの間隔 */
.stack > .split + .split { margin-top: clamp(3.5rem, 9vw, 6.5rem); }

/* ---------- 「1度に、全部」の内訳 ---------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: .82rem; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .95rem; background: rgba(255,255,255,.4);
}

/* ---------- プライバシー ---------- */

.trust {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 44rem;
}
.trust h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ---------- 最後のCTA ---------- */

.finale { text-align: center; }
.finale h2 { font-size: clamp(2rem, 5.4vw, 3.2rem); margin-bottom: 1.4rem; }
.finale .cta-group { justify-content: center; }
.finale p { margin-inline: auto; }

/* ---------- フッター ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
  color: var(--ink-3);
  font-size: .84rem;
}
footer .shell { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: baseline; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink-strong); }
.corp { font-size: .78rem; line-height: 1.8; }

/* ---------- モバイルの追従バー ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: .75rem var(--gut) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(240, 234, 224, .93);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(105%);
  transition: transform .45s cubic-bezier(.2,.8,.3,1);
}
.dock.on { transform: translateY(0); }
.dock .dock-name {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--mincho); font-size: .95rem; color: var(--ink-strong); letter-spacing: .1em;
}
.dock .dock-name img { width: 30px; height: 30px; border-radius: 22.4%; flex: none; }
.dock .cta { padding: .7rem 1.4rem; font-size: .88rem; box-shadow: none; }
@media (min-width: 861px) { .dock { display: none; } }
/* 追従バーのぶん、最後が隠れないように */
@media (max-width: 860px) { footer { padding-bottom: 7rem; } }

/* ---------- 出てくる動き ---------- */

/* 既定では出しておく。JS が動いたときだけ隠して、あとから出す。
   こうしないと、JS が落ちた環境でページが真っ白になる。 */
.js-anim .rise { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.3,1); }
.js-anim .rise.in { opacity: 1; transform: none; }

.hero .eyebrow, .hero h1, .hero .lead, .hero .cta-group, .hero .req, .hero-device {
  animation: rise-in 1.1s cubic-bezier(.2,.8,.3,1) both;
}
.hero .eyebrow   { animation-delay: .05s; }
.hero h1         { animation-delay: .15s; }
.hero .lead      { animation-delay: .28s; }
.hero .cta-group { animation-delay: .40s; }
.hero .req       { animation-delay: .48s; }
.hero-device     { animation-delay: .30s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-device { animation-name: rise-in-device; }
@keyframes rise-in-device {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .rise { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .cta-group, .hero .req, .hero-device { animation: none; }
  .cta { transition: none; }
  .dock { transition: none; }
}
