:root {
  color-scheme: light dark;
  --ground: #faf9f5;
  --paper: #ffffff;
  --pressed: #f1eee7;
  --line: #e8e3d9;
  --text: #1f2430;
  --muted: #687080;
  --faint: #918c84;
  --content: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141821;
    --paper: #1c212c;
    --pressed: #232936;
    --line: #2a3140;
    --text: #ede7db;
    --muted: #a5adba;
    --faint: #737b89;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 32px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.24em;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header,
.site-footer,
.hero,
.landing-section,
.content {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.home { --content: 1080px; }

figure { margin: 0; }
button { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); }
.home nav a { padding-block: 10px; }

.hero {
  padding-block: clamp(64px, 8vw, 108px) 100px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-copy { max-width: 520px; }

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 800;
}

/* 冒頭の見出しは1行ずつ塊にし、「ルー/ティン」のように語の途中で折り返さない。
   長い方の行(11文字)が欄に収まる大きさにする(2026-10-13に見出しを長くした)。 */
.hero h1 { font-size: clamp(30px, 3.4vw, 46px); }
.h1-line { display: inline-block; }

.hero-copy > p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  max-width: 31em;
}

.availability {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 14px;
}

.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  padding: 12px;
  margin: -12px;
}
.store-badge img { display: block; width: auto; height: 48px; }

.support-link { color: var(--muted); }
.availability-note { font-size: 12px; color: var(--muted); }
.hero-link { display: inline-block; margin-top: 28px; font-size: 14px; }
.hero-link span { padding-left: 8px; }

.today-card {
  background: var(--paper);
  padding: 28px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 60px -35px #1f243055;
}
.preview-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.preview-topline b { margin-left: 8px; color: var(--text); font-size: 17px; }
.today-count { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 22px; }
.today-count strong { font-size: 64px; line-height: 1.15; letter-spacing: -0.06em; }
.today-count > span { color: var(--muted); font-size: 18px; }
.routine-list { border: 1px solid var(--line); border-radius: 16px; }
.routine-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 20px 16px;
  text-align: left;
  cursor: pointer;
}
.routine-row:first-child { border-radius: 16px 16px 0 0; }
.routine-row:last-child { border-radius: 0 0 16px 16px; }
.routine-row + .routine-row { border-top: 1px solid var(--line); }
.routine-row:not(:disabled):hover { background: var(--pressed); }
.routine-row:disabled { cursor: default; }
.routine-row:focus-visible { outline-offset: -4px; }
.routine-icon { display: flex; }
.routine-text { flex: 1; min-width: 0; }
.routine-text strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; }
.routine-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.routine-row[aria-pressed="true"] .routine-text strong,
.routine-row[aria-pressed="true"] .routine-icon { color: var(--muted); }
.stamp {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px dashed var(--faint);
  border-radius: 50%;
  flex-shrink: 0;
}
.stamp svg { width: 28px; height: 28px; opacity: 0; transform: scale(0.6); }
.ink-shu { --stamp-ink: #f05f4e; }
.ink-ai { --stamp-ink: #4d82c4; }
.ink-matsuba { --stamp-ink: #61a273; }
.routine-row[aria-pressed="true"] .stamp {
  border: 2px solid var(--stamp-ink);
  color: var(--stamp-ink);
  transform: rotate(-6deg);
}
.routine-row:nth-child(2)[aria-pressed="true"] .stamp { transform: rotate(5deg); }
.routine-row[aria-pressed="true"] .stamp svg { opacity: 1; transform: scale(1); }
.demo-hint { min-height: 1.85em; margin: 18px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
figcaption { margin-top: 14px; color: var(--muted); font-size: 11px; text-align: center; }

.landing-section { padding-block: 80px; border-top: 1px solid var(--line); }
.landing-section h2 { margin: 0; font-size: clamp(28px, 3.3vw, 40px); font-weight: 750; }
.landing-section h3 { margin: 0; font-size: 21px; font-weight: 700; }
.section-heading { margin-bottom: 36px; }
.section-heading > p { margin: 20px 0 0; color: var(--muted); }
.widget-features { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.widget-stage {
  height: 300px;
  padding: 34px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.home-widget-stage { background: var(--pressed); }
.home-widget { width: 100%; max-width: 390px; padding: 18px; background: var(--ground); border-radius: 24px; box-shadow: 0 6px 24px -18px #1f243055; }
.widget-heading { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.widget-heading > span { color: var(--muted); font-size: 12px; }
.widget-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.widget-cell { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 56px; padding: 8px 10px; background: var(--paper); border-radius: 14px; font-size: 12px; line-height: 1.4; }
.widget-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-circle { width: 27px; height: 27px; border: 1.5px dashed var(--faint); border-radius: 50%; flex-shrink: 0; }
.stage-caption { position: absolute; bottom: 16px; color: var(--muted); font-size: 11px; }
/* ロック画面・Apple Watch の例も、ホーム画面の例と同じくライト・ダークに合わせる(2026-10-19、利用者の指示) */
.lock-widget-stage { background: var(--pressed); color: var(--text); gap: 8px; padding-bottom: 54px; }
.lock-clock { font-size: 72px; letter-spacing: -0.06em; font-weight: 650; line-height: 1.2; }
.lock-widget { width: 220px; padding: 10px 12px; border-left: 2px solid var(--faint); }
.lock-widget > div { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.lock-widget > div span:last-child { margin-left: auto; }
.lock-widget > b { font-size: 18px; }
/* Apple Watch は3つ目として、横いっぱいの行に置く(表示例と説明を左右に並べる) */
.watch-widget-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.watch-widget-feature .widget-copy { padding-top: 0; }
.watch-widget-stage { background: var(--pressed); color: var(--text); padding-bottom: 54px; }
.watch-face { width: 168px; height: 200px; padding: 14px 10px; border: 7px solid var(--line); border-radius: 44px; background: var(--ground); display: flex; flex-direction: column; gap: 8px; }
.watch-time { align-self: flex-end; padding-right: 6px; font-size: 15px; font-weight: 650; }
.watch-card { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 12px; background: var(--paper); border-radius: 16px; box-shadow: 0 6px 24px -18px #1f243055; }
.watch-card > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.watch-card span { color: var(--muted); font-size: 10px; }
.watch-card b { font-size: 15px; white-space: nowrap; }
.watch-stamp { width: 30px; height: 30px; margin-left: auto; border: 1.5px dashed var(--stamp-ink); border-radius: 50%; flex-shrink: 0; }
.widget-copy { padding: 24px 4px 0; }
.widget-copy p { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 32em; }
.section-note { margin: 28px 0 0; color: var(--muted); font-size: 12px; }

.history-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.history-copy > p { color: var(--muted); margin: 24px 0 0; }
.history-copy .quiet-note { color: var(--text); font-size: 14px; padding-left: 18px; border-left: 2px solid var(--line); margin-top: 28px; }
.calendar-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.calendar-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.calendar-heading > span:first-child { display: flex; align-items: center; gap: 8px; }
.calendar-heading > span:last-child { font-size: 14px; color: var(--muted); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 6px; text-align: center; }
.calendar-weekday { font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.calendar-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.calendar-day small { color: var(--muted); font-size: 9px; }
.calendar-mark { width: 30px; height: 30px; border: 1px solid transparent; border-radius: 50%; display: grid; place-items: center; }
.calendar-mark svg { width: 18px; height: 18px; }
.recorded .calendar-mark { border: 1.5px solid var(--stamp-ink); color: var(--stamp-ink); transform: rotate(-7deg); }
.recorded:nth-child(3n) .calendar-mark { transform: rotate(5deg); }
.empty .calendar-mark { background: var(--pressed); }
.upcoming .calendar-mark { border: 1px dashed var(--line); }
.calendar-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.calendar-footer > span { font-size: 12px; color: var(--muted); }
.calendar-footer > strong { font-size: 28px; line-height: 1; }
.calendar-footer small { font-size: 12px; font-weight: 500; }

.detail-features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 36px; margin: 0; }
.detail-features > div { padding-top: 24px; border-top: 1px solid var(--line); }
.detail-features dt { font-size: 19px; font-weight: 650; line-height: 1.5; }
.detail-features dd { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.start-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.start-features h3 { font-size: 19px; }
.start-features p { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.faq-section { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 22px 30px 22px 0; cursor: pointer; font-size: 15px; font-weight: 600; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 30px 24px 0; color: var(--muted); font-size: 14px; }
.closing { text-align: center; padding-block: 72px 88px; }
.closing > img { border-radius: 16px; margin-bottom: 24px; }
.closing > p { color: var(--muted); font-size: 15px; margin: 20px 0 0; }
.closing .availability { justify-content: center; margin-top: 28px; }

.content {
  padding-block: 64px 96px;
}

.content-header {
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.content-header h1 {
  font-size: clamp(32px, 6vw, 52px);
}

.legal {
  max-width: 680px;
  overflow-wrap: anywhere;
}

.legal h1 { display: none; }
.legal h2 { margin: 3.1em 0 0.8em; font-size: 22px; }
.legal h3 { margin: 2.3em 0 0.7em; font-size: 18px; }
.legal p { margin: 0 0 1.25em; }
.legal ul,
.legal ol { padding-left: 1.45em; }
.legal li { margin-bottom: 0.55em; }
.legal table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.legal th,
.legal td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th { font-weight: 650; }
/* 2列の表(特商法の表記など)の項目名が、狭い画面で1〜2文字ずつ折り返さないように幅を取る。 */
.legal td:first-child { min-width: 6.5em; }

.site-footer {
  padding-block: 30px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.trademark-note { flex-basis: 100%; margin: 0; font-size: 10px; line-height: 1.8; }

@media (max-width: 900px) {
  .hero { gap: 28px; }
  .hero-copy > p { font-size: 15px; }
  .today-card { padding: 24px 16px 16px; }
  .routine-row { gap: 10px; padding: 18px 12px; }
  .routine-icon { display: none; }
  .widget-stage { padding-inline: 20px; }
  .widget-features { gap: 24px; }
  .history-section { gap: 36px; }
  .calendar-card { padding: 22px; }
  .detail-features { column-gap: 36px; }
  .start-features { grid-template-columns: 1fr; gap: 28px; }
  .start-features article { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
  .start-features p { margin: 0; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; padding-block: 20px; }
  nav { flex-direction: column; gap: 4px; text-align: right; }
  .home .site-header { align-items: center; gap: 16px; }
  .home nav { flex-direction: row; gap: 14px; font-size: 11px; }
  .home nav a:last-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 56px 60px; gap: 44px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 44px); }
  .hero-copy > p { margin-top: 24px; font-size: 15px; }
  .hero .availability { margin-top: 28px; gap: 12px 20px; }
  .hero-link { margin-top: 24px; font-size: 13px; }
  .today-preview { width: min(100%, 420px); justify-self: center; }
  .today-card { padding: 26px 20px 18px; }
  .routine-icon { display: flex; }
  .routine-row { padding: 18px 12px; }
  .landing-section { padding-block: 56px; }
  .landing-section h2 { font-size: clamp(25px, 6.5vw, 34px); }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { font-size: 14px; }
  .widget-features { grid-template-columns: 1fr; gap: 36px; }
  .watch-widget-feature { grid-template-columns: 1fr; gap: 0; }
  .watch-widget-feature .widget-copy { padding-top: 20px; }
  .widget-stage { height: 264px; }
  .widget-copy { padding-top: 20px; }
  .widget-copy h3 { font-size: 20px; }
  .history-section { grid-template-columns: 1fr; gap: 36px; }
  .history-preview { width: min(100%, 420px); justify-self: center; }
  .history-copy > p { font-size: 15px; }
  .detail-features { grid-template-columns: 1fr; gap: 24px; }
  .start-features article { display: block; }
  .start-features p { margin-top: 10px; }
  .closing .availability { flex-direction: column; }
  .closing h2 { font-size: clamp(23px, 6vw, 32px); }
  .site-footer { flex-direction: column; }
  .legal table { display: block; overflow-x: auto; }
}

@media (max-width: 360px) {
  .home nav { gap: 10px; font-size: 10px; }
  .brand { gap: 6px; font-size: 16px; }
  .today-card { padding: 22px 14px 16px; }
  .routine-icon { display: none; }
  .widget-stage { padding-inline: 12px; }
  .home-widget { padding: 14px; }
  .widget-cell { padding-inline: 7px; gap: 6px; font-size: 11px; }
  .widget-circle { width: 24px; height: 24px; }
  .calendar-card { padding: 18px; }
  .calendar-grid { column-gap: 4px; }
  .calendar-mark { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  .stamp svg { transition: transform 160ms ease-out, opacity 160ms ease-out; }
}

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