@charset "UTF-8";
/* ==========================================================================
   Sand Sports Japan — site.css
   Rebuild of the legacy common.css / index.css / slideshow.css.
   Same palette, same artwork, same 774px proportions — but fluid, UTF-8
   and responsive. No Flash, no Dreamweaver image-swap JS.
   ========================================================================== */

:root {
  /* Palette lifted from the legacy stylesheet and sampled from the artwork */
  --orange:        #ff6600;  /* footer rule, accents */
  --orange-link:   #cc6600;  /* body links */
  --orange-head:   #ff6633;  /* h2 headings */
  --orange-brown:  #cc6633;  /* .brown emphasis */
  --brown-dark:    #813b0d;  /* submenu base (menuBottom.gif) */
  --yellow:        #ffcc00;  /* submenu hover / current */
  --ink:           #666666;  /* body copy */
  --ink-strong:    #333333;  /* footer bg, submenu bg */
  --grey-mid:      #999999;  /* menu bar, footer copy */
  --grey-page:     #a9a9a9;  /* page backdrop */
  --footer-link:   #ccffff;
  --white:         #ffffff;

  /* System font stacks: every device picks its own best native face, at zero
     network cost. Deliberately no webfont — a full Japanese face is several MB
     because of the glyph count, which would undo the load-time work. */
  --font-latin: system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;
  --font-jp: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
             "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;

  --shell: 774px;   /* legacy fixed width, now a max */
  --rail: 188px;    /* legacy left column */
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grey-page) url("../../images/bodyBG.gif") repeat top left;
  /* was 85% (~13.6px) with 1.5 line-height — small and tight by current norms.
     Japanese needs more leading than Latin, hence 1.75. Sizes below are in rem
     so they resolve against the root, not their parent: percentages compounded
     unpredictably through the nested layout. */
  font: 1rem/1.75 var(--font-latin);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--orange-link); }
a:hover { color: #000; }

/* Visually hidden, but still read by screen readers. The legacy .hide killed
   these outright with display:none, which hid them from assistive tech too. */
.hide,
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--white);
}

/* ---------- Masthead ------------------------------------------------------ */
.topbar { position: relative; }
.masthead { display: block; line-height: 0; background: var(--ink-strong); }
.masthead img { width: 100%; display: block; }

/* Language switcher — sits over the masthead's dark right-hand area */
.langswitch {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--orange);
  border-radius: 2px;
  color: var(--white);
  font: bold 0.78rem/1.4 var(--font-latin);
  letter-spacing: .06em;
  text-decoration: none;
}
.langswitch:hover { background: var(--orange); color: var(--white); }

@media (max-width: 640px) {
  .langswitch { top: 5px; right: 6px; padding: 3px 9px; font-size: 0.72rem; }
}

/* ---------- Primary nav --------------------------------------------------- */
.nav {
  background: var(--grey-mid) url("../../images/menuBG.png") repeat-x;
}
.nav__toggle { display: none; }

.nav__list {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  min-height: 36px;
}

/* Desktop: the original image buttons, swapped on hover via CSS instead of JS */
.nav__link {
  display: block;
  height: 36px;
  background-repeat: no-repeat;
  background-position: top left;
  text-indent: -9999px;
  overflow: hidden;
}
.nav__link--home    { width: 84px;  background-image: url("../../images/menu6.png"); }
.nav__link--rental  { width: 100px; background-image: url("../../images/menu2.png"); }
.nav__link--clinic  { width: 113px; background-image: url("../../images/menu3.png"); }
.nav__link--contact { width: 128px; background-image: url("../../images/menu5.png"); }

.nav__link--home:hover,    .nav__item--current .nav__link--home    { background-image: url("../../images/menu6_active.png"); }
.nav__link--rental:hover,  .nav__item--current .nav__link--rental  { background-image: url("../../images/menu2_active.png"); }
.nav__link--clinic:hover,  .nav__item--current .nav__link--clinic  { background-image: url("../../images/menu3_active.png"); }
.nav__link--contact:hover, .nav__item--current .nav__link--contact { background-image: url("../../images/menu5_active.png"); }

/* Text nav buttons — used by the English side, which has no matching button
   images (only Home/Log-in/About Us/Contact Us existed, and Log-in is dead).
   Sized and coloured to sit on the same menuBG strip as the Japanese images
   so both languages present an identical header. */
.nav__link--text {
  width: auto;
  height: 36px;
  padding: 0 18px;
  text-indent: 0;
  overflow: visible;
  background-image: none;
  color: var(--white);
  font: bold 0.82rem/36px var(--font-jp);
  letter-spacing: .06em;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .18);
  white-space: nowrap;
}
.nav__link--text:hover,
.nav__item--current .nav__link--text {
  background-image: none;
  background-color: var(--orange);
  color: var(--white);
}

/* ---------- Layout -------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  align-items: start;
  background: var(--white);
}

/* ---------- Left rail ----------------------------------------------------- */
.rail { min-width: 0; }

.sectionnav { margin: 0; padding: 0; list-style: none; }
.sectionnav a {
  display: block;
  min-height: 34px;
  padding: 7px 0 7px 1.6em;
  background: var(--ink-strong) url("../../images/menu.gif") no-repeat top left;
  font: bold 0.92rem/1.4 var(--font-latin);
  font-family: var(--font-jp);
  color: var(--white);
  letter-spacing: .08em;
  text-decoration: none;
}
.sectionnav a:hover,
.sectionnav a[aria-current="page"] {
  background-image: url("../../images/menu_mo.gif");
  color: var(--yellow);
}
.sectionnav__end {
  display: block;
  height: 4px;
  background: var(--brown-dark) url("../../images/menuBottom.gif") no-repeat top left;
}

.promos { margin: 0; padding: 0; list-style: none; }
.promos li { margin: 2px 0; }
.promos img { display: block; width: 100%; }

/* ---------- Main column --------------------------------------------------- */
.content {
  min-width: 0;
  padding: 0 var(--gutter);
  font-size: 1rem;
  line-height: 1.85;   /* Japanese reads better with more leading than Latin */
}
.content a { text-decoration: underline; }

h2 {
  margin: 1.2em 0 .6em;
  padding: 0 .4em;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white) url("../../images/indexTitle.gif") repeat top left;
  color: var(--orange-head);
  font: bold 1.5rem/1.4 var(--font-jp);
  text-align: center;
}

.brown { color: var(--orange-brown); font-weight: bold; }

.hero { margin: 0 0 1em; }
.hero img { display: block; width: 100%; }

.cta { display: inline-block; margin: .5em 0; }
.cta img { display: block; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.social__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 4px;
  color: var(--white) !important;
  font: bold 0.95rem var(--font-latin);
  text-decoration: none !important;
  line-height: 1;
}
.social__btn svg { width: 22px; height: 22px; flex: none; }
.social__btn--fb { background: #1877f2; }
.social__btn--fb:hover { background: #0f5dc4; }
.social__btn--yt { background: #f00; }
.social__btn--yt:hover { background: #c00; }

/* General-purpose solid button — replaces the legacy GIF call-to-action
   images (button-signuprentaljap.gif, btn_sandboardRental.gif, clickHere_*),
   whose text was baked into pixels. */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--orange);
  color: var(--white) !important;
  font: bold 1rem var(--font-jp);
  letter-spacing: .04em;
  text-decoration: none !important;
  border-radius: 4px;
}
.btn:hover { background: var(--orange-link); }
.btn--block { display: block; text-align: center; }

/* Q&A + intro panel (legacy .indexCon, built from three sliced GIFs) */
.panel {
  margin: 1em 0;
  background: var(--white) url("../../images/indexCon.gif") repeat top left;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
}
.panel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--gutter);
  padding: var(--gutter);
}
.qa { margin: 0; }
.qa dt { margin-top: .6em; font-weight: bold; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: .2em 0 0; }
.qa img { vertical-align: -2px; margin-right: 4px; }

.pagetop { margin: 1.5em 0 0; text-align: right; }

/* Standing booking CTA at the foot of every English content page */
.cta-band { margin: 2em 0 0; }
.cta-band__link {
  display: block;
  padding: 14px 20px;
  background: var(--orange);
  color: var(--white) !important;
  font: bold 1.05rem var(--font-latin);
  text-align: center;
  text-decoration: none !important;
  border-radius: 3px;
}
.cta-band__link:hover { background: var(--orange-link); color: var(--white); }

/* ---------- Footer -------------------------------------------------------- */
.footer {
  background: var(--ink-strong);
  border-top: 5px solid var(--orange);
  color: var(--grey-mid);
  font: 0.78rem/1.7 var(--font-latin);
  padding: 10px;
}
.footer a { color: var(--footer-link); text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__copy {
  margin-top: 6px;
  color: var(--white);
  font-size: 0.75rem;
  text-align: right;
}

/* ==========================================================================
   Responsive — the legacy site had no viewport tag at all
   ========================================================================== */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }

  /* Section links are primary navigation, so they fold into the burger menu
     at the top. The promo banners stay, but drop below the article. */
  .rail { display: contents; }
  .rail .sectionnav-wrap { order: -1; }
  .promos {
    order: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 6px;
    padding: var(--gutter);
  }
  .promos li { margin: 0; }
  .content { order: 2; }
  .panel__body { grid-template-columns: 1fr; gap: var(--gutter); }
}

@media (max-width: 640px) {
  /* The primary nav is fixed-width Japanese text baked into PNGs, so it cannot
     reflow. Below this width it becomes a real text menu in the same colours. */
  .nav { position: relative; }

  .nav__toggle {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--white);
    font: bold 1rem var(--font-jp);
    text-align: left;
    cursor: pointer;
  }
  .nav__toggle::before {
    content: "☰";
    margin-right: .5em;
    font-size: 120%;
    vertical-align: -1px;
  }
  .nav__toggle[aria-expanded="true"]::before { content: "✕"; }

  .nav__list {
    display: none;
    flex-direction: column;
    background: var(--ink-strong);
  }
  .nav__list.is-open { display: flex; }

  .nav__item { border-top: 1px solid rgba(255,255,255,.12); }

  /* Drop the image buttons; use the label text that was previously hidden */
  .nav__link {
    width: auto !important;
    height: auto;
    padding: 13px 16px;
    background: none !important;
    text-indent: 0;
    overflow: visible;
    color: var(--white);
    font: bold 0.95rem var(--font-jp);
    letter-spacing: .08em;
    text-decoration: none;
  }
  .nav__link:hover,
  .nav__item--current .nav__link { color: var(--yellow); }
  .nav__link .hide,
  .nav__link .visually-hidden {
    position: static;
    width: auto; height: auto;
    margin: 0; overflow: visible;
    clip: auto; clip-path: none;
  }

  .content { padding: 0 14px; }
  .promos { padding: 14px; }
  h2 { font-size: 1.25rem; }
}

/* ==========================================================================
   Region tabs (legacy .menuTab, used by gallery + access)
   ========================================================================== */
.tabs { margin: 1em 0; border-bottom: 1px solid #999; }
.tabs ul {
  margin: 0; padding: 0 0 4px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tabs li {
  border: 1px solid #778;
  background: #fff url("../../images/rytConSub_mo.gif") repeat-x top left;
  font: bold 0.85rem var(--font-jp);
  font-family: var(--font-jp);
}
.tabs a, .tabs span {
  display: block;
  padding: 5px 10px;
  color: var(--ink);
  text-decoration: none;
}
.tabs a:hover { color: var(--orange-link); }
.tabs li[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
}
.tabs li[aria-current="page"] span { color: var(--white); }

/* ==========================================================================
   Thumbnail grids — video archive and press cuttings
   ========================================================================== */
.thumbgrid {
  margin: 1em 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.thumbgrid li {
  background: var(--white);
  border: 1px solid #ccc;
  padding: 5px;
  font: 0.85rem/1.6 var(--font-latin);
  font-family: var(--font-jp);
  color: #333;
}
.thumbgrid img { display: block; width: 100%; height: auto; }
.thumbgrid a { text-decoration: none; }
.thumbgrid p { margin: .5em 0 0; }

.thumbgrid--press { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* Responsive video embed — the legacy pages used a fixed 560x315 iframe */
.embed {
  position: relative;
  margin: 1em 0;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spec { margin: 1em 0; }
.spec dt { float: left; clear: left; min-width: 8.5em; font-weight: bold; color: var(--ink-strong); }
.spec dd { margin: 0 0 .3em; }
@media (max-width: 480px) {
  .spec dt { float: none; min-width: 0; }
  .spec dd { margin-bottom: .8em; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { margin: 1em 0 1.5em; max-width: 520px; }
.form__row { margin: 0 0 1em; }

.form__label {
  display: block;
  margin-bottom: .35em;
  font-weight: bold;
  color: var(--ink-strong);
}
.form__req {
  display: inline-block;
  margin-left: .5em;
  padding: 1px 6px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: normal;
  border-radius: 2px;
  vertical-align: 1px;
}

.form__input {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: var(--white);
  font: inherit;
  color: var(--ink-strong);
}
.form__hint {
  display: block;
  margin-top: .35em;
  color: #8a8a8a;
  font-size: 0.8rem;
  line-height: 1.6;
}

.form__input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
textarea.form__input { resize: vertical; min-height: 140px; }

.form__submit {
  padding: 11px 30px;
  border: 0;
  border-radius: 2px;
  background: var(--orange);
  color: var(--white);
  font: bold 1rem var(--font-jp);
  letter-spacing: .08em;
  cursor: pointer;
}
.form__submit:hover { background: var(--orange-link); }
.form__submit:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form--wide { max-width: 640px; }
.form h3 {
  margin: 1.6em 0 .8em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--orange);
  color: var(--ink-strong);
  font: bold 1rem var(--font-jp);
}

.quote {
  width: 100%;
  max-width: 400px;
  margin: 1em 0;
  border-collapse: collapse;
}
.quote th,
.quote td { padding: 7px 10px; border-bottom: 1px solid #e0e0e0; }
.quote th { text-align: left; font-weight: normal; color: var(--ink-strong); }
/* the "2本 × ¥3,500 × 3日" working shown under each line */
.quote__calc {
  display: block;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 0.8rem;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}
.quote td { text-align: right; font-variant-numeric: tabular-nums; }
.quote__total th,
.quote__total td {
  border-bottom: 0;
  border-top: 2px solid var(--orange);
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--ink-strong);
}
.quote__note { font-size: 0.82rem; color: #888; }

.notice {
  margin: 1em 0;
  padding: 14px 16px;
  border-left: 5px solid var(--orange);
  background: #fff6ef;
}
.notice--error { border-left-color: #cc0000; background: #fff0f0; }

/* ==========================================================================
   Lightbox (replaces prototype.js + scriptaculous.js + lightbox.js)
   ========================================================================== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
}
.lb.is-open { display: flex; }

.lb__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.lb__img {
  max-width: 100%;
  max-height: 78vh;
  display: block;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--white);
}
.lb__cap {
  margin-top: 10px;
  color: var(--white);
  font: 0.85rem/1.6 var(--font-latin);
}

.lb__close,
.lb__nav {
  flex: none;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}
.lb__close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 34px;
}
.lb__nav { font-size: 48px; padding: 0 10px; }
.lb__close:hover, .lb__nav:hover { color: var(--yellow); }
.lb__nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lb { padding: 12px; }
  .lb__nav { font-size: 34px; padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
