@font-face {
  font-family: "Source Han Serif CN";
  src: url("https://xhs.wangchaohd.com/good-store/v1/assets/fonts/SourceHanSerifCN-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Serif CN";
  src: url("https://xhs.wangchaohd.com/good-store/v1/assets/fonts/SourceHanSerifCN-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ebdfcf;
  --card: #fffaf1;
  --ink: #855620;
  --accent: #ff2168;
  --surface: #ffffff;
  --content-max: 940px;
  --motion: 200ms;
  --font-body: "Source Han Serif CN", serif;
  --font-ui: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; overflow-x: clip; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 18px; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #7b5a42;
}

.hero__pc {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero__mobile-copy { display: none; }
.hero__mobile-background { display: none; }
.mobile-story { display: none; }
main { overflow: hidden; }

.story-section {
  width: min(calc(100% - 64px), var(--content-max));
  margin-inline: auto;
  padding-block: 90px 70px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 80px;
  align-items: start;
}

.story-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.story-column--left { gap: 88px; }
.story-column--right { gap: 88px; }

.intro-card {
  width: calc(100% + 32px);
  margin-left: -16px;
}

.intro-card img { width: 100%; }

.case-column {
  display: flex;
  flex-direction: column;
}

#cases-left { gap: 52px; }
#cases-right { gap: 76px; }

.case-card {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.case-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; }

.case-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 10px 10px 30px;
  background: var(--card);
  transition: box-shadow var(--motion) ease;
}

.case-card:hover .case-card__media { box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); }

.case-card__image {
  width: 100%;
  aspect-ratio: 340 / 205;
  object-fit: cover;
}

.case-card[data-case-id="vol-6"] .case-card__image { object-position: 52% 42%; }
.case-card[data-case-id="vol-7"] .case-card__image { object-position: 42% 48%; }

.case-card__play-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.case-card__title {
  display: block;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.case-card__author {
  display: block;
  width: 146px;
  margin-top: 22px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.35;
}

.case-card__author::after {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 249 / 5;
  margin-top: 8px;
  background: left center / 100% 100% no-repeat url("https://xhs.wangchaohd.com/good-store/v1/assets/images/author-divider-pc.png");
}

.closing-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing-logo { width: 149px; }
.closing-copy { margin-top: 8px; }
.closing-copy p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.65; }
.closing-copy p:nth-child(3) { margin-top: 22px; }
.closing-copy p:last-child { color: var(--accent); }

.site-footer {
  width: calc(100% - 64px);
  margin-inline: auto;
  border-top: 1px solid #956435;
}

.site-footer__inner {
  width: min(100%, var(--content-max));
  min-height: 108px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17120e;
}

.site-footer__inner img { width: 105px; }
.site-footer__inner p { margin: 0; font-family: var(--font-ui); font-size: 14px; }

body.video-dialog-open { overflow: hidden; }

.video-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  opacity: 0;
  transition: opacity var(--motion) ease;
}

.video-dialog[open] { display: grid; place-items: center; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--motion) ease; }
.video-dialog.is-open { opacity: 1; }
.video-dialog.is-open::backdrop { opacity: 1; }
.video-dialog.is-closing { pointer-events: none; }
.video-dialog__content { position: relative; width: min(813.33px, calc(100vw - 32px)); }
#case-video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border: 0; box-shadow: none; }
.video-dialog__close {
  position: absolute;
  top: calc(100% + 48px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  color: #efebe7;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}
.video-dialog__close img { width: 42px; height: 42px; }
@media (hover: hover) and (pointer: fine) {
  .video-dialog__close:focus-visible { outline: 2px solid #efebe7; outline-offset: 4px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .story-section {
    width: min(calc(100% - 48px), 940px);
    padding-block: 70px 64px;
  }

  .story-grid { column-gap: 48px; }
  .story-column--left { gap: 50px; }
  .story-column--right { gap: 62px; }
  .intro-card { width: 100%; margin-left: 0; }
  #cases-left { gap: 68px; }
  #cases-right { gap: 78px; }
  .case-card__media { padding: 9px 9px 27px; }
  .case-card__play-hint { left: 9px; bottom: 7px; font-size: 10px; }
  .case-card__title { margin-top: 18px; font-size: 16px; }
  .case-card__author { margin-top: 17px; font-size: 11px; }
  .closing-logo { width: 210px; }
  .closing-copy p { font-size: 13px; }
  .site-footer__inner { width: min(100%, 940px); }
}

@media (max-width: 767px) {
  .hero {
    position: relative;
    height: auto;
    aspect-ratio: 750 / 862;
    background: #ad7d50;
  }

  .hero__pc { display: none; }
  .hero__mobile-background { width: 100%; height: 100%; display: block; object-fit: cover; }
  .hero__mobile-copy {
    position: absolute;
    inset: 0;
    display: block;
  }

  .hero__mobile-brand { position: absolute; top: 20px; left: 18px; width: 104px; }
  .hero__mobile-good-store { position: absolute; top: 21px; right: 20px; width: 58px; }
  .hero__mobile-title { position: absolute; top: 82px; left: 50%; width: 220px; max-width: 70%; opacity: 1; transform: translateX(-50%); transition: opacity 1600ms ease 200ms; }
  html.js .hero__mobile-title { opacity: 0; }
  html.js .hero.is-mobile-ready .hero__mobile-title { opacity: 1; }

  .story-section, .site-footer { display: none; }
  .mobile-story { display: block; background: var(--paper); }
  .mobile-intro { height: 176px; display: grid; place-items: center; background: #fff; }
  .mobile-intro img { width: 218px; }
  .mobile-questions { min-height: 430px; display: grid; place-items: start center; padding-top: 20px; }
  .mobile-questions img { width: 276px; }

  .mobile-cases { --mobile-page-gutter: max(0px, calc((100vw - 400px) / 2)); width: min(100%, 400px); margin-inline: auto; padding: 52px min(5.87vw, 22px) 0; }
  .mobile-case { width: 100%; display: block; padding: 0; color: var(--ink); text-align: left; background: transparent; border: 0; cursor: pointer; }
  html.js .mobile-case { opacity: 0; transition: opacity 1500ms ease; }
  html.js .mobile-case.is-visible { opacity: 1; }
  .mobile-case + .mobile-case { margin-top: 76px; }
  .mobile-case:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
  .mobile-case__top { position: relative; display: block; height: min(62.93vw, 236px); }
  .mobile-case__media { position: absolute; top: 0; width: min(57.6vw, 216px); padding: 9px 9px 20px; background: #fff; }
  .mobile-case:nth-child(odd) .mobile-case__media { left: 0; }
  .mobile-case:nth-child(even) .mobile-case__media { right: 0; }
  .mobile-case__image { width: 100%; aspect-ratio: 395 / 413; object-fit: cover; }
  .mobile-case__play-hint { position: absolute; left: 9px; bottom: 5px; font-size: 9px; line-height: 1; }
  .mobile-case__volume { position: absolute; top: 0; width: 81px; color: var(--ink); font-size: 28px; line-height: 1; }
  .mobile-case:nth-child(odd) .mobile-case__volume { right: min(5.87vw, 22px); }
  .mobile-case:nth-child(even) .mobile-case__volume { left: 0; }
  .mobile-case__author { position: absolute; bottom: 0; width: 125px; padding-bottom: 10px; font-family: var(--font-ui); font-size: 10px; line-height: 1.2; }
  .mobile-case:nth-child(odd) .mobile-case__author { right: calc(-1 * min(5.87vw, 22px)); }
  .mobile-case:nth-child(even) .mobile-case__author { left: calc(-1 * min(5.87vw, 22px)); padding-left: min(5.87vw, 22px); }
  .mobile-case__author::after { content: ""; position: absolute; right: calc(-1 * var(--mobile-page-gutter)); bottom: 0; width: calc(125px + var(--mobile-page-gutter)); height: 3px; background: left center / 100% 100% no-repeat url("https://xhs.wangchaohd.com/good-store/v1/assets/images/mobile/author-line.png"); }
  .mobile-case:nth-child(even) .mobile-case__author::after { right: auto; left: calc(-1 * var(--mobile-page-gutter)); transform: scaleX(-1); }
  .mobile-case__title { display: block; margin-top: 24px; font-size: 17px; font-weight: 500; line-height: 1.45; }

  .mobile-closing { width: min(calc(100% - 44px), 331px); margin: 72px auto 0; padding: 48px 0 64px; border-top: 1px solid #a16e3c; text-align: center; }
  .mobile-closing__copy p { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.65; }
  .mobile-closing__copy p:nth-child(3) { margin-top: 22px; }
  .mobile-closing__copy p:last-child { color: var(--accent); }
  .mobile-closing__slash { width: 84px; margin: 22px auto 30px; }
  .mobile-closing__brand { width: 125px; margin-inline: auto; }
  .mobile-closing__title { width: 181px; margin: 24px auto 0; }

  .video-dialog__content { width: min(325px, calc(100vw - 32px)); }
  .video-dialog__close { top: calc(100% + 20px); }
  .video-dialog__close img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0ms; }
  .hero__mobile-title { transition-duration: 200ms; }
  .mobile-case { transition-duration: 200ms; }
}
