/* Kokoku Mamori: one stylesheet for the front page and the app */
[hidden] { display: none !important; }
:root {
  --teal: #0f766e;
  --teal-d: #0b5a54;
  --teal-50: #effaf8;
  --teal-100: #d5f0eb;
  --ink: #1b2523;
  --ink-2: #44514e;
  --ink-3: #66736f;
  --line: #e3e8e6;
  --bg: #ffffff;
  --bg-2: #f6f8f7;
  --red: #b42318;
  --red-50: #fef3f2;
  --amber: #9a5b00;
  --amber-50: #fff8eb;
  --green: #067647;
  --green-50: #ecfdf3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 8px 24px rgba(16, 24, 22, .06);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; letter-spacing: .02em; font-feature-settings: "palt" 0; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.45; letter-spacing: .03em; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #5fb8ae; outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.3; background: var(--teal); color: #fff; transition: background .15s; }
.btn:hover { background: var(--teal-d); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--teal); border-color: #b8ddd7; }
.btn.ghost:hover { background: var(--teal-50); color: var(--teal-d); }
.btn.small { min-height: 40px; padding: .45em 1.05em; font-size: .9rem; }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c6c2; }
.btn.danger:hover { background: var(--red-50); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .04em; white-space: nowrap; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-links { display: none; gap: 4px; margin-left: 12px; }
.top-links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: 10px 12px; border-radius: 8px; }
.top-links a:hover { background: var(--bg-2); color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-end .login { color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: 10px 8px; white-space: nowrap; }
.top .btn { white-space: nowrap; }
@media (min-width: 860px) { .top-links { display: flex; } }
@media (max-width: 420px) { .top-end .btn { padding-inline: 1em; font-size: .9rem; } .brand span { font-size: .95rem; } .top .wrap { gap: 8px; } .top-end { gap: 2px; } .top-end .login { padding-inline: 6px; font-size: .86rem; } .app-top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--teal-50) 0, #fff 72%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 40px; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--teal-d); background: #fff; border: 1px solid #b8ddd7; border-radius: 999px; padding: .25em .9em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.55rem); letter-spacing: .04em; }
.hero .sub { margin-top: 18px; color: var(--ink-2); font-size: 1.02rem; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.cta-note { color: var(--ink-3); font-size: .88rem; }
@media (min-width: 1000px) { .hero { padding: 72px 0 80px; } .hero .wrap { grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; } }

/* the product screen */
.screen { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: .88rem; }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dcda; display: block; }
.screen-bar .addr { margin-left: 8px; font-size: .78rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.screen-body { padding: 18px; }
.screen-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.screen-head b { font-size: 1rem; }
.sample { font-size: .75rem; font-weight: 700; color: var(--amber); background: var(--amber-50); border: 1px solid #f6d9a8; border-radius: 6px; padding: 1px 8px; }
.stats-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.stats-mini div { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; }
.stats-mini small { display: block; color: var(--ink-3); font-size: .75rem; line-height: 1.4; }
.stats-mini strong { font-size: 1.15rem; }
.rows { display: grid; }
.row { border-top: 1px solid var(--line); padding: 12px 0; }
.row:last-child { padding-bottom: 0; }
.row .page { color: var(--ink-3); font-size: .78rem; display: flex; justify-content: space-between; gap: 8px; }
.row .phrase { font-weight: 700; margin: 4px 0 2px; }
.row dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .8rem; }
.row dt { color: var(--ink-3); white-space: nowrap; }
.row dd { margin: 0; }
.row .better { color: var(--teal-d); }
@media (max-width: 480px) { .stats-mini { grid-template-columns: repeat(2, 1fr); } }

/* tags and status pills */
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--teal-50); color: var(--teal-d); border: 1px solid var(--teal-100); margin-right: 6px; white-space: nowrap; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.pill.new { background: var(--red-50); color: var(--red); }
.pill.open { background: var(--amber-50); color: var(--amber); }
.pill.fixed { background: var(--green-50); color: var(--green); }
.pill.dropped { background: var(--bg-2); color: var(--ink-3); }

/* sections */
section { padding: 56px 0; }
.page-title { font-size: 1.3rem; margin-bottom: 4px; }
section.alt { background: var(--bg-2); }
.sec-head { max-width: 40em; margin-bottom: 36px; }
.sec-head .kicker { color: var(--teal); font-weight: 700; font-size: .85rem; letter-spacing: .12em; }
.sec-head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-top: 6px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); }
@media (min-width: 900px) { section { padding: 96px 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 72px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.why { margin-top: 48px; display: grid; gap: 16px; }
.why .fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.why .n { font-size: 2rem; font-weight: 700; color: var(--teal-d); line-height: 1.2; letter-spacing: .02em; }
.why .fact p { color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.why .fact a { font-size: .8rem; }
.why-lead { margin-top: 48px; font-weight: 700; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); } }

.features { display: grid; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 36px; height: 36px; color: var(--teal); }
.feature h3 { font-size: 1.08rem; margin-top: 12px; }
.feature p { color: var(--ink-2); margin-top: 8px; font-size: .95rem; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 759px) {
  .feature { padding: 18px 18px 18px 64px; position: relative; }
  .feature svg { position: absolute; left: 18px; top: 20px; width: 30px; height: 30px; }
  .feature h3 { margin-top: 0; }
  .steps li { padding: 18px 18px 18px 64px; }
  .steps li::before { left: 16px; top: 18px; }
  .why .fact { padding: 16px 18px; }
  .why .n { font-size: 1.6rem; }
  .sec-head { margin-bottom: 24px; }
  .why, .parts, .checker, .who { margin-top: 36px; }
}

.parts { margin-top: 56px; display: grid; gap: 16px; }
.part { padding: 4px 0 0; border-top: 2px solid var(--teal); }
.part h3 { font-size: 1.02rem; margin-top: 12px; }
.part p { color: var(--ink-2); font-size: .93rem; margin-top: 6px; }
.part blockquote { margin: 10px 0 0; padding: 10px 14px; background: #fff; border-radius: 8px; font-size: .86rem; color: var(--ink-2); }
.part blockquote cite { display: block; font-style: normal; color: var(--ink-3); font-size: .78rem; margin-top: 4px; }
@media (min-width: 900px) { .parts { grid-template-columns: repeat(3, 1fr); } }

/* check a text */
.checker { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.checker h3 { font-size: 1.12rem; }
.checker p.lead { color: var(--ink-2); font-size: .93rem; margin-top: 6px; }
textarea, input[type=text], input[type=email], input[type=password], input[type=url] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #cdd5d2; border-radius: 10px; padding: 12px 14px; background: #fff; }
textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
textarea:focus, input:focus { border-color: var(--teal); outline: 3px solid #cdeee8; outline-offset: 0; }
.checker form { margin-top: 14px; display: grid; gap: 12px; }
.checker .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result { margin-top: 16px; display: grid; gap: 10px; }
.result .empty { color: var(--ink-3); font-size: .9rem; }

.who { margin-top: 56px; display: grid; gap: 16px; }
.who > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.who h3 { font-size: 1rem; }
.who ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: .94rem; }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; } }

/* price */
.plan { max-width: 520px; margin-inline: auto; background: #fff; border: 2px solid var(--teal); border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow); }
.plan .name { font-weight: 700; color: var(--teal-d); }
.plan .amount { font-size: 2.6rem; font-weight: 700; margin-top: 8px; letter-spacing: .02em; }
.plan .amount small { font-size: 1rem; color: var(--ink-2); font-weight: 500; }
.plan ul { text-align: left; margin: 20px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 28px; position: relative; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan .fine { margin-top: 12px; font-size: .85rem; color: var(--ink-3); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: .95rem; }
.faq details > div p + p, .faq details > div ul { margin-top: 8px; }
.faq details > div ul { padding-left: 1.2em; }

/* band */
.band { background: var(--teal); color: #fff; text-align: center; }
.band h2 { font-size: clamp(1.35rem, 3.4vw, 1.85rem); }
.band p { margin-top: 10px; opacity: .92; }
.band .btn { margin-top: 24px; background: #fff; color: var(--teal-d); }
.band .btn:hover { background: var(--teal-50); }

/* footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--ink-3); }
.foot .wrap { display: grid; gap: 16px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot .links a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot .syng-legal-links a { color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 60px; }
.alt-link a, .banner a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.foot .note { max-width: 46em; }

/* forms and cards for the account pages */
.auth { min-height: calc(100vh - 64px); background: var(--bg-2); padding: 48px 0 72px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth .card { max-width: 460px; margin-inline: auto; }
.card h1 { font-size: 1.45rem; }
.card .lead { color: var(--ink-2); margin-top: 8px; font-size: .95rem; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { color: var(--ink-3); font-size: .82rem; }
.form-actions { margin-top: 22px; display: grid; gap: 12px; }
.form-actions .btn { width: 100%; }
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.msg:empty { display: none; }
.msg.err { background: var(--red-50); color: var(--red); border: 1px solid #f6cfcb; }
.msg.ok { background: var(--green-50); color: var(--green); border: 1px solid #b7e4c7; }
.msg.info { background: var(--teal-50); color: var(--teal-d); border: 1px solid var(--teal-100); }
.alt-link { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* the app */
.app-main { background: var(--bg-2); min-height: calc(100vh - 64px); padding: 28px 0 64px; }
.app-grid { display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel h2 { font-size: 1.12rem; }
.panel .lead { color: var(--ink-2); font-size: .93rem; margin-top: 6px; }
.banner { border-radius: 12px; padding: 12px 16px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.banner.info { background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-d); }
.banner.warn { background: var(--amber-50); border: 1px solid #f6d9a8; color: var(--amber); }
.site-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.site-tabs button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 44px; color: var(--ink-2); }
.site-tabs button[aria-pressed=true] { border-color: var(--teal); color: var(--teal-d); background: var(--teal-50); font-weight: 700; }
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .4s; width: 0; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.counters div { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; }
.counters small { display: block; color: var(--ink-3); font-size: .8rem; }
.counters strong { font-size: 1.5rem; }
@media (min-width: 760px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { font: inherit; font-size: .88rem; border: 0; background: none; padding: 8px 14px; cursor: pointer; min-height: 44px; color: var(--ink-2); }
.seg button[aria-pressed=true] { background: var(--teal); color: #fff; }
.pagegroup { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; overflow: hidden; }
.pagegroup > header { background: var(--bg-2); padding: 10px 14px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.pagegroup > header a { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pagegroup > header a:hover { text-decoration: underline; }
.pagegroup > header small { color: var(--ink-3); overflow-wrap: anywhere; }
.finding { padding: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.finding:first-of-type { border-top: 0; }
.finding .phrase { font-weight: 700; margin: 6px 0; overflow-wrap: anywhere; }
.finding .ctx { color: var(--ink-3); font-size: .85rem; background: var(--bg-2); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.finding .ctx mark { background: #fde68a; color: inherit; padding: 0 1px; }
.finding dl { margin: 8px 0 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 10px; }
.finding dt { color: var(--ink-3); font-size: .84rem; }
.finding dd { margin: 0; overflow-wrap: anywhere; }
.finding .better { color: var(--teal-d); }
.finding .ai { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.finding .more { margin-top: 8px; font-size: .84rem; }
.finding .quote { margin-top: 8px; padding: 10px 12px; background: var(--teal-50); border-radius: 8px; font-size: .84rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
table.pages { border-collapse: collapse; width: 100%; font-size: .85rem; min-width: 640px; }
table.pages th, table.pages td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.pages th { background: var(--bg-2); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
table.pages td.c { text-align: center; white-space: nowrap; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--red); font-weight: 700; }
.muted { color: var(--ink-3); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-form input { flex: 1 1 260px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--teal-100); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv { display: grid; grid-template-columns: 8em 1fr; gap: 8px 14px; margin-top: 12px; font-size: .95rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
