/* 紹介ページ(`/`)。ロゴ「KURONOSとくらす」から起こした形:
   白い地・青いマスと赤い1マス・丸ゴシックの見出し・灰色の英字。飾りの影・ぼかし・グラデーション・出入りの動きは使わない。
   区切りは細い罫だけ。節の印はロゴの6マスを小さくしたもので、赤いマスが節ごとに1つずつ進む(時間割の「いまのコマ」)。
   **見た目に JavaScript は使わない**(script は intro-redirect.js の送り先決めだけ)。丸ゴシック(Google Fonts の Zen Maru Gothic)はロゴの組み(左上の名前と表紙の「KURONOSとくらす」)だけで、その字だけを text= で読む。
   見出しは本文と同じゴシックの太字を palt で詰める(2026-10-09。丸ゴの見出しが続くと手作りに見え、Google Fonts 版は palt が無く詰まらなかった)。 */
:root {
  color-scheme: light dark;
  --brand: #122cdb;           /* ロゴの青。締めの帯の地 */
  --blue: #122cdb;            /* 字の青。暗い表示では明るくする */
  --red: #fe2626;             /* ロゴの赤いマス */
  --ink: #111318; --grey: #6b6f7a; --line: #e4e6ec; --cell: #dfe4fb;
  --bg: #fff; --tint: #f5f7ff;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Zen Maru Gothic", "M PLUS Rounded 1c", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #7b8cff; --red: #fe3828;
    --ink: #eceef4; --grey: #9aa0ad; --line: #272b37; --cell: #252c4a;
    --bg: #0c0e14; --tint: #121625;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: clip; }
p, h1, h2, h3, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 30; padding: 8px 16px; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.mark { display: block; flex: none; }
small { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1.7; color: var(--grey); vertical-align: 2px; }

/* ボタン。ロゴのマスと同じ角の丸み。 */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.button:hover { background: #0421b0; }
.button-small { padding: 6px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.note { font-size: 14px; color: var(--grey); }
.only-mobile { display: none; }
@media (hover: none) and (pointer: coarse) { .only-mobile { display: inline; } }

/* 上の帯。白い地に罫1本。 */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--maru); font-size: 18px; letter-spacing: .06em; text-decoration: none; }
.wordmark .mark { width: 30px; height: auto; }
.top nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; color: var(--grey); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 600px) { .nav-link { display: none; } }

/* 表紙。ロゴの組み(マス・名前・英字の正式名)をそのまま大きく置き、右に時間割の画面を1枚。 */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 3vw, 36px); align-items: center; }
.hero-copy > picture { grid-row: 1 / span 2; }
.hero-mark { display: block; width: clamp(96px, 11vw, 148px); height: auto; }
.hero h1 { align-self: end; font-family: var(--maru); font-weight: 500; font-feature-settings: "palt"; font-size: clamp(34px, 5.2vw, 66px); line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.hero h1 .latin { letter-spacing: .01em; }
.expansion { align-self: start; margin-top: 10px; font-size: clamp(12px, 1.25vw, 15px); color: var(--grey); letter-spacing: .01em; }
.lead { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; }
.lead span { display: inline-block; }
.copy, .points dd, details p { word-break: auto-phrase; text-wrap: pretty; }
.hero .actions { grid-column: 1 / -1; margin-top: 28px; }
.hero-shot img { border-radius: 32px; border: 1px solid var(--line); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { width: min(72vw, 300px); margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy > picture { grid-row: auto; }
  .hero-mark { width: 88px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
}

/* 機能の節。上に罫、左に印・見出し・説明・要点、右に画面。 */
.feature { margin-top: clamp(40px, 6vw, 72px); }
.feature + .feature { margin-top: 0; }
.feature .wrap { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.label { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: .04em; }
.label small { margin-left: 2px; }
.cells { width: 30px; height: auto; flex: none; }
.cells rect { fill: var(--cell); }
.cells rect.on { fill: var(--red); }
/* 見出しは本文と同じゴシックの太字を palt で詰め、行末と行頭の約物を半角に(text-spacing-trim)。 */
:is(.feature h2, .devices h2, .notes h2, .news .section-title, .news-post h1, .news-post h2, .start h2, .hero-plain h1, .prices .figure) { font-family: var(--sans); font-weight: 700; font-feature-settings: "palt"; letter-spacing: .01em; text-spacing-trim: trim-both; }
.feature h2 { margin: 20px 0 24px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.32; }
.copy { color: var(--ink); max-width: 32em; }
.points { margin-top: 32px; }
.points div { padding: 16px 0; border-top: 1px solid var(--line); }
.points div:last-child { border-bottom: 1px solid var(--line); }
.points dt { font-weight: 600; }
.points dd { margin-top: 2px; color: var(--grey); font-size: 15px; line-height: 1.7; }
.shots { display: flex; justify-content: flex-end; gap: clamp(16px, 2vw, 28px); position: sticky; top: 92px; }
.shots figure { flex: 0 1 300px; }
.shots img { border-radius: 28px; border: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .shots { position: static; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 min(62vw, 260px); scroll-snap-align: start; }
}

/* 広告の案内(/advertise/)で使う部品。表紙はロゴの組みの代わりに字だけ、要点は3列、料金は大きな数字。 */
.hero-plain .hero-copy { display: block; }
.hero-plain h1 { margin-top: 14px; white-space: normal; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.25; }
.hero-plain .lead { margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 48px); }
.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin-top: 4px; color: var(--grey); font-size: 15px; }
.prices .figure { display: block; margin: 2px 0 10px; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.3; color: var(--ink); }
.prices .figure small { margin-left: 6px; padding: 0; border: 0; font-family: var(--sans); font-size: 15px; vertical-align: baseline; }
.prices + .points { margin-top: 40px; max-width: 46em; }
.points-side { margin-top: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* 広告の案内だけの配色(`<body class="biz">`)。広告主向けに、紹介ページのロゴの青と赤から離して紺と墨にし、印のマスだけ金。
   表紙は紺の地に白い字、締めの帯は墨。字の形は紹介ページと同じ。 */
.biz { --brand: #0b2545; --blue: #13315c; --red: #b8902a; --ink: #0d1321; --grey: #565d6b; --line: #d8dce3; --cell: #dde2ea; --tint: #f3f5f8; --hero: #0b2545; --dark: #0d1321; }
@media (prefers-color-scheme: dark) {
  .biz { --brand: #2c4f86; --blue: #9db4e0; --red: #d9b65a; --ink: #e8ebf1; --grey: #9aa3b2; --line: #252c3a; --cell: #222a3a; --bg: #0b0f17; --tint: #111723; --hero: #0f1f38; --dark: #05070c; }
}
.biz .button:hover { background: #13315c; }
.biz .hero { background: var(--hero); color: #fff; }
.biz .hero .label { color: #d9b65a; }
.biz .hero .lead { color: #d5dbe5; }
.biz .hero .button { background: #fff; color: #0b2545; }
.biz .hero .button:hover { background: #e4e9f0; }
.biz .hero .more { color: #fff; }
.biz .hero-shot img { border-color: #24406a; }
.biz :is(.feature dt, .prices .figure) { color: var(--blue); }
.biz .start { background: var(--dark); }
.biz .start .button { color: #0d1321; }

/* 会計の公開(/accounts/)の表。罫だけで区切り、額は右寄せで桁をそろえる。 */
.ledger-scroll { margin-top: 32px; overflow-x: auto; }
.ledger { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.ledger th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; color: var(--grey); text-align: left; }
.ledger td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-note { display: block; font-size: 13px; color: var(--grey); }
.ledger-empty { margin-top: 24px; }

/* ほかの端末と。iPad の画面を広く置き、下に3つを罫で並べる。 */
.devices .wrap { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.devices h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; }
.devices .copy { margin-top: 16px; }
.tablet { margin-top: clamp(32px, 5vw, 56px); }
.tablet img { border-radius: 20px; border: 1px solid var(--line); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); margin-top: 32px; }
.platforms div { padding-top: 14px; border-top: 2px solid var(--ink); }
.platforms dt { font-weight: 700; font-size: 17px; }
.platforms dd { margin-top: 4px; color: var(--grey); font-size: 15px; }
@media (max-width: 640px) { .platforms { grid-template-columns: 1fr; gap: 24px; } }

/* 締め。ロゴの青の地に、白いマスと赤い1マスのロゴ。 */
.start { background: var(--brand); color: #fff; }
.start-inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(48px, 6vw, 80px) 0; }
.start-mark { flex: none; width: clamp(72px, 8vw, 104px); height: auto; }
.start-copy { flex: 1; }
.start h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.4; }
.start p { opacity: .85; }
.start .button { background: #fff; color: var(--brand); }
.start .button:hover { background: #e9edff; }
@media (max-width: 640px) { .start-inner { flex-direction: column; align-items: flex-start; } }

/* よくある質問。左に見出し、右に罫で区切った質問。印は閉「>」・開「∨」。 */
.notes { padding: clamp(72px, 9vw, 120px) 0; }
.notes-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); }
.notes h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ">"; flex: none; color: var(--grey); }
details[open] summary::after { content: "∨"; }
details > div { padding: 0 0 20px; color: var(--grey); }
details p + p { margin-top: .8em; }
.shot-note { margin-top: 20px; font-size: 13px; color: var(--grey); }
@media (max-width: 760px) { .notes-grid { grid-template-columns: 1fr; } }

/* お知らせ。紹介ページの帯(よくある質問と同じ左右の組み)と、`/news/` の一覧・1件ずつのページ。
   中身は tools/build_news.py が site/news/feed.json から組む。 */
.news { padding: clamp(72px, 9vw, 120px) 0 0; }
.news .section-title, .news-post h1 { line-height: 1.4; }
.news .section-title { margin-bottom: 24px; font-size: clamp(24px, 2.6vw, 32px); }
.news-band .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(32px, 6vw, 96px); }
.news-band .section-title { grid-row: 1 / span 2; }
.news-band :is(.news-list, .news-back) { grid-column: 2; }
@media (max-width: 760px) { .news-band .wrap { grid-template-columns: 1fr; } .news-band .section-title { grid-row: auto; } .news-band :is(.news-list, .news-back) { grid-column: 1; } }
.news-page .news { padding-bottom: clamp(72px, 9vw, 120px); }
.news-page .news .wrap { max-width: 760px; }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 18px 0; text-decoration: none; }
.news-list time { flex: none; min-width: 9.5em; font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.news-list span { flex: 1 1 18em; font-weight: 600; }
.news-list a:hover span { text-decoration: underline; }
.news-back { margin-top: 20px; }
.news-empty { color: var(--grey); }
.news-date { font-size: 14px; color: var(--grey); }
.news-post h1 { margin: 8px 0 32px; font-size: clamp(28px, 4vw, 40px); }
.news-post :is(p, ul, h2) + :is(p, ul) { margin-top: 1em; }
.news-post h2 { margin: 1.8em 0 .5em; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; }
.news-post .news-ul { padding-left: 1.4em; list-style: disc; }
.news-post .news-ul li + li { margin-top: .35em; }
.news-post :is(p, li) a { color: var(--blue); }
.news-post .actions { margin-top: 36px; }
.news-post .news-back { margin-top: 48px; }
.news-figure { margin-top: 28px; }
.news-figure img { border-radius: 16px; border: 1px solid var(--line); }
.more { color: var(--blue); font-weight: 600; text-decoration: none; }
.more::after { content: " >"; }

/* フッター。 */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--grey); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; }
.footer .wordmark { color: var(--ink); font-size: 16px; }
.footer .wordmark .mark { width: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer .legal { grid-column: 1 / -1; font-size: 12px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
