:root{
  --font-base:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",sans-serif;

  --g0:#ffffff;
  --g25:#fafafa;
  --g80:#f0f0f0;
  --g100:#eeeeee;
  --g150:#e6e6e6;
  --g200:#dddddd;
  --g500:#6b6b6b;
  --g600:#666666;
  --g800:#222222;

  /* Hero blue unified */
  --hero-blue:#0098d8;

  --content:1280px;
  --pad-x:67px;

  --header-h:72px;
  --news-h:28px;

  --hero-h:630px;

  --kicker:18px;
  --title:44px;
  --headline:30px;
  --body:20px;
  --body-lh:32px;

  /* Hero padding (PC) */
  --hero-left-pl:160px;
  --hero-left-pr:56px;
  --hero-left-pt:110px;
  --hero-left-pb:78px; /* 上下同じ */

  /* Hero padding (SP) */
  --hero-left-pl-sp:96px;
  --hero-left-pr-sp:24px;
  --hero-left-pt-sp:56px;
  --hero-left-pb-sp:56px; /* 上下同じ */

  --arrow-w:52px;
  --arrow-h:160px;

  --nav-size:14px;
  --logo-h:22.6px;

  --footer-all:#666666;
  --footer-bg:#fcfcfc;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font-base);
  color:var(--g800);
  background:var(--g0);
  line-height:1.5;
}
a{ color:#0098d8; text-decoration:none; }
button{ font:inherit; }

/* 本文リンクは青、ただし上部/下部メニュー系は既存色を維持 */
.nav a,
.mobileNavLinks a,
.siteFooter a,
.copyright a,
.newsBar a,
.aiBtn,
.brand,
.mobileBrand{ color:inherit; }

/* =========================
   Container（ベース）
   ========================= */
.container{
  width: min(100% - 40px, 1146px); /* 通常は最大1146pxで伸びる */
  margin-inline: auto;
}

/* SP：画面幅にかかわらず左右20px */
@media (max-width: 820px){
  .container{
    width: calc(100% - 40px);
  }
}

/* PC用（1280px〜） */
@media (min-width: 1280px){
  .container{
    width: min(100% - 134px, 1146px);
  }
}

/* ===== Header ===== */
.siteHeader{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--g0);
  border-bottom:1px solid var(--g150);
}
.headerRow{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.brand{ display:flex; align-items:center; }
.brandLogo{
  height:var(--logo-h);
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  font-size:var(--nav-size);
  color:var(--g500);
  white-space:nowrap;
}
.nav a{
  position:relative;
  padding:8px 8px;
  border-radius:8px;
}
.nav a:not(.aiBtn).is-current::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:-18px;
  height:2px;
  background: #999;
}
.nav a:not(.aiBtn):hover{
  background:transparent;
  color:var(--g500);
}

/* AIボタン（ピル） */
.aiBtn{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:8px 14px;
  border-radius:999px;
  background:#E6F3FB;
  color:#0A6EA7;
  font-weight:400;
  text-decoration:none;
}

.aiBtnText{
  padding-right: 3px; 
}


/* 丸背景（アイコンの土台）— 背景色なし */
.aiBtnIconWrap{
  width:20px;
  height:20px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  background:transparent; /* ← ここがポイント */
}

/* AIボタンだけ角丸を最大に固定 */
.nav a.aiBtn{
  border-radius: 999px;
}

/* 念のため hover でも透明固定 */
.nav a.aiBtn:hover .aiBtnIconWrap,
.aiBtn:hover .aiBtnIconWrap{
  background:transparent;
}

/* SVG画像サイズ */
.aiBtnIcon{
  width:16px;
  height:16px;
  display:block;
}

/* hoverで見た目を変えない */
.aiBtn:hover{
  background:#E6F3FB;
  color:#0A6EA7;
}

/* ===== News ===== */
.newsBar{
  height:var(--news-h);
  display:flex;
  align-items:center;
  background:var(--g25);
  font-size:12px;
  color:var(--g500);
  border-top:1px solid var(--g100);
  border-bottom:1px solid var(--g150);
}
.newsBarInner{
  width:100%;
  display:grid;
  grid-template-columns: 18px 1fr 18px; /* 左(空) / 中央(テキスト) / 右(×) */
  align-items:center;
  gap:12px;
  min-width:0;
}

.newsText{
  grid-column:2;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.newsClose{
  grid-column:3;
  margin-left:0;

  /* ここから追加：ボタンを確実に表示 */
  width:18px;
  height:18px;
  padding:0;
  border:0;
  background:transparent;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
}

/* imgアイコン用（←ここが重要） */
.newsCloseIcon{
  width:16px;
  height:16px;
  display:block;
}

.newsClose:hover,
.newsClose:active{
  background:transparent;
}

/* ===== Hero ===== */
.hero{
  position:relative;
  width:100%;
  max-width:100%;
  border-bottom:1px solid var(--g200);
  background:var(--g0);
  overflow:hidden; /* 隣のスライドを確実に非表示 */
  contain:paint;
}
.heroTrack{
  position:relative;
  width:100%;
  min-width:0;
  height:var(--hero-h);
  overflow:hidden;
  isolation:isolate;
}

.heroSlide{
  position:absolute;
  inset:0;
  width:100%;
  min-width:0;
  max-width:none;
  height:var(--hero-h);
  box-sizing:border-box;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(100%, 0, 0);
  will-change:transform;
  backface-visibility:hidden;
}

/* JavaScript実行前も最初のヒーローだけを表示 */
.heroSlide:first-child{
  visibility:visible;
  pointer-events:auto;
  transform:translate3d(0, 0, 0);
}


.heroLeft{
  position:relative;
  min-width:0;
  background:var(--hero-blue);
  color:var(--g0);
  padding:
    var(--hero-left-pt)
    var(--hero-left-pr)
    var(--hero-left-pb)
    var(--hero-left-pl);
  display:flex;
  flex-direction:column;
  gap:18px;
}

.kicker{
  margin:0;
  font-size:var(--kicker);
  font-weight:600;
  letter-spacing:.01em;
}
.title{
  margin:0;
  font-size:var(--title);
  line-height:56px;
  font-weight:800;
  letter-spacing:.01em;
}
.headline{
  margin:0;
  font-size:var(--headline);
  line-height:1.25;
  font-weight:800;
}
.lead{
  margin:0;
  font-size:var(--body);
  line-height:var(--body-lh);
  max-width:46ch;
  opacity:.98;
}

.heroRight{
  position:relative;
  min-width:0;
  background:var(--g80);
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  min-height:0;
  overflow:hidden;
}
.heroMock{
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
  background:var(--g80);
}
.heroShot{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:left top;
}

/* arrows */
.heroArrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:var(--arrow-w);
  height:var(--arrow-h);
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
  user-select:none;
}
.heroArrow--left{ left:66px; }
.heroArrow--right{ right:66px; }
.heroArrow svg{ width:100%; height:100%; display:block; }

/* dots */
.heroDots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  padding:18px 0 22px;
  background:var(--g0);
}
.dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:0;
  background:#bdbdbd;
  cursor:pointer;
}
.dot[aria-selected="true"]{
  background:#111;
  width:14px;
  height:14px;
}

/* =================================================
   Footer sitemap (single source of truth)
   ================================================= */
.siteFooter{
  padding:0px 0 0;
  background:var(--footer-bg);
}

.footerGrid{
  display:grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap:96px;
  padding-top:48px;  /* 上=下 */
  padding-bottom:48px;
  align-items:start;
}

.footerCol,
.footerCol h4,
.footerCol ul,
.footerCol a{
  color:var(--footer-all);
}

/* カテゴリ見出し */
.footerCol h4{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
  line-height:20px;
}

/* 次カテゴリ区切り */
.siteFooter .mt{
  margin-top:22px;
}

/* ✅ インデントルール（最重要）
   インデントしたいのは「各 ul の2行目以降」だけ */
.footerCol ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  line-height:22px;
}

/* 下層リンクだけをインデント */
.siteFooter .footerCol ul > li.sitemapIndent{
  padding-left:14px;
}


/* フッター：会社概要を強調 */
.siteFooter .footerCompanyHeading a{
  font-weight:700;
}

.footerCol a:hover{ text-decoration:none; }

/* copyright */
.copyrightBar{
  width:100%;
  background:var(--footer-bg);
  border-top:1px solid var(--g150);
}
.copyright{
  padding:18px 0 22px;
  text-align:center;
  font-size:var(--nav-size);
  color:var(--g500);
}

/* ===== Responsive ===== */
@media (max-width:980px){
  .nav{ display:none; }
  :root{
    --pad-x:24px;
    --hero-left-pl:56px;
  }
  .heroArrow--left{ left:24px; }
  .heroArrow--right{ right:24px; }
}

@media (max-width:820px){
  :root{ --hero-h:760px; }

  .heroSlide{
    grid-template-columns:1fr;
    grid-template-rows:1fr 1fr;
  }

  /* SPでも直書き禁止：必ず変数で決める */
  .heroLeft{
    padding:
      var(--hero-left-pt-sp)
      var(--hero-left-pr-sp)
      var(--hero-left-pb-sp)
      var(--hero-left-pl-sp);
  }
}


/* =================================================
   SP minimum pack (Level A)
   - 破綻防止のためのスマホ用CSSだけ
   - HTMLは触らない前提
   ================================================= */

/* 画像/メディアのはみ出し防止 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* 長いURLや英数字で横スクロールが出るのを防ぐ */
body {
  overflow-wrap: anywhere;
}

/* =========================
   Footer (SP)
   ========================= */
@media (max-width: 820px) {
  .footerGrid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* タップしやすいリンク領域 */
  .siteFooter a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* =========================
   Header / Nav (SP)
   ========================= */
@media (max-width: 980px) {
  .siteHeader a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* =========================
   Mobile header actions
   ========================= */
.headerActions{
  display:none;              /* まず隠す（PCでは出さない） */
  align-items:center;
  gap:10px;
}

/* 丸いアイコンボタン */
.iconBtn{
  width:36px;
  height:36px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.iconBtn img{
  width:18px;
  height:18px;
  display:block;
}

/* hoverで変化させない（必要なら） */
.iconBtn:hover{
  background:transparent;
}

/* 980px以下で表示（navは既に消えている） */
@media (max-width: 980px){
  .headerActions{ display:flex; }
}

/* =========================
   Mobile Nav Drawer
   ========================= */
.mobileNav{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
}
.mobileNav.isOpen{ display:block; }

.mobileNavOverlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.28);
}

.mobileNavPanel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 88vw);
  background:var(--g0);
  border-left:1px solid var(--g150);
  transform:translateX(100%);
  transition:transform .18s ease;
  display:flex;
  flex-direction:column;
}

.mobileNav.isOpen .mobileNavPanel{ transform:translateX(0); }

.mobileNavTop{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--g150);
}

.mobileClose{
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  background:transparent;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
}
.mobileClose img{ width:18px; height:18px; display:block; }

.mobileNavLinks{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:16px;
  line-height:24px;
  color:var(--g800);
}
.mobileNavLinks a{
  padding:12px 10px;
  border-radius:10px;
}
.mobileNavLinks a:hover{
  background:var(--g25);
}

.mobileNavDivider{
  height:1px;
  background:var(--g150);
  margin:10px 0;
}

/* SPのときだけ使う（PCでは存在しても見えない） */
@media (min-width: 981px){
  .mobileNav{ display:none !important; }
}

html{
  overflow-y: scroll;          /* 常にスクロールバーを表示 */
  scrollbar-gutter: stable;    /* 対応ブラウザではガターも安定 */
}


