/* 紹介のページ（LP）の見た目。日本語（index.html）と英語（index.en.html）で共有する */
/* アプリの見出しと同じ Bill。キービジュアルの見出しの文字だけに絞ったもの（bill-subset.woff） */
@font-face {
  font-family: "Bill";
  src: url("/osewa/assets/bill-subset.woff") format("woff");
  font-display: swap;
}
/* 色はアプリの AppColor と同じ。 */
:root {
  color-scheme: light;
  --ink: #3e4854;
  --muted: #8d95a0;
  --paper: #edf2f7;
  --card: #fff;
  --soft: #f4f8fb;
  --accent: #4a98e9;
  --cyan: #6ec3ce;
  --orange: #e98a4a;
  --pink: #f2a7c3;
  --shadow: 0 8px 24px rgba(62, 72, 84, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
/* 背景で立ちのぼるマスコット。アプリの praise_dialog.dart（_RisingStickers）と同じ動き。中身はその上に重ねる */
/* 1 枚の canvas に全部を描く。img を 1 体ずつ動かすと、iPhone の Safari では上に重なる本文が
   重なり具合の変わるたびに描き直されて、ファーストビューでかくつくため */
.rising { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.hero, main, footer { position: relative; z-index: 1; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* アプリのアイコンと名前。キービジュアルの見出しの上に置く */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-size: 1.6rem;
}
.logo img { width: 3.4rem; height: 3.4rem; border-radius: 0.95rem; box-shadow: var(--shadow); }

/* 言語の切り替え。ファーストビューの右上に置く */
.langs { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding: 0.9rem 0 0; font-size: 0.85rem; font-weight: 700; }
.langs a { color: var(--muted); text-decoration: none; padding: 0.25rem 0.9rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.langs a:hover { color: var(--accent); }

/* ファーストビュー */
.hero { position: relative; overflow: hidden; }
.hero-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 4rem;
  text-align: center;
}
h1 {
  font-family: "Bill", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2.6rem, 11.5vw, 4.4rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cyan);
  margin: 0 0 1rem;
}
h1 em {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.05em 0.45em 0.1em;
  font-style: normal;
  color: #fff;
  background: var(--cyan);
  white-space: nowrap;
}
/* Bill の英字は幅が広いので、英語の見出しは小さくして 1 行に収める（「logged as a family」が欠けないように） */
html[lang="en"] h1 { font-size: clamp(1.4rem, 7.2vw, 2.4rem); }
.lead { color: var(--muted); font-weight: 500; margin: 0 0 1.75rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 12rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px #4a98e955;
  transition: transform 0.15s;
}
.store.white { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; }

/* スマホの見本。画面は app_store_tools のストア用スクリーンショット（osewa の 01）から切り出した画像。 */
.stage { position: relative; width: 18rem; margin: 0 auto; }
.phone {
  width: 100%;
  height: auto;
  /* 影は filter: drop-shadow ではなく box-shadow で付ける。iPhone（WebKit）では drop-shadow が
     背景のアニメーションのたびにかけ直されて、ファーストビューがかくつくため。
     角の丸みは画像の角（幅 640 の画像で半径 64、高さ 1330 の 4.8%）に合わせる */
  border-radius: 10% / 4.8%;
  box-shadow: 0 24px 40px #2a4a6a33, 0 4px 10px #2a4a6a1f;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}
.bob { animation: bob 3.2s ease-in-out infinite; }
.bob.slow { animation-duration: 4.2s; animation-delay: -1s; }
@media (prefers-reduced-motion: reduce) {
  .bob { animation: none; }
  html { scroll-behavior: auto; }
}

/* セクション共通 */
section.block { padding: 4.5rem 0 0; }
.head { text-align: center; margin-bottom: 2rem; }
.kicker { margin: 0; color: var(--cyan); font-weight: 800; letter-spacing: 0.18em; font-size: 0.8rem; }
h2 { margin: 0.25rem 0 0; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.45; font-weight: 800; }
h2 em { font-style: normal; color: var(--accent); }

/* できること */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature {
  position: relative;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}
.feature .art {
  height: 10.5rem;
  border-radius: 1rem;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.feature h3 { margin: 0 0 0.35rem; font-size: 1.1rem; line-height: 1.5; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* 絵の中の小物 */
.chip {
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 3px 8px #3e485414;
  white-space: nowrap;
}
.mini-toast {
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 14px #3e48541a;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
}
.mini-toast img { width: 1.5rem; height: 1.5rem; border-radius: 0.35rem; }
/* チェキ 3 枚。少しずつ重ねて、角度を変える */
.instax { display: flex; align-items: center; }
.polaroid {
  background: #fff;
  padding: 0.3rem 0.3rem 1rem;
  border-radius: 0.3rem;
  box-shadow: 0 4px 10px #3e485426;
  transform: rotate(-7deg) translateY(0.2rem);
}
.polaroid + .polaroid { margin-left: -1.1rem; }
.polaroid:nth-child(2) { transform: rotate(4deg) translateY(-0.25rem); position: relative; z-index: 1; }
.polaroid:nth-child(3) { transform: rotate(-2deg) translateY(0.35rem); }
.polaroid img { width: 3.8rem; height: 3.8rem; object-fit: cover; border-radius: 0.15rem; }
.bubble {
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 1rem 1rem 1rem 0.2rem;
  white-space: nowrap;
}
.stamp { width: 2.2rem; }
.art { --art-zoom: 1.15; }
.art > :not(.rec):not(.glance) { zoom: var(--art-zoom); }

/* 記録の 1 件。ストア用スクリーンショットの部品（設計の 1/2 の px）を zoom で大きくする */
.rec { position: relative; width: 210px; height: 64px; zoom: 1.35; }
.rec-pet {
  position: absolute; left: 0; top: 0; width: 50px; height: 50px;
  border: 4px solid #fff; border-radius: 16.5px; object-fit: cover; background: #fff;
}
.rec-card {
  position: absolute; left: 59px; top: 0; width: 150px; height: 50px;
  background: #fff; border-radius: 18px; box-shadow: 0 3px 10px #3e485414;
}
.rec-chip {
  position: absolute; left: 13.5px; top: 13px; height: 24px; padding: 0 9px 0 6px;
  display: flex; align-items: center; gap: 3px;
  background: #ff6e40; color: #fff; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1;
}
.rec-chip svg { width: 14.6px; height: 15px; fill: #fff; }
/* 時刻は「ごはん」の札（top 13px・高さ 24px）と同じ高さで、上下の中央にそろえる */
.rec-time {
  position: absolute; left: 98px; top: 13px; height: 24px;
  display: flex; align-items: center;
  font-size: 13px; font-weight: 700; color: #9e9e9e; line-height: 1;
}
.rec-by {
  position: absolute; left: 75px; top: 38px; width: 67px; height: 24px;
  display: grid; place-items: center;
  background: #f65f98; color: #fff; border: 2px solid #fff; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.rec-react {
  position: absolute; left: 112px; top: -6px; width: 38px; height: 24px;
  display: grid; place-items: center;
  background: #e3f0fc; border: 2px solid #fff; border-radius: 999px; transform: rotate(6deg);
}
.rec-react img { width: 17.5px; height: 17.5px; }

/* ホーム画面のウィジェット（小）。アプリの WidgetGlanceSmall と同じ作り（158pt 四方）を zoom で縮める */
.glance {
  position: relative; width: 158px; height: 158px; zoom: 0.95;
  border-radius: 22px; overflow: hidden; box-shadow: 0 6px 14px #0000001f;
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  background: linear-gradient(#0000007a, #00000014, #00000094), url("/osewa/assets/dog_widget.jpg") center / cover;
}
.glance-day {
  margin: 2px 0 0 4px; flex: 1;
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-shadow: 0 1px 3px #00000059;
}
.glance-row { display: flex; align-items: center; gap: 4px; }
.glance-row img { width: 18px; height: 18px; }
.glance-tile {
  flex: 1; display: flex; justify-content: space-between; gap: 4px;
  background: #fff; border-radius: 8px; padding: 5px 7px;
  font-size: 10px; line-height: 1.3; color: #2e8494;
}
.glance-tile b { font-weight: 700; }

/* はじめかた */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps b { display: block; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }

/* 料金 */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.plan {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.plan.premium { border: 2px solid #4a98e933; }
.plan .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}
.plan.premium .tag { background: var(--accent); color: #fff; }
.plan h3 { margin: 0.6rem 0 0.25rem; font-size: 1.15rem; line-height: 1.5; }
.plan p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.plan ul { margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.plan li { padding-left: 1.5rem; position: relative; }
.plan li + li { margin-top: 0.2rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cyan);
}
.plan.premium li::before { background: var(--accent); }

/* 最後の誘い */
.cta {
  margin: 4.5rem 0 0;
  background: var(--card);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 1.25rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta .photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.cta .side { position: absolute; width: 4.5rem; opacity: 0.95; }
.cta .side.l { left: 6%; top: 2.2rem; --r: -8deg; }
.cta .side.r { right: 6%; top: 3rem; --r: 8deg; }
.cta h2 { margin-bottom: 1.5rem; }

/* .wrap の左右の余白より優先させるため、footer.wrap で指定する */
footer.wrap { padding: 4.5rem 1rem calc(4rem + env(safe-area-inset-bottom)); text-align: center; font-size: 0.85rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-bottom: 1.75rem; }
footer .contact { margin: 0 0 1.25rem; overflow-wrap: anywhere; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (min-width: 48rem) {
  .hero-body { grid-template-columns: 1.1fr 1fr; text-align: left; padding: 1.5rem 0 5rem; }
  .hero .stores { justify-content: flex-start; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.25rem 1.25rem 1.4rem; }
  .steps li::before { top: 1.25rem; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .cta { padding: 3rem 2rem; }
  .cta .side { width: 6rem; }
  .cta .side.l { left: 10%; top: 3.5rem; }
  .cta .side.r { right: 10%; top: 4.5rem; }
}
/* PC では余白が目立つので、rem で決めた文字と余白をまとめて大きくする。px で組んだ見本は zoom で合わせる */
@media (min-width: 64rem) {
  html { font-size: 112.5%; }
  .art { --art-zoom: 1.45; }
  .rec { zoom: 1.9; }
  .glance { zoom: 1.05; }
}
@media (max-width: 30rem) {
  .cta .side { width: 3.2rem; }
  .cta .side.l { left: 4%; top: 1.6rem; }
  .cta .side.r { right: 4%; top: 2rem; }
}
