/* Kokoro Research Group - public site. Plain static pages, fonts served from this site (no third-party requests). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2433;
  --muted: #5b6678;
  --line: #dfe3ea;
  --brand: #16233b;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;
  --topbar: #16233b;
  --topbar-text: #ffffff;
  --sun: #c8372d;            /* the red sun in the logo, deepened so white text on it is readable */
  --sun-soft: #fbeceb;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  --font-head: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --hero-bg: #f6f5f1;
  --hero-img: url("images/hero-ink.webp");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1520;
    --card: #172033;
    --text: #e8ecf4;
    --muted: #9aa6bb;
    --line: #2a3550;
    --brand: #e8ecf4;
    --accent: #7ab0ff;
    --accent-soft: #1b2a47;
    --topbar: #0a101b;
    --sun: #e0584d;
    --sun-soft: #3a1c1f;
    --hero-bg: #0f1520;
    --hero-img: url("images/hero-ink-dark.webp");
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
/* ---- top bar ---- */
header.site { background: var(--topbar); color: var(--topbar-text); }
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px; min-height: 54px;
}
header.site .name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--topbar-text); text-decoration: none; }
header.site .name img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 2px; }
header.site nav a { margin-left: 20px; text-decoration: none; font-size: 15px; color: #cfd8ea; padding: 6px 0; }
header.site nav a:hover { color: #fff; }
header.site nav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom: 2px solid #7ab0ff; }
.menu-btn { display: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--topbar-text); border: 1px solid #5a6a88; border-radius: 8px; padding: 6px 12px; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.navtoggle:focus-visible ~ header.site .menu-btn { outline: 2px solid #7ab0ff; outline-offset: 2px; }

/* ---- side menu + content ---- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 54px); }
aside.side {
  background: var(--hero-bg); border-right: 1px solid var(--line);   /* the same paper beige as the ink-wash picture on the home page */
  position: sticky; top: 0; height: calc(100vh - 54px); overflow-y: auto;
  padding: 10px 0 24px;
}
aside.side h2 {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin: 20px 20px 6px;
}
aside.side a {
  display: block; padding: 7px 20px 7px 34px; color: var(--text); text-decoration: none; font-size: 14.5px;
  border-left: 3px solid transparent;
}
aside.side a:hover { background: rgba(22, 35, 59, .07); }
@media (prefers-color-scheme: dark) { aside.side a:hover { background: rgba(232, 236, 244, .08); } }
aside.side a[aria-current="page"] { font-weight: 700; background: var(--sun-soft); border-left-color: var(--sun); }
aside.side .pill { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--sun); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
aside.side .side-foot { margin: 22px 20px 0; font-size: 12.5px; color: var(--muted); }
.content { min-width: 0; background: var(--bg); }
.page-head { background: var(--card); border-bottom: 1px solid var(--line); }
.page-head .head-inner { display: flex; align-items: center; gap: 16px; padding: 18px 28px; max-width: 1000px; }
.page-head .head-icon { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.page-head .head-icon img { width: 40px; height: auto; display: block; }
.page-head h1, .page-head .head-title { font-family: var(--font-head); font-size: 31px; font-weight: 700; margin: 0; line-height: 1.15; color: var(--brand); }
.page-head .lead { font-size: 15px; margin: 2px 0 0; }
.content .wrap { max-width: 1000px; margin: 0; padding: 0 28px; }

main { padding: 26px 0 56px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: 38px; line-height: 1.15; margin: 0 0 8px; color: var(--brand); }
h2 { font-size: 27px; line-height: 1.2; margin: 32px 0 6px; color: var(--brand); }
h3 { font-size: 23px; line-height: 1.25; margin: 20px 0 4px; font-weight: 700; }
p, li { color: var(--text); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}
.notice {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
}
.meta { color: var(--muted); font-size: 14px; }
ul { padding-left: 22px; }
footer.site {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}
footer.site a { color: var(--muted); }
@media (max-width: 520px) {
  h1 { font-size: 25px; }
  header.site nav a { margin-left: 12px; }
}

/* ---- home page sections ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.tile h3 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--brand); }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
ol.steps { list-style: none; padding: 0; margin: 14px 0; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px 12px 56px; margin: 10px 0;
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.steps li strong { color: var(--brand); }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 10px; margin-top: 6px;
}
@media (prefers-color-scheme: dark) { .btn { color: #0f1520; } ol.steps li::before { color: #0f1520; } }
.btn:hover { filter: brightness(1.08); }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 16px; margin: 10px 0;
}
details summary { cursor: pointer; padding: 13px 0; font-weight: 600; color: var(--brand); }
details summary::marker { color: var(--sun); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details p { margin: 0 0 12px; }
.section-note { color: var(--muted); font-size: 14.5px; margin: 0 0 4px; }

/* ---- home page: logo and its explanation ---- */
.hero {
  text-align: center; padding: 28px 16px 190px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--hero-bg) var(--hero-img) center bottom / 100% auto no-repeat;
}
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 210px; height: 210px; border-radius: 50%;
  background: #ffffff; border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(20, 30, 50, .10);
  margin-bottom: 18px;
}
.logo-badge img { width: 168px; height: auto; display: block; }
.hero h1 { font-size: 64px; line-height: 1; margin: 0; letter-spacing: .01em; }
.hero .kanji { font-size: 20px; letter-spacing: .04em; color: var(--muted); margin: 2px 0 14px; }
.hero .tagline { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 8px; }
.prose p { margin: 0 0 14px; }
.quote { font-family: var(--font-head); font-size: 20px; border-left: 3px solid var(--sun); padding: 2px 0 2px 14px; margin: 10px 0; font-style: italic; color: var(--text); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 9px 18px; }
@media (prefers-color-scheme: dark) { .btn.secondary { color: var(--accent); } }
@media (max-width: 520px) { .hero { padding-bottom: 150px; } .hero h1 { font-size: 50px; } .logo-badge { width: 180px; height: 180px; } .logo-badge img { width: 142px; } }

/* ---- comparison table (Why puzzles) ---- */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--accent-soft); color: var(--brand); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--brand); }
@media (max-width: 520px) { table { font-size: 14px; } th, td { padding: 8px 10px; } }

/* ---- dashboard-style link cards (home) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin: 14px 0 8px; }
a.dash {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; text-decoration: none; color: var(--text);
}
a.dash:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(20, 30, 50, .08); }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ico svg { width: 24px; height: 24px; }
a.dash h3 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--brand); }
a.dash p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
a.dash .go { font-size: 14px; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  header.site nav { display: none; }
  .menu-btn { display: inline-block; }
  .layout { display: block; }
  aside.side { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .navtoggle:checked ~ .layout aside.side { display: block; }
  .page-head .head-inner { padding: 14px 16px; }
  .content .wrap { padding: 0 16px; }
}

/* ---- Register button in the top bar ---- */
header.site .bar { justify-content: flex-start; }
header.site .name { margin-right: auto; }
.reg-btn {
  margin-left: 18px; padding: 7px 16px; border-radius: 8px; background: #1f6feb; color: #fff;
  font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
}
.reg-btn:hover { filter: brightness(1.1); }
@media (max-width: 900px) { .reg-btn { margin-left: 0; margin-right: 10px; } }
@media (max-width: 520px) {
  header.site .bar { padding: 0 12px; gap: 6px; }
  header.site .name { font-size: 15px; gap: 8px; }
  header.site .name img { width: 26px; height: 26px; }
  .reg-btn { padding: 6px 10px; font-size: 13.5px; margin-right: 4px; }
  .menu-btn { padding: 6px 10px; }
}

/* ---- phone screenshots (study and install pages) ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.shot { margin: 0; text-align: center; }
.phone { border: 5px solid #16233b; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(20, 30, 50, .18); }
.phone img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand); }
@media (prefers-color-scheme: dark) { .phone { border-color: #2a3550; } }
@media (max-width: 700px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .shot { flex: 0 0 150px; scroll-snap-align: start; }
}
.step-shot { margin-top: 12px; }
.step-shot .phone { width: 190px; }

/* ---- plain-language summary (privacy page) ---- */
.summary {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0;
}
.summary h2 { margin: 0 0 8px; font-size: 19px; }
.summary ul { margin: 0 0 10px; padding-left: 20px; }
.summary li { margin: 0 0 8px; }

/* ---- Register button in the sun red ---- */
.reg-btn, .btn.sun { background: var(--sun); color: #fff; }
.btn.sun:hover, .reg-btn:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.sun { color: #fff; } .reg-btn { color: #fff; } }

/* ---- icons on the game cards ---- */
.tile .ico { margin-bottom: 8px; }

/* ---- footer ---- */
footer.site { padding: 0; }
.content footer.site .foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding-top: 30px; padding-bottom: 6px; }
.foot-brand .foot-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--brand); display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 8px; }
.foot-brand .foot-name img { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 2px; }
.foot-brand p { margin: 0 0 6px; max-width: 34ch; line-height: 1.5; }
.foot h2 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); margin: 0 0 10px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }
.content footer.site .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 22px 28px 0; padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 13px; max-width: 944px; }
@media (max-width: 700px) { .content footer.site .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .content footer.site .foot-base { margin-left: 16px; margin-right: 16px; } }

/* ---- contact page ---- */
.channels { display: grid; gap: 14px; margin: 16px 0 8px; }
.channel { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.channel .ico { flex: none; }
.channel-body { min-width: 0; }
.channel h2 { margin: 0 0 2px; font-size: 25px; }
.channel .when { margin: 0 0 6px; color: var(--brand); }
.channel p { margin: 0 0 8px; }
.channel .addr { font-size: 17px; font-weight: 600; word-break: break-all; }
.channel details { margin: 6px 0 0; padding: 0 12px; }
.channel details summary { padding: 8px 0; font-size: 14px; }
.channel details ul { margin: 0 0 8px; padding-left: 20px; font-size: 14.5px; }
.copy-btn { display: none; margin-left: 8px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 600 12.5px var(--font-body); cursor: pointer; vertical-align: 2px; }
.can-copy .copy-btn { display: inline-block; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .channel { flex-direction: column; gap: 8px; } }
