/* The artwork and botanical frames keep their scale; only the reading areas adapt. */
.row dd,
.product,
.profile-bio,
.note-scroll {
  min-width: 0;
  overflow-wrap: anywhere;
}

.socials a {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.action {
  min-height: 46px;
  max-width: 100%;
}

.action::after,
.accordion summary::after {
  flex-shrink: 0;
}

.page-top {
  width: 44px;
  height: 44px;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

.note-scroll {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .wrap { width: 88%; }
  .panel { padding-right: 8%; padding-left: 8%; }
  .row { grid-template-columns: 112px minmax(0, 1fr); font-size: 15px; }
  .row dt { font-size: 14px; }
  .hero { height: clamp(760px, 88vw, 900px); }
  .hero .giant { font-size: clamp(210px, 25vw, 275px); top: -45px; }
  .hero-rail { left: 4%; font-size: 22px; }
  .hero-dates { top: auto; bottom: 65px; right: 5%; width: 220px; }
  .date-line { font-size: 82px; }
  .hero-year { font-size: 22px; }
  .hero-place { font-size: 16px; }
  .hero-english { font-size: 9px; margin-top: 16px; }
  .intro h1 { width: 75%; font-size: 31px; }
  .intro .statement { width: 75%; font-size: 22px; }
  .intro .copy { max-width: 570px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goods-body { padding: 30px; }
  .product { padding: 18px; }
  .event-intro { width: 88%; }
  .event-intro h3 { font-size: 32px; }
  .event-intro p { font-size: 17px; }
  .section-title { font-size: 66px; }
  .section-title::before,
  .section-title::after { margin-right: 18px; margin-left: 18px; }
}

@media (min-width: 601px) and (max-width: 800px) {
  .hero-art { width: 125%; left: -13%; object-position: 58% 35%; }
  .hero-dates { width: 215px; right: 7%; bottom: 42px; }
  .date-line { font-size: 80px; }
  .hero-rail { font-size: 22px; }
  .intro .copy { max-width: 510px; }
  .profile-card { max-width: 78%; padding: 40px; }
  .profile-bio { font-size: 14px; }
  .products,
  .products.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .goods-body { padding: 24px; }
  .product { padding: 16px; font-size: 14px; }
  .product .product-art { height: 200px; }
  .note-list { font-size: 14px; }
  .note-scroll p { font-size: 14px; }
  .guide .section-title { font-size: 46px; }
}

@media (max-width: 600px) {
  .hero {
    height: 760px;
    height: clamp(700px, 100svh, 850px);
  }
  .hero-art { object-position: 63% 35%; }
  .hero .giant { font-size: clamp(132px, 37vw, 170px); }
  .hero-rail { left: 5%; top: 30%; font-size: 17px; }
  .hero-rail small { font-size: 9px; margin-right: 4px; }
  .hero-dates { right: 7%; bottom: 27px; width: 171px; }
  .date-line { font-size: 65px; gap: 9px; }
  .date-line.end { margin-left: 49px; }
  .date-line small { font-size: 11px; padding: 5px; }
  .hero-year { font-size: 19px; }
  .hero-place { font-size: 13px; }

  .title-band { height: 200px; gap: 16px; }
  .title-band .kanji { font-size: clamp(104px, 29vw, 138px); flex-shrink: 0; }
  .title-band .subtitle { font-size: 12px; flex-shrink: 0; }
  .title-band .subtitle small { font-size: 9px; letter-spacing: .28em; }
  .intro { padding-right: 8%; padding-left: 8%; }
  .intro h1 { font-size: clamp(23px, 6.3vw, 28px); letter-spacing: .06em; }
  .intro .statement { font-size: 18px; letter-spacing: 0; }
  .intro .copy { font-size: 14px; line-height: 2.25; }

  .profile-card { max-width: 87%; padding: 31px 24px 40px; }
  .profile-name { font-size: 30px; }
  .profile-name span { font-size: 15px; }
  .profile-bio { font-size: 13px; line-height: 2; }
  .socials { gap: 12px; flex-wrap: wrap; }

  .section-title { font-size: clamp(40px, 11vw, 52px); }
  .section-title::before,
  .section-title::after { font-size: 10px; margin: 0 8px; letter-spacing: .08em; }
  .section-title.jp { font-size: 24px; }
  .guide .section-title { font-size: clamp(30px, 8.3vw, 40px); }
  .section-panel > .section-title { margin-bottom: -27px; }
  .section-panel .panel { padding-top: 76px; }
  .panel { padding-right: 6.5%; padding-left: 6.5%; }
  .row { font-size: 14px; line-height: 2; }
  .row dd { padding-left: 0; }
  .row dt { font-size: 15px; }
  .action { font-size: 14px; min-width: 185px; gap: 15px; }
  .big-link { font-size: clamp(18px, 5vw, 23px); gap: 10px; max-width: 86%; }
  .social-cta p { font-size: 15px; }
  .map { height: 190px; }
  .map-label { left: 42%; font-size: 10px; padding: 6px 9px; white-space: nowrap; }
  .map small { font-size: 9px; }

  .accordion summary { min-height: 76px; padding: 18px 13px; gap: 11px; font-size: 14px; letter-spacing: .02em; }
  .accordion summary .number { min-width: 25px; flex-shrink: 0; font-size: 23px; }
  .accordion summary::after { width: 34px; height: 34px; line-height: 33px; }
  .goods-body { padding: 20px 16px 26px; }
  .products,
  .products.two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .product { padding: 20px; }
  .product .product-art { height: 240px; }
  .product small { font-size: 12px; line-height: 1.8; }
  .event-intro h3 { font-size: 25px; line-height: 1.8; }
  .event-intro p { font-size: 14px; }
  .note-list { font-size: 13px; line-height: 1.95; }
  .identity { font-size: 13px; padding: 17px; }
  .note-frame { width: 85%; padding: 20px 17px; }
  .note-scroll { max-height: 350px; padding-right: 12px; }
  .note-scroll p { font-size: 13px; }
  .address-note { font-size: 12px; }
  .guide .coming { font-size: 32px; }
  .guide .guide-note { font-size: 13px; }

  .footer { padding-right: 18px; padding-left: 18px; }
  .footer .big-link { max-width: 88%; }
  .footer .contact { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; }
  .credit span { font-size: 14px; }
  .copyright { font-size: 11px; }
  .page-top { right: max(13px, env(safe-area-inset-right)); bottom: max(13px, env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .profile-card { padding-right: 20px; padding-left: 20px; }
  .intro .statement { font-size: 16px; }
  .intro .copy { font-size: 13px; }
  .big-link { font-size: 17px; gap: 6px; }
  .accordion summary { gap: 8px; font-size: 13px; }
  .accordion summary .number { min-width: 21px; font-size: 21px; }
  .event-intro h3 { font-size: 22px; }
}

@media (hover: none) {
  .action, .big-link, .socials a, .page-top, .accordion summary { -webkit-tap-highlight-color: transparent; }
}

/* A regular anchor destination remains available without JavaScript. */
.links-pending {
  display: none;
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid currentColor;
  font: 13px/1.9 "Hiragino Kaku Gothic ProN", sans-serif;
}
.links-pending:target { display: block; }
.links-pending:focus { outline: 2px solid currentColor; outline-offset: 5px; }
