/* スコアボード(野球)をモチーフに。濃い緑の盤面と、琥珀色のランプ */
:root {
  --bg: #f3f6f1; --surface: #ffffff; --ink: #11221b; --muted: #55665d; --line: #d8e0d6; --soft: #e8eee6;
  --green: #0f3d2e; --green2: #08261c; --amber: #f2b705; --amber-ink: #6b4f00; --red: #d64545; --ok: #1f7a4d;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1712; --surface: #112219; --ink: #e8f1ea; --muted: #9db3a6; --line: #25382d; --soft: #162a20; --amber-ink: #ffd75a; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; padding-bottom: 72px; }
a { color: var(--green); } @media (prefers-color-scheme: dark) { a { color: #7fe0b0; } }
.wrap { max-width: 980px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
header.site { background: var(--green2); color: #fff; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.brand .lamps { display: inline-flex; gap: 4px; } .brand .lamps i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: block; } .brand .lamps i:nth-child(n+4) { background: #2f6d57; }
header.site nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
header.site nav a { color: #cfe6da; text-decoration: none; padding: 4px 2px; } header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--amber); }
.hero { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 56px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: var(--amber); font-weight: 800; letter-spacing: .14em; font-size: 12.5px; }
.hero h1 { font-size: clamp(26px, 5.2vw, 42px); line-height: 1.35; margin: 8px 0 10px; text-wrap: balance; }
.hero p { margin: 0; color: #cfe6da; max-width: 60ch; }
.trust { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
main { padding-top: 22px; }
h2 { font-size: 22px; line-height: 1.4; margin: 36px 0 10px; } h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { max-width: 70ch; }
.btn { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.3; }
.btn:hover { border-color: var(--green); } .btn.primary { background: var(--green); border-color: var(--green); color: #fff; } .btn.primary:hover { filter: brightness(1.15); }
.btn.big { padding: 15px 26px; font-size: 17px; width: 100%; } .btn.danger { color: var(--red); } .btn:focus-visible, .cell:focus-visible, .g:focus-visible, .card-btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
#ct-app { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05); min-height: 220px; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .bar-row h2 { margin: 0; }
.empty { text-align: center; padding: 18px 8px; } .empty h2 { margin: 0 0 8px; } .empty p { margin: 0 auto 16px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.card-btn { text-align: left; font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.card-btn:hover { border-color: var(--green); } .card-title { font-weight: 800; } .card-sub { font-size: 14px; color: var(--muted); margin: 2px 0 8px; font-variant-numeric: tabular-nums; } .card-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--amber); border-radius: 999px; transition: width .4s; }
.big-bar { height: 14px; margin: 12px 0 14px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--green); padding: 10px; border-radius: 16px; margin-top: 12px; }
.sb { background: var(--green2); border-radius: 12px; padding: 10px 8px; text-align: center; color: #fff; min-width: 0; }
.sb-l { font-size: 12px; color: #9fd0b9; font-weight: 700; letter-spacing: .06em; } .sb-v { font-size: clamp(20px, 4.8vw, 32px); font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; } .sb-s { font-size: 12px; color: #cfe6da; }
.sb.hot .sb-v { color: #ff9a3c; text-shadow: 0 0 12px rgba(255,154,60,.5); }
.actions { display: grid; gap: 10px; margin: 8px 0 16px; } .pace { text-align: center; font-weight: 700; font-size: 14.5px; color: var(--muted); } .pace.ok { color: var(--ok); } .pace.late { color: var(--red); }
.done-msg { text-align: center; font-weight: 800; padding: 14px; background: var(--soft); border-radius: 12px; }
.hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 10px; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.cell { font: inherit; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); line-height: 1.25; }
.cell .n { font-size: 11px; color: var(--muted); } .cell .a { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell.done { background: var(--amber); border-color: var(--amber); color: #2b2100; } .cell.done .n { color: #5a4300; } .cell.today { outline: 3px solid var(--green); outline-offset: 1px; }
.grass-scroll { overflow-x: auto; padding-bottom: 8px; } .grass-wrap { display: inline-block; min-width: 100%; }
.g-months { display: flex; gap: 3px; font-size: 11px; color: var(--muted); height: 16px; } .g-months span { width: 13px; flex: none; white-space: nowrap; overflow: visible; }
.grass { display: flex; gap: 3px; } .g-col { display: flex; flex-direction: column; gap: 3px; }
.g { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; } .g.done { background: #38b36b; } .g.future { opacity: .35; cursor: default; } .g.today { outline: 2px solid var(--amber); }
@media (min-width: 700px) { .g { width: 15px; height: 15px; } .g-months span { width: 15px; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; } .badge { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); } .badge.on { background: var(--amber); color: #2b2100; }
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; } .small { font-size: 12.5px; color: var(--muted); }
.share-box { margin-top: 12px; } .share-img { width: 100%; max-width: 560px; border-radius: 12px; border: 1px solid var(--line); display: block; } .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.settings { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.form { display: grid; gap: 14px; margin-top: 12px; } .field { display: grid; gap: 4px; } .lbl { font-weight: 700; font-size: 14px; } .help { font-size: 12.5px; color: var(--muted); }
input, select { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.preview { margin: 16px 0; padding: 12px 16px; background: var(--soft); border-radius: 12px; } .kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.warn { background: #fff0d0; color: #7a4f00; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.backup { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 50; }
.article { padding-bottom: 12px; } table.ref { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; margin: 10px 0; } table.ref th, table.ref td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); } table.ref th { color: var(--muted); font-size: 12.5px; } table.ref td.r, table.ref th.r { text-align: right; } .tbl { overflow-x: auto; }
.note { font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.tool-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: transform .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--green); } .tool-card b { font-size: 18px; display: block; } .tool-card span { color: var(--muted); font-size: 14.5px; } .tool-card .tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--amber-ink); background: rgba(242,183,5,.22); padding: 2px 10px; border-radius: 999px; }
.tool-card.main { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; border-color: var(--green); } .tool-card.main span { color: #cfe6da; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .related a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface); }
.ad-slot { margin: 24px 0; } .ad-slot:empty { display: none; }
footer.site { margin-top: 56px; background: var(--green2); color: #9fd0b9; padding: 28px 0 40px; font-size: 14px; } footer.site a { color: #cfe6da; margin-right: 18px; } footer.site p { margin: 10px 0 0; font-size: 12.5px; max-width: 80ch; }
@media (prefers-reduced-motion: no-preference) { .cell, .g { transition: background .15s, transform .1s; } .cell:active { transform: scale(.95); } .sb-v { transition: color .3s; } }
@media (max-width: 480px) { #ct-app { padding: 14px; } .board { gap: 6px; padding: 8px; } }

/* ---- イラスト(ソコスト素材) ---- */
.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero-art { flex: none; background: rgba(255,255,255,.93); border-radius: 28px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-art img { display: block; width: clamp(100px, 16vw, 160px); height: auto; }
@media (max-width: 560px) { .hero-art { display: none; } }
.tool-card.has-art { position: relative; padding-right: 110px; min-height: 112px; }
.card-art { position: absolute; right: 16px; top: 16px; width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; }
.empty-art { display: block; margin: 0 auto 6px; width: 120px; height: auto; }
.done-art { display: block; margin: 0 auto 6px; width: 90px; height: auto; }
@media (prefers-reduced-motion: no-preference) { .hero-art { animation: bob 5s ease-in-out infinite; } @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } }
