@font-face {
  font-family: "Zen Maru Gothic";
  src: url("assets/h/fonts/zen-maru-gothic-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Layout: 深緑の一面に「問題の壁」を置き、選ばれた3枚だけが光って手前の「きょうのおすすめ」へつながる。以降は1特徴＝1帯。 */
:root {
  --forest: #163f39;
  --forest-deep: #0f302b;
  --paper: #faf9f1;
  --sage: #e8eee3;
  --ink: #243f38;
  --gold: #f9d86f;
  --gold-deep: #a1742c;
  --pick: #e57f14;
  --on-forest: #fdfcf5;
  --on-forest-quiet: #c9d8cd;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.7; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.wrap {
  width: min(100%, 1240px); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.keep { display: inline-block; }
.mark { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); }

.skip-link {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 12px;
  padding: 8px 12px;
  color: var(--forest);
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- hero ---------- */
.hero { background: var(--forest); color: var(--on-forest); overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.bar .brand { font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: .02em; }
.bar a { color: var(--on-forest); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.bar nav { display: flex; gap: 28px; align-items: center; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  grid-template-areas: "top pick" "bottom pick"; grid-template-rows: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-block: clamp(18px, 2.2vw, 30px) clamp(36px, 4vw, 56px);
}
.copy-top { grid-area: top; align-self: end; }
.copy-bottom { grid-area: bottom; align-self: start; }
.eyebrow { font-weight: 700; font-size: 1rem; color: var(--gold); letter-spacing: .06em; }
h1 {
  font-family: var(--display); font-weight: 900; color: var(--on-forest);
  font-size: clamp(2.5rem, 4.4vw, 4.1rem); line-height: 1.25; letter-spacing: -.01em;
  margin: 14px 0 22px;
}
h1 .mark { background: linear-gradient(transparent 68%, #f9d86f66 68%, #f9d86f66 94%, transparent 94%); color: var(--gold); }
.subcopy {
  display: grid; gap: 6px; color: var(--on-forest);
  font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 2.05vw, 1.75rem);
  line-height: 1.45; letter-spacing: .01em; font-feature-settings: "palt";
}
.subcopy b { color: var(--gold); font-weight: 900; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 17px 34px; border-radius: 999px; background: var(--gold); color: var(--forest-deep);
  font-weight: 800; font-size: 1.125rem; text-decoration: none; box-shadow: 0 6px 0 #00000030;
}
.cta:focus-visible, .bar a:focus-visible { outline: 3px solid var(--on-forest); outline-offset: 3px; }
.cta-note { margin-top: 14px; font-size: .875rem; color: var(--on-forest-quiet); }

/* the one visual: wall -> picked */
.pick { grid-area: pick; position: relative; aspect-ratio: 700 / 530; width: 100%; }
.pick svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; transform: translateY(-10.45%); }
.tile {
  position: absolute; width: 18.857%; aspect-ratio: 4 / 3; border-radius: 10px;
  background: #223f39 center / cover no-repeat;
  opacity: .45; filter: saturate(.5);
}
.tile.on {
  width: 21.143%; top: 12.45%; opacity: 1; filter: none; z-index: 2;
  outline: 5px solid var(--gold); box-shadow: 0 16px 28px #00000070;
}
.tile.on::after {
  content: "✓"; position: absolute; right: -12px; top: -14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--forest-deep);
  font-weight: 900; font-size: 1.2rem; line-height: 1; border: 3px solid var(--forest);
}
.tile-counting { left: 0; top: 0; background-image: url("assets/h/themes/counting.webp"); }
.tile-phonologicalAwareness { left: 20.286%; top: 0; background-image: url("assets/h/themes/phonologicalAwareness.webp"); }
.tile-visualMemory { left: 40.571%; top: 0; background-image: url("assets/h/themes/visualMemory.webp"); }
.tile-patternReasoning { left: 60.857%; top: 0; background-image: url("assets/h/themes/patternReasoning.webp"); }
.tile-storyComprehension { left: 81.143%; top: 0; background-image: url("assets/h/themes/storyComprehension.webp"); }
.tile-categoryRelationships { left: 0; top: 20.80%; background-image: url("assets/h/themes/categoryRelationships.webp"); }
.tile-sequenceMemory { left: 20.286%; top: 20.80%; background-image: url("assets/h/themes/sequenceMemory.webp"); }
.tile-positionMovementAuditory { left: 40.571%; top: 20.80%; background-image: url("assets/h/themes/positionMovementAuditory.webp"); }
.tile-classificationCounting { left: 60.857%; top: 20.80%; background-image: url("assets/h/themes/classificationCounting.webp"); }
.tile-dotDrawing { left: 81.143%; top: 20.80%; background-image: url("assets/h/themes/dotDrawing.webp"); }
.tile-storyOrder { left: 8.286%; background-image: url("assets/h/themes/storyOrder.webp"); }
.tile-relativePosition { left: 39.43%; background-image: url("assets/h/themes/relativePosition.webp"); }
.tile-mirrorShapes { left: 70.71%; background-image: url("assets/h/themes/mirrorShapes.webp"); }
.chip {
  position: absolute; z-index: 3; padding: 5px 16px; border-radius: 999px;
  font-weight: 800; font-size: clamp(.78rem, 1.15vw, 1rem); white-space: nowrap;
}
.chip-many { left: 0; top: 0; transform: translate(-8px, -55%); background: var(--forest-deep); color: var(--on-forest); border: 1.5px solid #ffffff55; }
.panel {
  position: absolute; z-index: 3; left: 0; width: 100%; top: 47.95%;
  border-radius: 18px; overflow: hidden; background: var(--paper);
  border: 5px solid var(--gold); box-shadow: 0 24px 48px #00000066;
}
.panel img { width: 100%; aspect-ratio: 1180 / 354; object-fit: cover; object-position: bottom; }
.say {
  position: absolute; z-index: 4; left: 0; width: 100%; top: 36.11%; height: 8.78%;
  display: grid; place-items: center; color: #fff; font-weight: 800; white-space: nowrap;
  font-size: clamp(.8rem, 1.45vw, 1.2rem); letter-spacing: .02em; text-shadow: 0 1px 2px #7a3c0090;
}

/* ---------- features ---------- */
.lead { text-align: center; padding-block: clamp(52px, 7vw, 96px) clamp(8px, 2vw, 24px); }
.lead h2 { font-family: var(--display); font-weight: 900; color: var(--forest); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.35; }
.lead h2 b { font-size: 1.7em; line-height: 1; color: var(--gold-deep); padding-inline: .08em; }
.point { padding-block: clamp(44px, 6vw, 88px); }
.point:nth-of-type(even) { background: var(--sage); }
.point .wrap { width: min(100%, 1100px); }
.head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(14px, 2vw, 26px); align-items: center; }
.num {
  grid-row: span 2; align-self: start;
  width: clamp(56px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--forest); color: var(--gold);
  font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1;
}
.point h3 { font-family: var(--display); font-weight: 900; color: var(--forest); font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1.35; }
.point .support { font-weight: 700; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.3rem); margin-top: 8px; }
.shot { margin-top: clamp(24px, 3.5vw, 44px); }
.shot.framed img { border-radius: clamp(12px, 1.8vw, 24px); box-shadow: 0 18px 40px #163f3930; }
.tags { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tags span { background: var(--paper); border: 2px solid var(--forest); color: var(--forest); font-weight: 800; border-radius: 999px; padding: 6px 20px; font-size: clamp(.9rem, 1.3vw, 1.0625rem); }

/* ---------- closing ---------- */
.close { background: var(--forest); color: var(--on-forest); text-align: center; padding-block: clamp(48px, 6vw, 84px); }
.close h2 { font-family: var(--display); font-weight: 900; color: var(--on-forest); font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.close p { color: var(--on-forest-quiet); font-weight: 700; margin-top: 8px; }

/* ---------- back half ---------- */
.wrap.narrow { width: min(100%, 1100px); }
.h2 { font-family: var(--display); font-weight: 900; color: var(--forest); font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.35; }
.learn { padding-block: clamp(48px, 6.5vw, 96px); }
.learn .support { font-weight: 800; color: var(--gold-deep); font-size: clamp(1.05rem, 1.7vw, 1.4rem); margin-top: 8px; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.fields li { background: var(--forest); color: var(--on-forest); font-weight: 800; border-radius: 999px; padding: 7px 20px; font-size: clamp(.95rem, 1.4vw, 1.125rem); }
.assure { background: var(--sage); padding-block: clamp(40px, 5.5vw, 76px); }
.assure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.card h2 { font-family: var(--display); font-weight: 900; color: var(--forest); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 700; font-size: clamp(.98rem, 1.35vw, 1.1rem); line-height: 1.6; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--forest-deep); font-weight: 900; font-size: .9rem; margin-top: 1px; }
.faq { padding-block: clamp(48px, 6vw, 88px); }
.faq details { border-bottom: 2px solid var(--sage); }
.faq .h2 { margin-bottom: 14px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--forest); font-size: clamp(1rem, 1.5vw, 1.2rem); padding-block: 18px; }
.faq summary:focus-visible, .faq a:focus-visible, .column a:focus-visible, .foot a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.faq details p { padding: 0 0 20px 1.3em; max-width: 46em; }
.faq a { color: var(--forest); font-weight: 700; }
.column { background: var(--sage); padding-block: clamp(44px, 5.5vw, 80px); }
.column-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.column-head a, .articles a { color: var(--forest); font-weight: 800; }
.articles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.articles li { background: var(--paper); border-radius: 16px; padding: 18px 20px; font-weight: 800; color: var(--forest); }
.foot { background: var(--forest-deep); color: var(--on-forest-quiet); padding-block: 32px; font-size: .875rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 4px; }
.foot-brand strong { font-family: var(--display); font-weight: 900; color: var(--on-forest); font-size: 1.1rem; }
.foot a { color: var(--on-forest-quiet); }
.foot .analytics-settings { padding: 0; text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }

@media (max-width: 860px) {
  .bar nav a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "pick" "bottom"; grid-template-rows: auto; text-align: center; row-gap: 26px; }
  h1 { margin-bottom: 14px; }
  .copy-bottom .cta { margin-top: 0; }
  .tile { border-radius: 6px; }
  .tile.on { outline-width: 3px; box-shadow: 0 8px 16px #00000070; }
  .tile.on::after { width: 22px; height: 22px; right: -8px; top: -9px; font-size: .8rem; border-width: 2px; }
  .panel { border-width: 3px; border-radius: 12px; }
  .head { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .num { grid-row: auto; }
}

/* アクセス解析の設定 */
.analytics-settings {display:block;background:none;border:0;padding:6px 0;font:inherit;text-align:left;cursor:pointer;color:inherit;}
.analytics-choice[hidden],.analytics-choice [hidden] {display:none!important;}
.analytics-choice {position:fixed;z-index:1000;bottom:16px;left:16px;right:16px;width:auto;max-width:480px;max-height:60vh;overflow:auto;margin:0 0 0 auto;padding:16px;box-sizing:border-box;background:#fff;color:#172b4d;border:1px solid #c2d0e2;border-radius:16px;box-shadow:0 8px 36px #10274430;}
.analytics-choice h2 {font-size:16px;margin:0 0 8px;}
.analytics-choice p {font-size:14px;line-height:1.8;margin:8px 0;}
.analytics-choice a {color:#174e96;text-decoration:underline;}
.analytics-choice-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.analytics-choice-actions button {flex:1 1 100px;padding:12px 14px;border:1px solid #174e96;border-radius:8px;background:#f5f8fc;color:#123d74;font:inherit;font-size:14px;font-weight:600;cursor:pointer;}
.analytics-choice button:focus-visible,.analytics-settings:focus-visible {outline:3px solid #2272b8;outline-offset:3px;}
@media(max-width:400px){.analytics-choice{left:10px;right:10px;padding:16px;}.analytics-choice-actions button{flex-basis:80px;}}
