:root {
  --ink: #2c2e33;
  --text: #55585f;
  --muted: #71747b;
  --line: #4a4e58;
  --char: #2c2924;
  --bg: #f6faef;
  --green: #5cb335;
  --yellow: #fdc83a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 500 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 800; color: #1f2226; }
ul, ol { list-style: none; }
svg, img { display: block; }
.wrap { width: min(970px, 100% - 84px); margin-inline: auto; }

.skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: #fff; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid #3f7fd0; outline-offset: 3px; border-radius: 6px; }


/* ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 65% at 88% 0%, #d6f0b6 0%, #d6f0b600 100%),
    radial-gradient(38% 34% at 82% 62%, #ffe9a6d9 0%, #ffe9a600 100%),
    radial-gradient(35% 45% at 50% 50%, #e3f4cfcc 0%, #e3f4cf00 100%),
    linear-gradient(180deg, #f1f8e7 0%, var(--bg) 100%);
}
.hero-inner { position: relative; min-height: 480px; display: flex; align-items: center; }
.hero-copy { flex: none; width: 357px; position: relative; z-index: 1; }
h1 { font-size: 52px; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; }
.lead { margin-top: 18px; font-size: 19px; font-weight: 700; line-height: 1.8; color: #6a6e75; white-space: nowrap; }
.actions { display: flex; gap: 12px; margin-top: 32px; white-space: nowrap; }
.button { height: 54px; padding: 0 22px 0 30px; border-radius: 999px; display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.button::after { content: ""; width: 8px; height: 8px; border-top: 2.5px solid; border-right: 2.5px solid; border-radius: 1px; transform: rotate(45deg); }
.primary { background: #45a02a; color: #fff; box-shadow: 0 0 0 4px #cbeaa9; }
.primary:hover { background: #3c9124; }
.secondary { background: #fff; color: var(--text); box-shadow: 0 0 0 1.5px #dfe3da; }
.secondary:hover { box-shadow: 0 0 0 1.5px #b9c4ad; }

.hero-scene { position: relative; flex: none; width: 613px; height: 428px; margin-top: 46px; }
.window { position: absolute; left: 54px; top: 107px; width: 320px; height: 211px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 7px #e2efd3, 0 0 0 8px #d3e5bf, 0 18px 40px #4d7a2614; }
.window-text { margin: 26px 0 0 28px; font-size: 19px; line-height: 30px; white-space: nowrap; }
.reading { position: relative; padding-inline: 1px; background: #d6eafa; border-radius: 3px; }
.reading::after { content: ""; position: absolute; right: -3px; top: -1px; bottom: -1px; width: 1.5px; background: var(--ink); }
.candidates { counter-reset: cand; position: absolute; left: 67px; top: 74px; width: 194px; padding: 6px; background: #fff; border-radius: 16px; border: 1px solid #e3e8dd; box-shadow: 0 12px 30px #4d7a2621; font-size: 17px; font-weight: 600; line-height: 1; }
.candidates li { counter-increment: cand; height: 35px; padding-left: 12px; display: flex; align-items: center; gap: 14px; border-radius: 9px; }
.candidates li::before { content: counter(cand); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.candidates li:first-child { background: #e0f1fd; }
.sheep-shadow { position: absolute; left: 422px; top: 365px; width: 150px; height: 20px; border-radius: 50%; background: #e9c35a; opacity: .4; }
.hero-sheep { position: absolute; left: 388px; top: 133px; width: 200px; height: auto; }

/* 紹介動画 */
.promo { margin-top: 24px; margin-bottom: 16px; }
.promo-frame { padding: 8px; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px #d9e7ca, 0 10px 24px #4d7a261a, 0 32px 72px #4d7a2629; }
.promo video { display: block; width: 100%; height: auto; border-radius: 22px; background: #fff; }

/* 主な特徴 */
.section { padding-top: 80px; }
.section-title { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; font-size: 34px; line-height: 1.4; }
.section-title span { margin-left: .1em; padding: 0 .18em; border-radius: .3em; background: #d4efb2; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feature { position: relative; overflow: hidden; min-height: 224px; padding: 28px 36px; display: flex; align-items: center; border-radius: 30px; box-shadow: 0 0 0 7px #fff, 0 0 0 8px #d9e7ca; }
.feature-text { position: relative; z-index: 1; }
.feature h3 { margin-bottom: 10px; font-size: 22px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.feature p { font-size: 16px; line-height: 1.85; color: #6a6e75; white-space: nowrap; }
.green { background: linear-gradient(#daf1bf, #eef8e3); }
.blue { background: linear-gradient(#d6ebfd, #eef7fe); }
.yellow { background: linear-gradient(#fcecbd, #fdf8e7); }
.pink { background: linear-gradient(#fadce7, #fdf2f6); }

.art { position: absolute; z-index: 1; }
.line { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-thinking { right: 18px; bottom: -38px; width: 180px; height: auto; }
.emoji { right: 52px; top: 50%; translate: 0 -50%; width: 104px; height: 104px; }
.shot { right: 40px; top: 50%; translate: 0 -50%; width: 164px; height: auto; border-radius: 14px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px #ecdcae; }
.art-os { right: 40px; top: 50%; translate: 0 -50%; width: 150px; height: 40px; }
.os-mark { fill: #4a4e58; opacity: .85; }

/* 開発状況 */
.status { margin-top: 48px; padding: 30px 32px; background: #fff; border-radius: 30px; box-shadow: 0 0 0 7px #e2efd3, 0 0 0 8px #d3e5bf; }
.status h2 { font-size: 26px; line-height: 1.5; }
.status > p { margin-top: 4px; font-size: 16px; line-height: 1.7; color: #6a6e75; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.status-grid li { padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; background: #fbfdf8; border: 1.5px dashed #cfdcc0; border-radius: 18px; font-size: 16px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.status-grid small { grid-column: 2; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.ready { background: #4fa62b; }
.wip { background: #f2b519; }
.todo { background: #b7bac2; }

/* フッター */
.footer { margin-top: 64px; background: #eaf4dc; }
.footer-inner { height: 76px; padding-inline: 4px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; gap: 8px; white-space: nowrap; }
.footer-inner > a:last-child { padding-left: 20px; border-left: 1px solid #d0d2d8; font-size: 14px; line-height: 1.6; color: var(--text); white-space: nowrap; }

/* 〜1040px：ヒーローを縦積み、カード1列 */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; min-height: 0; }
  .hero-copy { width: min(613px, 100%); padding-top: 64px; }
  .hero-scene { max-width: 100%; height: 404px; margin-top: 0; }
}

@media (max-width: 920px) {
  .status-grid { grid-template-columns: 1fr 1fr; }
}

/* ヒーローの図は幅に合わせて段階的に縮小 */
@media (max-width: 720px) { .hero-scene { zoom: .9; } }
@media (max-width: 640px) { .hero-scene { zoom: .84; } }
@media (max-width: 560px) { .hero-scene { zoom: .7; } }
@media (max-width: 460px) { .hero-scene { zoom: .58; } }
@media (max-width: 386px) { .hero-scene { zoom: .5; } }
@media (max-width: 336px) { .hero-scene { zoom: .45; } }

/* スマートフォン */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .hero-copy { padding-top: 48px; }
  h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .feature p { font-size: 15.5px; }
  .section { padding-top: 56px; }
  .section-title { margin-bottom: 28px; font-size: 27px; }
  .feature-grid { gap: 28px; }
  .feature { flex-direction: column; align-items: stretch; padding: 28px 24px 0; }
  .art { position: relative; right: auto; bottom: auto; top: auto; translate: none; }
  .art { margin: 16px 0 24px auto; }
  .art-thinking { margin: 4px 0 -38px auto; }
  .emoji { width: 80px; height: 80px; margin-top: 4px; }
  .shot { margin-top: 12px; }
  .feature { min-height: 0; padding-bottom: 28px; }
  .green { padding-bottom: 0; }
  .status { margin-top: 36px; padding: 24px 20px; }
  .footer { margin-top: 48px; }
  .footer-inner { height: auto; padding: 18px 0 22px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-inner > a:last-child { padding: 0; border: 0; }
}

@media (max-width: 460px) {
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  h1 { font-size: 34px; }
  .button { padding: 0 16px 0 22px; gap: 8px; }
  .actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
