/* potatoGuts — white, high-contrast, Japanese-first type scale. Static CSS only. */
:root{
  --bg:#ffffff; --ink:#000000; --text:#141414; --sub:#5e5e5e; --line:#e2e2e2; --surface:#f3f3f3;
  --radius:16px; --radius-sm:12px;
  --font:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic","Meiryo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  /* type scale (mobile → ≥768px) */
  --fs-body:16px; --fs-small:14px; --fs-xs:12px; --fs-lead:17px;
  --fs-h3:18px; --fs-h2:22px; --fs-h1:28px; --fs-display:36px;
  --lh-body:1.8; --lh-head:1.35; --ls-body:.03em; --ls-head:.01em;
  --wrap:1120px; --measure:42em;
}
@media (min-width:768px){
  :root{--fs-lead:18px;--fs-h3:20px;--fs-h2:26px;--fs-h1:40px;--fs-display:56px}
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);
  font-family:var(--font);font-size:var(--fs-body);line-height:var(--lh-body);letter-spacing:var(--ls-body);
  font-feature-settings:"palt" 0;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere;line-break:strict}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:4px}
h1,h2,h3{color:var(--ink);line-height:var(--lh-head);letter-spacing:var(--ls-head);font-weight:800;margin:0}
h2{font-weight:700} h3{font-weight:700}
p{margin:0 0 1em}
strong{font-weight:700}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
@media (min-width:768px){.wrap{padding:0 40px}}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:12px;top:12px;z-index:10;background:var(--ink);color:#fff;padding:8px 14px;border-radius:999px}

/* header */
.site-header{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:0;text-decoration:none;color:var(--ink)}
.brand img{width:32px;height:32px}
.site-header nav{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.site-header nav a{font-size:var(--fs-small);font-weight:700;text-decoration:none;padding:8px 12px;border-radius:999px;line-height:1.2}
.site-header nav a:hover{background:var(--surface)}
.site-header nav a[aria-current="page"]{background:var(--ink);color:#fff}
@media (max-width:560px){
  .site-header .wrap{flex-direction:column;align-items:flex-start;gap:6px;padding-top:12px;padding-bottom:10px}
  .site-header nav{flex-wrap:nowrap;justify-content:flex-start;margin-left:-10px;gap:2px}
  .site-header nav a{font-size:13px;padding:7px 10px;white-space:nowrap}
}
main{flex:1 0 auto;width:100%}

/* buttons */
.button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 24px;border-radius:999px;background:var(--ink);color:#fff;
  font-weight:700;font-size:var(--fs-body);text-decoration:none;line-height:1.2}
.button:hover{background:#333}
.button.ghost{background:var(--surface);color:var(--ink)}
.button.ghost:hover{background:#e6e6e6}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}

/* hero */
.hero{padding:48px 0 40px}
@media (min-width:768px){.hero{padding:96px 0 72px}}
.eyebrow{font-size:var(--fs-small);font-weight:700;color:var(--sub);margin:0 0 12px;letter-spacing:.06em}
.display{font-size:var(--fs-display);line-height:1.2;font-weight:800;letter-spacing:0}
.lead{font-size:var(--fs-lead);line-height:1.8;color:var(--text);max-width:36em;margin:20px 0 0}

/* sections */
.section{padding:40px 0;border-top:1px solid var(--line)}
@media (min-width:768px){.section{padding:72px 0}}
.section > h2{font-size:var(--fs-h2);margin-bottom:24px}

/* app feature card */
.app-card{display:grid;gap:24px;background:var(--surface);border-radius:24px;padding:24px;align-items:center}
@media (min-width:860px){.app-card{grid-template-columns:1.1fr .9fr;padding:48px;gap:48px}}
.app-id{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.app-id img{width:72px;height:72px;border-radius:18px}
.app-id h3{font-size:var(--fs-h2);font-weight:800}
.app-id p{margin:2px 0 0;font-size:var(--fs-small);color:var(--sub)}
.app-card .shots{display:flex;gap:12px;justify-content:center}
.app-card .shots img{width:46%;max-width:220px;border-radius:var(--radius);border:1px solid var(--line);background:#fff}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.tags li{font-size:var(--fs-small);font-weight:700;background:#fff;border-radius:999px;padding:6px 14px;line-height:1.4}

/* link list */
.links-grid{display:grid;gap:12px;list-style:none;margin:0;padding:0}
@media (min-width:768px){.links-grid{grid-template-columns:repeat(2,1fr)}}
.links-grid a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--radius);
  text-decoration:none;font-weight:700;font-size:var(--fs-h3);line-height:1.4}
.links-grid a small{display:block;font-weight:400;font-size:var(--fs-small);color:var(--sub);margin-top:4px}
.links-grid a:hover{border-color:var(--ink)}
.links-grid .arrow{font-size:20px}

/* app page */
.app-hero{display:grid;gap:32px;padding:40px 0}
@media (min-width:860px){.app-hero{grid-template-columns:1fr 1fr;align-items:center;padding:80px 0 64px}}
.app-hero .app-id img{width:88px;height:88px;border-radius:22px}
.app-hero h1{font-size:var(--fs-h1)}
.app-hero .hero-shot{display:flex;justify-content:center;background:var(--surface);border-radius:24px;padding:32px 24px}
.app-hero .hero-shot img{width:70%;max-width:280px;border-radius:var(--radius);border:1px solid var(--line)}
.feature-list{display:grid;gap:12px;list-style:none;padding:0;margin:0}
@media (min-width:768px){.feature-list{grid-template-columns:repeat(2,1fr);gap:16px}}
.feature-list li{background:var(--surface);border-radius:var(--radius);padding:20px 24px}
.feature-list b{display:block;font-size:var(--fs-h3);color:var(--ink);line-height:1.4;margin-bottom:4px}
.gallery{display:flex;gap:16px;overflow-x:auto;padding:4px 0 16px;scroll-snap-type:x mandatory;margin:0;list-style:none}
.gallery li{flex:0 0 auto;width:62%;max-width:240px;scroll-snap-align:start}
@media (min-width:860px){.gallery{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible}.gallery li{width:auto;max-width:none}}
.gallery img{border-radius:var(--radius);border:1px solid var(--line)}
.gallery figcaption{font-size:var(--fs-small);color:var(--sub);margin-top:8px;text-align:center}
.note{font-size:var(--fs-small);color:var(--sub)}
.plain-list{margin:0;padding-left:1.4em}
.plain-list li{margin:.3em 0}

/* documents (legal / about) — plain document style, no markers */
.doc-layout{display:grid;gap:24px;padding:40px 0 64px}
.doc-head{border-bottom:1px solid var(--line);padding-bottom:24px}
.doc-head h1{font-size:var(--fs-h1)}
.doc-head .meta{color:var(--sub);font-size:var(--fs-small);margin:12px 0 0}
@media (min-width:980px){
  .doc-layout{grid-template-columns:240px minmax(0,1fr);column-gap:64px;padding:72px 0 96px}
  .doc-head{grid-column:1/-1}
  .doc-layout.single .doc{grid-column:1/-1}
  .toc{position:sticky;top:96px;align-self:start;max-height:calc(100vh - 120px);overflow:auto}
}
.toc details{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px}
.toc-desktop{display:none}
.toc-title{font-weight:700;font-size:var(--fs-small);margin:0 0 4px}
@media (min-width:980px){.toc-mobile{display:none}.toc-desktop{display:block}}
.toc summary{font-weight:700;cursor:pointer}
.toc ol{list-style:none;margin:8px 0 0;padding:0;font-size:var(--fs-small);line-height:1.6}
.toc li a{display:block;padding:6px 0;text-decoration:none;color:var(--sub)}
.toc li a:hover{color:var(--ink);text-decoration:underline}
.doc{max-width:var(--measure);min-width:0}
.doc h2{font-size:var(--fs-h3);margin:2.2em 0 .7em;scroll-margin-top:96px}
.doc h2:first-child{margin-top:0}
.doc h3{font-size:var(--fs-body);margin:1.6em 0 .5em}
.doc ol,.doc ul{padding-left:1.5em;margin:0 0 1em}
.doc li{margin:.35em 0}
.doc ol.sub{list-style:lower-roman;margin:.4em 0}
.doc .meta{color:var(--sub);font-size:var(--fs-small)}
.doc .meta.end{margin-top:3em}
.table{overflow-x:auto;margin:0 0 1.2em}
.doc table{border-collapse:collapse;width:100%;font-size:var(--fs-small);line-height:1.7}
.doc th,.doc td{border-bottom:1px solid var(--line);padding:12px 12px 12px 0;text-align:left;vertical-align:top}
.doc th{font-weight:700;color:var(--ink);white-space:nowrap}
.doc table.kv th{width:8em}

/* footer */
.site-footer{border-top:1px solid var(--line);padding:32px 0 40px;font-size:var(--fs-small);color:var(--sub)}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px}
.site-footer p{margin:0}
.site-footer .links{display:flex;flex-wrap:wrap;gap:8px 20px}
.site-footer a{color:var(--sub);text-decoration:none}
.site-footer a:hover{color:var(--ink);text-decoration:underline}

@media print{
  .site-header,.site-footer,.toc,.skip{display:none}
  body{font-size:11pt}
  .doc{max-width:none}
}
.app-hero .tags li{background:var(--surface)}
.app-hero .app-id .eyebrow{margin:0}
/* breadcrumbs / page head */
.crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:var(--fs-small);color:var(--sub);padding:20px 0 0}
.crumbs a{color:var(--sub);text-decoration:none}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink)}
.page-head{padding-top:32px}
.page-head .lead{margin:12px 0 0}
@media (min-width:768px){.page-head{padding-top:56px}}
.section.first{border-top:0}
/* spec table */
.spec{border-collapse:collapse;width:100%;max-width:42em}
.spec th,.spec td{border-bottom:1px solid var(--line);padding:14px 16px 14px 0;text-align:left;vertical-align:top}
.spec th{font-weight:700;color:var(--ink);white-space:nowrap;width:8em}
/* FAQ */
.faq-list{max-width:var(--measure)}
.faq{border-bottom:1px solid var(--line)}
.faq:first-child{border-top:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:18px 0;font-weight:700;color:var(--ink);font-size:var(--fs-h3);line-height:var(--lh-head)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;font-size:24px;line-height:1}
.faq[open] summary::after{content:"−"}
.faq p{margin:0 0 20px}
/* contact mail */
.mail{font-size:var(--fs-h2);font-weight:700;margin:16px 0 24px}
.mail a{color:var(--ink);word-break:break-all}
