/* Toplit のサイト共通の見た目（アプリと同じ「墨と蛍光の黄」） */
:root {
  --ink: #1f1f24;
  --paper: #fafaf7;
  --text: #1f1f24;
  --muted: #5f5f68;
  --line: #e4e4dc;
  --card: #ffffff;
  --marker: #ffd23f;
  --link: #1f1f24;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17171a;
    --text: #ededf0;
    --muted: #a3a3ad;
    --line: #2e2e34;
    --card: #1f1f24;
    --link: #ffd23f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

h1 { font-size: 30px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.4; margin: 44px 0 10px; padding-top: 4px; }
h3 { font-size: 17px; line-height: 1.5; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }

.lead { color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 14px; }
.nowrap { white-space: nowrap; }

/* アプリの「1 行だけ光る」に合わせた蛍光ペンの線 */
.mark { background: linear-gradient(transparent 58%, var(--marker) 58%); color: var(--ink); padding: 0 2px; }
@media (prefers-color-scheme: dark) {
  .mark { background: none; color: var(--marker); padding: 0; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.summary { list-style: none; padding: 0; }
.summary li { padding-left: 1.6em; position: relative; }
.summary li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.4; }
details[open] summary::after { content: "−"; }
details > div { padding-top: 8px; }

.contact { font-size: 18px; font-weight: 700; }

.hero { text-align: center; padding: 40px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.hero h1 { font-size: 40px; margin-top: 20px; }
.hero p { font-size: 18px; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 32px; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}
