:root {
  --paper: #fbf3eb;
  --paper-deep: #efe1d5;
  --surface: #fffaf6;
  --ink: #4a3b37;
  --muted: #7c6c66;
  --line: #e2d1c6;
  --sage: #7c9688;
  --sage-pale: #e3eee7;
  --apricot: #e38b73;
  --apricot-pale: #fbe3da;
  --shadow: 0 28px 80px rgba(111, 76, 63, 0.12);
  --font-friendly:
    ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "YuGothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 86% 3%,
      rgba(248, 203, 188, 0.55),
      transparent 25rem
    ),
    radial-gradient(
      circle at 7% 25%,
      rgba(222, 235, 226, 0.64),
      transparent 22rem
    ),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-friendly);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(124, 150, 136, 0.36);
  outline-offset: 3px;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(74, 59, 55, 0.14);
}

.project-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.16em;
}

.project-mark span {
  font-size: 0.67rem;
  font-weight: 700;
}

.project-mark strong {
  font-family: var(--font-friendly);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0;
}

.quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 10px 0 10px 16px;
}

.quiet-button:hover {
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 80px;
  padding: 72px 0 92px;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--sage);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 24px 0 28px;
  font-family: var(--font-friendly);
  font-size: clamp(3.25rem, 7vw, 6.65rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero-lead {
  margin: 0;
  color: #685954;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  line-height: 2;
}

.start-link {
  width: fit-content;
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 650;
  padding: 0 0 10px;
  text-decoration: none;
}

.start-link span {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.start-link:hover span {
  transform: translateY(4px);
}

.clock-art {
  display: grid;
  justify-items: center;
  gap: 25px;
}

.clock-ring {
  width: min(31vw, 370px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 59, 55, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 250, 246, 0.94) 0 48%,
      transparent 49%
    ),
    conic-gradient(
      from -24deg,
      var(--sage) 0 70%,
      var(--apricot) 70% 82%,
      rgba(255, 255, 255, 0.6) 82% 100%
    );
  box-shadow: inset 0 0 0 22px rgba(251, 243, 235, 0.72);
}

.clock-ring::after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px solid rgba(74, 59, 55, 0.16);
  border-radius: 50%;
}

.clock-number {
  z-index: 1;
  display: grid;
  justify-items: center;
}

.clock-number strong {
  font-family: var(--font-friendly);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.85;
}

.clock-number span {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.26em;
}

.clock-art > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.clock-tick {
  width: 1px;
  height: 16px;
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 1;
  background: rgba(74, 59, 55, 0.5);
  transform-origin: 0 calc((min(31vw, 370px) / 2) - 8px);
}

.tick-two {
  transform: rotate(90deg);
}

.tick-three {
  transform: rotate(180deg);
}

.tick-four {
  transform: rotate(270deg);
}

.calculator-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: start;
  gap: 46px;
  padding: 82px 0 120px;
  border-top: 1px solid rgba(74, 59, 55, 0.14);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 270px);
  align-items: end;
  gap: 24px;
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-friendly);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.8;
}

.second-heading {
  margin-top: 70px;
}

.time-list {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.time-row {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.time-copy label {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
}

.time-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.82);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.stepper > button:hover {
  border-color: var(--sage);
  background: var(--surface);
  transform: translateY(-1px);
}

.number-field {
  min-width: 158px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}

.number-field input {
  width: 86px;
  min-height: 44px;
  padding: 2px 4px 1px;
  border: 0;
  border-bottom: 2px solid rgba(124, 150, 136, 0.44);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-friendly);
  font-size: 1.75rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: center;
  -moz-appearance: textfield;
}

.number-field input::-webkit-outer-spin-button,
.number-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.number-field span {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.result-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid rgba(111, 76, 63, 0.12);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
}

.result-card::before {
  content: "";
  height: 7px;
  position: absolute;
  inset: 0 0 auto;
  background: var(--sage);
}

.result-card.over::before,
.result-card.overflow::before {
  background: var(--apricot);
}

.result-card.overflow {
  background:
    linear-gradient(
      rgba(255, 250, 246, 0.94),
      rgba(255, 250, 246, 0.94)
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 12px,
      rgba(216, 120, 95, 0.18) 12px 13px
    );
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.status-pill {
  border-radius: 999px;
  background: var(--sage-pale);
  color: #52695d;
  padding: 7px 11px;
  letter-spacing: 0.08em;
}

.over .status-pill,
.overflow .status-pill {
  background: var(--apricot-pale);
  color: #95503e;
}

.result-intro {
  margin: 42px 0 11px;
  font-size: 0.88rem;
  font-weight: 650;
}

.result-number {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.result-number strong {
  font-family: var(--font-friendly);
  font-size: clamp(5.5rem, 9vw, 7.5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.result-number span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.result-message {
  min-height: 76px;
  margin: 27px 0 30px;
  font-family: var(--font-friendly);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.9;
}

.capacity {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.capacity-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.65rem;
}

.capacity-track {
  height: 7px;
  overflow: hidden;
  margin: 12px 0 10px;
  border-radius: 10px;
  background: var(--paper-deep);
}

.capacity-track span {
  width: 95%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--sage);
  transition: width 260ms ease;
}

.over .capacity-track span,
.overflow .capacity-track span {
  background: var(--apricot);
}

.capacity > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
}

.result-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 21px 0;
  color: var(--muted);
}

.result-note > span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-friendly);
  font-size: 0.72rem;
}

.result-note p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.7;
}

.share-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 15px;
  background: #65514a;
  color: white;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.share-button:hover {
  background: #765d54;
  transform: translateY(-1px);
}

.privacy-note {
  margin: 14px 0 0;
  color: #8a7770;
  font-size: 0.62rem;
  line-height: 1.6;
  text-align: center;
}

.meaning-section {
  padding: 120px 24px;
  background: #5a4842;
  color: #fff8f2;
  text-align: center;
}

.meaning-section .eyebrow {
  color: #c9ddd1;
}

.meaning-section blockquote {
  margin: 37px auto 33px;
  font-family: var(--font-friendly);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.6;
}

.meaning-section > p:last-child {
  max-width: 610px;
  margin: 0 auto;
  color: #e5d6cf;
  font-size: 0.86rem;
  line-height: 2;
}

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--muted);
  font-size: 0.65rem;
}

footer p {
  margin: 0;
}

footer p:first-child {
  font-weight: 750;
  letter-spacing: 0.16em;
}

@media (max-width: 920px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 70px 0 80px;
  }

  .clock-ring {
    width: 260px;
  }

  .clock-tick {
    transform-origin: 0 122px;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: relative;
    top: 0;
    grid-row: 1;
    max-width: 620px;
  }

  .input-column {
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(248, 203, 188, 0.55),
        transparent 19rem
      ),
      radial-gradient(
        circle at 0% 32%,
        rgba(222, 235, 226, 0.62),
        transparent 18rem
      ),
      var(--paper);
  }

  .site-header,
  .hero,
  .calculator-shell,
  footer {
    width: min(100% - 34px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .hero {
    display: block;
    padding: 56px 0 70px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .hero-lead br {
    display: none;
  }

  .clock-art {
    margin-top: 64px;
  }

  .clock-ring {
    width: min(78vw, 330px);
  }

  .clock-tick {
    transform-origin: 0 calc((min(78vw, 330px) / 2) - 8px);
  }

  .calculator-shell {
    gap: 55px;
    padding: 60px 0 85px;
  }

  .result-card {
    border-radius: 24px;
    padding: 28px 23px 24px;
  }

  .result-intro {
    margin-top: 34px;
  }

  .result-number strong {
    font-size: clamp(5rem, 25vw, 7rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .second-heading {
    margin-top: 58px;
  }

  .time-row {
    min-height: 134px;
    display: block;
    padding: 22px 0;
  }

  .time-copy p {
    line-height: 1.6;
  }

  .stepper {
    justify-content: space-between;
    margin-top: 18px;
  }

  .stepper > button {
    width: 44px;
    height: 44px;
    background: var(--surface);
  }

  .number-field {
    min-width: 176px;
  }

  .number-field input {
    width: 96px;
    font-size: 2rem;
  }

  .meaning-section {
    padding: 88px 22px;
  }

  .meaning-section blockquote br {
    display: none;
  }

  footer {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.7;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
