/* Desktop keeps one composition; tablets and phones adapt to their viewport. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#site-nav button,#site-nav a,.region-tabs button,.region-tabs button.active{font-family:"NanumSquareRoundExtraBold",var(--font);font-weight:800}
html.desktop-layout body{min-width:0}

  html.desktop-layout .wrap{width:calc(100% - 40px);max-width:1240px;margin-left:auto;margin-right:auto}
  html.desktop-layout .header-main{height:98px;gap:32px}
  html.desktop-layout .banner-stage{height:400px}
  html.desktop-layout .banner-title{font-size:46px}
  html.desktop-layout .program-detail-page .program-page{width:calc(100% - 40px);max-width:1080px;margin-left:auto;margin-right:auto}


  html.touch-layout .wrap{width:calc(100% - max(24px,env(safe-area-inset-left)) - max(24px,env(safe-area-inset-right)));max-width:1240px;margin-left:auto;margin-right:auto}
  html.touch-layout .program-detail-page .program-page{width:calc(100% - 48px);max-width:1080px;margin-left:auto;margin-right:auto}
  html.touch-layout .header-main>*{min-width:0}
  html.touch-layout .header-main .brand{flex-shrink:0}
  html.touch-layout .site-search{min-width:0}
  html.touch-layout .program-section-nav{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
  html.touch-layout input:not([type=checkbox]):not([type=radio]),html.touch-layout select,html.touch-layout textarea,html.touch-layout .site-search input,html.touch-layout #camp-form input:not([type=checkbox]),html.touch-layout #camp-form select,html.touch-layout #camp-form textarea{font-size:16px}
  html.touch-layout .header-main #search-input{font-size:16px}
  html.touch-layout input[type=search],html.touch-layout input[type=text],html.touch-layout input[type=email],html.touch-layout input[type=tel],html.touch-layout textarea{-webkit-appearance:none;appearance:none;border-radius:0}
  html.touch-layout dialog{max-height:90vh;max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

@media(min-width:761px) and (max-width:1279px){
  html.touch-layout .header-main{gap:24px}
  html.touch-layout .header-phone strong{font-size:20px;white-space:nowrap}
  html.touch-layout .header-phone svg{display:none}
  html.touch-layout .program-order-layout{gap:28px}
  html.touch-layout .program-page .program-section-nav{justify-content:flex-start;gap:26px}
}
@media(min-width:761px) and (max-width:1023px){
  html.touch-layout .header-main{display:grid;grid-template-columns:auto minmax(0,1fr);height:auto;padding-top:22px;padding-bottom:20px;gap:20px}
  html.touch-layout .header-main .site-search{width:100%}
  html.touch-layout .header-phone{display:none}
  html.touch-layout .nav-line nav{gap:24px;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
  html.touch-layout .nav-spacer,html.touch-layout .nav-spacer~a{display:none}
}
@media(max-width:760px){
  html.touch-layout .wrap{width:auto;margin-left:max(20px,env(safe-area-inset-left));margin-right:max(20px,env(safe-area-inset-right))}
  html.touch-layout .nav-line nav{margin:0;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
  html.touch-layout .header-main{gap:14px}
  html.touch-layout .site-search{width:100%}
  html.touch-layout .floating-contact{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
  html.touch-layout .footer-main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  html.touch-layout .program-order-layout,html.touch-layout .program-topic,html.touch-layout .camp-fields{min-width:0}
  html.touch-layout .program-detail-page .program-page{width:calc(100% - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right)))}
  html.touch-layout .program-hero-picture,html.touch-layout .program-photo-frame{overflow:hidden}
  html.touch-layout .program-schedule-scroll{max-width:100%;-webkit-overflow-scrolling:touch}
  html.touch-layout .camp-controls button{min-height:44px}
}
@media(max-width:380px){html.touch-layout .wrap{margin-left:max(16px,env(safe-area-inset-left));margin-right:max(16px,env(safe-area-inset-right))}html.touch-layout .program-detail-page .program-page{width:calc(100% - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)))}}


/* Narrow desktop windows use the same content boundaries as touch devices. */
html.desktop-layout .header-main > * { min-width: 0; }
html.desktop-layout .program-section-nav {
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  html.desktop-layout .header-main { gap: 24px; }
  html.desktop-layout .header-phone { display: none; }
  html.desktop-layout .nav-line nav { gap: 24px; overflow-x: auto; white-space: nowrap; }
  html.desktop-layout .nav-spacer,
  html.desktop-layout .nav-spacer ~ a { display: none; }
}
@media (max-width: 760px) {
  html.desktop-layout .header-main { flex-wrap: wrap; height: auto; padding: 20px 0; gap: 20px; }
  html.desktop-layout .site-search { flex-basis: 100%; max-width: none; }
  html.desktop-layout .program-order-layout,
  html.desktop-layout .program-topic,
  html.desktop-layout .education-speaker-layout,
  html.desktop-layout .education-activities > div { grid-template-columns: minmax(0, 1fr); }
  html.desktop-layout .education-speaker-photo { max-width: 260px; }
  html.desktop-layout #product-grid,
  html.desktop-layout #product-grid.catalog-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.desktop-layout .region-tabs { overflow-x: auto; white-space: nowrap; }
}

/* Destination menus supplied by Channel & Global. */
.nav-line #site-nav { height: auto; min-height: 54px; overflow: visible; flex-wrap: wrap; align-items: baseline; gap: 0 28px; position: relative; z-index: 101; }
.nav-program-group { position: relative; }
.nav-program-group summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}
.nav-program-group[open] summary { color: var(--purple); }
.nav-program-group ul {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--field);
  box-shadow: 0 8px 20px #272b3314;
}
.nav-line #site-nav .nav-program-group a {
  display: block;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.nav-program-group a:hover { background: var(--lavender); }
.nav-program-group summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.copyright a { margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  html.desktop-layout .nav-line #site-nav,
  html.touch-layout .nav-line #site-nav { gap: 0 20px; }
  html.desktop-layout .nav-program-group ul,
  html.touch-layout .nav-program-group ul { position: static; min-width: 0; box-shadow: none; }
}

#product-grid .product-portugal .product-media img,
#product-grid .product-french-way .product-media img,
.program-page[data-program-id="portugal"] .program-hero-picture img,
.program-page[data-program-id="french-way"] .program-hero-picture img { object-position: center top; }

.nav-line #site-nav > a[href="/reservations"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.product-toolbar { justify-content: flex-end; }

#product-grid.catalog-all > .product-kyushu,
#product-grid.catalog-all > .product-nagoya {
  display: block;
  grid-column: auto;
  padding-bottom: 0;
  border-bottom: 0;
}
#product-grid.catalog-all > .product .product-media { width: 100%; height: auto; aspect-ratio: 1; }
#product-grid.catalog-all > .product .product-meta { margin-top: 12px; }
#product-grid.catalog-all > .product .product-price { margin-top: 0; }
#product-grid.catalog-all > .product .product-route { display: block; }
#product-grid.catalog-all > .product .product-subtitle { font-size: 15px; }
#product-grid .inquiry-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #e4e7ed; }
#product-grid .product-price .amount-price { color: #82365a; }
#catalog-pages:not([hidden]) { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
#catalog-pages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); }
#catalog-pages a[aria-current="page"] { background: var(--purple); color: white; }
.product-inquiry .product-detail + .product-detail { margin-left: 16px; }
.nav-line #site-nav > a[href="/staff"] { display: inline-flex; min-height: 44px; align-items: center; }
