/* ==========================================================
   FINE STAFF — custom styles that Tailwind utilities can't
   express cleanly (gradients sliding on hover, balloon tails,
   FAQ +/- icon, full-bleed section backgrounds).
   ========================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (min-width: 992px) { html { scroll-padding-top: 110px; } }

/* Full-bleed background behind a contained section */
.bleed { position: relative; z-index: 1; }
.bleed::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  z-index: -1;
  background: var(--bleed-bg, transparent);
}
.bleed--hero  { --bleed-bg: linear-gradient(45deg, #0081cc 0%, #00a0e9 50%, #54c3f1 100%); }
.bleed--gray  { --bleed-bg: #efefef; }
.bleed--blue  { --bleed-bg: #00a0e9; }

/* Pill buttons whose gradient layer slides away on hover */
.btn-slide { position: relative; z-index: 1; overflow: hidden; transition: all .2s ease; }
.btn-slide::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  transition: left .2s ease;
  left: 0;
}
.btn-slide:hover::before { left: 100%; }
.btn-slide--orange { background: #f39800; }
.btn-slide--orange::before { background: linear-gradient(75deg, #f39800 0%, #ea5504 100%); }
.btn-slide--navy { background: #005089; }
.btn-slide--navy::before { background: linear-gradient(45deg, #005089 0%, #35729b 100%); }

/* Pressable buttons (3D bottom border) */
.btn-press:hover { margin-top: var(--press, 4px); border-bottom-width: 0; }

/* Shift balloons */
.balloon {
  position: relative;
  background: #fff;
  border-radius: 1.8rem;
  filter: drop-shadow(8px 8px 6px rgba(0, 0, 0, .6));
}
.balloon::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border-width: 1.6rem 3rem 0 3rem;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.balloon--last::after { display: none; }
.balloon__head { margin-bottom: -2.5vw; translate: 0 -2.5vw; }
@media (min-width: 576px)  { .balloon__head { margin-bottom: -12px; translate: 0 -12px; } }
@media (min-width: 768px)  { .balloon__head { margin-bottom: -18px; translate: 0 -18px; } }
@media (min-width: 992px)  { .balloon__head { margin-bottom: -22px; translate: 0 -22px; } }
@media (min-width: 1200px) { .balloon__head { margin-bottom: -25px; translate: 0 -25px; } }

/* FAQ */
.faq-q::before {
  content: "";
  flex-shrink: 0;
  width: 50px; height: 50px;
  margin-right: 15px;
  background: url(../img/home/faq_q.svg) no-repeat center / contain;
}
@media (min-width: 768px) {
  .faq-q::before { width: 80px; height: 80px; margin-right: 30px; }
}
.faq-icon { position: relative; flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 100%; height: 3px;
  margin-top: -1.5px;
  background: #7b7a7b;
  border-radius: 1px;
  transition: rotate .2s ease;
}
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Hamburger icon */
.hb-bar, .hb-bar::before, .hb-bar::after {
  position: absolute; height: 2px; width: 25px;
  background: #fff; border-radius: 2px;
  transition: all .2s ease;
}
.hb-bar { top: 38%; left: 50%; translate: -50% 0; }
.hb-bar::before, .hb-bar::after { content: ""; left: 0; transform-origin: 0% 50%; }
.hb-bar::before { top: -6px; }
.hb-bar::after  { top: 6px; }
.is-open .hb-bar { background: transparent; }
.is-open .hb-bar::before { transform: translateX(4px) translateY(-3px) rotate(45deg); }
.is-open .hb-bar::after  { transform: translateX(4px) translateY(3px) rotate(-45deg); }

/* Hover dim for image links */
.hover-dim img { transition: opacity .2s ease; }
.hover-dim:hover img { opacity: .6; }

/* ==========================================================
   reserve/, reserve/place/  (登録説明会予約・会場一覧)
   ========================================================== */
.reserve-first { position: relative; z-index: 1; color: #fff; padding: 5rem 0; }
.reserve-first::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 100vw; height: 100%; z-index: -1;
  background: #00a0e9 url(../img/reserve/first_bg.jpg) no-repeat center / cover;
}
.reserve-first__map { width: 80%; margin: 0 auto 2.5rem; }
@media (min-width: 768px) { .reserve-first__map { width: 75%; } }
.reserve-first__buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem; }
@media (min-width: 768px) { .reserve-first__buttons { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) {
  .reserve-first { height: 624.91px; padding: 71.5px 0 0; }
  .reserve-first--place { height: 467.61px; }
  .reserve-first__map { position: absolute; width: 52.1538%; top: 5.7208%; right: 13.6923%; margin: 0; }
  .reserve-first--place .reserve-first__map { width: 39.5385%; }
  .reserve-first__buttons { display: block; }
  .reserve-first__buttons > a { position: absolute; min-width: 212px; }
  .reserve-first__buttons > a:nth-child(1) { top: 28.6041%; left: 74.6154%; }
  .reserve-first__buttons > a:nth-child(2) { top: 50.6865%; left: 30.7692%; }
  .reserve-first__buttons > a:nth-child(3) { top: 59.2678%; left: 74.6154%; }
  .reserve-first__buttons > a:nth-child(4) { top: 69.7941%; left: 65.6154%; }
  .reserve-first__buttons > a:nth-child(5) { top: 80.0915%; left: 56.4615%; }
  .reserve-first__buttons > a:nth-child(6) { top: 89.0915%; left: 50.1538%; }
  .reserve-first__buttons > a:nth-child(7) { top: 59.7941%; left: 21.1538%; }
  .reserve-first__buttons > a:nth-child(8) { top: 72.0915%; left: 12.1538%; }
  .reserve-first__buttons > a:nth-child(9) { top: 81.7941%; left: 12.1538%; }
}
@media (min-width: 1200px) {
  .reserve-first { height: 742.9px; padding-top: 85px; }
  .reserve-first--place { height: 555.9px; }
}
.btn-slide--navy2 { background: #004ea2; }
.btn-slide--navy2::before { background: linear-gradient(45deg, #004ea2 0%, #35729b 100%); }

/* ==========================================================
   Language switcher (select built by main.js into .js-lang)
   ========================================================== */
.js-lang { display: flex; align-items: center; line-height: 1; }
.js-lang:empty { display: none; }
.lang-select {
  -webkit-appearance: none; appearance: none;
  max-width: 130px; height: 24px; margin: 0;
  padding: 0 24px 0 26px;
  font-size: 12px; line-height: 22px; color: #555;
  border: 1px solid #ddd; border-radius: 999px;
  cursor: pointer;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") no-repeat left 8px center / 12px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 9px,
    #fff;
  transition: border-color .2s ease, color .2s ease;
}
.lang-select:hover { border-color: #00a0e9; color: #00a0e9; }
.lang-select:focus-visible { outline: 2px solid #00a0e9; outline-offset: 2px; }
/* in the mobile menu: centred and big enough to tap */
.js-lang--drawer { justify-content: center; }
.js-lang--drawer .lang-select {
  max-width: 200px; height: 40px;
  padding: 0 34px 0 36px;
  font-size: 14px; line-height: 38px;
  background-position: left 13px center, right 13px center;
  background-size: 15px, 10px;
}
