/* =========================
   common.css（全ページ共通 / 最終安定版）
   ========================= */

/* =========================
   Theme
   ========================= */
:root{
  --brand:#3b6ec6;
  --ink:#262626;
  --muted:#58606a;
  --card:#ffffff;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}

/* =========================
   Base / Safety
   ========================= */
html, body{
  width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after{
  box-sizing: border-box;
}

body{
  margin:0;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  color:var(--ink);
  line-height:1.75;
  background:#fff;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ opacity:.9; }

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
   Layout
   ========================= */
.wrap{
  width: clamp(300px, 92vw, 1100px);
  margin: 0 auto;
}

/* （保険） */
.container{
  width: min(1040px, 92%);
  margin: 0 auto;
}

/* =========================
   Header / Nav
   ========================= */
header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.90);
  backdrop-filter:saturate(160%) blur(8px);
  -webkit-backdrop-filter:saturate(160%) blur(8px);
  z-index:50;
  border-bottom:1px solid #eef;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo img{
  height:28px;
  width:auto;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:28px;
}

.menu{
  display:flex;
  align-items:center;
  gap:28px;
  margin:0;
  padding:0;
}

.menu a{
  color:#2b2f33;
  font-size:16px;
  font-weight:600;
  padding:8px 12px;
  position:relative;
}

/* underline hover */
.menu a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:0;
  height:2px;
  background:#3b82f6;
  transition:.3s;
  transform:translateX(-50%);
}
.menu a:hover::after{ width:60%; }

/* CTA */
.cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg,var(--brand),#6ea6ff);
  color:#fff;
  padding:10px 18px;
  border-radius:14px;
  box-shadow:var(--shadow);
  white-space:nowrap;
}

/* =========================
   HERO SLIDER（index用）
   ========================= */
.hero{
  width:100%;
  margin:0;
  padding:0;
  position:relative;
}

/* 画面幅いっぱい + 高さを“画面比率”で出す */
.hero-slider{
  width:100vw;

  height:72vh;
  min-height:520px;
  max-height:820px;

  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);

  position:relative;
  overflow:hidden;

  /* ✅下の謎余白を出さない保険 */
  display:block;
  line-height:0;
}

/* 画像重ね表示 */
.hero-slider img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: 50% 30%;

  display:block;

  opacity:0;
  transition:opacity .8s ease;
}

/* 表示中 */
.hero-slider img.is-active{
  opacity:1;
}

/* hero内のコンテンツは上に乗せられる */
.hero .hero-grid{
  position:relative;
  z-index:2;
}

/* =========================
   Cards / Section
   ========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:#fff;
  border-radius:24px;
  box-shadow:0 16px 40px rgba(0,0,0,.06);
  padding:48px 56px;
}

.sec{
  font-size:26px;
  margin:.2em 0 18px;
}

/* =========================
   Access
   ========================= */
.access-card{ margin-top:16px; }

.access-grid{
  display:grid;
  grid-template-columns:1.1fr 1.2fr;
  gap:24px;
  align-items:center;
}

.access-info p{
  margin:0 0 8px;
  font-size:14px;
}

.access-company{
  font-weight:600;
  font-size:20px;
  margin-bottom:6px;
}

.access-map iframe{
  width:100%;
  height:260px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  box-shadow:0 4px 18px rgba(0,0,0,.08);
}

#access{ margin-top:48px; }

/* =========================
   Footer
   ========================= */
.site-footer{
  background:#ffffff;
  padding:40px 0 0;
  margin-top:60px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:flex-start;
}

.footer-info p{
  margin:4px 0;
  font-size:14px;
  color:#444;
}

.footer-logo{
  height:40px;
  width:auto;
  display:block;
  margin-bottom:8px;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.footer-links a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#2b2f33;
  font-size:14px;
}
.footer-links a::before{
  content:"●";
  font-size:10px;
  line-height:1;
  color:#3b6ec6;
}
.footer-links a:hover{ text-decoration:underline; }

.copyright{
  background:#0d1b2a;
  color:#cfe0ff;
  text-align:center;
  padding:14px 0;
  font-size:13px;
  margin-top:32px;
  width:100%;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .cards{ grid-template-columns:1fr; }
  .access-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
}

@media (max-width: 768px){

  /* header */
  header .nav{
    position: relative;
    padding: 10px 16px;
  }
  .logo img{
    height: 22px;
  }

  /* hero */
  .hero-slider{
    height:40vh;
    min-height:300px;
    max-height:none;
    margin-bottom:0;
  }

  /* ✅ここが本命：ヒーロー直下の謎余白を消す */
  .hero .hero-grid{
    margin:0 !important;
    padding:0 !important;
    height:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  /* cards */
  .card{
    padding:24px 18px;
    border-radius:18px;
  }
  .sec{
    font-size:20px;
  }

  /* footer */
  .site-footer{ padding:26px 0 0; }
}

/* =========================
   Hamburger / SP Menu
   ========================= */

/* PCでは出さない */
.hamburger{ display:none; }
.sp-menu{ display:none; }

@media (max-width: 768px){

  /* PCメニュー消す */
  .pc-menu,
  .menu{
    display:none !important;
  }

  /* ハンバーガー */
  .hamburger{
    display:block !important;
    font-size:28px;
    line-height:1;
    background:transparent;
    border:0;
    padding:10px 12px;
    border-radius:12px;
    cursor:pointer;
    margin-left:auto;
  }

  /* SPメニュー */
  .sp-menu{
    display:none;
    position:absolute;
    right:16px;
    top:56px;
    width:min(280px, calc(100vw - 32px));
    background:#fff;
    border:1px solid #e6ecff;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.10);
    padding:10px;
    z-index:9999;
  }

  .sp-menu.is-open{
    display:block;
  }

  .sp-menu a{
    display:block;
    padding:12px 10px;
    font-size:16px;
    color:#2b2f33;
    text-decoration:none;
    border-radius:10px;
  }

  .sp-menu a:hover{
    background:rgba(59,110,198,.08);
  }
}