/* unko now — maru.nowファミリーの白基調ミニマル。要素は最小限、数字はひとつだけ。 */
:root {
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --faint: #a8a8a0;
  --hair: #e8e8ed;
  --accent: #7a5c43;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  flex: 1;
}

header { padding-top: calc(28px + env(safe-area-inset-top)); }
.wordmark {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--sub);
}
.wordmark a { color: inherit; text-decoration: none; }
.tagline {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* ---- 浮遊テキスト(枠なし、その場でふわっと現れて消える) ---- */
.pulse-cloud {
  position: relative;
  height: 132px;
  margin: 12px 0 10px;
  pointer-events: none;
}
.drift {
  position: absolute;
  margin: 0;
  max-width: 86%;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sub);
  opacity: 0;
  animation: driftFade 6.4s ease forwards;
}
.drift small {
  margin-left: 7px;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.drift.is-accent { color: var(--accent); }
@keyframes driftFade {
  0% { opacity: 0; transform: translateY(5px); }
  14% { opacity: 1; transform: translateY(0); }
  76% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-7px); }
}

/* ---- 中央 ---- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.now-label { font-size: 13.5px; color: var(--sub); letter-spacing: 0.06em; }
.count-row { display: flex; align-items: baseline; gap: 4px; line-height: 1.1; }
#count { font-size: 64px; font-weight: 600; font-variant-numeric: tabular-nums; }
#unit { font-size: 17px; color: var(--sub); }
.quiet-line {
  margin: 6px 0;
  font-size: 13px;
  color: var(--sub);
  max-width: 26em;
  line-height: 1.8;
}

.action-stage { position: relative; margin-top: 26px; }
.unko-button {
  width: 186px;
  height: 186px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.unko-button:active {
  transform: scale(0.93);
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.26);
}

.hanamaru {
  position: absolute;
  top: -22px;
  right: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(9deg);
  line-height: 1.35;
  animation: stampIn 1.7s ease forwards;
  pointer-events: none;
}
.hanamaru strong { font-size: 15px; letter-spacing: 0.1em; }
.hanamaru small { font-size: 10px; letter-spacing: 0.06em; }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(9deg) scale(1.6); }
  14% { opacity: 1; transform: rotate(9deg) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: rotate(9deg) scale(0.98); }
}

.secondary-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.sub-action {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sub-action:active { color: var(--ink); }
.sub-action.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- フッター ---- */
footer {
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.05em;
  text-align: center;
}
footer p { margin: 0 0 5px; }
footer a { color: inherit; }
.site-lang { margin-top: 10px; }
.site-lang button {
  background: none;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.site-lang button.is-current {
  color: var(--ink, #1d1d1f);
  cursor: default;
}

@media (max-height: 700px) {
  .pulse-cloud { height: 104px; }
  .unko-button { width: 160px; height: 160px; }
}
