/* Videowork Modern */
:root{
  --base:#004C71;
  --accent:#F8B400;
  --text:#0b1220;
  --muted:rgba(11,18,32,.68);
  --card:#ffffff;
  --soft:#f6f8fb;
  --line:rgba(11,18,32,.12);
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 22px rgba(0,0,0,.08);
  --container: 1120px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth; background:#020a0f;}
/* iOS overscroll fix */
html,body{overscroll-behavior-y:none;}

body{
  margin:0;
  min-height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI","Hiragino Kaku Gothic ProN","Noto Sans JP","Meiryo",Arial,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
  line-break: strict;
  word-break: normal;
  overflow-wrap:anywhere;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
.container{width:min(100% - 40px, var(--container)); margin-inline:auto;}
.skip{position:absolute;top:-40px;left:16px;background:#fff;color: var(--text);padding:10px 12px;border-radius:10px;box-shadow:var(--shadow-soft);z-index:9999;}
.skip:focus{top:14px;}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.86);backdrop-filter: blur(14px);border-bottom:1px solid rgba(0,0,0,.06);}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;}
.brand img{height:42px;width:auto;}
.site-nav{display:flex;align-items:center;gap:18px;font-weight:800;color:rgba(11,18,32,.82);}
.site-nav a{padding:10px 10px;border-radius:12px;transition:background .2s ease,color .2s ease;}
.site-nav a:hover{background:rgba(0,76,113,.08);color:var(--base);}
.site-nav a.active{background:rgba(0,76,113,.10);color:var(--base);box-shadow:0 8px 16px rgba(0,0,0,.04);}
.nav-cta{background:var(--accent);color:var(--base);padding:10px 14px !important;border-radius:999px !important;box-shadow:0 10px 18px rgba(248,180,0,.28);}
.nav-cta:hover{background:#ffca31;}

.nav-button{display:none;width:46px;height:42px;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:#fff;align-items:center;justify-content:center;gap:4px;padding:10px;box-shadow:0 8px 16px rgba(0,0,0,.06);}
.nav-button span{display:block;width:18px;height:2px;background:rgba(11,18,32,.78);border-radius:999px;}

.hero, .page-hero{
  position:relative; isolation:isolate; overflow:hidden;
  background: linear-gradient(180deg,#0a1d28,#071a23);
  color:#fff;
}
.hero-media{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05) contrast(1.05);transform:scale(1.03);z-index:-2;}
.hero::after, .page-hero::after{content:"";position:absolute;inset:-2px;background:radial-gradient(900px 420px at 15% 20%, rgba(248,180,0,.22), transparent 55%),radial-gradient(800px 520px at 75% 35%, rgba(0,76,113,.20), transparent 55%);z-index:-1;}
.hero-inner{padding:72px 0 44px;max-width:980px;}
.page-hero .hero-inner{padding:58px 0 34px;max-width:980px;}
.hero-kicker{display:inline-flex;align-items:center;gap:10px;padding:7px 12px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.06);font-weight:900;letter-spacing:.02em;}
.hero-kicker::before{content:"";width:10px;height:10px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 6px rgba(248,180,0,.16);}
.hero-title{margin:16px 0 10px;font-size:clamp(34px,5vw,54px);line-height:1.15;letter-spacing:-.02em;word-break:keep-all;}
.hero-lead{margin:10px 0 22px;font-size:clamp(15px,1.4vw,18px);color:rgba(255,255,255,.92);max-width:64ch;}
.breadcrumb{display:flex;gap:10px;align-items:center;font-size:13px;color:rgba(255,255,255,.78);}
.breadcrumb a{color:rgba(255,255,255,.88);}
.breadcrumb a:hover{color:#fff;}
.breadcrumb .sep{opacity:.6;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;border-radius:999px;font-weight:900;letter-spacing:.01em;border:1px solid rgba(255,255,255,.18);transition:transform .15s ease,background .2s ease,border-color .2s ease,color .2s ease;user-select:none;}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(0);}
.btn-primary{background:var(--accent);color:var(--base);border-color:rgba(248,180,0,.55);box-shadow:0 14px 26px rgba(248,180,0,.22);}
.btn-primary:hover{background:#ffca31;}

/* Phone buttons (match primary CTA style) */
.phone-card .phone-buttons{display:grid;grid-template-columns:1fr;gap:10px;margin-top:2px;}
.btn-phone{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;border-radius:999px;text-decoration:none;}
.btn-phone .phone-label{font-weight:800;letter-spacing:.02em;}
.btn-phone .phone-number{font-weight:900;font-size:1.05rem;}
.btn-phone .phone-hours{opacity:.9;font-size:.92rem;white-space:nowrap;}
.phone-note{margin:10px 0 0;opacity:.82;font-size:.95rem;line-height:1.5;}
@media (min-width:720px){
  .phone-card .phone-buttons{grid-template-columns:1fr 1fr;}
  .btn-phone{justify-content:center;}
  .btn-phone .phone-label{margin-right:8px;}
}

.btn-ghost{background:rgba(255,255,255,.06);color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.10);}

.section{padding:64px 0;}
.section-alt{background:linear-gradient(180deg,#f7f9fc,#ffffff);}
.section-title{font-size:clamp(24px,2.6vw,34px);margin:0 0 8px;letter-spacing:-.02em;position:relative;word-break:keep-all;}
.section-title::after{content:"";display:block;width:48px;height:4px;border-radius:999px;background:var(--accent);margin-top:10px;}
.section-lead{margin:12px 0 16px;font-size:18px;font-weight:900;color:rgba(11,18,32,.86);}
.text{margin:0 0 14px;color:rgba(11,18,32,.76);}
.small{font-size:13px;}
.text-muted{color:rgba(11,18,32,.58);}
.grid-2{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:start;}

/* OBV section: make layout full-width and balanced */
.obv-wide{grid-template-columns:1fr;}
.obv-cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.obv-cards-grid .card{margin-top:0;}
@media (max-width: 860px){
  .obv-cards-grid{grid-template-columns:1fr;}
}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-soft);}
.card + .card{margin-top:12px;}
.list{margin:10px 0 0;padding-left:18px;color:rgba(11,18,32,.78);}
.pills{display:flex;gap:10px;flex-wrap:wrap;}
.pills span{font-size:12px;font-weight:900;padding:7px 11px;border-radius:999px;background:rgba(0,76,113,.06);border:1px solid rgba(0,76,113,.12);color:rgba(0,76,113,.96);}
.media{border-radius:var(--radius);overflow:hidden;border:1px solid rgba(0,0,0,.10);box-shadow:var(--shadow-soft);background:#000;}
.embed{aspect-ratio:16/9;width:100%;border:0;}
.site-footer{background:#020a0f;color:rgba(255,255,255,.84);padding:34px 0;}
.footer-inner{display:grid;gap:14px;}
.footer-brand img{height:34px;width:auto;}
.footer-nav{display:flex;flex-wrap:wrap;gap:14px;}
.footer-nav a{color:rgba(255,255,255,.78);font-weight:800;}
.footer-nav a:hover{color:#fff;}
.copyright{margin:6px 0 0;font-size:12px;color:rgba(255,255,255,.62);}
.accent{color:var(--accent);}

@media (max-width:980px){.grid-2{grid-template-columns:1fr;}}
@media (max-width:860px){
  .nav-button{display:flex;
    display: flex !important;
  }
  .site-nav{
    position:absolute; right:20px; top:66px;
    flex-direction:column; align-items:stretch;
    width:min(320px, calc(100vw - 40px));
    padding:12px; border-radius:18px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(0,0,0,.08);
    box-shadow:var(--shadow);
    transform-origin: top right;
    transform: scale(.98);
    opacity:0; pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .site-nav a{padding:12px 12px;}
  body.nav-open .site-nav{opacity:1; transform: scale(1); pointer-events:auto;}
}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto !important; transition:none !important;}}

/* No hero background images (requested) */
.page-hero .hero-media{
  background-image: linear-gradient(90deg, rgba(7,26,35,.80), rgba(7,26,35,.50) 55%, rgba(7,26,35,.80)) !important;
}


/* ---- NAV FIX: prevent broken menu labels ---- */
.site-nav{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:20px;
}
.site-nav a{
  white-space:nowrap;
  word-break:keep-all;
}
/* allow nav to scroll on small screens instead of breaking text */
@media (max-width: 920px){
  .site-nav{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .site-nav::-webkit-scrollbar{ display:none; }
}

/* ---- Social links ---- */
.social-links{ display:flex; gap:10px; align-items:center; }
.social{ width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background: rgba(255,255,255,.10); color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.site-footer .social{ background: rgba(0,76,113,.08); color: var(--base); border:1px solid rgba(0,0,0,.08); }
.social svg{ width:18px; height:18px; fill: currentColor; }
.social:hover{ transform: translateY(-1px); box-shadow: 0 10px 18px rgba(0,0,0,.08); }

/* ---- Prominent social placement ---- */
.hero-social{
  margin-top:18px;
  display:flex;
  gap:14px;
}
.hero-social .social{
  width:44px;
  height:44px;
  font-size:0;
}

/* ---- Two-line brand logo ---- */
.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.brand .brand-sub{
  font-size:12px;
  letter-spacing:.18em;
  opacity:.8;
}


/* ---- Footer logo aspect ratio fix ---- */
.site-footer .footer-brand img{
  width: 100%;
  max-width: 280px;
  height: auto;
  display:block;
}


/* ---- Header social (more prominent) ---- */
.header-social{
  display:flex;
  gap:12px;
  align-items:center;
  margin-left:auto;
}
.header-social .social{
  width:44px;
  height:44px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
}

/* ---- Header logo normalize ---- */
.brand{
  flex-direction:row;
  align-items:center;
}
.brand img{
  width:auto;
  height:48px;
}
.brand .brand-sub{ display:none; }

/* --- Prevent wrap in group companies text --- */
.no-wrap {
  white-space: nowrap;
}

/* --- Header spacing fix --- */
.site-header .header-inner{
  gap: 20px;
}
.site-header .brand{
  margin-right: 12px;
}
.site-header nav{
  margin-left: 0;
}

/* --- Footer CTA remove --- */
.site-footer .cta,
.site-footer .footer-cta,
.site-footer .footer-button{
  display: none !important;
}

/* ---- Footer social next to Access ---- */
.footer-access{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-social{
  display:flex;
  gap:10px;
}
.footer-social .social{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.12);
  color:#004C71;
}
.footer-social svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

/* ---- Footer nav social next to Access ---- */
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  align-items:center;
}
.footer-social-inline{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin-left:-6px;
}
.footer-social-inline .social{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.12);
  color:#004C71;
}
.footer-social-inline svg{
  width:16px;
  height:16px;
  fill:currentColor;
}

/* --- Group company inline (no wrap) --- */
.group-company-inline{
  white-space: nowrap;
}

/* --- Google Map embed --- */
.map-block{ margin-bottom:48px; }
.map-embed{
  width:100%;
  height:360px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.map-embed iframe{
  width:100%;
  height:100%;
  border:0;
}

/* --- Access page office + map side-by-side --- */
.office-grid{
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:24px;
}
.office{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:22px;
  align-items:stretch;
}
.office-map{
  display:flex;
}
.office-map .map-embed{
  width:100%;
  height:100%;
  min-height:260px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.office-map .map-embed iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
@media (max-width: 860px){
  .office{ grid-template-columns: 1fr; }
  .office-map .map-embed{ min-height: 300px; }
}

/* --- Hero title line break --- */
.hero-title span{display:block;}

/* --- Strength cards equal height --- */
.section-alt .grid-2{
  display:grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  align-items: stretch;
}
.section-alt .grid-2 .card{
  height: 100%;
  display:flex;
  flex-direction:column;
}
.section-alt .grid-2 .section-lead{
  min-height: 2.6em; /* keep titles aligned even if wrap */
}
@media (max-width: 860px){
  .section-alt .grid-2{
    grid-template-columns: 1fr !important;
  }
}


/* --- Fix: Strength cards top alignment & equal rows --- */
.section-alt .grid-2{
  align-items: stretch !important;
  grid-auto-rows: 1fr;
}
.section-alt .grid-2 > .card{
  margin: 0 !important;
}


/* --- Fix: ghost button inside white card --- */
.card .btn-ghost{
  color: var(--base);
  border-color: rgba(0,76,113,.35);
  background: #fff;
}

.card .btn-ghost:hover{
  background: var(--base);
  color: #fff;
}

/* === iPhone 電話ボタン崩れ対策 === */
.phone-buttons {
  display: flex;
  gap: 16px;
}
.phone-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f2b705;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.phone-number {
  white-space: nowrap;
  font-size: 18px;
}
.phone-time {
  font-size: 13px;
}
@media (max-width: 768px) {
  .phone-buttons {
    flex-direction: column;
  }
  .phone-button {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }
  .phone-number {
    font-size: 20px;
  }
  .phone-time {
    font-size: 13px;
    opacity: 0.9;
  }
}


/* === TOPへ戻るボタン === */
#toTop{
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  display: none;            /* JSで表示 */
  align-items: center;       /* flex中央寄せ */
  justify-content: center;   /* flex中央寄せ */
  z-index: 999;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  cursor: pointer;
  transition: bottom .2s ease, opacity .2s ease;
}
#toTop:hover{opacity:.9;}



/* === iPhone: 電話ボタン崩れ＆電話番号を目立たせる === */
@media (max-width:480px){
  .btn-phone{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;border-radius:20px;padding:12px 14px;}
  .btn-phone .phone-label{font-size:.95rem;opacity:.9;}
  .btn-phone .phone-number{font-size:1.35rem;white-space:nowrap;letter-spacing:.02em;}
  .btn-phone .phone-hours{font-size:.9rem;white-space:normal;}
  #toTop{right:14px;bottom:14px;width:44px;height:44px;font-size:16px;}
}

/* PC/タブレット: 電話番号を少し強調 */
.btn-phone .phone-number{color:var(--base);}


/* === 電話番号を目立たせる（白いピル背景 + アイコン） === */
.phone-num-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#ffffff;
  padding:8px 12px;
  border-radius:999px;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
  color:#002b45;
}
.phone-num-pill svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.phone-num-pill svg path{ fill: currentColor; }
.phone-number{
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
}
/* iPhoneでは少し小さく（TOPボタン含む） */
@media (max-width: 480px){
  #toTop, #backToTop{
    width:46px;
    height:46px;
    font-size:14px;
  }
  .phone-num-pill{ padding:7px 11px; }
  .phone-num-pill svg{ width:16px; height:16px; }
  .phone-number{ font-size:18px; }
  .phone-time{ line-height:1.25; }
}

@media (max-width: 480px){
  #toTop{width:46px;height:46px;font-size:12px;}
}

/* iOS full-height fix */
html, body{
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
}
body{
  overflow-y: auto;
}

/* Ensure TOP button visibility */
#toTop{
  position: fixed !important;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #0b1220;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* Quick Menu emphasis */
.quick-menu{
  background:#0b2236;
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.quick-menu h3{
  color:#fff;
  letter-spacing:.08em;
  margin-bottom:12px;
}
.quick-menu a{
  display:block;
  padding:10px 14px;
  margin-bottom:8px;
  background:rgba(255,255,255,.08);
  border-radius:12px;
  color:#fff;
  font-weight:700;
}
.quick-menu a:hover{
  background:rgba(255,255,255,.18);
}

/* ENG spoken text mobile safe */
.eng-note{
  word-break:keep-all;
  overflow-wrap:break-word;
  text-align:center;
}

/* Broadcast-style video frame */
.youtube-wrap{
  border-radius:18px;
  border:2px solid rgba(255,255,255,.18);
  box-shadow:0 14px 36px rgba(0,0,0,.35);
  position:relative;
}
.youtube-wrap::before{
  content:"ON AIR";
  position:absolute;
  top:10px; left:12px;
  background:#e53935;
  color:#fff;
  font-weight:800;
  font-size:11px;
  padding:4px 8px;
  border-radius:6px;
  z-index:5;
}

/* iPhone layout guard */
@media (max-width:480px){
  .container{ width:100%; }
  section{ overflow:hidden; }
}

/* iOS header artifact fix */
header, .header, .site-header{
  overflow: hidden;
}
button, a{
  -webkit-tap-highlight-color: transparent;
}

/* Quick Menu refined */
.quick-menu{
  background: var(--base);
  padding: 12px 14px;
}
.quick-menu a{
  background: rgba(255,255,255,.12);
  margin-bottom: 6px;
}
.quick-menu h3{
  margin-bottom: 8px;
}

/* Quick Menu vertical center fix */
.quick-menu{
  background: var(--base);
  padding: 14px 16px;
  display: flex;
  align-items: center; /* vertical center */
}
.quick-menu h3{
  margin: 0;
  line-height: 1;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #fff;
}

}

/* Company intro refined (broadcast-grade) */
.company-intro{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin: 20px 0 6px;
  padding: 18px 18px 16px;
  background: rgba(0,76,113,0.06);
  border: 1px solid rgba(0,76,113,0.14);
  border-radius: 18px;
}
.company-intro p{
  margin: 0;
  color: #0b1a24;
  line-height: 1.9;
  font-size: 0.9rem; /* restore small size */
  letter-spacing: 0.02em;
  white-space: normal;
  overflow: visible;
}
.company-intro p:last-child{
  border: none;
  padding-left: 0;
  font-weight: 400;
}
@media (max-width: 768px){
  .company-intro{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px 14px;
  }
  .company-intro p:last-child{
  border: none;
  padding-left: 0;
  font-weight: 400;
}
}


/* ===== Mobile NAV (iPhone/Android) : Fullscreen overlay, instant, reliable ===== */
@media (max-width: 860px){

  /* Never clip the overlay */
  header, .header, .site-header, .header-inner{
    overflow: visible !important;
  }

  /* Make the checkbox reliably togglable on iOS */
  .nav-toggle{
    position: absolute !important;
    left: -9999px !important;
  }

  /* Keep the hamburger visible and tappable even when the menu is open */
  .nav-button{
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    right: 12px !important;
    z-index: 1000001 !important;   /* above overlay */
    pointer-events: auto !important;
  }

  /* Fullscreen overlay */
  .site-nav{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;

    /* Start hidden */
    display: none !important;

    /* Layout */
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;

    /* Leave space for header button area */
    padding: calc(env(safe-area-inset-top, 0px) + 72px) 18px
             calc(env(safe-area-inset-bottom, 0px) + 18px) !important;

    /* Look */
    background: rgba(0,0,0,.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Always on top */
    z-index: 1000000 !important;

    /* Scroll inside */
    overflow: auto !important;

    /* Instant */
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Open state (checkbox driven) */
  body.nav-open .site-nav{
    display: flex !important;
  }

  /* Menu items: full-row clickable (top-level only) */
  .site-nav > a{
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    background: rgba(255,255,255,.95) !important;
    color: #0b1220 !important;
    border-radius: 14px !important;

    padding: 16px 16px !important;
    margin: 0 !important;

    font-weight: 900 !important;
  }

  /* SNS icons inside nav */
  .site-nav .footer-social-inline{
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 8px !important;
  }
  .site-nav .footer-social-inline a.social{
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    background: rgba(255,255,255,.16) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    color: #fff !important;

    overflow: visible !important;
  }
  .site-nav .footer-social-inline a.social svg{
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    fill: currentColor !important;
  }
}




/* ===== iPhone header fixes : hide skip link unless keyboard focus + avoid hamburger overlap ===== */
a.skip, a.skip-link, .skip, .skip-link{
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  z-index: 1000002 !important;
}

/* show only when keyboard focus (prevents iOS showing it like a button) */
a.skip:focus-visible, a.skip-link:focus-visible, .skip:focus-visible, .skip-link:focus-visible{
  left: 12px !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.18) !important;
}

@media (max-width: 860px){
  /* reserve space on the right so logo never sits under the hamburger */
  header, .header, .site-header, .header-inner{
    padding-right: 92px !important; /* hamburger width + margin */
    box-sizing: border-box !important;
  }

  /* keep hamburger away from logo */
  .nav-button{
    right: 10px !important;
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
  }
}



/* ===== Header logo aspect-ratio fix (prevent squish on iPhone) ===== */
.site-header .brand img{
  width: auto !important;      /* defeat any later global img{width:100%...} */
  height: auto !important;     /* keep natural aspect ratio */
  max-height: 42px !important; /* match intended header size */
  object-fit: contain;
}


/* Mobile nav labels */
.site-nav a .nav-mobile{display:none;}
.site-nav a .nav-desktop{display:inline;}
@media (max-width: 768px){
  .site-nav a .nav-mobile{display:inline;}
  .site-nav a .nav-desktop{display:none;}
}


/* Nav open state (JS) */
body.nav-open .site-nav{opacity:1; transform: scale(1); pointer-events:auto;}
body.nav-open .nav-button{position:relative; z-index:9999;}
.site-header{position:sticky; top:0; z-index:9998;}






/* === Nav stable overrides (mobile only) === */
.nav-toggle{ display:none !important; } /* legacy checkbox */
@media (max-width: 768px){
  .site-nav{
    pointer-events:none;
    opacity:0;
    transform: translateY(-6px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
  }
  body.nav-open .site-nav{
    pointer-events:auto;
    opacity:1;
    transform: translateY(0) scale(1);
  }
}


/* Quick Menu buttons */
.quickmenu-buttons{
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.quickmenu-buttons > li{ margin: 0; }

.quickmenu-btn{
  display: block;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.quickmenu-btn:hover{
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.quickmenu-btn:active{
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.quickmenu-btn:focus-visible{
  outline: 3px solid rgba(248,180,0,.55);
  outline-offset: 3px;
}

/* PC: 4 columns */
@media (min-width: 861px){
  .quickmenu-buttons{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Quick Menu buttons (1 column) */
.quickmenu-buttons{ grid-template-columns: 1fr !important; }


/* === Mobile nav menu: button-like links === */
@media (max-width: 860px){
  .site-nav ul{ padding: 14px 14px 18px !important; }
  .site-nav li{ margin: 10px 0 !important; }
  .site-nav a{
    display: block !important;
    width: 100% !important;
    padding: 14px 14px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.22) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .site-nav a:active{
    transform: scale(.99);
    box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
  }
}


/* === Quick Menu: more button-like === */
.quickmenu-btn{
  background: rgba(0, 76, 113, .08) !important; /* subtle brand tint */
  border: 1px solid rgba(0, 76, 113, .18) !important;
}
.quickmenu-btn:hover{
  background: rgba(0, 76, 113, .12) !important;
}
.quickmenu-btn:active{
  background: rgba(0, 76, 113, .10) !important;
}


/* Keep nav in the DOM for animation */
  .site-nav{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(86vw, 420px) !important;
    height: 100vh !important;
    overflow-y: auto !important;
    transform: translateX(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .22s ease, opacity .22s ease !important;
    z-index: 9999 !important;
  }

  body.nav-open .site-nav{
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Optional dim background */
  body.nav-open{ overflow:hidden; }
}


/* Quick Menu force 1 column (PC & iPhone) */
.quickmenu-buttons{ grid-template-columns: 1fr !important; }


/* Mobile nav panel: ensure text visible & layout stable */
@media (max-width: 860px){
  .site-nav{
    background: rgba(0,0,0,.72) !important;
    color: #fff !important;
    padding-top: 72px !important; /* keep clear of header */
    box-shadow: -18px 0 40px rgba(0,0,0,.35) !important;
  }

  .site-nav ul{
    list-style: none !important;
    padding: 14px 14px 18px !important;
    margin: 0 !important;
    display: block !important;
  }

  .site-nav li{ margin: 10px 0 !important; }

  .site-nav a{
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 14px !important;
    display: block !important;
    padding: 14px 14px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.22) !important;
  }

  .site-nav a:active{
    transform: scale(.99);
    background: rgba(255,255,255,.14) !important;
  }

  /* Ensure hamburger button stays above overlay */
  .nav-button{
    position: relative !important;
    z-index: 10000 !important;
  }
}


/* === Mobile nav: fullscreen slide/fade + keep header visible === */
@media (max-width: 860px){
  /* Header should stay visible */
  header{
    position: sticky !important;
    top: 0 !important;
    z-index: 10001 !important;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-button{ display:flex !important; position: relative !important; z-index: 10002 !important; }

  /* Fullscreen nav overlay */
  .site-nav{
    position: fixed !important;
    inset: 0 !important;              /* full screen */
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;

    /* animation state (closed) */
    transform: translateY(-8px) !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transition: opacity .18s ease, transform .18s ease !important;

    z-index: 10000 !important;

    background: rgba(0,0,0,.72) !important;
    color: #fff !important;

    /* leave space for header */
    padding-top: 76px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.40) !important;
  }

  body.nav-open .site-nav{
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Dim background behind overlay (kept below header/nav) */
  body.nav-open{ overflow:hidden; }
}


/* Ensure PC header nav always visible (override any mobile fullscreen rules) */
@media (min-width: 861px){
  .site-nav{
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  }


@media (max-width: 860px){
  header{
    background: rgba(255,255,255,.72) !important;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .site-header .brand-sub{ color: rgba(11,18,32,.72) !important; }
}


/* QuickMenu fallback 1 column */
@media (min-width:0px){ .quickmenu ul{ columns: 1; } }


/* === Quick Menu: ALWAYS 1 column (PC & iPhone) === */
.quickmenu-buttons{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.quickmenu-buttons > li{ width: 100% !important; }
.quickmenu-btn{
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
}


/* === Desktop nav safety: never hide header links === */
@media (min-width: 861px){
  header{ position: relative !important; background: transparent !important; backdrop-filter: none !important; }
  .site-nav{
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }
  }


/* === Mobile overlay (scoped) === */
@media (max-width: 860px){
  body.nav-open::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 900;
  }
}


/* === Mobile nav show/hide (scoped) === */
@media (max-width: 860px){
  .site-nav{ display:none !important; }
  body.nav-open .site-nav{ display:block !important; }
  body.nav-open{ overflow:hidden; }
}


/* === Desktop nav visible (safety) === */
@media (min-width: 861px){
  .site-nav{ display:flex !important; }
}


/* nav-jp desktop hide */
@media (min-width: 861px){
  header .site-nav .nav-jp{ display:none !important; }
}
@media (max-width: 860px){
  header .site-nav .nav-jp{ display:inline !important; opacity:.92; }
}


/* === Mobile header layout: logo left bigger, nav button right === */
@media (max-width: 860px){
  header .header-inner,
  header .container,
  header .header-wrap{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap: 12px !important;
  }

  /* If header direct children are used */
  header{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header .logo,
  header .site-logo,
  header .brand,
  header a.logo{
    flex: 0 1 auto !important;
  }

  header .logo img,
  header .site-logo img,
  header .brand img{
    height: 30px !important;
    width: auto !important;
    max-width: 72vw !important;
    object-fit: contain !important;
  }

  .nav-button{
    margin-left: auto !important;
    flex: 0 0 auto !important;
    align-self:center !important;
    right: auto !important;
    left: auto !important;
  }

  /* Make sure nav button isn't centered by any absolute positioning */
  header .nav-button{
    position: relative !important;
  }
}


/* Back to TOP button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #0b1220;
  background-color: var(--accent);
  border-radius: 999px;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
  filter: brightness(0.92);
}
