/*
 * Stir Hosyu Symbol — single stylesheet, no build step and no JavaScript.
 *
 * Mobile-first: the base rules are the phone layout, and the only breakpoints
 * widen it. Sizes use clamp() so there is no in-between width where the type is
 * awkward. Colours are custom properties so the dark scheme is one short block
 * at the end rather than a second copy of the sheet.
 */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f7;
  --fg: #1c2321;
  --fg-muted: #55605d;
  --accent: #137a74;
  --accent-strong: #0e5f5a;
  --accent-faint: #e4f1f0;
  --border: #d9e0df;
  --radius: 10px;
  --container: 64rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    'Hiragino Kaku Gothic ProN',
    'Noto Sans JP',
    Meiryo,
    sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.85;
  /* Japanese text has no spaces to break on; keep lines from splitting oddly. */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3,
h4 {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-strong);
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.wordmark__name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wordmark__name b {
  color: var(--accent);
}

.wordmark__by {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg-muted);
  padding-block: 0.25rem;
}

.site-nav a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  background: linear-gradient(180deg, var(--accent-faint), transparent 70%), var(--bg);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 1.15rem + 2vw, 2.5rem);
}

/* Breaks between phrases, never inside one — unless the phrase alone is wider
   than the screen, in which case it still wraps rather than overflowing. */
.nowrap-unit {
  display: inline-block;
}

.lead {
  max-width: 44rem;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3rem; /* comfortable tap target on phones */
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------- content -- */

.section {
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.4em;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
}

.section h3 {
  font-size: 1.1rem;
}

.section h4 {
  margin: 1.6rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.section-lead {
  max-width: 44rem;
  color: var(--fg-muted);
}

.section p {
  max-width: 44rem;
}

/* auto-fit means one column on a phone and two or three on wider screens,
   without naming a breakpoint for each. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* ----------------------------------------------------------------- plans -- */

.plan {
  max-width: 44rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.plan h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.plan p {
  font-size: 0.95rem;
}

.price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.price__sub {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.notes {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.notes li + li {
  margin-top: 0.3rem;
}

/* A price table cannot shrink below its content; let it scroll rather than
   force the whole page to scroll sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  text-align: left;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* Keep the amounts intact, but let the spec column wrap — otherwise the columns
   cannot fit a 320px phone and the table is silently clipped. */
thead th,
td {
  white-space: nowrap;
}

tbody th {
  white-space: normal;
}

thead th {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

tbody th {
  font-weight: 600;
}

td {
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg-muted);
}

/* On a phone the badge gets its own line and the cells tighten up, so the
   columns fit without the table being cut off. */
@media (max-width: 26rem) {
  th,
  td {
    padding: 0.5rem 0.4rem;
  }

  .tag {
    display: block;
    width: max-content;
    margin: 0.15rem 0 0;
  }
}

.tag--rec {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------- contact -- */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 1.5rem;
  margin: 1.25rem 0 0;
}

.contact dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.contact dd {
  margin: 0 0 1rem;
}

@media (min-width: 36rem) {
  .contact {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }

  .contact dd {
    margin-bottom: 0.5rem;
  }
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.footer-contact,
.copyright {
  margin: 0.75rem 0 0;
}

.copyright {
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------ dark scheme -- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11201f;
    --bg-alt: #182b29;
    --fg: #e8efee;
    --fg-muted: #9fb2af;
    --accent: #3fb0a7;
    --accent-strong: #63c7bf;
    --accent-faint: #1b3936;
    --border: #2b413e;
  }

  .btn--primary {
    color: #0b1a19;
  }

  .btn--primary:hover {
    background: var(--accent-strong);
  }
}
