:root {
  color-scheme: light;
  --paper: #fff7ed;
  --ink: #35291f;
  --soft: #615145;
  --accent: #ae2f23;
  --border: #e8d5c3;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #36637e; outline-offset: 5px; border-radius: 4px; }
.wrap { width: min(1260px, calc(100% - 72px)); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 18px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 850 1.2rem/1.05 system-ui, sans-serif; text-decoration: none; white-space: nowrap; letter-spacing: -.04em; }
.brand small { display: block; font: 650 .75rem/1.35 "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; letter-spacing: 0; color: var(--soft); margin-top: 3px; }
.brand-icon { display: block; width: 36px; height: 36px; overflow: hidden; border-radius: 10px; background: #e5b89d; }
.brand-icon img { display: block; width: 100%; height: 100%; }
nav { display: flex; gap: clamp(17px, 4vw, 43px); }
nav a { font-size: .9rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
nav a:hover, .text-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; min-height: 510px; border: 1px solid var(--border); border-radius: 26px; overflow: hidden; background: #fffaf5; }
.hero-copy { padding: clamp(28px, 4.4vw, 59px); align-self: center; }
.kicker { color: var(--accent); font-weight: 800; font-size: .84rem; letter-spacing: .08em; margin-bottom: 12px; }
h1 { font-weight: 850; font-size: clamp(1.16rem, 2vw, 1.52rem); letter-spacing: .08em; color: var(--accent); }
h1 span { display: block; font: 900 clamp(3.4rem, 6.25vw, 6.1rem)/.98 ui-rounded, "Avenir Next", system-ui, sans-serif; letter-spacing: -.075em; color: var(--ink); margin-bottom: 10px; }
.hero-line { font-size: clamp(1.5rem, 2.8vw, 2.45rem); font-weight: 850; line-height: 1.26; letter-spacing: -.07em; margin-top: 21px; }
.intro { margin-block: 16px 23px; max-width: 33em; }
.intro, .section-head p, .strategy-copy p, .hint-inner p, dd, .questions p, .walkthrough li { color: var(--soft); line-height: 1.8; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; }
.store { display: inline-flex; align-items: center; gap: 9px; min-height: 51px; border-radius: 10px; padding: 10px 15px; background: var(--accent); color: #fffdf7; font-weight: 800; text-decoration: none; box-shadow: 0 4px #eeb9a4; }
.store:hover { background: #8d241b; }
.play { display: inline-block; width: 16px; height: 18px; clip-path: polygon(0 0,100% 50%,0 100%); background: #ffdd9a; }
.text-link { font-size: .94rem; font-weight: 800; text-underline-offset: 4px; }
.app-note { color: var(--soft); font-size: .82rem; margin-top: 13px; }
.hero-art { display: block; position: relative; min-width: 0; background: #efdbbe; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 19% 52%; }
.section { scroll-margin-top: 20px; }
.rules { padding-block: 75px 66px; }
.section-head { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 18px 38px; margin-bottom: 25px; }
h2 { font-size: clamp(2rem, 3.65vw, 3.25rem); line-height: 1.19; font-weight: 850; letter-spacing: -.075em; }
h3 { font-size: 1.13rem; font-weight: 850; letter-spacing: -.035em; }
.rules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.rule { border: 1px solid #30170912; border-radius: 17px; padding: 23px; background: var(--card); }
.amber { --card: #ffedbc; --tile: #f4d179; --edge: #c99b45; }
.sky { --card: #deedf3; --tile: #afd4e6; --edge: #81afc9; }
.rose { --card: #fae3db; --tile: #f0b7a9; --edge: #cf8579; }
.tile { display: grid; place-items: center; width: 47px; height: 45px; border-radius: 10px; margin-bottom: 17px; background: var(--tile); box-shadow: 0 4px var(--edge), inset 0 2px #ffffff7a; font-size: 1.37rem; font-weight: 800; }
.rule p { color: #50453d; line-height: 1.7; margin-top: 8px; }
.strategy { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(33px, 6vw, 90px); padding-block: 9px 68px; }
.strategy-copy h2 { margin-bottom: 20px; }
.strategy-copy p { margin-bottom: 15px; }
.strategy .text-link { display: inline-block; margin-top: 2px; }
.example { display: grid; justify-items: center; padding: 32px 12px 20px; border-radius: 21px; background: #f8e0d0; }
.board { --side: clamp(32px, 3.85vw, 49px); display: grid; grid-template-columns: repeat(5,var(--side)); gap: 5px; padding: 9px; background: #cfa37d; border-radius: 12px; transform: rotate(-6deg); box-shadow: 0 7px #ad7b5b, 0 15px 24px #5e392a38; }
.board span { height: var(--side); display: grid; place-items: center; background: #fff5dc; border-radius: 6px; font-weight: 850; box-shadow: inset 0 2px #ffffff70; }
.board .line, .legend-line { background: #b6d7e6; }
.board .corner, .legend-corner { background: #f5bfb0; }
.board .cat { background: var(--accent); color: #fff6e1; box-shadow: 0 4px #913526; transform: translateY(-2px); }
figcaption { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 23px; font-size: .84rem; color: #514136; }
figcaption i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1px solid #7d685145; border-radius: 3px; }
.panorama { overflow: hidden; border-radius: 22px; margin-bottom: 63px; background: #b93524; }
.panorama img { display: block; width: 100%; height: auto; }
.hint-band { padding-block: 55px; background: #f9e8d7; }
.hint-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 7vw, 95px); }
.hint-inner p { margin-top: 15px; }
dl > div { border-top: 1px solid #dac2ad; padding-block: 13px; }
dt { font-weight: 850; margin-bottom: 5px; }
.walkthrough { padding-block: 64px 18px; }
.walkthrough ol { margin: 0; padding-inline-start: 1.7em; }
.walkthrough li { padding: 11px 0 11px 6px; border-top: 1px solid var(--border); }
.walkthrough li::marker { color: var(--accent); font-weight: 850; }
.walkthrough strong { color: var(--ink); }
.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; padding-block: 55px 65px; }
.questions { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; gap: 12px; min-height: 53px; padding-block: 9px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; }
details[open] summary::after { content: "−"; }
.questions p { padding-block: 0 14px; }
.questions a { text-underline-offset: 4px; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--border); padding-block: 22px 27px; }
.footer p { color: var(--soft); font-size: .83rem; }
.missing { padding-block: 80px; }
.missing p { margin-top: 15px; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 440px; }
  .hero-copy { padding: 31px 25px; }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 32px); }
  .mast { min-height: 66px; }
  .hero { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-copy { padding: 27px 22px 24px; }
  .hero-art { aspect-ratio: 3 / 2; }
  .section-head, .strategy, .hint-inner, .faq { grid-template-columns: 1fr; }
  .rules { padding-block: 47px 39px; }
  .strategy { gap: 24px; padding-block: 9px 43px; }
  .panorama { margin-bottom: 43px; border-radius: 15px; }
  .hint-band, .faq { padding-block: 41px; }
  .walkthrough { padding-block: 44px 11px; }
}
@media (max-width: 560px) {
  nav { gap: 12px; }
  nav a { font-size: .76rem; }
  .mast { gap: 10px; }
  .brand { font-size: 1.08rem; gap: 6px; }
  .brand small { display: none; }
  .rules-grid { grid-template-columns: 1fr; gap: 10px; }
  .rule { padding: 17px; }
}
@media (max-width: 350px) {
  .mast { flex-wrap: wrap; padding-block: 10px; }
  h1 span { font-size: 2.85rem; }
}
