/* ===== 商号チェッカー theme ===== */
:root {
	--c-bg: #f6f7f5; --c-surface: #fff; --c-text: #1b1f1e; --c-muted: #64716c; --c-line: #e2e6e3;
	--c-primary: #0f766e; --c-primary-dk: #0b5c56; --c-primary-lt: #e6f4f2; --c-accent: #d97706; --c-ok: #15803d; --c-ng: #c2410c;
	--r: 10px; --shadow: 0 1px 2px rgba(20,30,28,.05), 0 1px 3px rgba(20,30,28,.08);
	--font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.75; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Menlo, monospace; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.muted { color: var(--c-muted); font-weight: 400; font-size: .85rem; }
.sp { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .65em 1.2em; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); font-weight: 700; font-size: .95rem; cursor: pointer; line-height: 1.2; font-family: inherit; }
.btn:hover { text-decoration: none; border-color: #c4ccc8; }
.btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dk); border-color: var(--c-primary-dk); }
.btn--ghost { background: transparent; }
.btn--small { padding: .45em .9em; font-size: .85rem; }
.btn--block { display: flex; width: 100%; margin-top: 8px; }
.pr { font-size: .7rem; color: var(--c-muted); margin-left: .4em; font-weight: 400; }

/* Header */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--c-text); display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--c-primary); color: #fff; font-size: .95rem; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: .5em .8em; border-radius: 6px; color: var(--c-text); font-weight: 500; font-size: .95rem; }
.nav__list a:hover { background: var(--c-bg); text-decoration: none; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-header .searchform { display: flex; }
.site-header .searchform input { width: 160px; padding: .5em .8em; border: 1px solid var(--c-line); border-radius: 8px 0 0 8px; font-size: .9rem; }
.site-header .searchform button { border: 1px solid var(--c-line); border-left: 0; background: var(--c-bg); color: var(--c-text); font-size: .85rem; border-radius: 0 8px 8px 0; padding: 0 .8em; cursor: pointer; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--c-line); border-radius: 6px; font-size: 1.2rem; padding: .2em .5em; }

/* Search */
.searchform { display: flex; max-width: 640px; }
.searchform input { flex: 1; padding: .8em 1em; border: 1px solid var(--c-line); border-radius: 10px 0 0 10px; font-size: 1rem; -webkit-appearance: none; appearance: none; background: #fff; min-width: 0; }
.searchform button { padding: 0 1.4em; border: 0; background: var(--c-primary); color: #fff; font-weight: 600; border-radius: 0 10px 10px 0; cursor: pointer; }

/* Check form */
.checkform { max-width: 720px; }
.checkform__main { display: flex; gap: 0; }
.checkform__main input { flex: 1; min-width: 0; padding: .85em 1.1em; border: 2px solid var(--c-primary); border-right: 0; border-radius: 10px 0 0 10px; font-size: 1.1rem; background: #fff; -webkit-appearance: none; appearance: none; font-family: inherit; }
.checkform__main input:focus { outline: none; box-shadow: 0 0 0 3px rgba(15,118,110,.2); }
.checkform__main .btn { border-radius: 0 10px 10px 0; font-size: 1.02rem; padding: .85em 1.4em; white-space: nowrap; }
.checkform__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; margin-top: 12px; }
.checkform__opts label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--c-muted); font-weight: 600; }
.checkform__opts select, .checkform__opts input { padding: .5em .6em; border: 1px solid var(--c-line); border-radius: 6px; font-size: 16px; background: #fff; color: var(--c-text); font-family: inherit; font-weight: 400; -webkit-appearance: none; appearance: none; }
.checkform__opts select { background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364716c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right .7em center; padding-right: 2em; }
.hero .checkform { margin: 0 auto 1em; }
.side-box .checkform__main input { font-size: 1rem; padding: .6em .8em; }
.side-box .checkform__main .btn { padding: .6em .9em; font-size: .9rem; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 50% -100px, #d5ece8 0%, var(--c-bg) 70%); padding: 60px 0 36px; text-align: center; }
.hero h1 { font-size: 2.3rem; margin-bottom: .4em; }
.hero__lead { color: var(--c-muted); font-size: 1.02rem; max-width: 720px; margin: 0 auto 1.4em; }
.hero__lead strong { color: var(--c-text); }
.hero__popular { font-size: .9rem; color: var(--c-muted); }
.hero__popular a { display: inline-block; margin: .2em .3em; padding: .2em .7em; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text); }
.hero__stats { font-size: .85rem; color: var(--c-muted); margin-top: 1.2em; }
.hero__stats strong { color: var(--c-text); font-size: 1.1em; }

/* Sections */
.section { padding: 40px 0; }
.section--alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section__head h2 { margin: 0; }
.cta-band { text-align: center; }
.cta-band h2 { font-size: 1.5rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.how__no { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; margin-bottom: 8px; }
.how__item h3 { font-size: 1.05rem; } .how__item p { margin: 0; font-size: .92rem; color: var(--c-muted); }

/* Tiles */
.saas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); color: var(--c-text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--c-primary); }
.tile__name { font-weight: 700; font-size: 1.05rem; } .tile__count { font-size: .85rem; color: var(--c-primary); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card--featured { border-color: #f5d08a; background: #fffbf2; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__title { font-weight: 800; font-size: 1.2rem; color: var(--c-text); }
.card__tagline { color: var(--c-muted); font-size: .9rem; margin: 0; min-height: 2.6em; }
.card__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.card__nums div { background: var(--c-bg); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.card__nums span { font-size: .72rem; color: var(--c-muted); } .card__nums strong { font-size: 1.15rem; line-height: 1.2; } .card__nums small { font-size: .7rem; font-weight: 400; margin-left: 2px; }
.card__pref { font-size: .95rem !important; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--c-muted); margin-top: auto; }
.risk { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.risk--low { background: #dcfce7; color: #15803d; } .risk--mid { background: #ffedd5; color: #c2410c; } .risk--high { background: #fee2e2; color: #b91c1c; } .risk--none { background: #eef0ee; color: var(--c-muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1em .5em; border-radius: 999px; }
.tag--exact { background: #fee2e2; color: #b91c1c; }
.pill { display: inline-block; margin: 0 .3em .4em 0; padding: .25em .8em; border-radius: 999px; background: var(--c-primary-lt); color: var(--c-primary-dk); font-weight: 600; font-size: .9rem; }
.pill:hover { background: #d3ebe7; text-decoration: none; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 8px 0 48px; }
.layout__main, .layout__side { min-width: 0; }
html, body { overflow-x: clip; }
.layout__side > * + * { margin-top: 20px; }
@media (min-width: 901px) { .layout__side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; } }
.crumb { font-size: .82rem; color: var(--c-muted); padding: 14px 0 6px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumb li + li::before { content: "›"; margin: 0 4px; }
.page-head { padding: 12px 0 18px; }
.page-head h1 { font-size: 1.8rem; }
.page-head__lead { color: var(--c-muted); font-size: 1rem; max-width: 800px; }
.page-head__updated { font-size: .82rem; color: var(--c-muted); }
.notice-inline { background: var(--c-primary-lt); border: 1px solid #b9dcd6; padding: .7em 1em; border-radius: 8px; display: inline-block; }
.notice-box { padding: .8em 1em; border-radius: 8px; margin: 12px 0; }
.notice-box--warn { background: #fff7e6; border: 1px solid #f5d08a; } .notice-box p { margin: 0; }

/* Name single */
.name__title h1 { font-size: 1.85rem; margin: 0; }
.name__title em { font-style: normal; color: var(--c-primary); }
.name__tagline { font-size: 1.05rem; color: var(--c-muted); margin: .4em 0; }
.name__lead { font-size: 1rem; }
.name > section, .layout__main > section, .result > section { margin: 32px 0; }
.name > section > h2, .result > section > h3, .rsec > h3, .layout__main > section > h2 { font-size: 1.3rem; padding-bottom: .4em; border-bottom: 2px solid var(--c-line); margin-bottom: 14px; }
.meaning { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 5px solid var(--c-primary); border-radius: var(--r); padding: 18px 22px; }
.meaning h2 { border: 0 !important; padding: 0 !important; margin-bottom: 8px !important; font-size: 1.1rem !important; }
.meaning p:last-child { margin-bottom: 0; }
.entry h2 { margin-top: 1.6em; font-size: 1.3rem; } .entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry code { background: #eef0ee; padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.page-entry { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 32px; margin: 8px 0 48px; }
.name__foot { border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 24px; font-size: .9rem; color: var(--c-muted); }

/* Verdict */
.verdict { border-radius: var(--r); padding: 16px 20px; margin: 14px 0; border: 1px solid; }
.verdict--low { background: #ecfdf3; border-color: #abefc6; } .verdict--mid { background: #fff6e5; border-color: #f5d08a; } .verdict--high { background: #fef2f2; border-color: #fecaca; }
.verdict__head { display: flex; align-items: baseline; gap: 10px; }
.verdict__label { font-size: .85rem; color: var(--c-muted); font-weight: 600; }
.verdict__level { font-size: 1.5rem; }
.verdict--low .verdict__level { color: var(--c-ok); } .verdict--mid .verdict__level { color: var(--c-ng); } .verdict--high .verdict__level { color: #b91c1c; }
.verdict__reasons { margin: 6px 0 0; padding-left: 1.3em; font-size: .95rem; } .verdict__reasons li { margin: .15em 0; }
.verdict__rule { margin: 8px 0 0; font-size: .9rem; font-weight: 600; } .verdict__rule--ng { color: #b91c1c; } .verdict__rule--warn { color: var(--c-ng); }

/* Stat grid */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; position: relative; }
.stat span { font-size: .78rem; color: var(--c-muted); } .stat strong { font-size: 1.6rem; line-height: 1.2; } .stat small { font-size: .8rem; font-weight: 400; }
.stat em { font-style: normal; font-size: .7rem; color: var(--c-muted); }
.stat--ng { border-color: #fecaca; background: #fef2f2; } .stat--ng strong { color: #b91c1c; }
.stat--ok { border-color: #abefc6; background: #ecfdf3; } .stat--ok strong { color: var(--c-ok); }

/* Rules / domains */
.rules, .domains { list-style: none; margin: 0; padding: 0; }
.rule { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 10px 12px; border-left: 4px solid; margin-bottom: 6px; background: var(--c-surface); border-radius: 0 8px 8px 0; font-size: .93rem; }
.rule--ok { border-color: var(--c-ok); } .rule--warn { border-color: var(--c-accent); } .rule--ng { border-color: #dc2626; background: #fef2f2; } .rule--info { border-color: #94a3b8; }
.rule strong { font-size: .9rem; } .rule--ok strong::before { content: "✓ "; color: var(--c-ok); } .rule--warn strong::before { content: "！ "; color: var(--c-accent); } .rule--ng strong::before { content: "✕ "; color: #dc2626; }
.dom { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; margin-bottom: 6px; }
.dom code { font-size: 1rem; } .dom span { font-weight: 700; font-size: .85rem; padding: .1em .6em; border-radius: 999px; }
.dom--ok span { background: #dcfce7; color: #15803d; } .dom--ng span { background: #fee2e2; color: #b91c1c; } .dom--warn span { background: #eef0ee; color: var(--c-muted); }
.sns a { display: inline-block; margin: 0 .5em .4em 0; padding: .3em .8em; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: .9rem; }
.cta-box { background: var(--c-primary-lt); border: 1px solid #b9dcd6; border-radius: var(--r); padding: 18px 22px; margin: 24px 0; }
.cta-box h3 { font-size: 1.1rem; }
.result__title { font-size: 1.5rem; margin-top: 28px; }

/* Bars */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 10px; padding: 4px 0; font-size: .9rem; }
.bars__bar { height: 12px; background: #e9ecea; border-radius: 6px; overflow: hidden; } .bars__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), #5fb3a9); border-radius: 6px; }
.bars__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.namelist { columns: 2; column-gap: 24px; padding-left: 1.2em; margin: 0; font-size: .92rem; } .namelist li { break-inside: avoid; margin: .2em 0; }

/* Table */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; margin: 0 0 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.cmp { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.cmp th, .cmp td { padding: .6em .8em; text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.cmp th { background: #f3f5f4; font-weight: 600; color: var(--c-muted); font-size: .78rem; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp tr.is-exact td { background: #fff8f6; }

/* Sidebar */
.stats, .side-box, .cta, .widget { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.stats__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.stats__top strong { font-size: 2rem; line-height: 1; } .stats__top small { font-size: .9rem; font-weight: 400; }
.stats__list { margin: 12px 0 0; }
.stats__list div { display: flex; justify-content: space-between; gap: 10px; padding: .45em 0; border-top: 1px solid var(--c-line); font-size: .9rem; }
.stats__list dt { color: var(--c-muted); } .stats__list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.stats__checked { font-size: .78rem; color: var(--c-muted); margin: 10px 0 0; }
.side-box h3 { font-size: 1rem; }
.cta { background: #f2f8f7; border-color: #b9dcd6; }
.cta h3 { font-size: 1.05rem; }
.cta ol { padding-left: 1.3em; margin: 0 0 12px; font-size: .92rem; } .cta li { margin-bottom: .5em; } .cta small { color: var(--c-muted); }
.cta__note { font-size: .82rem; color: var(--c-muted); margin: 8px 0 0; }
.cta__pr { font-size: .7rem; color: var(--c-muted); text-align: right; margin: 4px 0 0; }
.cta--tm { background: #fffbf2; border-color: #f5d08a; } .cta--tm p { font-size: .9rem; margin-bottom: 6px; }

/* Filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.filterbar select { padding: .45em .6em; border: 1px solid var(--c-line); border-radius: 6px; font-size: .88rem; background: #fff; font-family: inherit; }

/* Category list */
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list a { display: inline-block; padding: .45em .9em; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text); font-weight: 500; }
.cat-list a span { color: var(--c-muted); font-size: .8em; margin-left: .3em; }
.cat-list a:hover { border-color: var(--c-primary); text-decoration: none; }

/* Pagination */
.pagination { margin: 28px 0; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: .4em .8em; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-surface); color: var(--c-text); }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* FAQ */
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
.faq__item summary { cursor: pointer; font-weight: 600; } .faq__item summary::marker { color: var(--c-primary); }
.faq__a { margin-top: 8px; color: #344054; font-size: .95rem; } .faq__a p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); margin-top: 40px; padding: 40px 0 20px; font-size: .9rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 32px; }
.site-footer__brand p { color: var(--c-muted); margin-top: .5em; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-footer h4 { font-size: .85rem; color: var(--c-muted); margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: .3em 0; } .site-footer a { color: var(--c-text); }
.site-footer__note { border-top: 1px solid var(--c-line); margin-top: 28px; padding-top: 16px; color: var(--c-muted); font-size: .8rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__note p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.site-footer__inner { grid-template-columns: 1fr; }
	.hero h1 { font-size: 1.7rem; } .sp { display: inline; }
	.how { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.site-header__inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
	.menu-toggle { display: block; }
	.nav, .site-header__tools { display: none; width: 100%; }
	.site-header.is-open .nav, .site-header.is-open .site-header__tools { display: flex; flex-direction: column; align-items: stretch; }
	.site-header.is-open .nav__list { flex-direction: column; }
	.site-header .searchform input { width: 100%; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.page-head h1, .name__title h1 { font-size: 1.4rem; }
	.rule { grid-template-columns: 1fr; gap: 2px; }
	.bars li { grid-template-columns: 90px 1fr 50px; }
	.namelist { columns: 1; }
	.checkform__main .btn { padding: .85em 1em; }
	.card__nums { grid-template-columns: 1fr 1fr 1fr; }
}
