[id] { scroll-margin-top: 85px; }
.brand-logo { display: block; width: 124px; }
footer .brand-logo { filter: brightness(0); }
a:focus-visible, select:focus-visible { outline: 3px solid #005d80; outline-offset: 3px; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.page-gallery-single { grid-template-columns: minmax(0, 1fr); }
.page-gallery .gallery-main { background: white; }
.page-gallery .gallery-thumb { background: #fff; }
.page-photo-missing {
  min-height: 270px;
  display: grid;
  place-items: center;
  background: #e4f6fd;
  color: #155878;
}
.page-options, .page-single-spec {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border: 2px solid #1e2025;
  border-radius: 17px;
  background: #fff;
  box-shadow: 3px 3px 0 #1e2025;
}
.page-options label { font-weight: 700; }
.page-options select {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  padding: 10px 24px 10px 10px;
  border: 1px solid #65717a;
  border-radius: 8px;
  background: #fffbf8;
}
.page-single-spec span, .page-pack-description { color: #3e4850; }
.page-pack-description { font-size: .9rem; }
.page-details {
  border-block: 2px solid #1e2025;
  background: #dff4fd;
  padding-block: clamp(36px, 5vw, 72px);
}
.page-details h2, .story-origin h2, .story-standard h2, .story-close h2 {
  font: 700 clamp(3rem, 5vw, 5.4rem)/.82 Dongle, sans-serif;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}
.page-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-detail-oli { width: clamp(53px, 8vw, 104px); max-height: 88px; object-fit: contain; transform: rotate(7deg); }
.page-detail-layout, .story-origin-layout, .story-standard-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(22px, 5vw, 56px); align-items: center; }
.page-detail-text-only { grid-template-columns: minmax(0,1fr); }
.page-detail-text-only .page-features { grid-template-columns: repeat(auto-fit,minmax(min(100%, 215px),1fr)); }
.page-scene { overflow: hidden; border: 2px solid #1e2025; border-radius: 23px; background: #fff; box-shadow: 4px 4px 0 #1e2025; }
.page-scene img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.page-features { display: grid; gap: 12px; }
.page-features div, .kit-contents {
  padding: 17px 20px;
  border: 2px solid #1e2025;
  border-radius: 16px;
  background: #fffbf8;
}
.page-features h3, .kit-contents h3 { font: 700 2.45rem/.8 Dongle, sans-serif; margin-bottom: 6px; }
.kit-contents { margin-top: 20px; }
.kit-contents ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(195px,1fr)); gap: 5px 15px; list-style: disc; margin: 10px 0 0 18px; }
.page-next { padding-block: 12px 30px; }
.page-next .collection-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.story-hero { padding-block: clamp(46px,7vw,100px); background: #2ba9dd; border-bottom: 2px solid #1e2025; }
.story-hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 25px; align-items: center; }
.story-label { font-weight: 700; margin-bottom: 15px; }
.story-hero h1 { font: 700 clamp(3.35rem, 8vw, 8rem)/.77 Dongle, sans-serif; letter-spacing: -.025em; }
.story-lead { max-width: 525px; margin-top: 20px; font-size: clamp(1.05rem,2vw,1.35rem); }
.story-mascot { position: relative; display: grid; place-items: center; width: min(96%, 330px); aspect-ratio: 1; justify-self: center; isolation: isolate; }
.story-mascot::before { content: ""; z-index: -1; position: absolute; width: 92%; aspect-ratio: 1; background: #f8d438; border-radius: 50%; }
.story-mascot img { width: 68%; max-height: 93%; object-fit: contain; transform: rotate(-7deg); filter: drop-shadow(1px 2px 0 #fff); }
.story-origin, .story-standard, .story-close { padding-block: clamp(38px, 7vw, 95px); }
.story-origin .page-scene img { aspect-ratio: 5/4; object-fit: cover; object-position: center 44%; }
.story-origin p, .story-standard p, .story-close p { font-size: 1.16rem; line-height: 1.6; }
.story-standard { border-block: 2px solid #1e2025; background: #f8d438; }
.story-standard blockquote { margin: 0; padding: 30px; border: 2px solid #1e2025; border-radius: 23px; box-shadow: 5px 5px 0 #1e2025; background: #fffbf8; font: 700 clamp(2.6rem, 5vw, 4.8rem)/.84 Dongle,sans-serif; }
.story-close p { max-width: 610px; }
@media (max-width: 760px) {
  .story-hero-layout, .story-origin-layout, .story-standard-layout, .page-detail-layout { grid-template-columns: minmax(0,1fr); }
  .story-mascot { width: min(52%, 190px); }
  .story-origin .page-scene { grid-row: 2; }
}
@media (max-width: 640px) {
  header .brand-logo { width: 100px; }
}


.story-factory {
  padding-block: clamp(38px, 6vw, 84px);
  border-bottom: 2px solid #1e2025;
  background: #dff4fd;
}
.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}
.factory-intro h2 {
  margin-bottom: 16px;
  font: 700 clamp(3rem, 5vw, 5.4rem)/.82 Dongle, sans-serif;
  letter-spacing: -.015em;
}
.factory-intro p { font-size: 1.16rem; line-height: 1.6; }
.factory-photos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.factory-photos figure { margin: 0; min-width: 0; }
.factory-photos img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #1e2025;
  border-radius: 16px;
}
.factory-photos figcaption { margin-top: 8px; font-size: 1rem; line-height: 1.3; font-weight: 600; }
@media (max-width: 760px) {
  .factory-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .factory-photos { grid-template-columns: 1fr; gap: 22px; }
}
