:root{ --bg:#fff; --ink:#0a0a0a; --primary:#0b57d0; --link:#0b57d0; --border:#e1e6ef; }
*{ box-sizing:border-box }
html,body{ margin:0; padding:0; font-family:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Meiryo",sans-serif; color:var(--ink); background:var(--bg) }
a{ color:var(--link); text-decoration:none }
a:focus-visible{ outline:3px solid #ffab00; outline-offset:2px; border-radius:6px }

header.site{ position:fixed; inset:0 0 auto 0; height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; z-index:20; background:linear-gradient(to bottom,rgba(255,255,255,.95),rgba(255,255,255,.4)); backdrop-filter:blur(6px) }
.header-left{ display:flex; align-items:center; gap:12px }
.header-title{ font-weight:800; font-size:16px; color:#0b57d0 }

.menu-btn{ appearance:none; border:1px solid var(--border); color:#0a0a0a; background:#fff; padding:10px 16px; border-radius:999px; font-weight:700; cursor:pointer }

nav.menu{ position:fixed; right:16px; top:76px; background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:8px; width:min(92vw,440px); display:none; z-index:30 }
nav.menu.open{ display:block }
nav.menu a{ display:block; padding:12px 14px; border-radius:12px; color:#0a0a0a; font-weight:700 }
nav.menu a:hover{ background:#f7f9fb }

/* A) TOPページのヒーロー動画だけ中央配置・全画面 */
.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.hero .yt-embed {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100vw;
  height: 100vh;
}

/* B) カード内(聞く/つなぐ)は枠内ぴったり＆はみ出し隠す */
.video-box { position: relative; overflow: hidden; }
.video-box .yt-embed {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  transform: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important; max-height: none !important;
  display: block !important;
}


.hero-image{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; background: rgba(11,87,208,0.75); opacity:1; transition:opacity .9s ease; z-index:2; }
.hero-image.fade{ opacity:0; }
.hero-image img{ max-width:min(92vw,960px); width:100%; height:auto; object-fit:contain; filter:drop-shadow(0 6px 18px rgba(0,0,0,.25)); border-radius:12px }

.main{ max-width:1100px; margin:0 auto; padding:120px 16px 60px }
.h1{ font-size:clamp(26px,3.6vw,34px); font-weight:800; margin:0 0 18px; color:#0a0a0a }
.lead{ color:#3b3b3b; line-height:1.7 }

.grid{ display:grid; gap:16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) }
.card{ border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff }
.card .thumb{ aspect-ratio:16/9; background:#000 }
.card .body{ padding:12px 12px 14px }
.card .title{ font-weight:800; margin:0 0 6px }
.card .desc{ color:#3b3b3b; font-size:14px; line-height:1.55; max-height:6.2em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical }

.pager{ display:flex; gap:8px; justify-content:center; margin:24px 0 8px }
.pager a,.pager span{ display:inline-flex; align-items:center; justify-content:center; height:40px; min-width:40px; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:#fff; color:#0a0a0a; font-weight:700 }
.pager .current{ background:var(--primary); color:#fff; border-color:var(--primary) }

.table{ width:100%; border-collapse:collapse }
.table th,.table td{ border:1px solid var(--border); padding:10px; text-align:left }
.table th{ background:#f7f9fb }

.bars{ display:grid; gap:8px }
.bar{ background:#f7f9fb; border:1px solid var(--border); border-radius:10px; padding:8px 12px; position:relative; overflow:hidden }
.bar .fill{ position:absolute; left:0; top:0; bottom:0; background:linear-gradient(90deg,#93c5fd,#0b57d0); width:0; opacity:.25 }
.bar .label{ position:relative; font-weight:800 }
.bar .value{ position:absolute; right:10px; top:50%; transform:translateY(-50%); font-weight:800; color:#0a0a0a }

.footer{ color:#5b6676; text-align:center; padding:40px 0 60px }
.card .thumb { position: relative; }
/* ===== スケジュール表（レスポンシブ対応） ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}
.table th, .table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.table th {
  background: #f3f4f6;
  font-weight: 600;
  white-space: nowrap;
}

/* スマホ時（カラムをカード風に） */
@media (max-width: 768px) {
  .table thead {
    display: none;
  }
  .table, .table tbody, .table tr, .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  .table td {
    border: none;
    padding: 6px 10px;
  }
  .table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #0b57d0;
    margin-bottom: 2px;
  }
}
/* === ページ内動画用リセット === */
.video-box .yt-embed {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}
.video-box { position: relative; overflow: hidden; }


/* サムネ枠内にきっちり収める＆はみ出しを隠す */
.video-box {
  position: relative;   /* 念のため */
  overflow: hidden;     /* オリジナルサイズのハミ出しを隠す */
}
