@charset "UTF-8";

/* Variables */
:root {
  --color-bg: #f4fcfe;
  --color-key: #d6f9ff;
  --color-main: #52d0ef;
  --color-blue: #5fb6fb;
  --color-gray: #7d7a7a;
  --color-gray-dark: #555;
  --color-menu: #5a5e69;
  --color-red: #d95e68;
  --color-pink: #fa9fd4;
  --color-line: #cbd0da;
  --color-white: #fff;
  --color-black: #000;
  --color-text: #333;
  --color-hero: #4881f0;
  --color-link: #4881f0;
  --color-nav: rgb(7 86 129 / 0.7);
  --color-nav-active: rgb(14 53 74 / 0.63);
  --color-border-dark: #545454;
  --color-social: #c2a27c;
  --color-social-text: #433328;
  --color-navy: #253b63;

  --font-en: "Cinzel", serif;
  --font-btn: "Noto Serif JP", serif;

  --font-base: "Shippori Mincho", serif;
  --fw-base: 600;
  --fw-bold: 700;
  --fw-xbold: 800;
  --ls: 0.15em;

  --fs-xs: clamp(0.625rem, 0.5966rem + 0.1212vw, 0.6875rem);
  --fs-note: clamp(0.6875rem, 0.6591rem + 0.1212vw, 0.75rem);
  --fs-sm: clamp(0.75rem, 0.6932rem + 0.2424vw, 0.875rem);
  --fs-base: clamp(0.875rem, 0.8182rem + 0.2424vw, 1rem);
  --fs-md: clamp(1rem, 0.9432rem + 0.2424vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 0.6136rem + 2.1818vw, 2.25rem);
  --fs-xl: clamp(1.5rem, 0.4773rem + 4.3636vw, 3.75rem);
  --fs-heading: clamp(min(2rem, 8.5333vw), 1.2045rem + 3.3939vw, 3.75rem);
  --fs-label: clamp(0.75rem, 0.5227rem + 0.9697vw, 1.25rem);
  --fs-tag: clamp(0.75rem, 0.6648rem + 0.3636vw, 0.9375rem);
  --fs-lead: clamp(0.9375rem, 0.6818rem + 1.0909vw, 1.5rem);
  --fs-num: clamp(1.25rem, 0.7955rem + 1.9394vw, 2.25rem);
  --fs-mail: clamp(0.9375rem, 0.7955rem + 0.6061vw, 1.25rem);
  --fs-text: clamp(0.75rem, 0.5795rem + 0.7273vw, 1.125rem);
  --fs-title: clamp(1rem, 0.6591rem + 1.4545vw, 1.75rem);
  --fs-h3: clamp(1.25rem, 0.9091rem + 1.4545vw, 2rem);
  --fs-2xl: clamp(1.5rem, 0.8182rem + 2.9091vw, 3rem);
  --fs-sub: clamp(0.625rem, 0.4545rem + 0.7273vw, 1rem);
  --fs-en-sm: clamp(0.625rem, 0.5114rem + 0.4848vw, 0.875rem);
  --fs-body: clamp(0.75rem, 0.6364rem + 0.4848vw, 1rem);
  --fs-kicker: clamp(0.75rem, 0.4091rem + 1.4545vw, 1.5rem);
  --fs-spot: clamp(1.375rem, 0.7216rem + 2.7879vw, 2.8125rem);

  --sp-10: clamp(5px, 2.73px + 0.6061vw, 10px);
  --sp-20: clamp(10px, 5.45px + 1.2121vw, 20px);
  --sp-30: clamp(15px, 8.18px + 1.8182vw, 30px);
  --sp-40: clamp(20px, 10.91px + 2.4242vw, 40px);
  --sp-60: clamp(30px, 16.36px + 3.6364vw, 60px);
  --sp-80: clamp(40px, 21.82px + 4.8485vw, 80px);
  --sp-100: clamp(50px, 27.27px + 6.0606vw, 100px);
  --sp-150: clamp(70px, 33.64px + 9.697vw, 150px);

  --tile: clamp(80px, 43.64px + 9.697vw, 160px);
  --diamond: color-mix(in srgb, var(--color-blue) 5%, var(--color-white));
  --bg-diamond:
    linear-gradient(45deg, var(--color-white) 25%, transparent 0) center top / var(--tile) var(--tile),
    linear-gradient(135deg, var(--color-white) 25%, transparent 0) center top / var(--tile) var(--tile),
    linear-gradient(225deg, var(--color-white) 25%, transparent 0) center top / var(--tile) var(--tile),
    linear-gradient(315deg, var(--color-white) 25%, transparent 0) center top / var(--tile) var(--tile), var(--diamond);

  --gutter: 20px;
  --content-w: 720px;
  --wide-w: 1200px;
  --radius: 10px;
  --duration: 0.3s;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  @media (width >= 768px) {
    --gutter: 40px;
  }
}

/* Base */
html {
  scrollbar-gutter: stable;
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-base);
  color: var(--color-text);
  background: var(--color-bg);

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    pointer-events: none;
  }

  &::before {
    height: clamp(300px, 163.64px + 36.3636vw, 600px);
    background: linear-gradient(var(--color-hero), transparent);
  }

  &::after {
    height: clamp(235px, 128.18px + 28.4848vw, 470px);
    background: url("/assets/img/common/bg_town.webp?v=f47fe370b7") center top / auto 100% repeat-x;
  }
}

main {
  position: relative;
  isolation: isolate;
  flex: 1;
  container-type: inline-size;
}

a {
  color: var(--color-link);
  transition: opacity var(--duration);

  @media (any-hover: hover) {
    &:hover {
      opacity: 0.7;
    }
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tight {
  letter-spacing: 0;
}

.nowrap {
  white-space: nowrap;
}

.sp-only {
  @media (width >= 768px) {
    display: none;
  }
}

.pc-only {
  @media (width < 768px) {
    display: none;
  }
}

/* Header */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;

  &[data-fixed] {
    --logo-w: clamp(70px, 50.91px + 5.0909vw, 112px);
    --header-pt: 10px;
    --nav-top: 0px;

    position: fixed;
    animation: header-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    @media (prefers-reduced-motion: reduce) {
      animation: none;
    }
  }

  @media (width < 768px) {
    --logo-w: clamp(84px, 61.09px + 6.1091vw, 134px);
  }

  @media (width >= 768px) {
    padding: var(--header-pt, 20px) max(var(--gutter), (100% - 1366px) / 2) 20px;
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    translate: 0 -100%;
  }
}

.logo {
  display: block;
  width: var(--logo-w, clamp(100px, 87.27px + 3.3939vw, 128px));

  & img {
    width: 100%;
  }
}

.header .logo {
  @media (width < 768px) {
    margin-top: -6px;
  }

  & img {
    filter: drop-shadow(0 0 6px rgb(7 86 129 / 0.6));
  }
}

.gnav {
  > ul {
    display: flex;
    list-style: none;

    & a {
      display: block;
      font-weight: var(--fw-bold);
      text-decoration: none;
    }
  }

  @media (width >= 768px) {
    margin-top: var(--nav-top, 20px);

    > ul {
      gap: 6px;
      padding: 8px;
      border-radius: 999px;
      background: var(--color-nav);

      & a {
        padding: 12px 22px;
        border-radius: 999px;
        font-size: 1rem;
        line-height: 1.4;
        color: var(--color-white);
        transition: background-color var(--duration);

        &:hover,
        &[aria-current="page"] {
          opacity: 1;
          background: var(--color-nav-active);
        }
      }
    }
  }

  @media (width < 768px) {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 150px var(--gutter) 0;
    background: var(--bg-diamond);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration),
      visibility var(--duration);

    .header:has([aria-expanded="true"]) & {
      opacity: 1;
      visibility: visible;
    }

    .title {
      flex: none;
      width: min(100%, 320px);
      margin: 0 auto var(--sp-30);
    }

    > ul {
      flex-direction: column;
      align-items: center;
      gap: 30px;
      margin-bottom: var(--sp-80);

      & a {
        font-size: 1.25rem;
        color: var(--color-menu);

        &[aria-current="page"] {
          position: relative;

          &::after {
            content: "";
            position: absolute;
            inset: auto -0.5em -0.4em;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--color-nav), transparent);
            clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
          }
        }
      }
    }
  }
}

.gnav .sns {
  flex: none;
  margin: auto calc(var(--gutter) * -1) 0;

  @media (width >= 768px) {
    display: none;
  }
}

.sns-icons {
  --size: 36px;
  --gap: 40px;

  display: flex;
  gap: var(--gap);
  list-style: none;

  & a {
    display: block;
  }

  & img {
    width: var(--size);
  }
}

.menu-btn {
  --bar: linear-gradient(var(--color-white) 0 0);

  position: relative;
  width: 44px;
  aspect-ratio: 1;
  margin: -2px -1px 0 0;
  border-radius: 50%;
  background:
    var(--bar) center / 24px 2px no-repeat,
    var(--color-nav);
  transition:
    rotate 0.5s,
    background-size var(--duration);

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition:
      translate var(--duration),
      rotate var(--duration);
  }

  &::before {
    top: 14px;
  }

  &::after {
    bottom: 14px;
  }

  &[aria-expanded="true"] {
    rotate: 0.5turn;
    background-size:
      0 2px,
      auto;

    &::before {
      translate: 0 7px;
      rotate: 45deg;
    }

    &::after {
      translate: 0 -7px;
      rotate: -45deg;
    }
  }

  @media (width >= 768px) {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {
    &,
    &::before,
    &::after {
      transition: none;
    }
  }
}

:root:has(.menu-btn[aria-expanded="true"]) {
  @media (width < 768px) {
    overflow: hidden;

    background: var(--color-social);
  }
}

/* Social */
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-40);
  background: var(--color-social);

  @media (width < 768px) {
    padding-block: var(--sp-20);
  }

  @media (width >= 768px) {
    padding-block: 10px;
  }

  :is(h2, p) {
    font-size: var(--fs-label);
    font-weight: var(--fw-base);
    letter-spacing: var(--ls);
    color: var(--color-social-text);
  }

  .sns-icons {
    --size: clamp(28px, 24.36px + 0.9697vw, 36px);
    --gap: clamp(30px, 25.45px + 1.2121vw, 40px);
  }
}

/* Footer */
.footer {
  --fs-link: clamp(0.5625rem, 0.4205rem + 0.6061vw, 0.875rem);

  display: grid;
  justify-items: center;
  padding: var(--sp-40) var(--gutter);
  font-size: var(--fs-link);
  color: var(--color-white);
  text-align: center;
  background: var(--color-black) url("/assets/img/common/footer_bg.webp?v=292239b274") center / cover no-repeat;

  & a {
    color: inherit;
    text-underline-offset: 0.3em;
  }

  .logo {
    width: clamp(80px, 70.91px + 2.4242vw, 100px);
  }
}

.fnav {
  width: min(930px, 100%);
  margin-top: var(--sp-30);
  font-size: clamp(0.6875rem, 0.6023rem + 0.3636vw, 0.875rem);

  &::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: var(--sp-30);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.5), transparent);
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  }

  & ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
  }

  & li + li::before {
    content: "／";
    content: "／" / "";
    margin-inline: 1em;
  }
}

.app {
  display: flex;
  align-items: center;
  gap: var(--sp-30);
  margin-top: var(--sp-40);

  & img {
    width: clamp(50px, 31.82px + 4.8485vw, 90px);
  }
}

.stores {
  max-width: 100%;
  margin-top: var(--sp-40);

  & img {
    width: 275px;
    margin-inline: auto;

    @media (width >= 768px) {
      width: min(906px, 100%);
    }
  }
}

.footer-note {
  display: grid;
  gap: var(--sp-10);
  max-width: 750px;
  margin-top: var(--sp-20);
  font-size: var(--fs-xs);
  text-wrap: pretty;

  & p:first-child {
    font-size: var(--fs-note);
  }
}

.copyright {
  margin-top: var(--sp-20);
  font-size: var(--fs-note);
}

/* Button */
.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(30px, 20.91px + 2.4242vw, 50px);
  padding: 0.3em 1.5em;
  border: 2px solid var(--color-border-dark);
  border-radius: clamp(6px, 3.27px + 0.7273vw, 12px);
  font-family: var(--font-btn);
  font-size: var(--fs-link, var(--fs-sm));
  text-decoration: none;
  background: var(--color-black);

  & b {
    font-size: 1.3em;
    font-weight: var(--fw-bold);
  }
}

.btn {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-text);
  --btn-line: var(--color-main);
  --btn-hover-bg: var(--color-main);
  --btn-hover-fg: var(--color-white);
  --btn-hover-line: var(--color-main);
  --btn-w: clamp(280px, 216.36px + 16.9697vw, 420px);
  --arrow-r: clamp(14px, 4.91px + 2.4242vw, 34px);
  --arrow-w: clamp(12px, 10.18px + 0.4848vw, 16px);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: clamp(50px, 43.64px + 1.697vw, 64px);
  margin-inline: auto;
  padding: 0.5em calc(var(--arrow-r) + var(--arrow-w) + 1em);
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  font-family: var(--font-btn);
  font-size: var(--fs-body);
  font-weight: var(--fw-base);
  line-height: 1.4;
  color: var(--btn-fg);
  text-align: center;
  text-decoration: none;
  background: var(--btn-bg);
  transition:
    color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;

  @media (width < 768px) {
    width: min(100%, var(--btn-w));
  }

  @media (width >= 768px) {
    width: fit-content;
    min-width: min(100%, var(--btn-w));
    max-width: 100%;
    text-wrap: balance;
  }

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    right: var(--arrow-r);
    width: var(--arrow-w);
    aspect-ratio: 20 / 14;
    translate: 0 -50%;
    background: currentColor;
    forced-color-adjust: none;
    mask: url("/assets/icons/icon_arrow.svg?v=152974ef2f") center / contain no-repeat;
  }

  & span span {
    display: inline-block;
  }

  .ico {
    flex: none;
    width: 1.2em;
    aspect-ratio: 1;
    background: currentColor;
    forced-color-adjust: none;
    mask: url("/assets/icons/icon_bag.svg?v=e7b2f469ea") center / contain no-repeat;
  }

  &.primary {
    --btn-bg: var(--color-blue);
    --btn-fg: var(--color-white);
    --btn-line: var(--color-blue);
    --btn-hover-bg: var(--color-white);
    --btn-hover-fg: var(--color-text);
    --btn-hover-line: var(--color-blue);
    --ext-icon: url("/assets/icons/icon_window.svg?v=a362698ed6");
  }

  &.down::before {
    rotate: 90deg;
  }

  &.em {
    --btn-fg: var(--color-main);

    font-size: clamp(0.8125rem, 0.6136rem + 0.8485vw, 1.25rem);
    font-weight: var(--fw-xbold);
  }

  &:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
  }

  @media (any-hover: hover) {
    &:hover {
      opacity: 1;
      color: var(--btn-hover-fg);
      background-color: var(--btn-hover-bg);
      border-color: var(--btn-hover-line);
    }
  }

  @media (any-hover: none) {
    &:active {
      color: var(--btn-hover-fg);
      background-color: var(--btn-hover-bg);
      border-color: var(--btn-hover-line);
    }
  }
}

.btns {
  display: grid;
  gap: var(--sp-20) var(--sp-40);
  justify-content: center;

  .btn {
    margin: 0;
  }

  @media (width < 768px) {
    .btn {
      width: 100%;
    }
  }

  @media (width >= 768px) {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

/* External link */
.ext::after {
  content: "";
  content: "" / "（新しいタブで開きます）";
  display: inline-block;
  width: 1.2em;
  aspect-ratio: 1;
  margin-left: 0.3em;
  vertical-align: -0.2em;
  background: currentColor;
  forced-color-adjust: none;
  mask: var(--ext-icon, url("/assets/icons/icon_new-tab.svg?v=07b523b4bb")) center / contain no-repeat;
}

/* Heading */
.heading {
  --heading-color: var(--color-main);
  --heading-fs: var(--fs-heading);

  display: grid;
  justify-items: center;
  text-align: center;

  :is(h1, h2) {
    font-size: var(--heading-fs);
    font-weight: var(--fw-base);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--heading-color);
    text-wrap: balance;

    > span:last-child {
      position: relative;
      isolation: isolate;

      &::after {
        content: "";
        position: absolute;
        right: calc(clamp(65px, 35px + 8vw, 131px) * -0.5);
        bottom: 0;
        z-index: -1;
        width: clamp(65px, 35px + 8vw, 131px);
        aspect-ratio: 131 / 27;
        background: url("/assets/img/common/title_deco.webp?v=2434f9907e") center / contain no-repeat;
      }
    }
  }

  .eyebrow {
    font-size: var(--fs-title);
    font-weight: var(--fw-xbold);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--heading-color);
  }

  .line {
    display: block;
  }

  & small {
    font-size: 0.75em;
  }

  .sub {
    font-family: var(--font-base);
    font-size: var(--fs-sub);
    font-weight: var(--fw-xbold);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--color-gray);
  }

  &::after {
    content: "";
    width: clamp(230px, 98.18px + 35.1515vw, 520px);
    aspect-ratio: 524 / 27;
    background: url("/assets/img/common/title_line.webp?v=b5c1ecf2d8") center / contain no-repeat;
  }

  &.light {
    --heading-color: var(--color-white);
  }

  &.long {
    --heading-fs: var(--fs-xl);
  }

  &.sm {
    --heading-fs: var(--fs-2xl);
  }
}

/* Panel */
.panel {
  --panel-w: min(1160px, 100cqi);
  --ornament: url("/assets/img/common/ornament.webp?v=c622e8bef1");
  --ornament-h: calc(var(--panel-w) * 149 / 979);
  --side-x: calc(var(--panel-w) * 16 / 1160);
  --side-y: calc(var(--ornament-h) / 2);
  --side-w: 16px;
  --side-cap: 58px;
  --side-edge: linear-gradient(var(--color-white) 0 0);
  --side-edge-w: calc(var(--side-x) + var(--side-w) / 2);

  position: relative;
  width: var(--panel-w);
  margin: calc(var(--ornament-h) / 2 + var(--sp-30)) auto calc(var(--ornament-h) / 2);
  padding: var(--sp-80) max(var(--gutter), var(--side-x) + 22px) var(--sp-150);
  background:
    url("/assets/img/common/panel_side_cap.webp?v=1b7a2ddded") left var(--side-x) top var(--side-y) / var(--side-w) auto
      no-repeat,
    url("/assets/img/common/panel_side_cap.webp?v=1b7a2ddded") right var(--side-x) top var(--side-y) / var(--side-w) auto
      no-repeat,
    url("/assets/img/common/panel_side_line.webp?v=d9df721e15") left var(--side-x) bottom / var(--side-w)
      calc(100% - var(--side-y) - var(--side-cap)) no-repeat,
    url("/assets/img/common/panel_side_line.webp?v=d9df721e15") right var(--side-x) bottom / var(--side-w)
      calc(100% - var(--side-y) - var(--side-cap)) no-repeat,
    var(--side-edge) left / var(--side-edge-w) 100% no-repeat,
    var(--side-edge) right / var(--side-edge-w) 100% no-repeat,
    linear-gradient(var(--color-white), transparent var(--sp-150)),
    var(--bg-diamond);
  box-shadow: 0 0 40px color-mix(in srgb, var(--color-blue) 25%, transparent);

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    aspect-ratio: 979 / 149;
    background: var(--ornament) center / 100% auto no-repeat;
    pointer-events: none;
  }

  &::before {
    top: 0;
    translate: 0 -50%;
  }

  &::after {
    bottom: 0;
    translate: 0 50%;
    rotate: 180deg;
  }

  > * {
    max-width: var(--content-w);
    margin-inline: auto;
  }
}

/* Decoration */
.flakes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;

  & span {
    position: absolute;
    width: clamp(125px, 68.18px + 15.1515vw, 250px);
    aspect-ratio: 250 / 288;
    background: url("/assets/img/common/flake.webp?v=8dfd646437") center / contain no-repeat;
    opacity: 0.1;

    &:not([style]):nth-child(2) {
      width: clamp(60px, 32.73px + 7.2727vw, 120px);
    }

    &[style] {
      --fw: clamp(calc(var(--w) * 0.5px), calc(var(--w) * 0.0833vw), calc(var(--w) * 1px));

      width: var(--fw);
      rotate: var(--r, 0deg);

      @media (width < 1500px) {
        top: clamp(var(--fw) * 0.2, var(--y), 100% - var(--fw) * 1.35);
        left: clamp(var(--fw) * 0.3, var(--x), 100% - var(--fw) * 1.3);
      }

      @media (width >= 1500px) {
        top: clamp(var(--fw) * 0.2, var(--top, var(--dy) * 1px - var(--fw) * 0.576), 100% - var(--fw) * 1.35);
        left: calc(50% + var(--dx) * 1px - var(--fw) / 2);
      }
    }
  }

  @media (width < 768px) {
    & span:not([style]):nth-child(1) {
      top: 34%;
      right: -12%;
    }

    & span:not([style]):nth-child(2) {
      top: 15%;
      left: 1%;
    }

    & span:not([style]):nth-child(3) {
      top: 95%;
      left: 0;
    }
  }

  @media (width >= 768px) {
    & span:not([style]):nth-child(1) {
      top: 40%;
      right: 20px;
    }

    & span:not([style]):nth-child(2) {
      top: 26%;
      left: 21%;
    }

    & span:not([style]):nth-child(3) {
      top: 92%;
      left: 60px;
    }
  }
}

/* Cookie policy */
.cookie-page {
  padding-bottom: var(--sp-100);

  @media (width < 768px) {
    padding-top: clamp(80px, 57.27px + 6.0606vw, 130px);
  }

  @media (width >= 768px) {
    padding-top: 110px;
    padding-inline: var(--gutter);
  }

  .date {
    font-size: var(--fs-sm);
    color: var(--color-gray-dark);
    text-align: end;
  }

  & section {
    margin-top: var(--sp-40);

    &:first-of-type h2 {
      position: relative;
      isolation: isolate;

      &::before {
        content: "";
        position: absolute;
        right: 100%;
        bottom: 60%;
        z-index: -1;
        width: clamp(40px, 21.82px + 4.8485vw, 80px);
        aspect-ratio: 250 / 288;
        background: url("/assets/img/common/flake.webp?v=8dfd646437") center / contain no-repeat;
        opacity: 0.1;
      }
    }

    & + section {
      margin-top: var(--sp-80);
    }
  }

  & h2 {
    width: fit-content;
    margin-inline: auto;
    font-size: var(--fs-lg);
    font-weight: var(--fw-base);
    line-height: 1.45;
    letter-spacing: var(--ls);
    text-align: center;

    &::after {
      content: "";
      display: block;
      width: clamp(64px, 34.91px + 7.7576vw, 128px);
      height: 2px;
      margin: var(--sp-10) auto var(--sp-40);
      background: var(--color-line);
    }
  }

  & p {
    line-height: 2;
    text-align: justify;
  }

  & a {
    color: var(--color-blue);
    word-break: break-all;
  }
}

/* Layout */
.inner {
  width: min(100% - var(--gutter) * 2, var(--wide-w));
  margin-inline: auto;
}

.sec {
  position: relative;
  isolation: isolate;
  padding-block: var(--sec-pad, var(--sp-80));

  .heading + * {
    margin-top: var(--sp-40);
  }
}

.lead {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 1.8;
  text-wrap: pretty;

  & p + p,
  & p + .notes {
    margin-top: 0.5em;
  }

  &.center {
    text-align: center;
  }
}

.box {
  padding: var(--sp-30) var(--gutter);
  border: 1px solid var(--color-main);
  background: var(--box-bg, var(--color-white));

  &.inset {
    border-radius: var(--radius);
  }

  @media (width < 768px) {
    &:not(.inset) {
      margin-inline: calc(var(--gutter) * -1);
      border-inline: none;
    }
  }

  @media (width >= 768px) {
    padding-inline: var(--sp-40);
    border-radius: var(--radius);
  }
}

.notes {
  font-size: var(--fs-sm);
  list-style: none;
  line-height: 2;
  text-align: left;

  & li {
    position: relative;
    padding-left: 1em;

    &::before {
      content: "※";
      position: absolute;
      left: 0;
    }
  }

  .line {
    display: block;
  }
}

.list {
  list-style: none;

  & li {
    position: relative;
    padding-left: 1em;

    &::before {
      content: "・";
      position: absolute;
      left: 0;
    }
  }
}

/* Photo frame */
.frame {
  position: relative;
  container-type: inline-size;
  padding: clamp(6px, 4.18px + 0.4848vw, 10px);
  border: 1px solid var(--color-main);
  border-radius: var(--radius);
  background: var(--color-white);

  & img {
    width: 100%;
    aspect-ratio: var(--ratio, 503 / 400);
    object-fit: cover;
    border-radius: 5px;
  }
}

/* Venue card */
.venues {
  display: grid;
  gap: var(--sp-40);

  @media (width >= 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.venue {
  display: flex;
  flex-direction: column;

  .frame {
    --ratio: 560 / 380;
  }

  .ribbon {
    margin-top: calc(clamp(242px, 193.82px + 12.8485vw, 348px) * -33 / 348);
  }

  .period {
    margin-top: var(--sp-20);
  }

  .place {
    margin-block: var(--sp-20) var(--sp-40);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);

    > span {
      display: inline-block;
    }
  }

  .notes {
    width: fit-content;
    margin: auto auto 0;
    line-height: 1.6;
    color: var(--color-text);
  }

  .btn {
    margin-top: var(--sp-10);
  }
}

.badge {
  --badge-bg: var(--color-red);

  position: absolute;
  top: var(--sp-30);
  right: -1px;
  z-index: 1;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: clamp(96px, 70.55px + 6.7879vw, 152px);
  min-height: clamp(30px, 24.55px + 1.4545vw, 42px);
  padding: 0.1em 0.5em 0.1em 1.2em;
  font-size: var(--fs-lead);
  line-height: 1.2;
  color: var(--color-white);
  white-space: nowrap;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.25));

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--badge-bg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.75em 53%);
  }

  & small {
    font-size: 0.75em;
  }

  &.blue {
    --badge-bg: var(--color-blue);
  }
}

.ribbon {
  position: relative;
  display: grid;
  place-content: center;
  width: clamp(242px, 193.82px + 12.8485vw, 348px);
  aspect-ratio: 348 / 66;
  margin-inline: auto;
  font-size: var(--fs-h3);
  font-weight: var(--fw-base);
  line-height: 1;
  letter-spacing: var(--ls);
  color: var(--color-white);
  text-align: center;
  background: url("/assets/img/common/ribbon.webp?v=b16e4194f3") center / 100% 100% no-repeat;

  [lang="en"] {
    display: block;
    margin-bottom: 0.2em;
    font-family: var(--font-en);
    font-size: var(--fs-en-sm);
    font-weight: var(--fw-bold);
  }

  &.sm {
    width: clamp(174px, 94.91px + 21.0909vw, 348px);
    font-size: var(--fs-kicker);
  }
}

.period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-10) var(--sp-20);

  & dt {
    padding: 0.1em 0.9em;
    font-size: var(--fs-label);
    line-height: 1.5;
    color: var(--color-white);
    background: var(--color-blue);
  }

  & dd {
    font-size: var(--fs-lead);
    line-height: 1.4;
  }

  .num {
    font-size: var(--fs-num);
  }
}

/* Popup store */
.label {
  font-size: var(--fs-title);
  font-weight: var(--fw-base);
  line-height: 1.4;
  letter-spacing: var(--ls);
  color: var(--color-main);
  white-space: nowrap;

  & span {
    margin-left: 0.3em;
    font-family: var(--font-en);
    font-weight: var(--fw-bold);
  }
}

.popup {
  --box-bg: transparent;

  position: relative;
  display: grid;
  gap: var(--sp-30);
  padding-block: var(--sp-60) var(--sp-30);

  .label {
    position: absolute;
    top: 0;
    left: 50%;
    padding-inline: 0.6em;
    background: var(--color-bg);
    translate: -50% -50%;
  }

  @media (width >= 768px) {
    .lead {
      text-align: center;
    }

    .notes {
      justify-self: end;
    }
  }
}

/* Shops */
.shops {
  display: grid;
  gap: var(--sp-40);
  list-style: none;

  > li {
    display: grid;
    gap: var(--sp-20);
    align-content: start;
  }

  .store {
    container-type: inline-size;
    font-size: var(--fs-text);
    line-height: 1.5;
    text-align: center;

    & span {
      display: inline-block;
    }
  }

  @container (width < 27.6em) {
    .split > span {
      display: block;
    }
  }

  @media (width >= 768px) {
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;

    &:has(> li:only-child) {
      grid-template-columns: minmax(0, 560px);
    }
  }
}

/* Hero */
.hero {
  --sag: clamp(64px, 24.9px + 10.42vw, 150px);

  position: relative;
  isolation: isolate;

  &::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    background: radial-gradient(
      70% calc(var(--sag) * 10 / 3) at 50% calc(var(--sag) * -7 / 3),
      transparent 100%,
      color-mix(in srgb, var(--color-bg) 60%, transparent) 100%,
      var(--color-bg) 110%
    );
  }

  .kv img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & h1 {
    position: absolute;
    left: 50%;
    z-index: 1;
    isolation: isolate;
    translate: -50% 0;

    &::before {
      content: "";
      position: absolute;
      inset: 12% -2% -15% -10%;
      z-index: -1;
      border-radius: 50%;
      background: rgb(255 255 255 / 0.85);
      filter: blur(clamp(20px, 10.91px + 2.4242vw, 40px));
      translate: 4% -6%;
      rotate: 10deg;
    }
  }

  @media (width < 768px) {
    aspect-ratio: 375 / 562;

    &::after {
      height: 33%;
    }

    & h1 {
      top: 54%;
      width: 75%;
    }
  }

  @media (width >= 768px) {
    aspect-ratio: 1500 / 1124;

    &::after {
      height: 38%;
    }

    & h1 {
      top: 47.6%;
      width: 44.7%;
    }
  }
}

/* Top */
.top-page {
  overflow-x: clip;

  .sec:first-of-type {
    margin-top: calc(min(var(--sp-150) + var(--sp-30), max(0px, var(--hero-room) - var(--hero-gap))) * -1);
    padding-top: 0;

    @media (width < 768px) {
      --hero-room: 26.75vw;
      --hero-gap: 40px;
    }

    @media (width >= 768px) {
      --hero-room: 14.12vw;
      --hero-gap: 60px;
    }
  }
}

.outline {
  .intro {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--color-gray);
    text-align: center;

    & span {
      display: inline-block;
    }
  }

  .venues {
    margin-top: var(--sp-40);
  }

  .popup {
    margin-top: var(--sp-60);
  }

  .popup + .btn {
    margin-top: var(--sp-40);
  }
}

.rally .btns {
  margin-top: var(--sp-30);
}

/* Snow background */
.goods::before,
.sale::before {
  --arc: calc(225.4cqi - 385px);
  --arc-shadow: clamp(14px, 4.45px + 2.545cqi, 35px);

  width: var(--bg-w);
  background:
    radial-gradient(
        circle var(--arc) at 50% 100%,
        transparent calc(var(--arc) - var(--arc-shadow)),
        var(--bg-shadow, rgb(0 0 0 / 0.13)) var(--arc)
      )
      center top / 100% var(--arc) no-repeat,
    linear-gradient(var(--bg-tint, color-mix(in srgb, var(--color-blue) 40%, transparent)) 0 0),
    var(--bg-pattern, url("/assets/img/common/goods_pattern.webp?v=ecd51518b5")) center top / auto max(100%, 115.16cqi)
      no-repeat,
    var(--bg-color, var(--color-blue));
  mask:
    radial-gradient(circle var(--arc) at 50% 100%, #000 calc(var(--arc) - 1px), transparent var(--arc)) center top /
      100% var(--arc) no-repeat,
    linear-gradient(#000 0 0) center calc(var(--arc) - 1px) / 100% 100% no-repeat;
}

.goods {
  margin-block: var(--sp-40);
  padding-block: var(--sp-100);

  &::before,
  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  &::before {
    inset-block: 0;
    left: 50%;
    translate: -50% 0;
  }

  &::after {
    --card-w: clamp(160px, 81.82px + 20.8485vw, 460px);

    width: var(--card-w);
    aspect-ratio: 460 / 500;
    background: url("/assets/img/common/goods_card.webp?v=44ac72bdb6") center / contain no-repeat;
  }

  .deco {
    --card-w: clamp(140px, 74.09px + 17.5758vw, 460px);

    position: absolute;
    z-index: -1;
    width: var(--card-w);
    aspect-ratio: 459 / 500;
    background: url("/assets/img/top/goods_card02.webp?v=62d258f24a") center / contain no-repeat;
    pointer-events: none;
  }

  @media (width < 768px) {
    &::before {
      --bg-w: 192cqi;
    }

    &::after {
      top: 0;
      right: calc(var(--card-w) * -0.75);
    }

    .deco {
      bottom: 0;
      left: calc(var(--card-w) * -0.75);
    }
  }

  @media (width >= 768px) {
    &::before {
      --bg-w: 117cqi;
    }

    &::after {
      top: calc(var(--sp-100) * -1);
      right: max(-15%, (100% - 1500px) / 2 - 220px);
    }

    .deco {
      bottom: calc(var(--sp-100) * -1);
      left: max(-18%, (100% - 1500px) / 2 - 260px);
    }
  }

  .heading .sub {
    color: var(--color-white);
  }

  .frame {
    --ratio: auto 1516 / 853;

    width: min(100%, 778px);
    margin-inline: auto;
  }

  .shops {
    margin-top: var(--sp-40);
    color: var(--color-white);
    column-gap: var(--sp-20);

    .btn {
      --btn-line: var(--color-white);
      --btn-hover-line: var(--color-white);
    }

    .store {
      font-weight: var(--fw-xbold);
    }
  }
}

.shop {
  .lead {
    text-align: center;
  }

  .gallery {
    width: min(100%, 1000px);
    margin: var(--sp-40) auto 0;
  }

  :is(.box, .cta) {
    margin-top: var(--sp-30);

    > p {
      font-size: var(--fs-md);
      font-weight: var(--fw-bold);
      text-align: center;
    }

    > * + .btn {
      margin-top: var(--sp-20);
    }
  }

  .box {
    max-width: 800px;

    @media (width >= 768px) {
      margin-inline: auto;
    }

    > .notes {
      width: fit-content;
      margin-inline: auto;
    }

    > * + .notes {
      margin-top: var(--sp-30);
    }
  }
}

[data-zoom] a,
.slider .splide__slide a {
  display: block;

  &:hover {
    opacity: 1;
  }

  &:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: -3px;
  }

  @media (width < 768px) {
    cursor: zoom-in;
  }

  @media (width >= 768px) {
    cursor: default;
  }
}

[data-zoom="always"] a {
  cursor: zoom-in;
}

.slider[data-dragging],
.slider[data-dragging] .splide__slide a {
  cursor: grabbing;
}

.slider {
  & img {
    width: 100%;
    aspect-ratio: var(--ratio, 3 / 4);
    object-fit: cover;
  }

  .splide__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-30);
    margin-top: var(--sp-30);
    padding: 0;
    list-style: none;
  }

  .splide__pagination__page {
    display: block;
    width: clamp(8px, 3.45px + 1.2121vw, 18px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-line);
    transition:
      background-color var(--duration),
      scale var(--duration);

    &.is-active {
      background: var(--color-main);
      scale: 1.3;
    }

    &:focus-visible {
      outline: 2px solid var(--color-blue);
      outline-offset: 3px;
    }
  }
}

.serial {
  padding-block: var(--sp-80);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-diamond);
    mask: linear-gradient(#000 calc(100% - var(--sp-150)), transparent);
  }

  .copy {
    position: relative;
    display: grid;
    justify-items: center;
  }

  .code {
    border-radius: 8px;
    font-family: var(--font-en);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-xbold);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--color-menu);
    text-align: center;
    word-break: break-all;
    -webkit-tap-highlight-color: transparent;

    &:focus-visible {
      outline: 3px solid var(--color-blue);
      outline-offset: 4px;
    }
  }

  .tip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    padding: 0.3em 0.9em;
    border-radius: 4px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--color-white);
    white-space: nowrap;
    background: var(--color-menu);
    opacity: 0;
    translate: -50% 4px;
    transition:
      opacity var(--duration),
      translate var(--duration);
    pointer-events: none;

    &::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      border: 6px solid transparent;
      border-top-color: var(--color-menu);
      translate: -50% 0;
    }

    &:empty {
      display: none;
    }
  }

  .copy:has(.code:focus-visible) .tip,
  .copy[data-state] .tip {
    opacity: 1;
    translate: -50% 0;
  }

  @media (any-hover: hover) {
    .copy:has(.code:hover) .tip {
      opacity: 1;
      translate: -50% 0;
    }
  }

  .btn {
    margin-top: var(--sp-20);
  }

  .notes {
    width: fit-content;
    max-width: 700px;
    margin: var(--sp-40) auto 0;
    line-height: 2;
  }
}

.game {
  container-type: inline-size;
  padding-bottom: var(--sp-150);

  @media (width >= 768px) {
    padding-inline: var(--gutter);
  }

  .panel {
    --panel-w: min(1000px, 100cqi);

    padding-block: calc(var(--ornament-h) / 2 + var(--sp-20));
  }

  .about {
    display: grid;
    gap: var(--sp-30);
    max-width: none;

    & img {
      width: clamp(120px, 92.73px + 7.2727vw, 180px);
      margin-inline: auto;
    }

    & p {
      line-height: 1.8;
    }

    & p + p {
      margin-top: 1em;
    }

    @media (width >= 768px) {
      grid-template-columns: auto 1fr;
      align-items: start;
      gap: var(--sp-40);
      padding-inline: var(--sp-20);
    }
  }

  .panel + .inner {
    padding-top: var(--sp-40);
  }
}

.contact {
  color: var(--color-white);
  text-align: center;
  background: var(--color-navy);

  .heading .sub {
    color: var(--color-line);
  }

  & h3 {
    margin-bottom: var(--sp-10);
    font-size: var(--fs-mail);
    font-weight: var(--fw-xbold);
    line-height: 1.6;
    letter-spacing: var(--ls);

    &::after {
      content: "";
      display: block;
      width: clamp(178px, 164.55px + 3.4545vw, 206px);
      aspect-ratio: 300 / 11;
      margin: var(--sp-10) auto 0;
      background: url("/assets/img/common/title_line02.webp?v=b312db310e") center / contain no-repeat;
    }
  }

  .lead {
    font-size: var(--fs-sm);
    line-height: 2;
  }

  .mail {
    margin: var(--sp-10) 0 var(--sp-60);
  }

  .addr {
    margin-top: var(--sp-20);
  }

  :is(.mail, .addr) {
    font-size: var(--fs-mail);
    font-weight: var(--fw-bold);
    line-height: 1.5;
    overflow-wrap: anywhere;

    & a {
      color: var(--color-white);
      text-underline-offset: 0.3em;
    }
  }

  .notes {
    width: min(100%, 546px);
    margin: var(--sp-20) auto 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    line-height: 1.7;
  }

  .group span {
    display: inline-block;
    margin-inline: 0.5em;
  }

  .lead p:not(.group) span {
    @media (width >= 768px) {
      display: inline-block;
    }
  }
}

/* Castle background */
.castle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: min(100%, 1500px);
  aspect-ratio: 1500 / 666;
  translate: -50% 0;
  background: url("/assets/img/common/castle_bg.webp?v=243084922b") center bottom / cover no-repeat;
  opacity: 0.3;
}

/* Large image */
.visual {
  width: min(100%, 1000px);
  margin-inline: auto;

  & img {
    width: 100%;
    aspect-ratio: var(--ratio, auto);
    object-fit: cover;
  }
}

/* Caption */
.caption {
  margin-top: var(--sp-20);
  font-size: var(--fs-sm);
  text-align: center;
}

@media (width >= 768px) {
  .slider + .caption,
  [data-zoom]:not([data-zoom="always"]) .caption {
    display: none;
  }
}

/* Sub heading */
.head {
  display: grid;
  justify-items: center;
  text-align: center;

  .kicker {
    font-size: var(--fs-kicker);
    font-weight: var(--fw-xbold);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--color-main);
  }

  & h2 {
    scroll-margin-top: clamp(100px, 77.27px + 6.0606vw, 150px);
    font-size: var(--fs-spot);
    font-weight: var(--fw-base);
    line-height: 1.4;
    letter-spacing: var(--ls);
    color: var(--color-main);
    text-wrap: balance;

    > span {
      position: relative;
      isolation: isolate;

      &::after {
        --deco-w: clamp(75px, 40.91px + 9.0909vw, 150px);

        content: "";
        position: absolute;
        right: calc(var(--deco-w) * -0.5);
        bottom: 0;
        z-index: -1;
        width: var(--deco-w);
        aspect-ratio: 131 / 27;
        background: url("/assets/img/common/title_deco.webp?v=2434f9907e") center / contain no-repeat;
      }
    }
  }

  &::after {
    content: "";
    width: clamp(178px, 164.55px + 3.4545vw, 206px);
    aspect-ratio: 300 / 11;
    margin-top: var(--sp-10);
    background: url("/assets/img/common/title_line02.webp?v=b312db310e") center / contain no-repeat;
  }
}

/* Info list */
.info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-20);

  & dt {
    --tag-ls: 0.2em;

    width: calc((var(--tag-chars, 4) + 1.6) * 1em + var(--tag-ls) * (var(--tag-chars, 4) + 1));
    padding: 0.15em 0.8em 0.15em calc(0.8em + var(--tag-ls));
    font-size: var(--fs-tag);
    line-height: 1.5;
    letter-spacing: var(--tag-ls);
    color: var(--color-white);
    text-align-last: justify;
    background: var(--color-blue);

    &.holiday {
      background: var(--color-pink);
    }

    &.other {
      background: var(--color-gray);
    }

    &.tight {
      padding-inline: 0.6em;
      letter-spacing: 0;
    }
  }

  & dd {
    padding-top: calc((var(--fs-tag) * 1.8 - 1.6em) / 2);
    font-size: var(--fs-body);
    line-height: 1.6;
  }

  @media (width < 375px) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-10);

    & dt {
      justify-self: start;
    }

    & dd {
      padding-top: 0;
    }

    & dd + dt {
      margin-top: var(--sp-10);
    }
  }

  .list + p {
    margin-top: 1em;
  }

  * + .notes {
    margin-top: 0.5em;
  }

  .line {
    display: block;
  }

  & strong {
    font-weight: var(--fw-bold);
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

/* Page links */
.toc {
  padding: clamp(15px, 8.18px + 1.8182vw, 30px) clamp(20px, 6.36px + 3.6364vw, 50px);
  border-radius: var(--radius);
  background: var(--color-key);

  & ul {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), max-content);
    justify-content: space-evenly;
    gap: var(--sp-20) var(--sp-30);
    font-size: var(--fs-sm);
    line-height: 1.6;
  }

  & a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 0.25em;
    white-space: nowrap;
    transition: color var(--duration);

    @media (any-hover: hover) {
      &:hover {
        color: var(--color-link);
        opacity: 1;
      }
    }
  }
}

/* Venue page */
.venue-page {
  --sec-pad: var(--sp-40);

  overflow-x: clip;

  @media (width < 768px) {
    padding-top: clamp(80px, 57.27px + 6.0606vw, 130px);
  }

  @media (width >= 768px) {
    padding-top: 110px;
  }

  > .frame {
    --ratio: 980 / 504;

    width: min(100% - var(--gutter) * 2, 1000px);
    margin-inline: auto;

    @media (width < 768px) {
      margin-top: var(--sp-60);
    }

    @media (width >= 768px) {
      margin-top: var(--sp-40);
    }
  }

  > .period {
    justify-content: center;
    margin-top: var(--sp-30);
    padding-inline: var(--gutter);
  }

  > .toc {
    width: min(100% - var(--gutter) * 2, 778px);
    margin: var(--sp-30) auto 0;
  }

  .stamp,
  .shop:not(.sale) {
    --sec-pad: var(--sp-80);
  }
}

.booth {
  .cover {
    display: grid;
    justify-items: center;
    gap: var(--sp-20);
    width: min(100%, 778px);
    margin-inline: auto;
  }

  .frame {
    --ratio: auto 1516 / 853;

    width: 100%;
  }

  .cover .caption {
    margin-top: 0;
  }

  .shops {
    margin-top: var(--sp-40);
  }
}

.stamp,
.campaign {
  .visual {
    margin-top: var(--sp-40);
  }

  .btn {
    margin-top: var(--sp-40);
  }
}

.campaign {
  padding-bottom: var(--sp-100);

  .info {
    max-width: 800px;
    margin: var(--sp-40) auto 0;
  }
}

.stamp .lead {
  @media (width < 768px) {
    text-align: left;
  }

  @media (width >= 768px) {
    & span {
      display: inline-block;
    }
  }
}

.guide {
  max-width: 800px;
  margin-top: var(--sp-60);
  font-size: var(--fs-body);
  line-height: 1.8;
  text-align: left;

  @media (width >= 768px) {
    margin-inline: auto;
  }

  & h3 {
    font-size: var(--fs-md);
    font-weight: var(--fw-xbold);
    letter-spacing: var(--ls);
    color: var(--color-main);
  }

  & h4 {
    margin-top: var(--sp-20);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls);
  }

  > * + h3 {
    margin-top: var(--sp-40);
  }

  .info {
    --tag-chars: 5;

    margin-top: var(--sp-10);
  }

  :is(.notes, .list) {
    margin-top: var(--sp-10);
  }

  .list {
    font-size: var(--fs-sm);
  }
}

.stamp .visual {
  --ratio: auto 2000 / 1414;
}

.campaign .visual {
  --ratio: 1000 / 1418;
}

.spots .spot + .spot {
  margin-top: var(--sp-100);
}

.spot {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "head" "photo" "text" "info";
  gap: var(--sp-30);

  > .flakes {
    inset: calc(var(--sp-100) / -2) calc(50% - 50vw);

    & span {
      --top: var(--y);
    }
  }

  .head {
    grid-area: head;
  }

  .photos {
    grid-area: photo;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: var(--sp-20);
  }

  .frame {
    width: 78%;

    &.wide {
      --ratio: 780 / 400;

      width: min(100%, 800px);
    }
  }

  > p {
    grid-area: text;
    font-size: var(--fs-body);
    line-height: 2;
  }

  .info {
    grid-area: info;
    align-self: start;
  }

  .badge {
    font-size: min(var(--fs-label), 4cqi);
  }

  &.stack {
    > p,
    .info {
      justify-self: center;
      width: min(100%, 780px);
    }
  }

  @media (width >= 768px) {
    &:not(.stack) {
      grid-template-columns: minmax(0, 648fr) minmax(0, 523fr);
      grid-template-rows: auto auto 1fr;
      grid-template-areas:
        "head photo"
        "text photo"
        "info photo";

      .frame {
        width: 100%;
      }
    }

    &.rev {
      grid-template-columns: minmax(0, 523fr) minmax(0, 648fr);
      grid-template-areas:
        "photo head"
        "photo text"
        "photo info";
    }

    &.end {
      grid-template-areas: "head" "text" "info" "photo";
    }

    .pair {
      grid-template-columns: repeat(2, minmax(0, 523px));
      justify-content: center;
      column-gap: var(--sp-40);

      .frame {
        width: 100%;
      }
    }
  }
}

.photospot {
  padding-bottom: var(--sp-60);

  .spot {
    grid-template-areas: "head" "text" "info";
  }

  @media (width >= 768px) {
    .head h2 > span::before {
      content: "";
      position: absolute;
      inset: 12% -2% -15% -10%;
      z-index: -1;
      border-radius: 50%;
      background: rgb(255 255 255 / 0.85);
      filter: blur(0.5em);
      translate: 4% -6%;
      rotate: 10deg;
    }
  }
}

/* Sale */
.sale {
  --sec-pad: var(--sp-150);

  padding-top: var(--sp-60);
  color: var(--color-white);

  &::before,
  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  &::before {
    inset-block: 0;
    left: 50%;
    translate: -50% 0;
  }

  &:has(+ .sale)::before {
    bottom: -6%;
  }

  &::after {
    --card-w: clamp(160px, 81.82px + 20.8485vw, 436px);

    top: 0;
    width: var(--card-w);
    aspect-ratio: 460 / 500;
    background: url("/assets/img/common/goods_card.webp?v=44ac72bdb6") center / contain no-repeat;
  }

  .lead {
    font-size: var(--fs-md);
    text-align: center;
  }

  .heading.light .sub {
    color: var(--color-white);
  }

  .slider {
    --ratio: 1000 / 1778;
  }

  &:not(.mirai) .splide__pagination__page.is-active {
    background: var(--color-white);
  }

  .box {
    color: var(--color-text);

    > p {
      font-size: var(--fs-base);
    }
  }

  @media (width < 768px) {
    &::before {
      --bg-w: 300cqi;
    }

    &::after {
      right: calc(var(--card-w) * -0.6);
    }
  }

  @media (width >= 768px) {
    &::before {
      --bg-w: 175cqi;
    }

    &::after {
      right: max(-12%, (100% - 1500px) / 2 - 140px);
    }
  }

  &.mirai {
    color: var(--color-text);

    &::before {
      --bg-color: var(--color-key);
      --bg-tint: transparent;
      --bg-pattern: url("/assets/img/common/goods_pattern_dark.webp?v=b20e3180ab");
      --bg-shadow: color-mix(in srgb, var(--color-blue) 50%, transparent);
    }

    &::after {
      top: calc(var(--card-w) * -0.5);
      aspect-ratio: 424 / 461;
      background-image: url("/assets/img/yokohama/tour_card.webp?v=1c9689f7bb");
    }

    .heading {
      --heading-color: var(--color-blue);
    }

    @media (width < 768px) {
      &::after {
        right: auto;
        left: calc(var(--card-w) * -0.6);
      }
    }

    @media (width >= 768px) {
      &::after {
        right: auto;
        left: max(-12%, (100% - 1500px) / 2 - 190px);
      }
    }
  }
}

.terms {
  width: fit-content;
  margin: var(--sp-20) auto 0;
  font-size: var(--fs-sm);
  line-height: 2;
  text-align: left;

  > * + * {
    margin-top: 1em;
  }

  & h3 {
    font-size: inherit;
    font-weight: var(--fw-bold);
    text-align: center;

    & span {
      display: block;
    }
  }

  .notes strong {
    font-weight: var(--fw-bold);
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

.open {
  margin-top: var(--sp-20);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 2;
  text-align: center;

  & dd {
    line-height: 1.4;
  }

  .num {
    font-size: clamp(1.25rem, 0.9091rem + 1.4545vw, 2rem);
  }
}

.shop .gallery .visual {
  --ratio: 16 / 9;
}
