/* 何もしない時間 — 紹介ページ
   アプリ本体と同じ設計語彙を使う：白基調・単色・細い字・広い字間・ヘアライン。
   新しい見た目を発明せず、アプリの佇まいをそのまま画面いっぱいに広げる。 */

/* アプリの世界観の基調は白（アイコンもスクショも白基調）。
   紹介ページは端末のダークモードに追従せず、常に白で通す。 */
:root {
  color-scheme: light;
  --bg: #fdfdfc;
  --ink: #33322f;
  --muted: #77756f;
  --faint: #9a9891;
  --line: rgba(0, 0, 0, 0.10);
  --ring: rgba(0, 0, 0, 0.22);
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", Meiryo, sans-serif;
  /* 題字だけに使う。ゴシックは太らせると鈍るが、明朝は抑揚があるので
     太くしても字面が潰れず、静けさを保ったまま押し出せる。 */
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP",
            "Songti SC", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.6rem; }

/* ── 扉：ここでアプリを試せる ──────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.6rem 4rem;
}

/* 太さで押し出す組み方。
   字間は詰める（広い字間は細字のためのもので、太字だと重さと喧嘩する）。
   そのぶん大きくして、字面そのものに存在感を持たせる。 */
.appname {
  font-family: var(--mincho);
  font-size: clamp(1.7rem, 7.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin: 0;
  text-indent: 0.18em;
}

.tagline {
  font-size: 0.84rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.1rem 0 0;
  max-width: 22rem;
}

/* 触れる場所は円そのものではなく、まわりの余白ごと。アプリと同じ考え方 */
.stage {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 3.5rem 2rem;
  margin: 1.5rem 0 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  border-radius: 24px;
}

.stage:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.ring-holder {
  position: relative;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  animation: breathe 5s ease-in-out infinite alternate;
}

/* 数えているあいだは呼吸を止める。数字を読みやすくするため */
.is-running .ring { animation: none; transform: scale(1); }

@keyframes breathe {
  from { transform: scale(0.955); }
  to   { transform: scale(1.045); }
}

.ring circle,
.ring path { transition: opacity 0.6s ease; }

/* 円の中身は数字だけ。空でも高さが変わらないようにしておく */
.readout {
  position: relative;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
  transition: opacity 0.5s ease;
}

/* 案内の文字は円の外。待機中はこれが主役になる */
.caption {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-indent: 0.2em;
  min-height: 1.8em;
  transition: opacity 0.5s ease;
}

.tryhint {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin: 0;
  opacity: 0.75;
}

/* .tryhint は .stage の兄弟なので、子孫セレクタでは当たらない */
.stage.is-running ~ .tryhint,
.stage.is-done ~ .tryhint { opacity: 0; }

/* ── 節 ────────────────────────────────────── */

.section { padding: 8rem 0; border-top: 1px solid var(--line); }

.section:first-of-type { border-top: 0; }

.section h2 {
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0 0 2rem;
}

.section p {
  font-size: 0.92rem;
  line-height: 2.35;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.section p:last-child { margin-bottom: 0; }

/* ── 画面の写真 ─────────────────────────────
   白いアプリを白い紙に置くと輪郭が消えるので、ヘアラインの枠だけ与える。
   端末の額縁は描かない（飾りを足さずに「画面」だと分かればいい）。 */

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-align: center;
  text-indent: 0.16em;
}

.shot.single {
  max-width: 264px;
  margin: 3.4rem auto 0;
}

/* 幅に応じて列数が変わる。狭い画面では自動で2列に落ちる */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1.6rem 1.3rem;
  max-width: 460px;
  margin: 3.4rem auto 0;
}

.shots.three { max-width: 560px; }

/* 説明文の下に添える小さい画面。
   左寄せにすると右側だけに空白が残り「置き忘れ」に見えるので中央に置く。
   ページの他の図版（扉のホーム、2枚組）も中央揃えで揃えている。 */
.shot.inline {
  max-width: 180px;
  margin: 1.8rem auto 0.3rem;
}

.shot.inline img { border-radius: 14px; }

/* ── Apple Watch の本体 ─────────────────────
   画面だけを置いても何の端末か伝わらないので、本体の輪郭に収める。
   バンドまでは描かない（飾りを足しすぎない）。 */

.watch-frame {
  position: relative;
  width: 152px;
  padding: 13px 11px;
  margin: 1.8rem auto 0.4rem;
  background: #0d0d0d;
  border-radius: 40px / 34px;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.55);
}

.watch-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px / 24px;
  border: 0;
}

/* デジタルクラウン */
.watch-frame::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 30%;
  width: 3.5px;
  height: 22px;
  background: #4a4a4a;
  border-radius: 2px;
}

/* サイドボタン */
.watch-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 52%;
  width: 2.5px;
  height: 30px;
  background: #333;
  border-radius: 2px;
}

/* ── できること：飾らず、罫線で分ける ──────────── */

.list { margin: 0; padding: 0; list-style: none; }

.list li {
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.list li:first-child { border-top: 0; padding-top: 0; }

.list h3 {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.list p {
  font-size: 0.86rem;
  line-height: 2.1;
  color: var(--muted);
  margin: 0;
}

/* ── 締め ──────────────────────────────────── */

.closing {
  text-align: center;
  padding: 8rem 0 6rem;
  border-top: 1px solid var(--line);
}

/* いずれも `.closing p` に負けないよう詳細度を揃える */
.closing p {
  font-size: 0.92rem;
  line-height: 2.35;
  color: var(--muted);
  margin: 0 0 2.2rem;
}

.closing .lede {
  font-size: 1.05rem;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 2.2rem;
}

.closing .status {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--faint);
  margin: 3.6rem 0 0;
  text-indent: 0.24em;
}

/* 入手は Apple 公式バッジ。改変しない・周囲に余白・最小サイズを守る。
   扉（試したすぐ下）とページ末の2か所に置く。位置ごとの余白だけ分ける。 */
.appstore {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.appstore img {
  display: block;
  height: 54px;
  width: auto;
}

.appstore:hover,
.appstore:focus-visible {
  opacity: 0.82;
  transform: translateY(-2px);
}

.appstore:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 8px;
}

/* 第1節の末尾（写真の下）。写真が中央寄せなので、バッジも中央に揃える */
.section .appstore { display: block; width: max-content; margin: 3rem auto 0; }
.closing .appstore { margin: 3.6rem 0 0; }

footer {
  padding: 0 0 5rem;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: center; margin: 0 0 1.6rem; }

footer a { color: var(--muted); text-underline-offset: 0.35em; }

footer a:hover, footer a:focus-visible { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 560px) {
  /* 「を。」だけが次行に落ちないよう、狭い画面では少し詰める */
  .tagline { font-size: 0.78rem; letter-spacing: 0.02em; }
  .section { padding: 5.5rem 0; }
  .closing { padding: 5.5rem 0 4rem; }
  .stage { padding: 2.5rem 1rem; }
  .ring-holder { width: 152px; height: 152px; }
}
