/* 共通:写真まわりのリセット */
.section__ceo .message-wrap .img {
  position: static;   /* SPのabsoluteを解除 */
  max-height: none;
  height: auto;
}
.section__ceo .message-wrap .img img {
  display: block;
  width: 100%;
  height: auto;       /* 既存の height:100% を解除 */
}

/* PC:テキストと写真を横並び */
.section__ceo .message-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.section__ceo .message-wrap .text,
.section__ceo .message-wrap .img {
  width: calc(50% - 24px);
}

/* SP:縦積み(カラム落ち) */
@media (max-width: 768px) {
  .section__ceo .message-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
  }
  .section__ceo .message-wrap .text,
  .section__ceo .message-wrap .img {
    width: 100%;
  }
  .section__ceo .message-wrap .img {
    order: -1;        /* 写真を先頭(上)に */
    right: auto;
    top: auto;
  }
  .section__ceo .message-wrap .img img {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* PC用/SP用画像の出し分け(未定義の場合のみ) */
.section__ceo .message-wrap .img .sp-only { display: none; }
@media (max-width: 768px) {
  .section__ceo .message-wrap .img .pc-only { display: none; }
  .section__ceo .message-wrap .img .sp-only { display: block; }
}

/* ===== YouTube動画 ===== */
.section__ceo .video-wrap {
  max-width: 880px;
  margin: 80px auto 0;
}

/* タイトル部分 */
.section__ceo .video-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}
.section__ceo .video-head__en {
  display: block;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.15em;
  text-indent: 0.15em; /* 文字間隔ぶんの中央ズレを補正 */
  /* 文字をグラデーションに */
  background: linear-gradient(90deg, #333 0%, #000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #333; /* 非対応ブラウザ用 */
}
.section__ceo .video-head__ja {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #555;
}
/* 下のアクセントライン */
.section__ceo .video-head::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 20px;
  background: #E8E34A;
  border-radius: 2px;
}

/* 動画 */
.section__ceo .video-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* SP */
@media (max-width: 768px) {
  .section__ceo .video-wrap {
    margin-top: 56px;
  }
  .section__ceo .video-head {
    margin-bottom: 28px;
  }
  .section__ceo .video-head__en {
    font-size: 28px;
  }
  .section__ceo .video-head__ja {
    margin-top: 12px;
    font-size: 12px;
  }
  .section__ceo .video-head::after {
    width: 40px;
    height: 3px;
    margin-top: 16px;
  }
  .section__ceo .video-frame {
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
}
/* =========================================================
   override.css
   既存CSSより「後」に読み込んでください
   内容:
   1. MESSAGEセクション(PC横並び / SPカラム落ち・写真が上)
   2. MOVIE(YouTube動画)
   3. BEFORE & AFTER(PC3列 / SPスライド)
   ========================================================= */


/* =========================================================
   1. MESSAGE セクション上書き
   ========================================================= */

/* 共通:写真まわりのリセット */
.section__ceo .message-wrap .img {
  position: static;   /* SPのabsoluteを解除 */
  max-height: none;
  height: auto;
}
.section__ceo .message-wrap .img img {
  display: block;
  width: 100%;
  height: auto;       /* 既存の height:100% を解除 */
}

/* PC:テキストと写真を横並び */
.section__ceo .message-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.section__ceo .message-wrap .text,
.section__ceo .message-wrap .img {
  width: calc(50% - 24px);
}

/* PC用/SP用画像の出し分け */
.section__ceo .message-wrap .img .sp-only { display: none; }

/* SP:縦積み(カラム落ち)・写真を上に */
@media (max-width: 768px) {
  .section__ceo .message-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
  }
  .section__ceo .message-wrap .text,
  .section__ceo .message-wrap .img {
    width: 100%;
  }
  .section__ceo .message-wrap .img {
    order: -1;        /* 写真を先頭(上)に */
    right: auto;
    top: auto;
  }
  .section__ceo .message-wrap .img img {
    max-width: 480px;
    margin: 0 auto;
  }
  .section__ceo .message-wrap .img .pc-only { display: none; }
  .section__ceo .message-wrap .img .sp-only { display: block; }
}


/* =========================================================
   2. MOVIE(YouTube動画)
   ========================================================= */
.section__ceo .video-wrap {
  max-width: 880px;
  margin: 80px auto 0;
}

/* タイトル部分 */
.section__ceo .video-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}
.section__ceo .video-head__en {
  display: block;
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.15em;
  text-indent: 0.15em; /* 文字間隔ぶんの中央ズレを補正 */
  background: linear-gradient(90deg, #333 0%, #8a8a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #333; /* 非対応ブラウザ用 */
}
.section__ceo .video-head__ja {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #555;
}
/* 下のアクセントライン */
.section__ceo .video-head::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 20px;
  background: #E8E34A;
  border-radius: 2px;
}

/* 動画 */
.section__ceo .video-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .section__ceo .video-wrap {
    margin-top: 56px;
  }
  .section__ceo .video-head {
    margin-bottom: 28px;
  }
  .section__ceo .video-head__en {
    font-size: 28px;
  }
  .section__ceo .video-head__ja {
    margin-top: 12px;
    font-size: 12px;
  }
  .section__ceo .video-head::after {
    width: 40px;
    height: 3px;
    margin-top: 16px;
  }
  .section__ceo .video-frame {
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
}

/* =========================================================
   override.css
   既存CSSより「後」に読み込んでください
   内容:
   1. MESSAGEセクション(PC横並び / SPカラム落ち・写真が上)
   2. MOVIE(YouTube動画)
   3. BEFORE & AFTER(PC3列 / SPスライド)
   ========================================================= */


/* =========================================================
   1. MESSAGE セクション上書き
   ========================================================= */

/* 共通:写真まわりのリセット */
.section__ceo .message-wrap .img {
  position: static;   /* SPのabsoluteを解除 */
  max-height: none;
  height: auto;
}
.section__ceo .message-wrap .img img {
  display: block;
  width: 100%;
  height: auto;       /* 既存の height:100% を解除 */
}

/* PC:テキストと写真を横並び */
.section__ceo .message-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.section__ceo .message-wrap .text,
.section__ceo .message-wrap .img {
  width: calc(50% - 24px);
}

/* PC用/SP用画像の出し分け */
.section__ceo .message-wrap .img .sp-only { display: none; }

/* SP:縦積み(カラム落ち)・写真を上に */
@media (max-width: 768px) {
  .section__ceo .message-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
  }
  .section__ceo .message-wrap .text,
  .section__ceo .message-wrap .img {
    width: 100%;
  }
  .section__ceo .message-wrap .img {
    order: -1;        /* 写真を先頭(上)に */
    right: auto;
    top: auto;
  }
  .section__ceo .message-wrap .img img {
    max-width: 480px;
    margin: 0 auto;
  }
  .section__ceo .message-wrap .img .pc-only { display: none; }
  .section__ceo .message-wrap .img .sp-only { display: block; }
}


/* =========================================================
   2. MOVIE(YouTube動画)
   ========================================================= */
.section__ceo .video-wrap {
  max-width: 880px;
  margin: 80px auto 0;
}

/* タイトル部分 */
.section__ceo .video-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}
.section__ceo .video-head__en {
  display: block;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.15em;
  text-indent: 0.15em; /* 文字間隔ぶんの中央ズレを補正 */
  background: linear-gradient(90deg, #333 0%, #111 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #333; /* 非対応ブラウザ用 */
}
.section__ceo .video-head__ja {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #555;
}
/* 下のアクセントライン */
.section__ceo .video-head::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 20px;
  background: #E8E34A;
  border-radius: 2px;
}

/* 動画 */
.section__ceo .video-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .section__ceo .video-wrap {
    margin-top: 56px;
  }
  .section__ceo .video-head {
    margin-bottom: 28px;
  }
  .section__ceo .video-head__en {
    font-size: 28px;
  }
  .section__ceo .video-head__ja {
    margin-top: 12px;
    font-size: 12px;
  }
  .section__ceo .video-head::after {
    width: 40px;
    height: 3px;
    margin-top: 16px;
  }
  .section__ceo .video-frame {
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
}


/* =========================================================
  3. BEFORE & AFTER
  PC:3列グリッド / SP:Swiperでスライド
  ========================================================= */
.section__ba {
  padding: 80px 0;
  background-color: #fff;
  overflow: hidden;
}

/* スライダー外枠(影が切れないように余白を確保) */
.section__ba .ba-slider {
  padding: 8px 8px 24px;
}

/* PC:3つ横並び */
.section__ba .ba-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section__ba .ba-item {
  min-width: 0;
  height: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.section__ba .ba-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* キャプション */
.section__ba .ba-caption {
  padding: 20px 20px 24px;
  line-height: 1.7;
}
.section__ba .ba-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  background: #E8E34A;
  border-radius: 999px;
}
.section__ba .ba-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: bold;
}
.section__ba .ba-text {
  margin: 0;
  font-size: 13px;
  color: #555;
}

/* もっと見るボタン */
.section__ba .ba-more {
  margin-top: 40px;
  text-align: center;
}
.section__ba .ba-more-btn {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  min-width: 240px;
  padding: 16px 56px 16px 40px;
  border: 1px solid #333;
  color: #333;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* 右端の矢印 */
.section__ba .ba-more-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.section__ba .ba-more-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* ホバー:色を反転して、矢印が少し右へ */
@media (hover: hover) {
  .section__ba .ba-more-btn:hover {
    background: #333;
    color: #fff;
  }
  .section__ba .ba-more-btn:hover::after,
  .section__ba .ba-more-btn:hover::before {
    transform: translateX(4px);
  }
  .section__ba .ba-more-btn:hover::before {
    transform: translate(4px, -50%) rotate(45deg);
  }
}

@media (max-width: 768px) {
  .section__ba .ba-more {
    margin-top: 16px;
  }
  .section__ba .ba-more-btn {
    min-width: 220px;
  }
}
/* PCではスライダーを使わないので、ドットは非表示 */
@media (min-width: 769px) {
  .section__ba .ba-slider {
    overflow: visible;
  }
  .section__ba .ba-dots {
    display: none;
  }
}

/* SP:Swiperに任せる */
@media (max-width: 768px) {
  .section__ba {
    padding: 56px 0;
  }
  /* --- Swiperが必要とする基本スタイル(独自クラス用) --- */
  .section__ba .ba-slider {
    position: relative;
    overflow: hidden;
    padding: 8px 0 44px;   /* 下はドット用の余白 */
  }
  .section__ba .ba-list {
    position: relative;
    display: flex;
    gap: 0;                /* 間隔はJS側の spaceBetween で管理 */
    width: 100%;
    box-sizing: content-box;
    transition-property: transform;
  }
  .section__ba .ba-item {
    position: relative;
    flex-shrink: 0;
  }

  /* --- ドット(ページ送り) --- */
  .section__ba .ba-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    text-align: center;
    line-height: 1;
  }
  .section__ba .ba-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
  }
  .section__ba .ba-dot--active {
    background: #E8E34A;
  }
  .section__ba .ba-more {
    margin-top: 16px;
  }
}