:root{
  --navy:#0f2a5f;
  --blue:#2f6bff;
  --bg:#f4f8ff;
  --text:#1f2a44;
  --muted:#5b6a84;
  --line:rgba(15,42,95,.12);
  --shadow-soft:0 16px 40px rgba(0,0,0,.06);
  --shadow-strong:0 22px 60px rgba(0,0,0,.10);
  --hero-pos:72% 52%;
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
}
a{color:inherit}
img{max-width:100%;display:block}
.container{width:min(1200px,100%);margin:0 auto;padding:0 24px}
.nobr{white-space:nowrap}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;font-weight:900;
  padding:14px 22px;border-radius:14px;border:1px solid transparent;
  transition:.18s;white-space:nowrap;user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(135deg,#2f6bff,#0f2a5f);
  color:#fff;
  box-shadow:0 18px 40px rgba(47,107,255,.28);
}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{
  background:#fff;border:1px solid var(--line);
  color:var(--navy);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
}
.btn-ghost:hover{transform:translateY(-2px)}
.pc-only{display:inline-flex}
.sp-only{display:none}

/* ===== Header ===== */
.header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;gap:18px;padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:12px;text-decoration:none;white-space:nowrap;
}
.brand img{height:32px}
.brand-text-wrap{display:flex;flex-direction:column;line-height:1.1}
.brand-text{font-size:18px;font-weight:900;letter-spacing:.06em;color:var(--navy)}
.brand small{font-size:12px;font-weight:900;color:var(--blue);letter-spacing:.08em}

.pc-nav{
  flex:1;
  display:flex;justify-content:center;gap:18px;
  white-space:nowrap;overflow-x:auto;
  scrollbar-width:none;
}
.pc-nav::-webkit-scrollbar{display:none}
.pc-nav a{
  text-decoration:none;color:#334;
  font-weight:800;font-size:14px;
  padding:8px 0;
}
.pc-nav a:hover{color:var(--blue)}

.header-cta{display:flex;gap:12px;white-space:nowrap}
.header-cta .btn{padding:12px 18px}

/* ===== SP Hamburger ===== */
.hamburger{
  display:none;margin-left:auto;width:44px;height:44px;border-radius:12px;
  border:1px solid var(--line);background:#fff;box-shadow:0 10px 22px rgba(0,0,0,.06);
  align-items:center;justify-content:center;cursor:pointer;
}
.hamburger-lines{width:20px;height:14px;position:relative}
.hamburger-lines span{
  position:absolute;left:0;right:0;height:2px;border-radius:2px;background:var(--navy);
  transition:.25s;
}
.hamburger-lines span:nth-child(1){top:0}
.hamburger-lines span:nth-child(2){top:6px}
.hamburger-lines span:nth-child(3){top:12px}
body.menu-open .hamburger-lines span:nth-child(1){top:6px;transform:rotate(45deg)}
body.menu-open .hamburger-lines span:nth-child(2){opacity:0;transform:translateX(6px)}
body.menu-open .hamburger-lines span:nth-child(3){top:6px;transform:rotate(-45deg)}


.overlay{
  position:fixed; inset:0; background:rgba(15,42,95,.22);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden; /* ←★これ追加 */
  pointer-events:none;
  transition:.25s;
  z-index:80;
}
body.menu-open .overlay{
  opacity:1;
  visibility:visible; /* ←★これ追加 */
  pointer-events:auto;
}

.sp-drawer{
  position:fixed;top:0;right:-340px;width:320px;max-width:88vw;height:100vh;
  background:#fff;border-left:1px solid var(--line);
  box-shadow:-20px 0 60px rgba(0,0,0,.14);
  transition:.25s;z-index:90;
  display:flex;flex-direction:column;
}
body.menu-open .sp-drawer{right:0}
.sp-drawer-head{
  padding:18px 18px 10px;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;
}
.sp-drawer-title{font-weight:900;color:var(--navy);font-size:14px;letter-spacing:.06em}
.sp-drawer-close{
  width:40px;height:40px;border-radius:12px;border:1px solid var(--line);
  background:#fff;cursor:pointer;
}
.sp-drawer-body{
  padding:14px 18px 18px;display:flex;flex-direction:column;gap:6px;overflow:auto;
}
.sp-drawer a.link{
  text-decoration:none;color:var(--navy);font-weight:900;
  padding:12px 10px;border-radius:12px;
}
.sp-drawer a.link:hover{background:#f3f7ff}
.sp-drawer .divider{height:1px;background:var(--line);margin:10px 0}
.sp-drawer .btn{width:100%}
.btn-line{
  background:#06C755;color:#fff;border:0;
  box-shadow:0 18px 40px rgba(6,199,85,.18);
}

/* ===== Hero ===== */
.hero{
  position:relative;border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#f7fbff,#eaf1ff);overflow:hidden;
}
.hero-inner{position:relative;min-height:560px;display:flex;align-items:center;padding:72px 0 46px}
.hero-bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:var(--hero-pos);
  transform:scale(1.02);
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,
    rgba(247,251,255,0.98) 0%,
    rgba(247,251,255,0.96) 45%,
    rgba(247,251,255,0.72) 62%,
    rgba(247,251,255,0.00) 82%);
}
.hero-copy{position:relative;max-width:820px}
.kicker{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
  font-weight:900;color:#2a3a55;font-size:13px;
}
.kicker .dot{width:10px;height:10px;border-radius:999px;background:var(--blue)}
.hero h1{
  margin:16px 0 12px;
  font-size:78px;line-height:1.05;
  font-weight:900;color:var(--navy);
  letter-spacing:-0.8px;
}
.hero p{margin:0 0 22px;font-size:18px;color:#445;font-weight:700}
.hero-cta{display:flex;gap:16px;flex-wrap:wrap}
.hero-note{margin:14px 0 0;color:#667;font-weight:700;font-size:12px}

/* ===== Trust ===== */
.trust{
  padding:40px 0;background:linear-gradient(180deg,#ffffff,#f6f9ff);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.trust-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.trust-left{display:flex;flex-direction:column;gap:4px}
.trust-kicker{font-size:12px;font-weight:900;color:#6a7a90;letter-spacing:.10em}
.trust-company{font-size:16px;font-weight:900;color:var(--navy)}
.trust-sub{font-size:13px;color:#6b7a92;font-weight:700}
.trust-badges{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.badge{
  display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;
  background:#fff;border:1px solid rgba(15,42,95,.12);
  box-shadow:0 16px 35px rgba(0,0,0,.06);
  font-weight:800;font-size:14px;color:#1f2a44;white-space:nowrap;transition:.2s;
}
.badge:hover{transform:translateY(-3px)}
.badge .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#2f6bff,#0f2a5f)}

/* ===== Sections ===== */
section{padding:90px 0}
.alt{background:var(--bg)}

/* --- FIX: 背景交互（後半セクションをIDで固定） --- */

/* alt / section-alt の背景指定を無効化（背景は透明に戻す） */
section.alt,
.section-alt{
  background: transparent;
}

/* 薄青（bg）にしたいセクションだけ列挙 */
#flow,
#skills,
#why,
#works,
#faq{
  background: var(--bg);
}

/* 白にしたいセクション（必要なら） */
#comparison,
#requirements,
#curriculum,
#reserve{
  background: #fff;
}

.sec-title{font-size:36px;font-weight:900;margin:0 0 14px;color:var(--navy)}
.sec-lead{margin:0 0 40px;color:var(--muted);font-weight:700}

.feature .sec-title,
.feature .sec-lead {
  grid-column: 1 / -1;
}

/* 特徴セクションだけ、見出し下の余白を詰める */
.feature .sec-lead{
  margin: 0 0 0px;
}

.card{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-soft);
}
.grid2{display:grid;grid-template-columns:440px 1fr;gap:44px;align-items:center}
.media{
  border-radius:20px;border:1px solid var(--line);
  box-shadow:var(--shadow-soft);overflow:hidden;background:#fff;
}
.media img{width:100%;height:290px;object-fit:cover}
.box{padding:26px}
.h3{margin:0 0 10px;font-size:20px;font-weight:900;color:var(--navy)}
.p{margin:0;color:var(--muted);font-weight:650}
.list{margin:14px 0 0;padding:0 0 0 18px;color:#445;font-weight:700}
.list li{margin:6px 0}

/* alternating zigzag */
.feature{padding:80px 0}

.feature:nth-child(even) .grid2{grid-template-columns:1fr 440px}
.feature:nth-child(even) .grid2 .media{order:2}

/* flow diagram */
.flow-figure{
  margin:24px 0 34px;background:#fff;border:1px solid var(--line);
  border-radius:18px;box-shadow:var(--shadow-soft);overflow:hidden;
}
.flow-figure picture,.flow-figure img{display:block;width:100%;height:auto}

/* curriculum table */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  background:#fff;
}
.table th,.table td{
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.table th{
  text-align:left;
  background:#f6f9ff;
  color:var(--navy);
  font-weight:900;
  width:220px;
}
.table tr:last-child th,.table tr:last-child td{border-bottom:none}

/* FAQ */
.faq{display:grid;gap:12px}
details{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
summary{
  cursor:pointer;
  list-style:none;
  padding:16px 16px;
  font-weight:900;color:var(--navy);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
summary::-webkit-details-marker{display:none}
.faq-body{padding:0 16px 16px;color:var(--muted);font-weight:650}

/* requirements badges */
.req-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  background:#fff;border:1px solid var(--line);
  box-shadow:0 12px 26px rgba(0,0,0,.05);
  font-weight:850;color:#32425f;font-size:13px;
}
.tag .dot{width:9px;height:9px;border-radius:50%;background:var(--blue)}

/* reserve */
.reserve-grid{display:grid;grid-template-columns:1fr 420px;gap:22px;align-items:start}
.reserve-note{padding:18px}
.reserve-note .h3{margin-bottom:8px}
.small{font-size:13px;color:var(--muted);font-weight:650}

/* Footer */
footer{
  padding:56px 0 32px;border-top:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff,#f5f9ff);
}
.footer-inner{
  max-width:1200px;margin:0 auto;padding:0 24px;
  display:flex;justify-content:space-between;align-items:flex-start;gap:34px;flex-wrap:wrap;
}
.footer-left{display:flex;flex-direction:column;gap:10px;line-height:1.7;min-width:min(520px,100%)}
.footer-company{font-size:13px;color:#667}
.footer-license{
  margin-top:6px;font-size:12.5px;color:#72809a;font-weight:750;line-height:1.75;
}
.footer-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:6px}
.footer-links a{font-size:13px;text-decoration:none;color:#556;font-weight:800}
.footer-links a:hover{color:var(--blue)}
.footer-copy{font-size:12px;color:#8893a8;margin-top:6px}
.footer-right{display:flex;flex-direction:column;align-items:center;gap:8px}
.footer-right img{height:76px}
.pmark-no{font-size:12px;color:#7b88a1;font-weight:800}

/* SP Fixed CTA */
.sp-fixed-cta{display:none}
@media (max-width: 980px){
  .reserve-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .pc-only{display:none!important}
  .sp-only{display:inline-flex!important}
  .pc-nav{display:none}
  .header-cta{display:none}
  .hamburger{display:flex}
  body{padding-bottom:95px}

  .hero h1{font-size:44px}
  .grid2,.feature:nth-child(even) .grid2{grid-template-columns:1fr}
  .feature:nth-child(even) .grid2 .media{order:0}
  .media img{
    width:100%;
    height: auto;
  }

  .sp-fixed-cta{
    display:flex;gap:10px;position:fixed;bottom:0;left:0;right:0;
    padding:12px;background:#fff;border-top:1px solid var(--line);z-index:70;
  }
  .sp-fixed-cta a{
    flex:1;display:flex;justify-content:center;align-items:center;
    padding:14px;border-radius:14px;font-weight:900;font-size:15px;
    text-decoration:none;color:#fff;
  }
  .sp-line{background:#06C755}
  .sp-form{background:linear-gradient(135deg,#2f6bff,#0f2a5f)}
}
.section-alt{background:var(--bg)}


/* Zigzag: explicit even class to avoid nth-child drift */
.feature.zig-even .feature-inner{ flex-direction:row-reverse; }
.feature.zig-even .feature-media{ justify-content:flex-start; }

/* Flow diagram: keep generous whitespace inside the card */
.flow-figure picture{ display:block; padding:18px; background:#fff; }
.flow-figure img{ display:block; width:100%; height:auto; }

/* Skills (3x2) */
.skill-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}
.skill-card{
  background:#fff;
  border:1px solid rgba(15,42,95,.10);
  border-radius:16px;
  padding:18px 16px 16px;
  box-shadow: var(--shadow-soft);
  text-align:center;
}
.skill-icon{
  width:72px;
  height:72px;
  margin:2px auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.skill-icon img{
  max-width:100%;
  max-height:100%;
  height:auto;
  width:auto;
}
.skill-card h3{
  margin:6px 0 8px;
  font-size:18px;
}
.skill-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}
@media (max-width: 980px){
  .skill-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .skill-grid{ grid-template-columns: 1fr; }
  .skill-card{ text-align:left; }
  .skill-icon{ margin:0 0 10px; }
}


/* ==== Section background mapping (restore alternating bands) ==== */
/* ===== 全セクション交互帯（main直下） ===== */
/* featureだけ交互 */
.feature{ padding:72px 0; background:transparent; }
.feature:nth-of-type(odd){ background:#fff; }
.feature:nth-of-type(even){ background:var(--bg); }
/* ===== Comparison Table ===== */

.compare-wrap{
  margin-top:24px;
  overflow-x:auto;
}

.compare-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.compare-table th,
.compare-table td{
  padding:16px;
  border-bottom:1px solid var(--line);
  text-align:center;
  font-weight:700;
}

.compare-table thead{
  background:linear-gradient(135deg,#2f6bff,#0f2a5f);
  color:#fff;
}

.compare-table tbody tr:last-child td{
  border-bottom:none;
}

.compare-table td:first-child{
  background:#f6f9ff;
  font-weight:900;
  color:var(--navy);
}

.compare-table .strong{
  color:var(--blue);
  font-weight:900;
}
/* ===== Footer ===== */
footer{
  background: var(--bg); /* 今使ってる薄青変数 */
  color: var(--text);
  padding: 48px 0;
}


/* =========================
   Skills (学ぶ技術) only fix
   ========================= */

/* タブレット：2列 */
@media (max-width: 980px){
  #skills .skills-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP：1列 + 「アイコン左／文章右」 */
@media (max-width: 620px){
  #skills .skills-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* スマホは横並び */
  #skills .skill-card{
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 18px 16px;
  }

  #skills .skill-card img,
  #skills .skill-card .skill-icon{
    width: 44px;
    height: 44px;
    margin: 2px 0 0 0;
  }

  /* タイトル/説明は右カラムに */
  #skills .skill-card h3,
  #skills .skill-card p{
    grid-column: 2;
  }

  #skills .skill-card h3{
    margin: 0 0 6px 0;
  }
}


/* ===== Hero mobile height fix ===== */
@media (max-width: 768px){
  .hero-inner{
    min-height: auto; /* 560px固定を解除 */
    padding: 0px 0 0px;
  }

  .hero-copy{
    margin: 0 auto;
  }
  .hero-cta{
    justify-content: center;
  }
}

/* ===== PCで幅を縮めた時の「左ベタ付き」防止 ===== */
:root{
  --gutter: 32px;
}

.container{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 1200px){
  :root{ --gutter: 32px; }
}

@media (max-width: 1024px){
  :root{ --gutter: 20px; }
}

/* feature 見出しブロックを flow と同じ縦位置に寄せる */
.feature > .container:first-child{
  margin-top: 0; /* 余計な上マージンがあれば潰す */
}

.feature .sec-title{
  margin-top: 0; /* h2の上マージン差を揃える */
}

.feature .sec-lead{
  margin-bottom: 24px; /* flow側の見出し下と同じにしたい値に合わせる */
}
/* 右下固定のTOPボタン（常時表示） */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

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

  width: 48px;
  height: 48px;
  border-radius: 999px;

  background: #1f4db8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.back-to-top:hover{
  filter: brightness(1.05);
}


@media (max-width: 768px){
  .back-to-top{
    bottom: 96px;
  }

  .hero h1{
    font-size: 32px; /* 42→40→38 の順で調整 */
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .hero{
    min-height: auto; /* ←100vhを殺す */
    padding: 28px 18px 16px; /* 上下の余白も圧縮 */
  }
  .hero img{
    object-fit: cover;
    object-position: 50% 35%; /* ← 80%→92%くらいまで右へ */
  }
  .hero-note{
    margin-top:10px;
    font-size:14px;
    font-weight:700;
    color:#555;
    text-align:center;
  }
  .sec-title{
   font-size:24px;
   line-height:1.3;
  }
}
/* 受講条件カード */
.req-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

/* PCは2列 */
@media (min-width:900px){
  .req-grid{
    grid-template-columns:1fr 1fr;
  }
}



/* 404eroor */
section.thanks {
  text-align: center;
}
section.thanks p{
  margin: 30px auto;
}

section.thanks .btn{
    background: #fff;
    color: #111;
    padding: 10px 34px 10px 34px;
    border: #111 1px solid;
    border-radius: 60px;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    line-height: 1.6;
}

section.thanks .btn:hover{
  background: #DCDCDC;
}


@media screen and (max-width: 768px) {
  section.thanks h1{
    font-size: 2.4rem;
  }
}

.advisor-preview {
  margin-top: 36px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  border: 1px solid #dbe9f8;
  box-shadow: 0 18px 42px rgba(6, 48, 111, 0.10);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.advisor-preview-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #06306f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}

.advisor-preview h3 {
  margin: 0 0 12px;
  color: #06306f;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.advisor-preview p {
  margin: 0 0 18px;
  color: #4f607c;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.advisor-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d64c8, #06306f);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(6, 48, 111, 0.18);
}

.advisor-preview-btn::after {
  content: "›";
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.advisor-preview-images {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(100%, 430px);
}

.advisor-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(6, 48, 111, 0.16);
}

.advisor-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .advisor-preview {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 22px;
  }

  .advisor-preview h3 {
    font-size: 21px;
  }

  .advisor-preview p {
    font-size: 14px;
  }

  .advisor-preview-images {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .advisor-thumb {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .advisor-preview-images {
    grid-template-columns: repeat(2, 1fr);
  }
}