
:root {
  --ink: #171717;
  --muted: #666663;
  --soft: #f7f7f5;
  --line: #e5e5e1;
  --line-strong: #d3d3ce;
  --page: #ffffff;
  --max: 1120px;
  --radius: 28px;
  --daymark: #2d7255;
  --daymark-soft: #f1f7f3;
  --schedule: #315fdd;
  --schedule-soft: #f3f5fc;
  --rhythm: #317d73;
  --rhythm-soft: #eef7f5;
  --weather: #f26425;
  --weather-soft: #fff4ee;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
    "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, p { margin-top: 0; }
figure { margin: 0; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 145px;
  object-fit: contain;
}

.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}
.nav-contact:hover { border-color: #999; }

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 3px solid #315fdd;
  outline-offset: 3px;
}
.btn-primary { color: #fff; background: var(--ink); }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }

.helper-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  color: inherit;
  text-decoration: underline;
}

.eyebrow {
  margin-bottom: 12px;
  color: #565653;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.daymark-theme .accent-eyebrow { color: var(--daymark); }
.schedule-theme .accent-eyebrow { color: var(--schedule); }
.still-rhythm-theme .accent-eyebrow { color: var(--rhythm); }
.weather-theme .accent-eyebrow { color: var(--weather); }

.apps-section { padding: 64px 0 96px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.app-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.app-card-icon-link {
  display: block;
  width: fit-content;
  margin-bottom: 36px;
  border-radius: 22px;
  line-height: 0;
}

.app-card-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 0;
  border-radius: 22px;
  object-fit: cover;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.app-card-icon-link:hover .app-card-icon {
  transform: scale(1.035);
  filter: brightness(1.025);
}

.app-card-icon-link:focus-visible {
  outline: 3px solid rgba(49, 95, 221, .32);
  outline-offset: 5px;
}
.app-meta {
  margin-bottom: 10px;
  color: #50504d;
  font-size: 14px;
}
.app-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.app-card-title-link {
  color: inherit;
  text-decoration: none;
}

.app-card-title-link:hover {
  text-decoration: underline;
  text-decoration-thickness: .07em;
}

.app-card-title-link:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(49, 95, 221, .32);
  outline-offset: 4px;
}
.app-card > p:not(.app-meta) {
  max-width: 34em;
  margin-bottom: 32px;
  color: #3d3d3a;
  font-size: 17px;
}
.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.app-card-actions .btn {
  flex: 1 1 0;
  padding-inline: 16px;
  font-size: 14px;
  white-space: nowrap;
}
.app-card-actions .btn-primary { flex-grow: 1.45; }

.status-badge {
  align-self: flex-start;
  margin: -12px 0 22px;
  padding: 5px 11px;
  border: 1px solid rgba(49, 125, 115, .22);
  border-radius: 999px;
  color: #27675f;
  background: var(--rhythm-soft);
  font-size: 12px;
  font-weight: 700;
}

.status-badge.weather-status {
  border-color: rgba(242, 100, 37, .24);
  color: #b84a1d;
  background: var(--weather-soft);
}

.contact-band {
  padding: 68px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.contact-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.contact-band h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.contact-band p:last-child { margin-bottom: 0; color: #454542; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding-top: 28px;
  color: #6b6b68;
  font-size: 13px;
}
.breadcrumbs a { color: inherit; }
.breadcrumbs > a,
.breadcrumbs > span { flex: 0 0 auto; }

.app-hero { padding: 42px 0 88px; }
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 88px);
}
.app-title-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.app-title-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  flex: 0 0 auto;
}
.app-title-lockup h1 {
  margin-bottom: 4px;
  font-size: clamp(42px, 5.3vw, 66px);
  line-height: 1;
  letter-spacing: -.055em;
}
.app-title-lockup p { margin-bottom: 0; color: var(--muted); }
.hero-copy {
  max-width: 39em;
  margin-bottom: 28px;
  color: #3f3f3c;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #595956;
  font-size: 13px;
}
.hero-visual {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--soft);
}
.hero-visual img {
  width: 100%;
  max-height: 720px;
  border-radius: 23px;
  object-fit: contain;
}

.concept-strip {
  padding: 74px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}
.concept-grid h2,
.story-copy h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -.045em;
}
.concept-grid > p {
  margin: 0;
  color: #444441;
  font-size: 17px;
  line-height: 1.9;
}

.visual-story { padding: 96px 0; }
.visual-story-soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 8vw, 100px);
}
.story-grid-reverse .story-copy { order: 2; }
.story-grid-reverse .showcase-frame { order: 1; }
.story-copy h2 { margin-bottom: 22px; }

.feature-title {
  min-height: calc(1.34em * 2);
  font-size: clamp(28px, 3.3vw, 36px);
  line-height: 1.34;
  text-wrap: balance;
}

.feature-title span {
  display: block;
  white-space: nowrap;
}
.story-copy > p:last-child {
  margin-bottom: 0;
  color: #454542;
  font-size: 17px;
  line-height: 1.9;
}
.visual-frame {
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
}
.daymark-theme .visual-frame { background: var(--daymark-soft); }
.schedule-theme .visual-frame { background: var(--schedule-soft); }
.still-rhythm-theme .visual-frame { background: var(--rhythm-soft); }
.weather-theme .visual-frame { background: var(--weather-soft); }
.visual-frame img {
  width: 100%;
  border-radius: 23px;
  object-fit: contain;
}
.widget-frame img { background: #fff; }
.screen-detail-frame img { max-height: 760px; }

.info-section { padding: 86px 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-card,
.policy-card,
.faq-item,
.support-box,
.mail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.info-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}
.info-card p:last-child { margin-bottom: 0; color: #50504d; }

.simple-page { padding: 68px 0 96px; }
.simple-page > .container { max-width: 860px; }
.simple-page h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.support-title span { white-space: nowrap; }
.privacy-title .title-nowrap { white-space: nowrap; }
.prose { color: #30302e; }
.prose .lead { font-size: 18px; }
.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(24px, 3.5vw, 30px);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.prose p { margin-bottom: 20px; }
.prose li { margin-bottom: 5px; }
.meta { color: var(--muted); font-size: 14px; }
.mail-card { margin: 28px 0 52px; background: var(--soft); }
.mail-card p { margin: 0; font-weight: 700; }
.policy-list,
.faq-list { display: grid; gap: 18px; margin-top: 30px; }
.policy-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.policy-card h2 { margin-top: 0; margin-bottom: 12px; font-size: 26px; }
.policy-card p:last-of-type { color: #4f4f4c; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.faq-item h2 { margin: 0 0 10px; font-size: 22px; }
.faq-item p { margin: 0; color: #4d4d4a; }
.faq-item ul,
.faq-item ol { margin: 0; padding-left: 1.25em; }
.faq-item li { margin-bottom: 8px; }
.support-box { margin-top: 32px; background: var(--soft); }
.support-box h2 { margin-top: 0; }

.still-hero-visual {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(49, 125, 115, .18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 22%, rgba(49, 125, 115, .15), transparent 35%),
    linear-gradient(150deg, #fbfdfd 0%, var(--rhythm-soft) 100%);
}

.still-hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(2, 21, 19, .14));
}

.still-feature-section { padding: 92px 0; }
.wellness-note {
  margin-top: 28px;
  padding: 24px 26px;
  border-left: 4px solid var(--rhythm);
  border-radius: 0 18px 18px 0;
  background: var(--rhythm-soft);
}
.wellness-note h2 { margin-bottom: 8px; font-size: 20px; }
.wellness-note p { margin-bottom: 0; color: #4d4850; }

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #686865;
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 820px) {
  .container { width: min(100% - 36px, var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-logo {
    height: 29px;
    max-width: 132px;
  }
  .nav-contact { min-height: 42px; padding-inline: 15px; }

  .apps-section { padding: 52px 0 72px; }
  .app-grid,
  .contact-band-inner,
  .app-hero-grid,
  .concept-grid,
  .story-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .app-card { padding: 26px; }
  .app-card-icon-link { margin-bottom: 30px; }
  .app-card-icon { width: 82px; height: 82px; }
  .app-card > p:not(.app-meta) { font-size: 16px; }

  .contact-band { padding: 58px 0; }
  .contact-band-inner { gap: 28px; }
  .contact-band h2 {
    font-size: clamp(20px, 5.3vw, 26px);
    white-space: nowrap;
  }
  .contact-band .btn { width: 100%; }

  .breadcrumbs { padding-top: 22px; }
  .app-hero { padding: 32px 0 66px; }
  .app-hero-grid { gap: 38px; }
  .app-title-icon { width: 74px; height: 74px; border-radius: 18px; }
  .app-title-lockup { gap: 14px; margin-bottom: 24px; }
  .app-title-lockup h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-visual { padding: 12px; border-radius: 24px; }
  .hero-visual img { border-radius: 17px; max-height: none; }

  .concept-strip { padding: 58px 0; }
  .concept-grid { gap: 24px; }
  .concept-grid h2,
  .story-copy h2 { font-size: clamp(27px, 7.5vw, 36px); }

  .feature-title {
    min-height: calc(1.4em * 2);
    font-size: clamp(24px, 6.6vw, 31px);
    line-height: 1.4;
  }

  .visual-story { padding: 70px 0; }
  .story-grid { gap: 34px; }
  .story-grid-reverse .story-copy,
  .story-grid-reverse .showcase-frame { order: initial; }
  .visual-frame { padding: 12px; border-radius: 24px; }
  .visual-frame img { border-radius: 17px; }
  .screen-detail-frame img { max-height: none; }

  .info-section { padding: 64px 0; }
  .still-hero-visual { min-height: 0; border-radius: 24px; }
  .still-feature-section { padding: 68px 0; }
  .simple-page { padding: 52px 0 74px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 30px); }
  .brand-logo {
    height: 27px;
    max-width: 122px;
  }
  .nav-contact { padding-inline: 13px; font-size: 13px; }
  .app-card { padding: 23px; }
  .app-card-actions { flex-direction: column; }
  .app-card-actions .btn { flex-basis: auto; width: 100%; }
  .contact-band h2 { font-size: 19px; }
  .hero-actions .btn { width: 100%; }
  .app-title-lockup h1 { font-size: 32px; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link { display: none !important; }
  img { visibility: visible !important; opacity: 1 !important; }
  .showcase-frame,
  .info-card,
  .policy-card,
  .faq-item { break-inside: avoid; page-break-inside: avoid; }
}


/* v9: improve visibility of light app icons */
.app-card-icon,
.app-title-icon {
  border: 1px solid #e7e7e7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}


/* v15: published App Store actions use a primary download button and a secondary site action */


/* v12: prevent forced feature-title lines from overflowing on very narrow screens */
@media (max-width: 350px) {
  .feature-title span {
    white-space: normal;
  }
}


/* v13: new App Store screenshot presentation */
.showcase-frame {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.08);
}

.showcase-frame--portrait {
  width: min(100%, 470px);
  justify-self: center;
}

.showcase-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-showcase {
  align-self: center;
}

.showcase-frame--widget {
  width: min(100%, 600px);
  justify-self: center;
  background: #000;
}

.showcase-frame--widget .showcase-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.daymark-theme .showcase-frame {
  border-color: rgba(45, 114, 85, 0.18);
}

.schedule-theme .showcase-frame {
  border-color: rgba(49, 95, 221, 0.16);
}

.still-rhythm-theme .showcase-frame {
  border-color: rgba(49, 125, 115, 0.2);
}

.weather-theme .showcase-frame {
  border-color: rgba(242, 100, 37, 0.18);
}

.still-showcase-frame {
  background: #071514;
}

@media (max-width: 820px) {
  .showcase-frame {
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(23, 23, 23, 0.07);
  }

  .showcase-frame--portrait {
    width: min(100%, 440px);
  }

  .showcase-frame--widget {
    width: min(100%, 500px);
  }
}

@media print {
  .showcase-frame {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


/* v14: widget images are pre-cropped to a balanced composition */
@media (max-width: 820px) {
  .showcase-frame--widget {
    width: min(100%, 540px);
  }
}
