:root {
  --ink: #33291f;
  --red: #bd3e28;
  --paper: #fff9e9;
  --yellow: #f9cf55;
  --edge: #3b2b20;
  --sans: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",YuGothic,Meiryo,system-ui,sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  font-synthesis: weight;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,a {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid #176aa2;
  outline-offset: 4px;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none!important;
}

.skip {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 99;
  transform: translateY(-150%);
  padding: 6px 15px;
  background: white;
}

.skip:focus {
  transform: none;
}

#main:focus {
  outline: none;
}

.masthead {
  background: #fff9e9;
  border-bottom: 2px solid var(--ink);
}

.mast-inner {
  max-width: 1320px;
  padding: 0 clamp(24px,5.4vw,76px);
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.games-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
}

.games-link span {
  font: 19px/1 Arial,sans-serif;
}

.mast-inner nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-weight: 750;
  font-size: 13px;
}

.guide-link {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
}

.question-icon {
  width: 18px;
  height: 18px;
  border: 1.7px solid var(--ink);
  border-radius: 50%;
  font: bold 13px/15px Arial;
  text-align: center;
}

.product-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  min-height: 39px;
  padding: 6px 14px;
  background: var(--paper);
}

.product-link span {
  font: 700 16px/1 Arial;
}

.product-link:hover,.guide-link:hover,.games-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--yellow);
  background-image: radial-gradient(ellipse at 54% 42%,#ffda71 0,transparent 69%);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.hero::before,.flavors::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='176' height='176'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.7' d='M0 0h176v176H0z'/%3E%3C/svg%3E");
}

.hero::after {
  content: "";
  display: block;
  width: 100%;
  height: 13px;
  border-top: 1.5px solid var(--ink);
  background: repeating-conic-gradient(from 0deg,#b44f30 0 25%,#fff1c9 0 50%) 0 0 / 24px 24px;
}

.hero-inner {
  max-width: 1260px;
  margin: auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(20px,4vw,65px);
  padding: clamp(48px,5.2vw,80px) clamp(30px,6vw,90px) clamp(52px,5vw,78px);
}

.intro {
  min-width: 0;
}

.intro h1 {
  font-size: clamp(74px,8.15vw,118px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: 1.055;
  margin: 20px 0 18px -.05em;
  white-space: nowrap;
  transform: rotate(-2deg);
  transform-origin: left center;
  color: #33271e;
  text-shadow: 0 1px currentColor;
  -webkit-text-stroke: .035em currentColor;
  paint-order: stroke fill;
}

.intro h1 span {
  display: block;
  color: var(--red);
  letter-spacing: -.05em;
}

.intro p {
  font-size: clamp(13px,1.16vw,17px);
  font-weight: 650;
  line-height: 1.95;
  letter-spacing: .015em;
  margin: 0 0 25px;
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--red);
  color: white;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 5px 0 var(--ink);
  padding: 0 21px;
  min-height: 57px;
  font-size: 19px;
  letter-spacing: .05em;
  font-weight: 850;
  transition: transform .13s,box-shadow .13s;
}

.play:hover {
  transform: translate(-1px,-2px);
  box-shadow: 5px 7px 0 var(--ink);
}

.play:active {
  transform: translate(3px,3px);
  box-shadow: 1px 2px 0 var(--ink);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
  margin-right: 1px;
}

.play-arrow {
  font: 400 26px/1 Arial;
  margin-left: 14px;
}

.map-paper {
  width: 100%;
  aspect-ratio: 1.29;
  transform: rotate(2.7deg);
  position: relative;
  margin: 0;
  background-color: #fff9e4;
  background-image: linear-gradient(to right,#c3bb9b49 1px,transparent 1px),linear-gradient(to bottom,#c3bb9b49 1px,transparent 1px);
  background-size: 20px 20px;
  border: 1.4px solid #766346;
  box-shadow: 4px 6px 0 #44341531,0 1px 4px #4c331b26;
  isolation: isolate;
}

.map-paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #bca87e80;
  pointer-events: none;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 19%;
  height: 7%;
  background: repeating-linear-gradient(115deg,#edc87580 0 4px,#efd79a99 4px 8px),#f9e1a688;
  border: 1px solid #ddbd7599;
  clip-path: polygon(1% 0,100% 0,98% 23%,100% 39%,98% 56%,100% 81%,99% 100%,0 100%,2% 77%,0 51%,2% 29%);
  box-shadow: 0 1px 1px #ac8739;
}

.tape-one {
  top: -2%;
  left: -4%;
  transform: rotate(-28deg);
}

.tape-two {
  bottom: -1.2%;
  right: -4%;
  transform: rotate(-31deg);
}

.paper-caption {
  position: absolute;
  left: 5%;
  top: 6.2%;
  font-size: clamp(10px,.94vw,14px);
  color: #a9492e;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  padding: 5px 7px;
  border: 1.5px solid currentColor;
  transform: rotate(-6deg);
  background: #fff9e7;
}

.compass {
  position: absolute;
  right: 4.5%;
  top: 5%;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #705d46;
  font: 750 10px/1 Arial;
}

.compass i {
  display: block;
  width: 12px;
  height: 23px;
  clip-path: polygon(50% 0,100% 100%,50% 74%,0 100%);
  background: linear-gradient(to right,#907b60 50%,#463a2b 50%);
}

.art-stage {
  position: absolute;
  inset: 2.5% 7% 8%;
  display: grid;
  place-items: center;
  transform: rotate(-2.7deg);
}

.art-stage svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.art-stage g {
  filter: drop-shadow(1px 2px 1.4px #73583955);
}

.map-paper figcaption {
  position: absolute;
  inset: auto 0 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 750;
  color: #725c3e;
}

.map-paper figcaption span {
  width: 24px;
  height: 1px;
  background: #9b8867;
}

.flavors {
  position: relative;
  isolation: isolate;
  background: #fff9e9;
  padding: 38px clamp(22px,5.4vw,76px) 40px;
}

.flavors::before {
  opacity: .055;
}

.flavors-inner {
  max-width: 1130px;
  margin: auto;
}

.flavors-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.flavors-head h2 {
  font-size: clamp(20px,2vw,29px);
  font-weight: 850;
  letter-spacing: -.055em;
  margin: 0;
}

.cookie-flower {
  color: var(--red);
  font: 900 30px/1 Arial;
}

.flavor-list {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #c1ab88;
  border-radius: 6px;
  background: #fffaf0;
  overflow: hidden;
}

.flavor-list li {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 12px 5px 14px;
  text-align: center;
}

.flavor-list li+li {
  border-left: 1px dashed #c9b694;
}

.flavor-art {
  display: grid;
  place-items: center;
  width: 90%;
  height: 54px;
  margin-bottom: 5px;
}

.flavor-art svg,.flavor-art img {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  max-height: 50px;
  object-fit: contain;
}

.flavor-art img {
  filter: drop-shadow(1px 2px 1px #4d38263a);
}

.flavor-list b {
  font-size: 14px;
  line-height: 1.55;
}

.flavor-list small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #675241;
  line-height: 1.5;
}

.flavor-list small i {
  width: 6px;
  height: 6px;
  background: var(--dot);
  border-radius: 50%;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff9e9;
  padding: 23px 16px;
  border-top: 1px solid #d3c4ac;
  color: #705c4b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.footer-rule {
  width: 1px;
  height: 10px;
  background: #bdad93;
}

body[data-screen=game] footer {
  display: none;
}

#guide {
  box-sizing: border-box;
  width: min(390px,calc(100% - 32px));
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 7px var(--ink);
  padding: 24px;
}

#guide::backdrop {
  background: #32251991;
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-head h2 {
  margin: 0;
  font-size: 26px;
}

.close-guide {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
}

.guide-steps {
  list-style: none;
  counter-reset: guide;
  padding: 0;
  margin: 24px 0;
}

.guide-steps li {
  position: relative;
  counter-increment: guide;
  padding-left: 39px;
  margin: 17px 0;
}

.guide-steps li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: bold 14px Arial;
}

.guide-steps strong {
  font-size: 16px;
}

.guide-steps p {
  font-size: 13px;
  line-height: 1.7;
  margin: 4px 0 0;
}

#guide-ok {
  width: 100%;
  padding: 10px;
  font-weight: 750;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
}

@media(min-width:1500px) {
  .hero-inner {
    padding-top: 70px;
    padding-bottom: 76px;
  }
}

@media(max-width:850px) and (min-width:681px) {
  .hero-inner {
    grid-template-columns: .87fr 1.13fr;
    gap: 20px;
    padding-inline: 4vw;
  }
  .intro h1 {
    font-size: clamp(70px,9.1vw,85px);
  }
  .intro p {
    font-size: 12px;
  }
  .mast-inner {
    min-height: 66px;
  }
  .flavors {
    padding-inline: 4vw;
  }
}

@media(max-width:680px) {
  .mast-inner {
    min-height: 58px;
    padding: 0 15px;
  }
  .games-link {
    gap: 5px;
    font-size: 12px;
  }
  .mast-inner nav {
    gap: 11px;
    font-size: 11px;
  }
  .guide-link {
    gap: 3px;
  }
  .question-icon {
    width: 15px;
    height: 15px;
    font-size: 10px;
    line-height: 12px;
  }
  .product-link {
    min-height: 33px;
    gap: 5px;
    padding: 4px 8px;
  }
  .product-link span {
    font-size: 13px;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 20px 23px;
  }
  .intro {
    display: contents;
  }
  .intro h1 {
    font-size: clamp(40px,10.3vw,65px);
    letter-spacing: -.09em;
    line-height: 1.14;
    margin: 10px 0 0;
    transform: rotate(-1.7deg);
    order: 1;
  }
  .intro h1 span {
    display: inline;
    letter-spacing: -.083em;
  }
  .map-paper {
    width: min(76vw,330px);
    aspect-ratio: 1.43;
    order: 2;
    margin: 20px 0 15px;
  }
  .paper-caption {
    font-size: 9px;
    padding: 3px 4px;
  }
  .map-paper figcaption {
    font-size: 9px;
    gap: 6px;
  }
  .map-paper figcaption span {
    width: 16px;
  }
  .compass {
    font-size: 7px;
  }
  .compass i {
    height: 15px;
    width: 8px;
  }
  .intro p {
    order: 3;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    margin: 2px 0 14px;
  }
  .play {
    order: 4;
    min-height: 47px;
    font-size: 16px;
    gap: 8px;
    padding: 0 21px;
  }
  .play-arrow {
    font-size: 21px;
  }
  .play-triangle {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }
  .hero::after {
    height: 9px;
    background-size: 16px 16px;
  }
  .flavors {
    padding: 24px 18px 27px;
  }
  .flavors-head {
    margin: 0 0 12px;
    gap: 6px;
  }
  .flavors-head h2 {
    font-size: 21px;
  }
  .cookie-flower {
    font-size: 23px;
  }
  .flavor-list {
    grid-template-columns: repeat(4,minmax(0,1fr));
    border: 0;
    background: none;
    border-radius: 0;
    gap: 6px;
  }
  .flavor-list li,.flavor-list li+li {
    background: #fffaf0;
    border: 1px solid #cfbfa6;
    border-radius: 4px;
    padding: 6px 2px 7px;
  }
  .flavor-art {
    height: 35px;
    margin-bottom: 3px;
  }
  .flavor-art svg,.flavor-art img {
    max-height: 32px;
  }
  .flavor-list b {
    font-size: 11px;
  }
  .flavor-list small {
    font-size: 9px;
  }
  footer {
    font-size: 10px;
    padding: 17px;
  }
}

@media(max-width:355px) {
  .mast-inner {
    padding-inline: 10px;
  }
  .mast-inner nav {
    gap: 6px;
  }
  .product-link {
    font-size: 10px;
  }
  .hero-inner {
    padding-inline: 12px;
  }
  .flavors {
    padding-inline: 12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }
}
