@charset "UTF-8";

body {
  --header-h: 80px;
  overflow-y: auto;
}

/* ラッパーのスクロール保険 */
.page-template-page-branding-cm .wrap,
.page-template-page-branding-cm .tpInner {
  overflow: visible;
  height: auto;
}

/* =====================
  全体
===================== */
.branding-cm .tpInner{
  position: relative;
  z-index: 3;
}
.branding-cm #mainCon {
  position: relative;
  min-height: 300vh;
  overflow-x: hidden;
}

.branding-cm #mainCon *,
.branding-cm #mainCon *::before,
.branding-cm #mainCon *::after {
  box-sizing: border-box;
}

.branding-cm #mainCon > section {
  position: relative;
  z-index: 20;
  padding: 120px 20px;
}

.branding-cm #mainCon > section:first-child {
  padding-top: 0;
}

.branding-cm #mainCon > section:last-child {
  padding-bottom: 120px;
}
.branding-cm footer{
  z-index: 5;
}/* =====================
  背景動画
===================== */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* ✅ blurはここで制御 */
  filter: blur(var(--blur, 0px));
  transform: scale(1.05); /* ぼかしの端対策 */
}

/* 動画 */
.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
  オーバーレイ（暗さだけ）
===================== */
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: rgba(0, 0, 0, var(--overlay-opacity, 0));
}
/* 解除時（完全オフ） */
.bg-overlay.is-disabled {
  background: rgba(0,0,0,0) !important;
  backdrop-filter: none !important;
}
/* =====================
  header
===================== */
.branding-cm header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 100;
}
.branding-cm header.scrolled {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* =====================
  見出し
===================== */
.branding-cm #mainCon h1 {
  font-size: 6.6rem;
  line-height: 1.6;
  font-weight: 700;
}

.branding-cm #mainCon h1 .titleSub {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 4rem 0.4rem;
}
.branding-cm #mainCon .hero__tagline p{
  display: block;
  font-size:3rem;
  font-weight: 500;
  margin: 0.4rem 4rem 0.4rem;
}
.sectionTitle,
.branding-cm .Inner h2 {
  font-size: 3.2rem;
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 4rem;
}

.sectionTitle .sectionTitle__En,
.branding-cm .Inner h2 .sectionTitle__En {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
/* =====================
  line-container
===================== */
.branding-cm .line-container{
  margin:1rem auto;
}
.branding-cm .line-square1,
.branding-cm .line-square2{
  background:#3ab3d8;
}
.scene-hero .line-wrap{
  position: absolute;
  top: 75vh;
  left: 50vw;
}
/* =====================
  Hero / Scene
===================== */
.scene {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 7%;
  color: #fff;
}

.branding-cm #mainCon .hero__tagline {
  position: absolute;
  left: 6.9%;
  bottom: 30%;
  width: 100%;
  max-width: fit-content;
}

/* =====================
  Message
===================== */
.branding-cm #mainCon .scene-message {
  align-items: flex-end;
  padding-bottom: 30vh;
  padding-left: 6.9%;
}

.branding-cm #mainCon .message__inner {
  max-width: 1000px;
  width: 100%;
  margin-left: 6.9%;
}

.branding-cm #mainCon .message__inner p {
  font-size: 1.8rem;
  line-height: 2.8;
  margin-bottom: 4rem;
}
.branding-cm #mainCon .message__inner p:last-of-type {
  margin-bottom: 0;
}

/* =====================
  Movieセクション
===================== */
.branding-cm #mainCon .white-layer {
  background: rgba(255,255,255,0.9);
  position: relative;
  z-index: 30; /* ✅ overlayより上 */
}

.branding-cm #mainCon .movie {
  text-align: center;
}

.branding-cm #mainCon .movie p {
  font-size: 1.6rem;
  line-height: 1.7;
}
.movie__frame{
  max-width:958px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 5rem auto;
}
.movie__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #000;
}
/* 埋め込み動画 */
.movie__embed {
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* 再生ボタン */
.movie__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;

  font-size: 40px;
  width: 80px;
  height: 80px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.85);
  cursor: pointer;
}
/* =====================
  business
===================== */
.business{
  color: #fff;
}
.business{
  text-align: center;
}
.business p.big{
  font-size: 2rem;
}
.business .biz02{
  margin: -3rem auto 6.5rem;
}
.business .biz02 .number{
  color: #3ab3d8;
  font-size: 14rem;
  font-weight: 700;
  line-height:1.2;
}
.business .biz03 .number{
  color:#3ab3d8;
  font-weight: 700;
  font-size:3.2rem;
}
.business .biz03 .number2{
  color:#3ab3d8;
  font-weight:700;
  font-size:2.6rem;
}
/* グリッド配置 */
.business .bizCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

/* カード本体 */
.bizCard {
  display: block;
  background: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
/* ホバー */
.bizCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
/* タイトル（重要） */
.bizCard h4 {
  color: #3ab3d8;;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  position: relative;
}
.bizCard h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #3ab3d8;
  margin: 10px auto 0;
}
/* 説明 */
.bizCard p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* =====================
  Recruit
===================== */
.recruit{
  background: #fff;
}
.branding-cm #mainCon .recruit-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================
  アニメーション
===================== */
.branding-cm #mainCon .js-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s, transform 1s;
}

.branding-cm #mainCon .js-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}
/* ========== 右下動画ウィジェット ========== */
.floating-movie {
  position: fixed;
  right: 0px;
  bottom: 91px;
  z-index: 98;
  width: 200px;
  background: rgba(0,60, 80,0.85);
  color: #fff;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  cursor: pointer;
}

.floating-movie__label {
  font-size: 12px;
  margin-top: 6px;
}

.floating-movie__thumb img {
  width: 100%;
  border-radius: 6px;
}

/* =====================
  右下モーダル
===================== */
.movie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99;
}

.movie-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.movie-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
}

.movie-modal video {
  width: 100%;
}
.movie-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 24px;
  background: none;
  border: none;
}
/* =====================
  SP対応
===================== */
@media (max-width: 768px) {
  .scene {
  height: auto;
  min-height:auto; 
  }
  .branding-cm #mainCon .scene-hero{
    height: 100vh;
  }
  .branding-cm #mainCon .scene-message{
    align-items: flex-start; 
    padding: 40rem 16px 200rem;
  }
  .branding-cm #mainCon > section {
    padding: 60px 16px;
  }
  .branding-cm #mainCon > section:first-child,
  .branding-cm .scene-message{
    padding: 0 16px;
  }
  .branding-cm #mainCon > section.recruit{
    padding:80px 0;
  }
  .branding-cm #mainCon h1 {
    font-size: 48rem;
  }
  .branding-cm #mainCon h1 .titleSub{
    font-size: 18rem;
  }
  .sectionTitle, .branding-cm .Inner h2{
    margin:0 0 40rem;
  }
  .branding-cm #mainCon .hero__tagline p{
    font-size: 20rem;
  }
  .sectionTitle, .branding-cm .Inner h2{
    font-size: 32rem;
  }
  .sectionTitle .sectionTitle__En,
  .branding-cm .Inner h2 .sectionTitle__En{
    font-size: 14rem;
  }
  .branding-cm #mainCon .message__inner{
    margin-left:0;
  }
  .branding-cm #mainCon .message__inner p {
    font-size: 18rem;
    line-height: 2.2;
    margin-bottom:40rem
  }
  .branding-cm #mainCon .movie p{
    font-size: 16rem;
  }
  .business p.big{
    font-size: 20rem;
  }
  .business .biz02 .number{
    font-size: 140rem;
  }
  .branding-cm #mainCon .recruit-inner {
    flex-direction: column;
  }
  .business .bizCards {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin: 0 -16px;
    padding:0 16px 10px;
  }
  .business .biz02{
    margin:-30rem auto 120rem;
  }
  .business .biz02::after{
    bottom: -61px;
  }
  .business .biz03 .number{
    font-size:32rem;
  }
  .business .biz03 .number2{
    font-size:26rem;
  }
  .biz04{
    margin-top:30rem;
  }
  .bizCard {
    min-width: 260px;
    flex: 0 0 auto;
  }

.floating-movie {
    width: 48%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    left: 20px;
    bottom: 0;
  }

  .floating-movie__thumb {
    width: 60px;
    flex-shrink: 0;
  }

  .floating-movie__label {
    font-size: 10px;
  }

}