/* Good AI 公式サイト — 明るいライトテーマ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6fbf8;
  --bg-sun: #fffaeb;
  --bg-sky: #eef6ff;
  --surface: #ffffff;
  --ink: #1d2a24;
  --ink-2: #4b5a53;
  --muted: #74817b;
  --line: #e4ece7;
  --brand: #12b07a;
  --brand-ink: #0b7d57;
  --brand-soft: #e3f7ee;
  --sky: #2f8cff;
  --sky-soft: #e6f1ff;
  --teal-ink: #0b7d68;
  --teal-soft: #e3f5f0;
  --sun: #ffbe2e;
  --sun-soft: #fff3cf;
  --coral: #ff7a59;
  --spark: #ffd23f;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 60 40 / 0.04), 0 10px 30px rgb(16 60 40 / 0.07);
  --shadow-lg: 0 20px 50px -18px rgb(18 120 90 / 0.35);
  --font: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --font-head: 'Zen Kaku Gothic New', var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.85; letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; letter-spacing: 0.03em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.nw { display: inline-block; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.gnav { display: flex; gap: 4px; }
.gnav a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.gnav a:hover { background: var(--bg-soft); color: var(--ink); }
.gnav a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }
.gnav a[href="/aipass/"] { color: var(--sky); }
.gnav a[href="/aipass/"][aria-current] { background: var(--sky-soft); }
.gnav a[href="/itpass/"] { color: var(--teal-ink); }
.gnav a[href="/itpass/"][aria-current] { background: var(--teal-soft); }
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .gnav { overflow-x: auto; margin-inline: -16px; padding: 4px 12px 10px; scrollbar-width: none; }
  .gnav::-webkit-scrollbar { display: none; }
  .gnav a { font-size: 0.875rem; padding: 6px 12px; }
}

.crumbs { font-size: 0.8125rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--muted); }
.crumbs > * + *::before { content: '›'; margin-right: 4px; color: #c3cdc8; }
.crumbs span { color: var(--ink-2); }

.main { padding-block: 24px 80px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; transition: transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfdcd5; }
.btn-primary { background: linear-gradient(135deg, #16c487, #0ea371); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgb(18 176 122 / 0.6); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 12px 26px -8px rgb(18 176 122 / 0.7); }
.btn-white { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 80px 72px;
  background: linear-gradient(160deg, #eafaf2 0%, #f3f9ff 45%, #fff8e6 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { margin: 0 0 10px; color: var(--brand-ink); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); margin: 0 0 20px; }
.hero-lead { color: var(--ink-2); font-size: 1.0625rem; max-width: 34em; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; min-height: 330px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { width: 230px; height: 230px; background: radial-gradient(circle at 30% 30%, #c9f5df, #8fe6bf); top: 6%; left: 18%; opacity: .75; }
.b2 { width: 160px; height: 160px; background: radial-gradient(circle at 30% 30%, #fff1b8, #ffd45c); bottom: 2%; right: 8%; opacity: .8; }
.b3 { width: 120px; height: 120px; background: radial-gradient(circle at 30% 30%, #d6e9ff, #9cc8ff); top: 0; right: 14%; opacity: .8; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.9375rem; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.fc-1 { top: 10%; left: 4%; }
.fc-2 { top: 40%; right: 0; animation-delay: -2s; }
.fc-3 { top: 72%; left: 10%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } .btn, .app-card, .post-card { transition: none; } }
@media (max-width: 860px) {
  .hero { padding-block: 48px 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .blob { display: none; }
  .float-card { position: static; animation: none; white-space: normal; font-size: 0.875rem; padding: 10px; box-shadow: var(--shadow); }
}

/* app marks */
.app-mark { display: inline-grid; place-items: center; flex: none; border-radius: 14px; background: var(--c, var(--brand)); color: #fff; font-family: var(--font-head); font-weight: 700; object-fit: cover; }
.app-mark-sm { width: 40px; height: 40px; font-size: 0.875rem; border-radius: 11px; }
.app-mark-md { width: 52px; height: 52px; font-size: 1rem; }
.app-mark-lg { width: 72px; height: 72px; font-size: 1.375rem; border-radius: 18px; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; line-height: 1.7; vertical-align: middle; letter-spacing: 0.04em; }
.status-released { background: var(--brand-soft); color: var(--brand-ink); }
.status-preparing { background: var(--sun-soft); color: #8a5a00; }
.status-developing { background: #f0f2f1; color: var(--ink-2); }

/* sections */
.section { margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 0 0 24px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 10px; height: 26px; border-radius: 6px; background: linear-gradient(var(--brand), var(--sky)); flex: none; }
.more { font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }

/* aipass feature */
.aipass-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, #eaf3ff 0%, #f1fbf6 100%); border: 1px solid #dbe9fb; margin-top: 56px; }
.aipass-copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 0 0 10px; }
.aipass-copy > p { color: var(--ink-2); margin: 0; }
.aipass-feature .eyebrow { color: var(--sky); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 22px 0 0; }
.stats li { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.75rem; line-height: 1.2; color: var(--sky); }
.stats span { font-size: 0.75rem; color: var(--ink-2); font-weight: 500; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chapter-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.chapter-list a:hover { transform: translateX(4px); }
.ch-no { font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--sky); padding: 2px 10px; border-radius: 999px; }
.ch-title { font-weight: 700; font-size: 0.9375rem; line-height: 1.5; }
.ch-arrow { color: var(--sky); font-weight: 700; }
/* itpass feature（aipass-feature のティール版） */
.itpass-feature { background: linear-gradient(135deg, #e3f5f0 0%, #f4f9ff 100%); border-color: #d2ebe4; margin-top: 40px; }
.itpass-feature .eyebrow, .itpass-feature .stats strong, .itpass-feature .ch-arrow { color: var(--teal-ink); }
.itpass-feature .ch-no { background: var(--teal-ink); }
.itpass-feature .chapter-list { gap: 8px; }
.itpass-feature .chapter-list a { padding: 11px 16px; }
.btn-teal { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn-teal:hover { background: #086553; border-color: #086553; }
@media (max-width: 900px) { .aipass-feature { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { position: relative; display: block; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.app-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c, var(--brand)); }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.app-kind { margin: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.app-card h3 { margin: 2px 0 6px; font-size: 1.125rem; }
.app-catch { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.7; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value { padding: 28px; border-radius: var(--radius); }
.v1 { background: var(--brand-soft); } .v2 { background: var(--sky-soft); } .v3 { background: var(--sun-soft); }
.value-no { font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; color: var(--brand-ink); }
.v2 .value-no { color: var(--sky); } .v3 .value-no { color: #b07800; }
.value h3 { margin: 0 0 8px; font-size: 1.1875rem; }
.value p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card h3 { margin: 10px 0 8px; font-size: 1.0625rem; line-height: 1.55; }
.post-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { margin-top: auto; color: var(--muted); font-size: 0.8125rem; }
.post-cat { align-self: flex-start; display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 12px; border-radius: 999px; text-decoration: none; }
.cat-aipass { color: var(--sky); background: var(--sky-soft); }
.cat-itpass { color: var(--teal-ink); background: var(--teal-soft); }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px; border-radius: 28px; background: linear-gradient(120deg, #13b47c, #2f8cff); color: #fff; }
.cta-band h2 { margin: 0 0 6px; font-size: 1.375rem; }
.cta-band p { margin: 0; opacity: 0.95; }
.cta-band .btn { flex: none; }
@media (max-width: 720px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; } }

/* page head */
.page-head { margin: 18px 0 34px; }
.page-title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); margin: 0 0 12px; }
.lead { color: var(--ink-2); font-size: 1.0625rem; margin: 0; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-tabs a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.cat-tabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* apps page */
.app-list { display: grid; gap: 18px; }
.app-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 90px; box-shadow: var(--shadow); }
.app-row h2 { margin: 4px 0 4px; font-size: 1.5rem; }
.app-row .app-catch { font-weight: 500; margin-bottom: 8px; }
.app-row p { margin: 0 0 4px; }
.app-row-meta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) { .app-row { grid-template-columns: 1fr; gap: 12px; padding: 22px; } }

/* simplenote */
.sn-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; margin-top: 16px; padding: 36px; border-radius: 28px; background: linear-gradient(140deg, #eef5ff, #f6fbff 60%, #fff); }
.sn-title { display: flex; align-items: center; gap: 16px; }
.sn-title h1 { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.sn-title .app-kind { display: flex; align-items: center; gap: 8px; }
.sn-catch { font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; margin: 20px 0 8px; }
.sn-phone { display: grid; place-items: center; }
.phone { width: min(250px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 36px; padding: 10px; background: #1b1f1d; box-shadow: 0 30px 60px -20px rgb(21 112 250 / 0.4); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
@media (max-width: 760px) { .sn-hero { grid-template-columns: 1fr; padding: 22px; } }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-family: var(--font-head); }
.steps span { color: var(--ink-2); font-size: 0.9375rem; }
.table.compare td, .table.compare th { text-align: center; }
.table.compare tr > th:first-child { text-align: left; }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article-head h1 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); margin: 12px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 0.8125rem; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc p { margin: 0 0 4px; font-weight: 700; font-family: var(--font-head); }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 0.9375rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); text-decoration: underline; }

.prose { font-size: 1.0625rem; }
.prose.narrow { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.4375rem; margin: 52px 0 16px; padding: 10px 16px; background: var(--bg-soft); border-left: 5px solid var(--brand); border-radius: 0 12px 12px 0; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px dotted #cfe9dc; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li + li { margin-top: 6px; }
.prose pre { background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 0.875rem; line-height: 1.7; margin: 0 0 1.4em; white-space: pre-wrap; }
.prose code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.prose :not(pre) > code { background: #f1f5f3; padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.point { background: var(--sun-soft); border-radius: 14px; padding: 16px 20px; margin: 0 0 1.4em; }
.point p:last-child { margin-bottom: 0; }
.updated { color: var(--muted); font-size: 0.875rem; }
.notfound { text-align: center; padding-block: 48px; }
.notfound .btn-row { justify-content: center; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.7; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 0 0 1.4em; }
.table-wrap .table { margin: 0; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .table th { white-space: normal; } .table th, .table td { padding: 10px; } }

.author-box, .profile-card { display: flex; gap: 18px; margin-top: 40px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-soft), var(--sky-soft)); font-size: 0.9375rem; }
.profile-card { margin: 0 0 1.4em; }
.author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; box-shadow: 0 6px 16px -6px rgb(18 120 90 / 0.5); }
.author-box p, .profile-card p { margin: 0 0 6px; color: var(--ink-2); }
.author-label { font-size: 0.75rem; font-weight: 700; color: var(--brand-ink) !important; letter-spacing: 0.08em; }
.author-name { font-weight: 700; color: var(--ink) !important; font-family: var(--font-head); font-size: 1.0625rem; }
.author-name span { display: inline-block; margin-left: 10px; font-size: 0.75rem; font-weight: 500; color: var(--muted); font-family: var(--font); }
@media (max-width: 520px) { .author-box, .profile-card { flex-direction: column; } }

.contact-box { padding: 30px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-soft), var(--bg-sun)); text-align: center; margin: 24px 0 8px; }
.contact-label { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.contact-mail { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem); font-weight: 700; margin: 4px 0 16px; font-family: var(--font-head); }
.contact-mail a { text-decoration: none; }

.ad { margin: 32px 0; text-align: center; }
.ad-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 52px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.footer-brand p { color: var(--ink-2); font-size: 0.875rem; margin: 12px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h2 { font-size: 0.875rem; margin: 0 0 10px; color: var(--ink); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
.footer-cols li + li { margin-top: 6px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--brand-ink); text-decoration: underline; }
.copy { color: var(--muted); font-size: 0.8125rem; padding-block: 28px; margin-top: 36px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.notice-dev { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--sun-soft); color: #6b4a00; font-size: 0.9375rem; }
.dev-note { padding: 26px 28px; border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--line); }
.dev-note .section-title { margin-bottom: 10px; }
.dev-note p { margin: 0; color: var(--ink-2); }
.hero-lead strong { color: var(--ink); }

/* ===== 無料ツール ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gnav a[href="/tools/"] { color: #b06a00; }
.gnav a[href="/tools/"][aria-current] { background: var(--sun-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
button.btn { font-family: inherit; cursor: pointer; }

.tool-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .tool-tiles { grid-template-columns: 1fr; } }
.tool-tile { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tool-tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.tool-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-tile .app-mark { font-size: 0.875rem; }
.tool-tile-body strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.5; }
.tool-tile-body span { display: block; color: var(--ink-2); font-size: 0.875rem; line-height: 1.7; margin-top: 4px; }
.tool-tile-arrow { color: var(--c); font-weight: 700; }
.tool-tiles-lg .tool-tile { padding: 26px; }

.calc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .calc-list { grid-template-columns: 1fr; } }
.calc-list a { display: block; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.calc-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.calc-list strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; margin: 6px 0 4px; }
.calc-list span:last-child { color: var(--ink-2); font-size: 0.875rem; line-height: 1.7; display: block; }
.calc-list-field { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); padding: 2px 10px; border-radius: 999px; }

.tool-head { margin-bottom: 24px; }
.tool-head .lead strong { color: var(--ink); }
.tool-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.tool-badges li { font-size: 0.8125rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; }
.tool-badges li::before { content: '✓ '; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); margin: 0 0 18px; min-width: 0; }
.tool-grid > .tool-card { margin: 0; }
.tool-grid + .tool-card, .tool-grid + .tool-privacy { margin-top: 18px; }
@media (max-width: 600px) { .tool-card { padding: 18px 16px; border-radius: 18px; } }
.tool-step { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin: 0 0 14px; }
.tool-step > span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.875rem; }
.tool-text { display: block; width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 0.9375rem; line-height: 1.75; color: var(--ink); background: #fff; resize: vertical; }
.tool-text:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tool-text.is-output { background: var(--bg-soft); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.5; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.tool-options { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tool-options summary { cursor: pointer; font-weight: 700; font-size: 0.9375rem; color: var(--brand-ink); }
.tool-options[open] summary { margin-bottom: 10px; }
.tool-summary { margin: 0 0 8px; font-size: 0.875rem; color: var(--ink-2); min-height: 1.6em; }
.tool-hint { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 12px; }
.tool-privacy { font-size: 0.875rem; color: var(--ink-2); background: var(--brand-soft); border-radius: 14px; padding: 12px 16px; margin: 0 0 8px; }
.tool-privacy::before { content: '🔒 '; }
.tool-disclaimer { font-size: 0.8125rem; color: var(--muted); line-height: 1.8; margin: 8px 0 0; padding: 0 4px; }
.tool-article { margin-top: 48px; }
.field-label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); margin: 10px 0 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); line-height: 1.5; }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.mask-table { font-size: 0.875rem; }
.mask-table th, .mask-table td { padding: 8px 10px; vertical-align: middle; }
.mask-table th:first-child, .mask-table td:first-child { width: 56px; text-align: center; }
.mask-table code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.mask-kind { display: block; font-size: 0.6875rem; color: var(--muted); }
.mask-val { word-break: break-all; }
.mask-table tr.is-off td { color: var(--muted); }
.mask-table tr.is-off .mask-val { text-decoration: line-through; }
.mask-check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* 計算ツール */
.calc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.calc-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.calc-nav a[aria-current] { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; font-weight: 700; }
.calc-card .tool-step > span { background: var(--teal-ink); }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 16px; }
.calc-fields-3 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.calc-fields .field-label { margin-top: 12px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.input { width: 100%; min-height: 46px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
select.input { cursor: pointer; }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit > span { flex: none; font-size: 0.875rem; color: var(--ink-2); font-weight: 500; }
.input-unit select.input { flex: 0 0 auto; width: auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; white-space: nowrap; padding: 7px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); line-height: 1.5; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgb(16 60 40 / 0.15); }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }
.av-rows { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.av-rows label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.av-rows input { display: block; width: 100%; margin-top: 4px; min-height: 44px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 12px; font: inherit; }
.av-rows input:focus { outline: none; border-color: var(--teal-ink); }
.calc-out { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--teal-soft), #f4fbff); min-height: 56px; }
.calc-out > :first-child { margin-top: 0; }
.calc-out > :last-child { margin-bottom: 0; }
.calc-big { font-size: 1rem; margin: 0 0 6px; }
.calc-big strong { font-family: var(--font-head); font-size: 1.625rem; color: var(--teal-ink); margin: 0 4px; }
.calc-steps { font-size: 0.875rem; color: var(--ink-2); margin: 6px 0; line-height: 1.8; }
.calc-ol { padding-left: 1.3em; }
.calc-note { font-size: 0.8125rem; color: var(--ink-2); margin: 8px 0 0; }
.calc-msg { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.calc-table th, .calc-table td { padding: 8px 10px; border-bottom: 1px solid rgb(11 125 104 / 0.15); text-align: left; vertical-align: top; }
.calc-table tr:last-child > * { border-bottom: 0; }
.calc-table th { white-space: nowrap; font-weight: 700; }
.calc-val { font-weight: 700; white-space: nowrap; }
.calc-val strong { color: var(--teal-ink); font-size: 1.125rem; }
.calc-table .calc-steps { margin: 0; }
.calc-table tr.is-src th, .calc-table tr.is-src td { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; word-break: break-all; white-space: normal; }
.calc-pre { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 0.8125rem; line-height: 1.7; max-height: 260px; overflow: auto; margin: 6px 0; }
@media (max-width: 600px) {
  .calc-table, .calc-table tbody, .calc-table tr, .calc-table th, .calc-table td { display: block; }
  .calc-table tr { padding: 8px 0; border-bottom: 1px solid rgb(11 125 104 / 0.15); }
  .calc-table tr:last-child { border-bottom: 0; }
  .calc-table th, .calc-table td { border: 0; padding: 2px 0; }
}
.formula { background: var(--teal-soft); border-radius: 14px; padding: 14px 18px; margin: 0 0 1.4em; }
.formula p { margin: 0 0 6px; }
.formula p:last-child { margin: 0; }
.quiz-list { padding-left: 1.4em; }
.quiz { margin-bottom: 14px; }
.quiz > p { margin: 0 0 6px; }
.quiz details { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 0.9375rem; }
.quiz summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); }
.quiz details p { margin: 8px 0 0; }

/* 学習プラン */
.plan-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
.plan-fields .field-wide { grid-column: 1 / -1; }
.chips-days .chip span { min-width: 44px; text-align: center; }
.plan-summary { margin: 22px 0 0; }
.plan-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0 0 12px; }
.plan-stats li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.plan-stats span { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.plan-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--sky); line-height: 1.4; }
@media (max-width: 520px) { .plan-stats { grid-template-columns: 1fr; } .plan-stats li { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; } }
.plan-advice { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 0.9375rem; }
.plan-advice.is-good { background: var(--brand-soft); color: #0a5c40; }
.plan-advice.is-warn { background: var(--sun-soft); color: #6b4a00; }
.plan-advice.is-bad { background: #ffe9e3; color: #8a2d14; }
.plan-out { margin-top: 18px; }
.plan-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plan-progress p { margin: 0; font-size: 0.875rem; white-space: nowrap; color: var(--ink-2); }
.plan-bar { flex: 1; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.plan-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 999px; transition: width .3s; }
.plan-week { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
.plan-week summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.plan-week summary::-webkit-details-marker { display: none; }
.plan-week summary::after { content: '＋'; margin-left: auto; color: var(--muted); }
.plan-week[open] summary::after { content: '－'; }
.plan-week[open] summary { border-bottom: 1px solid var(--line); }
.plan-week-no { font-size: 0.75rem; color: #fff; background: var(--sky); padding: 2px 10px; border-radius: 999px; }
.plan-week-done { font-size: 0.8125rem; color: var(--ink-2); font-weight: 500; }
.plan-days { list-style: none; margin: 0; padding: 0; }
.plan-day { display: grid; grid-template-columns: auto 92px 1fr; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.plan-day:last-child { border-bottom: 0; }
.plan-day.is-today { background: var(--bg-sun); }
.plan-day.is-done .plan-task strong, .plan-day.is-done .plan-task p:not(.plan-links) { color: var(--muted); }
.plan-day.is-done .plan-task strong { text-decoration: line-through; }
.plan-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.plan-date { font-weight: 700; font-size: 0.9375rem; line-height: 1.6; }
.plan-today { display: inline-block; margin-left: 4px; font-size: 0.6875rem; color: #fff; background: var(--coral); padding: 0 8px; border-radius: 999px; vertical-align: 2px; }
.plan-task strong { font-size: 0.9375rem; line-height: 1.6; }
.plan-task p { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.7; }
.plan-phase { display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; }
.plan-phase-chapter { background: var(--sky-soft); color: var(--sky); }
.plan-phase-final { background: var(--sun-soft); color: #8a5a00; }
.plan-links a { display: inline-block; margin-right: 12px; font-weight: 700; font-size: 0.8125rem; }
.plan-exam { text-align: center; font-weight: 700; font-family: var(--font-head); margin: 16px 0 0; }
@media (max-width: 600px) {
  .plan-day { grid-template-columns: auto 1fr; padding: 12px 14px; }
  .plan-task { grid-column: 2; }
}
@media print {
  .site-header, .site-footer, .crumbs, .plan-form .tool-actions, .tool-article, .ad, .tool-badges { display: none !important; }
  .plan-week summary::after { content: ''; }
  .tool-card, .plan-week, .plan-stats li { box-shadow: none; }
  .plan-day { break-inside: avoid; }
}

.table-io td:nth-child(-n+2) { white-space: nowrap; }

/* ヘッダー：中くらいの画面幅でロゴが折り返さないようにする */
.logo { flex: none; white-space: nowrap; }
.gnav { min-width: 0; }
@media (min-width: 761px) and (max-width: 1120px) {
  .gnav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .gnav::-webkit-scrollbar { display: none; }
  .gnav a { padding: 8px 9px; font-size: 0.875rem; }
}
.table-key td:first-child { white-space: nowrap; }
