/* EXA KIDS α版 共通スタイル
   ベースは白、要素は黒。アクセントは #ce385f (紅) と #f7cc45 (黄)。
   見出しはロゴに合わせた幾何学的なゴシック、本文はUDゴシック。 */

:root{
  --bg:#ffffff;
  --paper:#f7f7f5;
  --ink:#111111;
  --ink-2:#5c5c5c;
  --line:#111111;
  --line-soft:#dcdcd8;
  --red:#ce385f;
  --yellow:#f7cc45;
  --display:"Zen Kaku Gothic New","Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  --body:"BIZ UDPGothic","Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  --max:1040px;
  --measure:36em;
  color-scheme:light;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--body); font-size:16px; line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.4;margin:0;text-wrap:balance;letter-spacing:.01em}
h2{font-size:1.7rem}
h3{font-size:1.1rem}
p{margin:0}
a{color:var(--red);text-decoration-thickness:1px;text-underline-offset:3px}
a:focus-visible,button:focus-visible{outline:2px solid var(--red);outline-offset:3px}
img{max-width:100%;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.measure{max-width:var(--measure)}
.stack>*+*{margin-top:1em}
.muted{color:var(--ink-2)}
.small{font-size:.9rem}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:.8rem;letter-spacing:.12em;color:var(--ink);margin-bottom:12px;font-weight:700}
.eyebrow::before{content:"";width:10px;height:10px;background:var(--yellow);border-radius:50%;flex:none}
.todo{display:inline-block;border:1px dashed var(--red);color:var(--red);padding:0 .4em;border-radius:3px;font-size:.85em;line-height:1.6}

/* ヘッダー */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;padding-block:14px}
.brand{margin-right:auto;display:inline-flex;align-items:center;flex:none}
.brand img{height:26px;width:auto}
.nav{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.9rem}
.nav a{color:var(--ink);text-decoration:none;font-weight:700;white-space:nowrap}
.nav a:hover{color:var(--red)}

/* セクション */
section[id]{scroll-margin-top:80px}
.section{padding-block:72px;border-bottom:1px solid var(--line-soft)}
.section:last-of-type{border-bottom:0}
.section-head{display:grid;gap:12px;margin-bottom:36px}
.section-head .lead{max-width:var(--measure)}
.hero{position:relative;overflow:hidden;padding-block:88px 72px;border-bottom:1px solid var(--line-soft);isolation:isolate}
.hero .wrap{position:relative;z-index:2}
.hero-rays{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.7) 40%,rgba(255,255,255,.1) 70%,rgba(255,255,255,0) 100%)}
@media (max-width:700px){ .hero-veil{background:linear-gradient(180deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.72) 70%,rgba(255,255,255,.3) 100%)} }
.hero h1{font-size:clamp(2rem,5.2vw,3.4rem);line-height:1.3;max-width:16em}
.hero h1 mark{background:linear-gradient(transparent 62%,var(--yellow) 62%);color:inherit;padding:0 .05em}
.hero .lead{margin-top:28px;max-width:var(--measure);font-size:1.05rem}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.btn{display:inline-block;padding:11px 20px;border:1.5px solid var(--ink);border-radius:999px;color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:700;background:var(--bg)}
.btn:hover{background:var(--ink);color:var(--bg)}
.btn.primary{background:var(--ink);color:var(--bg)}
.btn.primary:hover{background:var(--red);border-color:var(--red)}
.btn.red{background:var(--red);border-color:var(--red);color:#fff}
.btn.red:hover{background:var(--ink);border-color:var(--ink)}

/* アーカイブ誘導バナー (ファーストビュー内) */
.archive-banner{margin-top:44px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;background:var(--yellow);border:1.5px solid var(--ink);border-radius:6px;padding:14px 18px;max-width:46em}
.archive-banner p{font-size:.95rem;font-weight:700;margin-right:auto}
.archive-banner p span{display:block;font-weight:400;font-size:.85rem}
.archive-banner .btn{background:var(--bg)}

/* グリッド */
.grid{display:grid;gap:24px}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.grid>*{min-width:0}
.card{background:var(--bg);border:1.5px solid var(--ink);border-radius:6px;padding:24px;display:flex;flex-direction:column;gap:12px}
.card h3{font-size:1.15rem}
.card .foot{margin-top:auto;padding-top:8px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.card.soft{border-color:var(--line-soft);background:var(--paper)}

/* 活動内容：認知添加物図鑑を2倍幅で */
.projects{grid-template-columns:2fr 1fr 1fr}
.projects .featured{background:var(--paper);padding:32px}
.projects .featured h3{font-size:1.6rem}
.projects .featured p.small{font-size:1rem}
@media (max-width:900px){ .projects{grid-template-columns:1fr 1fr} .projects .featured{grid-column:1/-1} }
@media (max-width:560px){ .projects{grid-template-columns:1fr} }

/* 変わった／変わらない */
.diff{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin-top:56px}
.diff > div{border-top:4px solid var(--ink);padding-top:18px}
.diff > div:first-child{border-top-color:var(--red)}
.diff > div:last-child{border-top-color:var(--yellow)}
.diff h3{font-size:1.2rem;margin-bottom:12px}
.diff ul{margin:0;padding-left:1.2em;display:grid;gap:8px}

/* 年表 */
.timeline{list-style:none;margin:0;padding:0;display:grid;gap:14px;max-width:44em}
.timeline li{display:grid;grid-template-columns:7.5em 1fr;gap:16px;align-items:baseline}
.timeline time{font-variant-numeric:tabular-nums;color:var(--ink-2);font-size:.95rem;font-weight:700}
@media (max-width:520px){ .timeline li{grid-template-columns:1fr;gap:2px} }

/* ピル */
.pill{display:inline-block;font-size:.75rem;padding:2px 10px;border:1px solid var(--ink);border-radius:999px;color:var(--ink);white-space:nowrap;vertical-align:middle;font-weight:700}
.pill.on{background:var(--red);color:#fff;border-color:var(--red)}
.pill.soft{border-color:var(--line-soft);color:var(--ink-2);font-weight:400}
.tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

/* 理念・ミッション・ステートメント */
.creed{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin-bottom:48px}
.creed .k{font-size:.8rem;letter-spacing:.12em;font-weight:700;color:var(--red);margin-bottom:8px}
.creed p.v{font-family:var(--display);font-weight:700;font-size:1.45rem;line-height:1.5;text-wrap:balance}
.statement{max-width:40em;border-left:4px solid var(--yellow);padding-left:22px}
.statement .body{position:relative;overflow:hidden;max-height:calc(1.95em * 3);line-height:1.95;transition:max-height .35s ease}
.statement .body p{margin:0}
.statement .body p+p{margin-top:1.2em}
.statement .body::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.95em;background:linear-gradient(rgba(255,255,255,0),#fff)}
.statement.open .body{max-height:200em}
.statement.open .body::after{opacity:0}
.statement button{margin-top:14px;font:inherit;font-weight:700;font-size:.9rem;background:none;border:1.5px solid var(--ink);border-radius:999px;padding:7px 16px;cursor:pointer;color:var(--ink)}
.statement button:hover{background:var(--ink);color:#fff}
@media (prefers-reduced-motion:reduce){ .statement .body{transition:none} }

/* 表 */
.tbl{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.95rem}
th,td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line-soft)}
th{font-weight:700;color:var(--ink-2);font-size:.8rem;letter-spacing:.06em;white-space:nowrap}
.kv th{width:9em}

/* 引用 */
.pull{font-family:var(--display);font-weight:700;font-size:1.3rem;line-height:1.6;border-left:4px solid var(--yellow);padding-left:20px;max-width:30em}

/* 成分表示ラベル：食品の一括表示を模す */
.label{border:2px solid var(--ink);background:var(--bg);padding:14px 16px;max-width:36em;font-size:.88rem}
.label .cap{font-weight:700;border-bottom:2px solid var(--ink);padding-bottom:6px;margin-bottom:8px;display:flex;justify-content:space-between;gap:12px}
.label .cap span{font-weight:400;color:var(--ink-2);font-size:.8rem}
.label table{font-size:.88rem}
.label th{width:6.5em;color:var(--ink);letter-spacing:0;border-right:1px solid var(--line-soft);padding:6px 10px 6px 0;white-space:normal}
.label td{padding:6px 10px}
.label tr:last-child th,.label tr:last-child td{border-bottom:0}

/* フッター */
.site-footer{padding-block:56px 40px;background:var(--paper);border-top:1px solid var(--line)}
.site-footer .wrap{display:grid;gap:36px;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
.site-footer .links{display:grid;gap:6px;font-size:.92rem}
.site-footer .links a{color:var(--ink)}
.site-footer .copy{grid-column:1/-1;font-size:.8rem;color:var(--ink-2);padding-top:16px;border-top:1px solid var(--line-soft);display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.site-footer .copy img{height:18px;width:auto}

/* 詳細ページ */
.detail-head{padding-block:72px 48px}
.detail-head h1{font-size:clamp(1.9rem,4.4vw,3rem)}
.detail-head .sub{font-family:var(--display);font-weight:700;font-size:1.05rem;color:var(--ink-2);margin-top:8px}
.two{display:grid;gap:48px;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start}
@media (max-width:820px){ .two{grid-template-columns:1fr} }
.aside{display:grid;gap:24px}
.ingredients tbody th{color:var(--ink);font-size:.95rem;letter-spacing:0;font-family:var(--display);white-space:nowrap}
.ingredients .group td{padding-top:20px;font-size:.78rem;letter-spacing:.1em;color:var(--red);font-weight:700;border-bottom:0}

/* スマホ：ヘッダーは固定せず、ナビは1行で横スクロール */
@media (max-width:700px){
  .site-header{position:static}
  .site-header .wrap{flex-wrap:nowrap;gap:16px;overflow-x:auto;scrollbar-width:none}
  .site-header .wrap::-webkit-scrollbar{display:none}
  .nav{flex-wrap:nowrap;font-size:.85rem}
  .brand img{height:22px}
  .hero{padding-block:56px 48px}
}
