/* 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;}
body{
  margin:0;
  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:#000;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-toggle{display:none;}
.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;}
.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;}
  .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;}
  .nav-toggle:checked ~ .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;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #f5b400;
  color: #000;
  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;}
}
