/* ---- loading screen ---- */
  .loading-screen{ position:fixed; inset:0; z-index:200; background:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.6rem; transition:opacity .6s ease, visibility .6s; }
  .loading-screen.hide{ opacity:0; visibility:hidden; pointer-events:none; }
  .loading-logo{ height:64px; width:auto; }
  .loading-spinner{ width:32px; height:32px; border:3px solid rgba(255,255,255,.2); border-top-color:var(--brand-light); border-radius:50%; animation:gb-spin .9s linear infinite; }
  .loading-text{ color:rgba(255,255,255,.55); font-size:.75rem; letter-spacing:.25em; }
  @keyframes gb-spin{ to{ transform:rotate(360deg); } }

  /* ---- header ---- */

  /* ---- menu button: black rounded-square -> cream circle with X (yuppa.co.jp style) ---- */

  /* ---- compact rounded dropdown panel, anchored top-right ---- */

  /* ---- stacked sections: each one sticks in place, then the next one slides up and covers it ---- */
  section{ position:sticky; top:0; z-index:2; padding:16vh 8vw; box-shadow:0 -16px 50px rgba(0,0,0,.15); }

  /* ---- curved section boundary: sits just above each section, overlapping the previous one ---- */
  .curve-divider{ position:absolute; left:0; bottom:100%; width:100%; height:16vh; z-index:1; pointer-events:none; display:block; }
  .curve-divider.fill-paper path{ fill:var(--paper); }
  .curve-divider.fill-ink path{ fill:var(--ink); }
  .curve-divider.fill-brand path{ fill:var(--brand); }
  .curve-divider.fill-mint path{ fill:var(--brand-light); }
  .curve-divider.fill-white path{ fill:#fff; }

  /* ---- hero: background image is fixed to the viewport, content sections scroll over it ---- */
  .hero{ min-height:100vh; display:flex; flex-direction:column; justify-content:center; background:transparent; color:#fff; }
  .hero-bg-wrap{ position:fixed; inset:0; z-index:0; }
  .hero-bg-slide{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transform:scale(1.35); filter:brightness(.9) saturate(1); transition:opacity 2.6s ease, transform 4s cubic-bezier(.16,1,.3,1), filter 4s ease-out; }
  .hero-bg-slide.active{ opacity:1; transform:scale(1); filter:brightness(1.05) saturate(1.05); }
  .hero-bg-slide.photo-1{ background:url('../images/hero.jpg') center/cover; }
  .hero-bg-wrap::after{ content:''; position:absolute; inset:0; z-index:2; background:linear-gradient(180deg, rgba(18,36,28,.1), rgba(18,36,28,.4)); }
  .hero-inner{ position:relative; z-index:1; }
  .scroll-guide{ position:fixed; left:50%; bottom:4vh; transform:translateX(-50%); z-index:35; display:flex; flex-direction:column; align-items:center; gap:.6rem; color:#fff; mix-blend-mode:difference; opacity:.9; transition:opacity .4s ease; pointer-events:none; }
  .scroll-guide.hide{ opacity:0; }
  .scroll-guide-text{ font-size:.7rem; letter-spacing:.25em; }
  .scroll-guide-arrow{ display:block; animation:gb-bounce 1.6s ease-in-out infinite; }
  @keyframes gb-bounce{ 0%,50%,100%{ transform:translateY(0); } 25%{ transform:translateY(6px); } }
  .hero .tag{ display:inline-block; font-size:.8rem; letter-spacing:.15em; padding:.4rem .9rem; border:1px solid rgba(255,255,255,.5); border-radius:99px; margin-bottom:1.6rem; }
  .hero h1{ font-size:clamp(2rem,5.2vw,4.2rem); line-height:1.4; font-weight:800; }
  .hero p{ margin-top:1.2rem; font-size:1rem; max-width:44ch; opacity:.85; line-height:1.9; }

  /* ---- satellite site badge (optional, set via Customizer) ---- */
  .satellite-badge{ position:fixed; right:5vw; bottom:2.2rem; z-index:55; display:inline-flex; align-items:center; gap:.5em; background:rgba(24,24,24,.82); backdrop-filter:blur(6px); color:#fff; padding:.75rem 1.4rem; border-radius:99px; font-size:.78rem; font-weight:700; letter-spacing:.03em; box-shadow:0 12px 30px rgba(0,0,0,.28); transition:transform .25s ease, background .25s ease; }
  .satellite-badge:hover{ transform:translateY(-3px); background:var(--brand-dark); }
  .satellite-badge .ext-icon{ font-size:.95em; opacity:.8; }
  @media(max-width:900px){
    .satellite-badge{ right:4vw; bottom:1.4rem; padding:.65rem 1.15rem; font-size:.72rem; }
  }

  /* ---- section headings ---- */
  .sec-head{ display:flex; align-items:baseline; gap:1rem; margin-bottom:3.5rem; }
  .sec-head .en{ font-size:.75rem; letter-spacing:.2em; color:var(--brand); font-weight:700; }
  .sec-head h2{ font-size:clamp(1.5rem,2.6vw,2.2rem); font-weight:800; }

  /* ---- products ---- */
  .products{ background:var(--brand-light); position:relative; }
  
  .products .sec-head, .products .card-grid, .recruit .sec-head, .recruit p, .recruit .btn{ position:relative; z-index:1; }
  .card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.6rem; }
  .card{ display:block; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 10px 30px rgba(18,36,28,.06); opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s ease; }
  .card.in{ opacity:1; transform:translateY(0); }
  .card img{ width:100%; aspect-ratio:4/3; object-fit:cover; filter:grayscale(.15) saturate(1.05); }
  .card .body{ padding:1.2rem 1.2rem 1.5rem; }
  .card h3{ font-size:1.02rem; margin-bottom:.5rem; }
  .card p{ font-size:.85rem; line-height:1.7; opacity:.75; }

  /* ---- company ---- */
  .company{ background:#fff; color:var(--ink); }
  .company .sec-head .en{ color:var(--brand); }
  .company-bg{ position:absolute; right:0; bottom:0; top:auto; width:56%; max-width:620px; height:100%; object-fit:contain; object-position:bottom; z-index:0; opacity:.95; -webkit-mask-image:linear-gradient(115deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 40%); mask-image:linear-gradient(115deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 40%); }
  .company .sec-head{ position:relative; z-index:1; }
  .company-grid{ position:relative; z-index:1; display:block; max-width:56ch; }
  .company p{ line-height:2; opacity:.85; margin-bottom:1rem; }
  .company .meta{ margin-top:1.5rem; font-size:.85rem; opacity:.65; line-height:1.9; }

  /* ---- recruit ---- */
  .recruit{ background:var(--brand); color:#fff; text-align:center; position:relative; }
  .recruit .sec-head{ justify-content:center; }
  .recruit .sec-head .en{ color:var(--brand-light); }
  .recruit p{ max-width:50ch; margin:0 auto 2rem; line-height:1.9; opacity:.9; }
  .btn{ display:inline-block; background:#fff; color:var(--brand-dark); padding:.9rem 2.4rem; border-radius:99px; font-weight:700; font-size:.9rem; transition:transform .25s ease; }
  .btn:hover{ transform:translateY(-2px); }
  .btn-outline{ display:inline-block; margin-top:1.6rem; background:var(--brand); color:#fff; padding:.85rem 2.2rem; border-radius:99px; font-weight:700; font-size:.85rem; transition:transform .25s ease, background .25s ease; }
  .btn-outline:hover{ transform:translateY(-2px); background:var(--brand-dark); }

  /* ---- news ---- */
  .news{ background:var(--paper); }
  .news-list{ border-top:1px solid rgba(18,36,28,.12); }
  .news-item{ display:flex; gap:2rem; padding:1.4rem 0; border-bottom:1px solid rgba(18,36,28,.12); font-size:.9rem; transition:opacity .2s ease; }
  .news-item:hover{ opacity:.65; }
  .news-item .date{ color:var(--brand); font-weight:700; white-space:nowrap; }
  .news-item .tag{ background:var(--brand-light); color:var(--brand-dark); font-size:.7rem; padding:.2rem .6rem; border-radius:99px; height:fit-content; }
  .news-more{ text-align:right; margin-top:1.6rem; }
  .news-more a{ font-size:.85rem; font-weight:700; color:var(--brand-dark); }
  .news-more a:hover{ opacity:.7; }

  /* ---- footer ---- */
  footer{ position:relative; z-index:2; background:var(--ink); color:rgba(255,255,255,.7); padding:5vh 8vw; font-size:.82rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; }

  /* ---- liquid wipe overlay (shared) ---- */
  #liquid-transition{ position:fixed; inset:0; z-index:50; pointer-events:none; }
  #liquid-transition svg{ width:100%; height:100%; display:block; }
  #liquid-transition path{ fill:url(#liquidGradient); }

  @media(max-width:900px){
    .card-grid{ grid-template-columns:repeat(2,1fr); }
    .company-grid{ grid-template-columns:1fr; }
    .logo-link{ height:44px; }
    .logo{ height:44px; }
  }
