.nav-group { position: relative; display: flex; align-items: center; gap: 1px; border: 1px solid #decdb8; border-radius: 999px; background: #fffbf5; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-group:hover, .nav-group:focus-within, .nav-group:has(details[open]), .nav-group:has(.active-parent) { border-color: #b37238; background: #f8ecdd; box-shadow: 0 3px 9px #62381617; }
.nav-group details { position: static; }
.nav-group summary { padding: 10px 8px 10px 2px; cursor: pointer; list-style: none; transition: color .2s ease; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group ul { position: absolute; top: 100%; left: 0; z-index: 9; list-style: none; background: #fffaf3; border: 1px solid var(--line); border-top: 3px solid #bd6719; border-radius: 0 0 9px 9px; padding: 8px; margin: 0; width: 272px; box-shadow: 0 14px 30px #241d152c; }
.nav-group ul a { display: grid; gap: 3px; padding: 9px 10px; white-space: normal; border-radius: 5px; }
.nav-group ul span { color: var(--muted); font-size: .77rem; font-weight: 400; line-height: 1.45; }
.nav-group ul a[aria-current] { background: #f3e8d8; }
.nav-group:nth-last-child(-n+2) ul { left: auto; right: 0; }
.nav-section-link { display: flex; align-items: center; gap: 6px; padding: 8px 2px 8px 8px; font-size: 16px; line-height: 1.25; }
.nav-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #84430f; background: #f0dfc8; line-height: 1; font-size: 12px; flex: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.nav-group:hover .nav-icon, .nav-group:focus-within .nav-icon, .nav-group:has(details[open]) .nav-icon { transform: translateY(-2px); background: #8b4715; color: #fff; }
.nav-group:hover > .nav-section-link { color: #88440f; text-decoration: underline; text-underline-offset: 5px; }
.nav-group details[open] ul { animation: menu-in .18s ease-out; }
@keyframes menu-in { from { opacity: .6; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.floating-inquiry { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 7; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid #fff4e7; border-radius: 50%; background: #a94e14; color: #fff; box-shadow: 0 7px 21px #5c2b214f; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.floating-inquiry:hover, .floating-inquiry:focus-visible { background: #71370e; transform: translateY(-4px); box-shadow: 0 12px 24px #5c2b215e; }
.envelope-icon { position: relative; overflow: hidden; width: 24px; height: 17px; border: 2px solid currentColor; border-radius: 3px; }
.envelope-icon::after { content: ''; position: absolute; top: -9px; left: 2px; width: 15px; height: 15px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.floating-inquiry-label { position: absolute; right: calc(100% + 9px); white-space: nowrap; background: #25211c; border-radius: 5px; padding: 6px 10px; font-size: .78rem; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.floating-inquiry:hover .floating-inquiry-label, .floating-inquiry:focus-visible .floating-inquiry-label { opacity: 1; }
#english-inquiry { scroll-margin-top: 95px; }
.site-footer { padding-bottom: 24px; }
.footer-contact { display: grid; gap: 6px; }
.footer-contact a { overflow-wrap: anywhere; }
.topic-crumb { padding: 18px 0; color: var(--muted); }
.topic-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.topic-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px,100%),1fr)); gap: 15px; margin-top: 20px; }
.topic-links a { display: grid; gap: 8px; padding: 20px; background: #f4efe6; border: 1px solid var(--line); }
.topic-links a:hover { background: #ebe3d5; }
.topic-links span, .topic-article p { color: var(--muted); }
.topic-article { display: grid; gap: 24px; }
.topic-article article { max-width: 72ch; }
.topic-article h2 { font-size: clamp(22px,3vw,34px); margin-bottom: 8px; }
#english-inquiry label { display: block; font-weight: 600; }
#english-inquiry input:not([type=checkbox]), #english-inquiry textarea { display: block; width: 100%; margin-top: 6px; }
#english-inquiry button:disabled { opacity: .6; }
#attachment-help, #inquiry-status { font-size: .94rem; }
.nav-group > a.active-parent { color: #84430f; }
.nav-group details[open] summary { color: #8a490e; }
.nav-group ul a:hover, .nav-group ul a:focus-visible { background: #f3e8d8; text-decoration: none; }
.topic-hero { background: radial-gradient(ellipse at 82% 30%, #ddc3a0, transparent 64%), #ebe1d1; }
.topic-hero .inner-grid { align-items: center; }
.topic-parent { color: #754515; font-size: .85rem; font-weight: 700; }
.topic-hero h1 { margin-top: 12px; }
.topic-hero-link { margin-top: 24px; }
.scene-gallery { min-width: 0; }
.scene-gallery figure > a { display: block; position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 16px 34px #4f372526; background: #ddc7a7; }
.scene-gallery figure img { display: block; width: 100%; transition: transform .45s ease; }
.scene-gallery figure > a:hover img { transform: scale(1.035); }
.scene-enlarge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; background: #1b1c19; color: #fff; border-radius: 50%; }
.scene-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.scene-controls a { padding: 7px 11px; border: 1px solid #c9b597; border-radius: 5px; background: #f8f1e7; font-size: .86rem; }
.scene-controls a[aria-current], .scene-controls a:hover { background: #292520; color: #fff; border-color: #292520; }
.scene-dialog { position: fixed; inset: 0; margin: auto; max-width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 16px; border: 0; border-radius: 12px; background: #fbf8f1; }
.scene-dialog::backdrop { background: #14100ed9; }
.scene-dialog img { display: block; max-height: 70vh; width: 100%; object-fit: contain; }
.scene-dialog p { margin: 10px 40px 0 0; }
.scene-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1c1c19; color: #fff; font: inherit; font-size: 25px; cursor: pointer; }
.topic-notes { gap: 12px; scroll-margin-top: 90px; }
.topic-notes details { background: #faf6ef; border: 1px solid #ddd0bd; border-radius: 7px; padding: 0 18px; max-width: 880px; }
.topic-notes summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; list-style: none; padding-block: 16px; }
.topic-notes summary::-webkit-details-marker { display: none; }
.topic-notes summary::after { content: '+'; color: #8b4a15; font-size: 1.3rem; }
.topic-notes details[open] summary::after { content: '−'; }
.topic-notes summary h2 { font-size: clamp(17px, 2vw, 24px); margin: 0; }
.topic-notes details p { margin: 0 0 17px; max-width: 70ch; }
.topic-links a { position: relative; padding-right: 38px; border-radius: 7px; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.topic-links a::after { content: '↗'; position: absolute; right: 15px; top: 15px; color: #87511d; }
.topic-links a:hover, .topic-links a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 20px #38230d14; }
.buyer-snapshot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.buyer-snapshot div { background: #fff9ed; border: 1px solid #cbb18f; border-radius: 14px; padding: 9px 13px; }
.buyer-snapshot dt, .buyer-formats dt { color: #824713; font-size: .78rem; font-weight: 700; }
.buyer-snapshot dd, .buyer-formats dd { margin: 0; }
.buyer-formats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: 16px; margin-top: 20px; }
.buyer-formats article { border: 1px solid #ddccb6; border-radius: 16px; padding: 22px; background: #fbf6ed; }
.buyer-formats h3 { font-size: clamp(21px,2vw,27px); }
.buyer-formats dt { margin-top: 12px; }
.buyer-next > a, .buyer-formats .text-link { display: inline-block; margin-top: 16px; }
.buyer-guide + .topic-notes, .topic-notes + .buyer-next { padding-top: 0; }
.enquiry-source { margin: 0; padding: 10px 13px; border-radius: 10px; background: #fff8eb; border: 1px solid #ddc8ac; font-weight: 600; }
.reveal-visible { animation: signage-rise .48s ease-out both; }
@keyframes signage-rise { from { opacity: .5; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .scene-gallery figure img, .topic-links a { transition: none; }
  .scene-gallery figure > a:hover img, .topic-links a:hover, .topic-links a:focus-visible { transform: none; }
  .reveal-visible { animation: none; }
  .nav-group details[open] ul { animation: none; }
  .nav-icon, .nav-group, .floating-inquiry, .floating-inquiry-label { transition: none; transform: none !important; }
}
@media (min-width: 1101px) {
  .site-menu { gap: clamp(5px,.65vw,10px); }
}
@media (min-width: 1101px) and (max-width: 1240px) {
  .site-menu { gap: 5px; }
  .nav-group { gap: 0; }
  .nav-section-link { gap: 3px; padding-left: 6px; font-size: 15px; }
  .nav-icon { width: 15px; height: 15px; font-size: 10px; }
}
@media (max-width: 1100px) {
  .header-inner { justify-content: start; }
  .header-inner .button { margin-left: auto; }
  .menu-toggle { display: block; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; font-size: 14px; cursor: pointer; }
  .site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 24px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: 72vh; overflow: auto; }
  .site-menu.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; align-items: start; }
  .nav-group ul { position: static; box-shadow: none; margin-top: 5px; width: auto; }
  .nav-group { display: block; min-width: 0; padding-right: 0; }
  .nav-group:has(details[open]) { border-radius: 16px; }
  .nav-section-link { width: fit-content; max-width: calc(100% - 27px); overflow-wrap: anywhere; }
  .nav-group summary { position: absolute; top: 0; right: 0; }
  .nav-group ul { margin-inline: 5px; border-radius: 7px; }
  .site-footer nav { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .floating-inquiry { width: 50px; height: 50px; right: 13px; bottom: max(13px, env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 62px; }
}
