/* =========================
   TOKENS
========================= */
:root{
  --header:#1f1a1a;
  --hero:#403636;
  --about:#e9e2e1;
  --text:#0b0f1a;

  --container: 1320px;

  --radius-hero: 16px;

  --brand-cyan: #008BD0;
  --brand-cyan-hover: #0076B1;

  /* 固定ヘッダー分の逃げ（PC） */
  --header-h: 92px;

  /* hero */
  --hero-card-w: 380px;
  --hero-gap: 18px;

  /* 2カラム共通 */
  --col-w: 520px;
  --gap-2col: 56px;

  /* COMPANYの最大幅（縮める） */
  --company-max: 700px;
}

/* =========================
   BASE
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
               "Hiragino Kaku Gothic ProN","Yu Gothic", sans-serif;
  color:var(--text);
  background:#fff;
  padding-top: var(--header-h); /* fixed header offset */
}

img{
  display:block;
  width:100%;
  height:auto;
}

a{ color:inherit; text-decoration:none; }

.container{
  width:min(var(--container), calc(100% - 48px));
  margin-inline:auto;
}

/* =========================
   HEADER（固定）
   - PC：1行（ロゴ｜右側に案内文＋TEL＋メール）
   - SP：中央2段（案内文→ボタン）
========================= */
.siteHeader{
  position: fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background: linear-gradient(#262020, var(--header));
  color:#fff;
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 0 10px;
}

/* タイトル画像 */
.brandTitleImg{
  display:block;
  height:48px;
  width:auto;
  max-width:100%;
  opacity:.95;
}
.brand--header .brandTitleImg{ filter: invert(1); } /* ヘッダーは白 */
.brandTitleImg--sm{ height:40px; }

/* 右側（案内文） */
.headerNote{
  font-size:14px;
  line-height:1.5;
  opacity:.95;
  white-space:nowrap;
  flex: 1;
  text-align:right;
}

/* 右側（CTA） */
.headerCtas{
  display:flex;
  gap:12px;
  flex: 0 0 auto;
}

.headerBtn{
  display:flex;
  align-items:center;
  justify-content:center;

  height:40px;
  min-width:140px;
  padding:0 16px;

  border-radius:999px;
  font-weight:700;
  font-size:15px;

  background: var(--brand-cyan);
  color:#fff;
  border:none;
}

.headerBtn:hover{ background: var(--brand-cyan-hover); }
.headerBtn:active{ transform: translateY(1px); }
.headerBtn:focus-visible{
  outline:2px solid rgba(255,255,255,.85);
  outline-offset:2px;
}

/* =========================
   HERO（フルブリード）
   - PCはヘッダー直下の見え方調整で「30px下げ」
========================= */
.hero{
  /* PC：ヘッダー直下の密着感を残しつつ 30px 下げる */
  margin-top: calc((var(--header-h) - 30px) * -1);
  padding-top: var(--header-h);

  background: var(--hero);
  padding-bottom: 40px;
}

/* フルブリード */
.hero .container{
  width:100%;
  max-width:none;
  margin:0;
}

/* ガター復活（大画面ではcontainerに揃う） */
.heroScroller{
  overflow:hidden;
  width:100%;
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
}

.heroTrack{
  display:flex;
  gap: var(--hero-gap);
  will-change: transform;
  transform: translate3d(0,0,0);
}

.heroCard{
  flex: 0 0 var(--hero-card-w);
  border-radius: var(--radius-hero);
  overflow:hidden;
  background:#222;
}

.heroCard img{
  width:100%;
  height:auto;
}

/* =========================
   ABOUT
========================= */
.about{
  background: var(--about);
  padding:72px 0 62px;
}

.aboutInner{
  display:grid;
  grid-template-columns: minmax(0, var(--col-w)) minmax(0, var(--col-w));
  gap: var(--gap-2col);
  align-items:center;
  justify-content:center;
}

.aboutText{ max-width: var(--col-w); margin:0; }

.aboutEn{
  margin:0 0 10px;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:700;
  font-size:36px;
  line-height:1.2;
  text-align:center;
}

.aboutJa{
  margin:0 0 18px;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:700;
  font-size:33px;
  line-height:1.2;
  text-align:center;
}

.aboutBody{
  margin:0;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:500;
  font-size:18px;
  line-height:1.9;
  color:#2d2d2d;
  text-align:left;
}

/* About画像：角丸にする */
.aboutFigure{
  margin: 0 auto;        /* ←中央寄せ */
  justify-self: center;  /* ←gridアイテムとしても中央へ */
}    
  margin:0;
  width: var(--col-w);
  max-width:100%;
  border-radius: 16px;  /* ←角丸（好みで14pxでもOK） */
  overflow: hidden;     /* ←角丸を効かせるのに必須 */
}

.aboutFigure img{
  width:80%;
  height:auto;
}
.aboutFigure{ border-radius:16px; overflow:hidden; }
.aboutFigure img{ border-radius:16px; }

/* =========================
   EXPERT
========================= */
.expertBand{
  background:
    radial-gradient(1200px 340px at 50% 30%, rgba(255,255,255,.10), rgba(0,0,0,0) 55%),
    linear-gradient(#050505, #000);
  color:#fff;
  padding:38px 0 44px;
}

.expertTitle{
  margin:0 0 22px;
  text-align:center;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:700;
  font-size:36px;
  line-height:1.2;
}

.expertGrid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:22px;
  align-items:start;
}

.expertCard img{
  width:100%;
  height:auto;
  background:#222;
}

.expertMeta{ padding-top:12px; }

/* 肩書き・名前（大きめ） */
.expertRole{
  font-size:20px;
  opacity:.9;
  margin-bottom:6px;
}

.expertName{
  font-size:22px;
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:12px;
}

.expertBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:92%;
  background:#fff;
  color:#000;
  border-radius:999px;
  padding:10px 0;
  font-weight:800;
  font-size:18px;
}

.expertTitleSub{
  display:block;        /* すぐ下に落とす */
  margin-top:15px;       /* “すぐ下” */
  font-size:18px;       /* 小さく */
  line-height:1.5;
  opacity:.8;
  text-align:center;    /* 念のため明示 */
}

.expertName{
  text-align: center;
  margin-top: 14px;
  font-size: 18px;   /* 好みで */
  font-weight: 600;  /* 好みで */
}
/* =========================
   COMPANY
========================= */
.company{
  padding:54px 0 62px;
  background:#fff;
}

.companyInner{
  display:grid;
  grid-template-columns: minmax(0, var(--col-w)) minmax(0, var(--col-w));
  gap: var(--gap-2col);
  align-items:center;
  justify-content:center;

  max-width: var(--company-max);
  margin-inline:auto;
}

.companyTitle{
  margin:0 0 12px;
  font-size:20px;
  font-weight:900;
}

.companyBody{
  color:#4b4b4b;
  font-size:15px;
  line-height:1.9;
}
.companyBody p{ margin:0 0 14px; }
.companyBody p:last-child{ margin-bottom:0; }

.mapBox{
  background:#fff;
  border-radius:14px;
  height:300px;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.mapLogo{
  width:60%;
  height:auto;
  max-width:180px; /* 小さめ */
}

/* =========================
   FOOTER（ロゴ中央）
========================= */
.siteFooter{
  border-top:1px solid #eee;
  padding:20px 0 28px;
}

.footerInner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}

/* =========================
   RESPONSIVE
========================= */

/* 1024以下：About/Company縦積み、Expert 3列、ヘッダー案内文は折り返し許可 */
@media (max-width: 1024px){
  .aboutInner,
  .companyInner{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .aboutEn, .aboutJa{ text-align:left; }
  .aboutText{ max-width: 680px; }
  .aboutFigure{ width:100%; }

  .expertGrid{ grid-template-columns: repeat(3, 1fr); }

  .headerNote{
    white-space: normal;
    max-width: 520px;
  }
}

/* 720以下：スマホ仕様をここに全部集約（★重複禁止） */
@media (max-width: 720px){
  :root{
    --header-h: 142px;     /* スマホの固定ヘッダー分 */
    --hero-gap: 12px;
  }

  .aboutFigure{
    margin: 0 auto;
    justify-self: center;
    max-width: 92%;   /* 好みで。80%のままでもOK */
  }

    /* EXPERT：スマホだけ80%くらいに小さく（中央寄せ） */
.expertCard{
  width: 80%;
  margin: 0 auto;
}

.expertRole{ font-size: 16px; }
.expertName{ font-size: 18px; }
.expertBtn{
  width: 100%;
  font-size: 15px;
  padding: 9px 0;
}    
    
  .container{
    width:min(var(--container), calc(100% - 36px));
  }

  /* HEADER：中央2段 */
  .headerInner{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap:10px;
    padding:14px 0 12px;
    text-align:center;
  }

  .brandTitleImg{ height:40px; }

  /* 案内文：2行で大きく */
  .headerNote{
    width:100%;
    max-width: 22em;   /* 2行に寄せる */
    margin: 0 auto;
    text-align:center;
    white-space: normal;
    font-size:16px;
    font-weight:700;
    line-height:1.35;
  }

  /* TEL/メール：同幅・中央 */
  .headerCtas{
    width:100%;
    justify-content:center;
  }

  .headerBtn{
    flex:1;
    min-width:0;
    height:44px;
    font-size:14px;
  }

  /* HERO：スマホで20px下げる（PCの30px下げを上書き） */
  .hero{
    margin-top: calc((var(--header-h) - 40px) * -1);
    padding-top: var(--header-h);
  }

  /* HERO：少し小さく見せる（左右余白を増やす） */
  .heroScroller{
    padding-inline: 24px;
  }

  /* HERO：1名ドン（ほぼ画面幅） */
  .heroCard{
    flex: 0 0 calc(100vw - 48px);  /* 24px×2 */
    border-radius: var(--radius-hero);
  }

  /* EXPERT：タイトルは1行固定、個人は1列 */
  .expertTitle{
    white-space: nowrap;
    word-break: keep-all;
    font-size:28px;   /* 端末で入らなければ 26px */
    letter-spacing:0;
  }

  .expertGrid{
    grid-template-columns: 1fr; /* 1列 */
    gap:18px;
  }

  .expertBtn{ width:100%; }

  /* ABOUT：スマホ調整（必要最低限） */
  .aboutEn{ font-size:32px; }
  .aboutJa{ font-size:30px; }
  .aboutBody{ font-size:16px; }

  /* COMPANY：スマホはセンタリング */
  .companyText,
  .companyTitle,
  .companyBody{
    text-align:center;
  }
  .companyBody p{
    margin-left:auto;
    margin-right:auto;
  }
}

/* 480以下：余白縮小 */
@media (max-width: 480px){
  :root{ --header-h: 152px; }
  .container{ width:min(var(--container), calc(100% - 24px)); }
  .heroScroller{ padding-inline: 16px; }
}

/* 大画面（例：1920px）では expert を“詰めて”見せる（文字は小さくしない） */
@media (min-width: 1400px){
  .expertBand{ padding: 28px 0 34px; }

  .expertTitle{
    font-size: 32px;
    margin-bottom: 18px;
  }

  .expertGrid{
    grid-template-columns: repeat(5, 210px);
    justify-content: center;
    gap: 18px;
  }
}

/* =========================
   LOADING OVERLAY
========================= */
.pageLoader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  transition: opacity .25s ease, visibility .25s ease;
}

.pageLoader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* スピナー */
.pageLoader__spinner{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.55);
  animation: loaderSpin .9s linear infinite;
}

@keyframes loaderSpin{
  to { transform: rotate(360deg); }
}

/* モーション低減 */
@media (prefers-reduced-motion: reduce){
  .pageLoader__spinner{ animation: none; }
}

/* =========================
   CASTING Click + Slide
========================= */
.castingAction{
  margin-top: 16px;
  text-align: center;
}

/* Click（白い中身）をプロフィールボタンと同サイズに */
.castingBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.castingBtnInner{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width: 92%;          /* ← expertBtn と同じ */
  max-width: 420px;    /* ←広がりすぎ防止（好みで調整） */

  background:#fff;
  color:#000;
  border-radius:999px;
  padding:10px 0;      /* ← expertBtn と同じ */
  font-weight:800;
  font-size:18px;      /* ← expertBtn と同じ */
  line-height:1;
}


.castingBtn:focus-visible{
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 3px;
}

/* スライド表示 */
.castingPanel{
  margin-top: 14px;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);

  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.castingPanel.is-open{
  max-height: 120px; /* 名前1行なら十分。増やすなら 240px など */
  opacity: 1;
  transform: translateY(0);
}

.castingName{
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
