/* kokokumamori.shop: front page and /questions/ */
:root {
  --teal: #0F766E;
  --teal-d: #0b5953;
  --teal-l: #e3f3f1;
  --night: #0a1d1c;
  --night-2: #12302e;
  --ink: #16201f;
  --ink-2: #44514f;
  --ink-3: #5f6c6a;
  --line: #d6dfdd;
  --wash: #f2f6f5;
  --paper: #fff;
  --red: #a8261b;
  --red-l: #fbe9e7;
  --amber: #7a4f00;
  --amber-l: #fbf0d6;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
  font-variant-numeric: tabular-nums;
}
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid var(--teal); border-radius: var(--r); cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn .arr { font-weight: 400; }

/* nav */
.top { background: var(--night); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.brand { min-height: 44px; }
.top .brand span { font-size: 14px; }
.top .btn, .top .login { white-space: nowrap; }
.top .login { color: #d5e4e2; text-decoration: none; font-size: 14px; padding: 12px 8px; }
.more a, .q-nav a { display: inline-block; padding: 10px 0; }
.top .btn.sm { min-height: 44px; }
.foot .links a, .src { padding: 10px 0 !important; display: inline-block; }
@media (max-width: 379px) {
  .top .brand span { display: none; }
}
.q-nav { gap: 0 16px !important; }
.top .login:hover { color: #fff; }
.top .btn { border-color: #2a9d92; }

/* header: dark top that ends half way down the product screen */
.hero {
  background: linear-gradient(var(--night) 0, var(--night) 62%, var(--paper) 62%);
  color: #fff;
  padding: 22px 0 28px;
}
.hero .intro { display: grid; gap: 14px; margin-bottom: 22px; }
.hero h1 { font-size: 1.55rem; font-weight: 700; }
.hero .sub { color: #c4d6d3; font-size: .92rem; line-height: 1.75; max-width: 46em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cta .note { font-size: .84rem; color: #c4d6d3; }
.cta .note b { color: #fff; font-weight: 700; }

/* the product screen */
.screen {
  margin: 0; position: relative; max-height: 560px; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: 1px solid #2c4744; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(4, 20, 19, .35);
}
.screen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none;
}
.s-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--night-2); color: #cfe0dd; font-size: 12px; }
.s-bar .dots { display: flex; gap: 5px; }
.s-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3d5a57; }
.s-bar .where { font-family: var(--mono); letter-spacing: 0; }
.s-bar .smp { margin-left: auto; border: 1px solid #4f6f6b; padding: 0 7px; border-radius: 3px; font-size: 11px; }
.s-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.s-head h2 { font-size: .98rem; }
.s-head .site { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.s-head .when { font-size: .8rem; color: var(--ink-3); }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi div { padding: 8px 14px; border-right: 1px solid var(--line); }
.kpi div:last-child { border-right: 0; }
.kpi small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.kpi strong { font-size: 1.35rem; line-height: 1.3; font-weight: 700; }
.kpi .n-new strong { color: var(--red); }
.kpi .n-open strong { color: var(--amber); }
.kpi .n-fix strong { color: var(--teal); }
.t-head { display: none; }
.r { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: .86rem; line-height: 1.6; }
.r .pg { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.r .ph { font-weight: 700; }
.r .sec { color: var(--ink-2); font-size: .8rem; }
.r .fix { background: var(--teal-l); border-left: 3px solid var(--teal); padding: 5px 9px; border-radius: 2px; }
.r .fix::before { content: "言い換え案　"; font-size: .74rem; font-weight: 700; color: var(--teal-d); }
.r .sec::before { content: "根拠　"; font-size: .74rem; font-weight: 700; color: var(--ink-3); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 1px 7px; border-radius: 3px; white-space: nowrap; font-family: "Noto Sans JP", system-ui, sans-serif; }
.b-new { background: var(--red-l); color: var(--red); }
.b-open { background: var(--amber-l); color: var(--amber); }
.b-fix { background: var(--teal-l); color: var(--teal-d); }
.cat { display: inline-block; font-size: 11px; border: 1px solid var(--line); color: var(--ink-2); padding: 0 6px; border-radius: 3px; margin-right: 6px; font-weight: 400; vertical-align: 1px; }

/* sections */
main section { padding: 52px 0; }
.h2 { font-size: 1.32rem; font-weight: 700; }
.lead { color: var(--ink-2); margin-top: 8px; max-width: 40em; }
.sec-top { border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 24px; display: grid; gap: 4px; }
.sec-top .lbl { font-size: .78rem; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; }

/* how */
#how { padding-top: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.steps li { padding: 18px 18px 18px 64px; position: relative; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .no {
  position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; border-radius: 3px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: .9rem; }

/* what: the Monday email */
#what { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.what { display: grid; gap: 26px; }
.rules { margin-top: 18px; border-left: 3px solid var(--teal); padding: 4px 0 4px 14px; font-size: .88rem; color: var(--ink-2); }
.rules b { color: var(--ink); display: block; font-size: .9rem; }
.mail { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: .86rem; line-height: 1.65; }
.mail .m-meta { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; font-size: .8rem; color: var(--ink-3); }
.mail .m-meta strong { color: var(--ink); font-size: .92rem; }
.mail .m-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.mail table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.mail th, .mail td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.mail th { background: var(--wash); font-weight: 700; width: 46%; }
.mail td { text-align: right; font-weight: 700; }
.mail .m-item { border-left: 3px solid var(--red); padding: 2px 0 2px 12px; display: grid; gap: 3px; }
.mail .m-item .pg { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.mail .m-news { font-size: .8rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.mail .m-news b { color: var(--ink); }
.mail .smp { float: right; font-size: 11px; border: 1px solid var(--line); padding: 0 6px; border-radius: 3px; color: var(--ink-3); }

/* price + faq */
.price { display: grid; gap: 28px; }
.plan { border: 2px solid var(--teal); border-radius: 6px; padding: 22px 20px; align-self: start; }
.plan .name { font-size: .86rem; font-weight: 700; color: var(--teal-d); }
.plan .amount { font-size: 2.3rem; font-weight: 700; line-height: 1.25; margin: 4px 0 2px; }
.plan .amount small { font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 5px; font-size: .9rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan .fine { margin-top: 10px; font-size: .82rem; color: var(--ink-2); text-align: center; }
.qa { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 700; font-size: .95rem; }
.qa dt::before { content: "Q. "; color: var(--teal); }
.qa dd { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.more { margin-top: 14px; font-size: .9rem; }
.more a { font-weight: 700; }

/* band */
.band { background: var(--night); color: #fff; padding: 40px 0; }
.band .wrap { display: grid; gap: 16px; justify-items: start; }
.band h2 { font-size: 1.25rem; }
.band .note { color: #c4d6d3; font-size: .85rem; }

/* footer */
.foot { background: var(--night); color: #b9cdca; border-top: 1px solid #1f3b38; padding: 28px 0 32px; font-size: .84rem; }
.foot .wrap { display: grid; gap: 10px; }
.foot .brand { color: #fff; }
.foot a { color: #d5e4e2; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot .links a { padding: 6px 0; display: inline-block; }
.foot .syng-legal-links a { padding: 6px 0; display: inline-block; }

/* /questions/ */
.q-hero { background: var(--night); color: #fff; padding: 30px 0 34px; }
.q-hero h1 { font-size: 1.5rem; }
.q-hero p { color: #c4d6d3; margin-top: 8px; max-width: 44em; font-size: .92rem; }
.q-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: .86rem; }
.q-nav a { color: #9fe3d9; }
.q-main section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.q-main section:last-child { border-bottom: 0; }
.cols { display: grid; gap: 14px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--paper); }
.box h3 { font-size: 1rem; margin-bottom: 6px; }
.box p, .box li { font-size: .9rem; color: var(--ink-2); }
.box ul { margin: 6px 0 0; padding-left: 1.2em; }
.box blockquote { margin: 10px 0 0; padding: 8px 12px; background: var(--wash); border-left: 3px solid var(--teal); font-size: .84rem; color: var(--ink); }
.box cite { display: block; font-style: normal; font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.fact .n { font-size: 1.8rem; font-weight: 700; color: var(--teal-d); line-height: 1.3; }
.src { font-size: .8rem; margin-top: 8px; display: inline-block; }
.checker textarea { width: 100%; min-height: 130px; padding: 12px; border: 1px solid #b8c6c3; border-radius: var(--r); font: inherit; font-size: 16px; resize: vertical; }
.checker .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.checker .actions span { font-size: .84rem; color: var(--ink-3); }
[data-check-result] { margin-top: 16px; display: grid; gap: 10px; }
.finding { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; font-size: .88rem; }
.finding .tag { display: inline-block; font-size: 11px; border: 1px solid var(--line); padding: 0 6px; border-radius: 3px; color: var(--ink-2); }
.finding .phrase { font-weight: 700; }
.finding .ctx { color: var(--ink-2); font-size: .84rem; }
.finding mark { background: var(--amber-l); color: inherit; }
.finding dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.finding dt { font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.finding dd { margin: 0; }
.finding .better { color: var(--teal-d); }
.finding .ai { font-size: .78rem; color: var(--ink-3); }
.msg { padding: 10px 12px; border-radius: var(--r); font-size: .9rem; }
.msg.err { background: var(--red-l); color: var(--red); }
.msg.ok { background: var(--teal-l); color: var(--teal-d); }
.empty { font-size: .88rem; color: var(--ink-2); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.s-bar, .s-bar .smp, .kpi small, .badge, .cat, .t-head, .mail .smp, .finding .tag { font-size: 12px !important; }

/* computer */
@media (min-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 32px; }
  .hero { padding: 26px 0 32px; background: linear-gradient(var(--night) 0, var(--night) 58%, var(--paper) 58%); }
  .hero .intro { grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; margin-bottom: 24px; }
  .hero h1 { font-size: 2rem; }
  .hero .sub { font-size: .95rem; }
  .cta { flex-direction: column; align-items: flex-end; gap: 6px; }
  .cta .btn { min-height: 50px; padding: 0 28px; font-size: 16px; }
  .screen { max-height: 500px; }
  .t-head, .r { display: grid; grid-template-columns: 92px 190px 1.25fr 1fr 1.35fr; gap: 16px; align-items: start; }
  .t-head { padding: 7px 16px; font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--wash); border-bottom: 1px solid var(--line); }
  .r { padding: 14px 16px; }
  .r .st { order: 0; }
  .r .pg { display: block; }
  .r .pg .badge { display: none; }
  .r .sec::before, .r .fix::before { content: none; }
  .r .fix { background: none; border-left: 0; padding: 0; color: var(--teal-d); }
  .r .st { display: block; }
  main section { padding: 72px 0; }
  #how { padding-top: 48px; }
  .h2 { font-size: 1.6rem; }
  .sec-top { grid-template-columns: 200px 1fr; align-items: baseline; }
  .sec-top .lead { grid-column: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { border-bottom: 0; border-right: 1px solid var(--line); padding: 24px 24px 26px; }
  .steps li:last-child { border-right: 0; }
  .steps .no { position: static; margin-bottom: 14px; }
  .what { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  .price { grid-template-columns: 380px 1fr; gap: 56px; }
  .band .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: start; gap: 10px 40px; }
  .foot .note, .foot .copy { grid-column: 1; }
  .q-hero h1 { font-size: 1.9rem; }
  .cols.c3 { grid-template-columns: repeat(3, 1fr); }
  .cols.c2 { grid-template-columns: repeat(2, 1fr); }
}
.r .st { display: none; }
@media (min-width: 860px) { .r .st { display: block; } }
