@charset "UTF-8";

/* =============================================
   女性起業塾 - 独自スタイル
   
   このファイルはプロジェクト独自のスタイルを定義します。
   Bootstrapの上書きはcustom.cssで行います。
   ============================================= */

/* =============================================
   1. フォント設定
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* =============================================
   2. カラー変数
   ============================================= */
:root {
  --main-yellow: #ffd700;
  --sub-pink: #ff69b4;
  --custom-danger: #ef98a6;
}

/* =============================================
   3. 全体設定
   ============================================= */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* =============================================
   4. メインビジュアル
   ============================================= */
.main-visual-section {
  /* Bootstrapクラスで対応済み */
}

/* =============================================
   5. 動画カード
   ============================================= */
.video-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-card .play-button {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card .play-button:hover {
  transform: scale(1.1);
  background-color: white;
}

/* =============================================
   6. カテゴリーメニュー
   ============================================= */
.category-menu .category-header {
  background-color: #ef98a6;
}

.category-menu .list-group-item {
  transition: all 0.2s ease;
  position: relative;
  font-size: 14px;
  color: #212529 !important;
}

.category-menu .list-group-item a,
.category-menu .list-group-item,
.category-menu .category-name {
  color: #212529 !important;
  text-decoration: none;
}

/* 右向き矢印を追加 */
.category-menu .list-group-item::after {
  content: ">";
  color: #6c757d;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.category-menu .list-group-item:hover {
  background-color: #fff3cd;
  padding-left: 1.5rem;
  color: #212529 !important;
}

.category-menu .list-group-item:hover::after {
  transform: translateX(3px);
  color: #495057;
}

/* =============================================
   7. 商品カード
   ============================================= */
.product-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* カテゴリバッジアイコンのラッパー */
.category-badge-wrapper {
  position: absolute;
  top: -4px;
  left: 12px;
  z-index: 10;
}

/* カテゴリバッジアイコン */
.category-badge-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-card .category-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1;
}

.product-card .card-img-wrapper {
  margin-top: 12px;
  margin-left: 12px;
  margin-right: 12px;
}

.product-card .card-img-wrapper:before {
  content: "";
  display: block;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.product-card .card-img-wrapper > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-card .card-img-wrapper img {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.product-card .price {
  color: #ef98a6;
}

/* =============================================
   8. バナーエリア
   ============================================= */
.banner-area img {
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 280px;
}

.banner-area img:hover {
  transform: scale(1.02);
}

/* =============================================
   9. プレゼントバナー
   ============================================= */
.present-banner {
  background-color: #ef98a6;
}

/* =============================================
   10. プレゼントリンク
   ============================================= */
.present-link {
  transition: transform 0.3s ease;
}

.present-link:hover {
  transform: translateY(-5px);
}

.present-link:hover img {
  filter: brightness(1.1);
}

/* 画像を包むコンテナ */
.present-link .img-container {
  height: 200px;
}

.present-link p {
  font-size: 16px;
}

/* =============================================
   11. プレゼントバナーリンク
   ============================================= */
.banner-present-link {
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  width: 800px;
}

.banner-present-link:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =============================================
   12. カスタムボタン
   ============================================= */
.btn-register {
  border: 1px solid #ef98a6;
  color: #343a40;
  background-color: white;
  max-width: 100%;
}

.btn-register:hover {
  background-color: #fef5f7;
  color: #343a40;
}

.btn-login {
  min-width: 120px;
}

/* =============================================
   13. プレースホルダー
   ============================================= */
.video-placeholder {
  /* すべてのスタイルは.video-wrapperで管理 */
  width: 100%;
  height: 100%;
  display: block;
}

.product-placeholder {
  height: 150px;
}

/* =============================================
   13.1 動画オーバーレイ
   ============================================= */
.video-frame-wrapper {
  padding: 15px;
  background-image: url('../images/movie.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  max-width: 500px;  /* 幅を制限 */
  margin: 0 auto;    /* 中央配置 */
}

.video-wrapper {
  background-color: #000;  /* 動画の背景を黒に */
  position: relative;
  /* 16:9のアスペクト比を維持 */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* padding-bottomトリックを使用しない新しい方法 */
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* coverからcontainに変更 */
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);  /* 半透明の黒背景 */
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* オーバーレイが非表示の時は完全に隠す */
.video-overlay[style*="display: none"],
.video-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.video-play-button {
  width: 70px;
  height: 70px;
  background-color: #ef98a6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.video-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-play-button svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
  margin-left: 5px;
}

/* =============================================
   14. ナビゲーションバー（スクロール時）
   ============================================= */
.navbar-scrolled {
  transition: all 0.3s ease;
}

/* =============================================
   15. ユーティリティクラス
   ============================================= */
.hover-shadow {
  transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.text-gradient {
  background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   16. レスポンシブ調整
   ============================================= */

/* モバイル対応：xs (extra small) <576px */
@media (max-width: 575.98px) {
  /* ナビゲーション調整 */
  .navbar-nav .nav-item {
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
  }
  
  /* 動画セクション */
  .video-frame-wrapper {
    padding: 10px;
    max-width: 100%;  /* モバイルでは幅100% */
  }
  
  /* 動画のアスペクト比は自動的に維持される */
  
  .video-play-button {
    width: 50px;
    height: 50px;
  }
  
  .video-play-button svg {
    width: 25px;
    height: 25px;
  }
  
  /* 商品カード */
  .product-card .product-title {
    font-size: 0.75rem;
  }
  
  .product-card .price {
    font-size: 0.7rem;
  }
  
  .category-badge-icon {
    width: 30px;
    height: 30px;
  }
  
  .instructor-icon-large {
    width: 18px;
    height: 18px;
  }
  
  /* バナー画像 */
  .banner-present-link {
    width: 100%;
    max-width: 400px;
  }
  
  /* プレゼント画像 */
  .present-img-size-left {
    max-width: 180px;
  }
  
  .present-img-size-right {
    max-width: 100px;
  }
}

/* タブレット対応：sm (small) ≥576px */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* 動画セクション - アスペクト比は自動的に維持される */
  .video-play-button {
    width: 60px;
    height: 60px;
  }
  
  /* 商品カード */
  .product-card .product-title {
    font-size: 0.875rem;
  }
  
  /* バナー画像 */
  .banner-present-link {
    width: 100%;
    max-width: 500px;
  }
}

/* タブレット対応：md (medium) ≥768px */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* カテゴリーメニュー */
  .category-menu {
    margin-bottom: 2rem;
  }
  
  /* バナー画像 */
  .banner-present-link {
    width: 100%;
    max-width: 600px;
  }
}

/* デスクトップ対応：lg (large) ≥992px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* バナーエリア */
  .banner-area img {
    max-width: 240px;
  }
}

/* 大画面対応：xl (extra large) ≥1200px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* 特に調整なし */
}

/* 超大画面対応：xxl (extra extra large) ≥1400px */
@media (min-width: 1400px) {
  /* コンテナの最大幅を設定 */
  .container {
    max-width: 1320px;
  }
}

/* 共通のレスポンシブ調整 */
@media (max-width: 991.98px) {
  /* カテゴリーメニューのモバイル対応 */
  .category-menu .list-group-item {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  /* もっと見るリンク */
  .more-link {
    font-size: 0.875rem;
  }
  
  .more-link-triangle {
    border-left-width: 6px;
    border-right-width: 6px;
    border-top-width: 8px;
  }
}

@media (max-width: 767.98px) {
  /* フッターのレスポンシブ対応 */
  footer a {
    font-size: 0.75rem;
    margin: 0.25rem 0.5rem !important;
  }
  
  /* フッターの区切り文字を非表示 */
  footer a:not(:first-child)::before {
    display: none;
  }
  
  /* セクション間隔の調整 */
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* カスタムフォントサイズユーティリティ（特殊サイズ用） */
.fs-7 {
  font-size: 0.875rem !important;
}

/* =============================================
   追加のカスタマイズはここから下に記述してください
   ============================================= */

/* =============================================
   予約ボタンのカスタムスタイル
   ============================================= */
.btn-reservation {
  background-color: #f5a3b5;
  border: none;
  color: white;
  font-weight: normal;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 0 #d88a9f, 0 8px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.1s ease;
  position: relative;
  top: 0;
}

.btn-reservation:hover {
  background-color: #f5a3b5;
  color: white;
  top: 3px;
  box-shadow: 0 5px 0 #d88a9f, 0 5px 8px rgba(0, 0, 0, 0.15);
}

.btn-reservation:focus,
.btn-reservation:active {
  background-color: #f5a3b5;
  color: white;
  top: 6px;
  box-shadow: 0 2px 0 #d88a9f, 0 2px 5px rgba(0, 0, 0, 0.15);
  outline: none;
}

/* 講師アイコン */
.instructor-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

/* 講師アイコン（少し大きめ） */
.instructor-icon-large {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* 募集タイトル */
.product-card .product-title {
  /* Bootstrapクラスで対応済み */
}

/* 価格表示の調整 */
.product-card .price {
  /* カスタムカラーのみ残す */
}

/* もっと募集を見るリンク */
.more-link-container {
  /* Bootstrapクラスで対応済み */
}

.more-link {
  transition: all 0.3s ease;
}

.more-link:hover {
  color: #333;
}

/* 三角形のスタイル - 独自デザインのため残す */
.more-link-triangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #ef98a6;
  margin: 5px auto 0;
}

/* プレゼント画像共通スタイル */
.present-link-img {
  object-fit: contain;
}

/* 左側の画像用サイズクラス */
.present-img-size-left {
  max-width: 260px;
}

/* 右側の画像用サイズクラス */
.present-img-size-right {
  max-width: 140px;
}

/* タッチデバイス対応 */
.touch-device .product-card:hover,
.touch-device .video-card:hover,
.touch-device .present-link:hover {
  transform: none;
}

.touch-device .btn:hover {
  transform: none;
  box-shadow: none;
}

/* スクロール時のパフォーマンス改善 */
.product-card,
.video-card,
.btn,
.present-link {
  will-change: transform;
}

/* モバイルでのタップハイライトを無効化 */
a,
button,
.btn,
.card {
  -webkit-tap-highlight-color: transparent;
}

/* =============================================
   リファクタリング後の必要な独自スタイル
   
   以下は、Bootstrapでは対応できない独自のデザイン要素です：
   - トランジション効果
   - ホバー時の変形（transform）
   - カスタム背景画像
   - 疑似要素（::before, ::after）
   - アスペクト比の制御
   - カスタムカラー（#ef98a6など）
   ============================================= */

/* =============================================
   17. ハンバーガーメニュー
   ============================================= */
.hamburger {
  display: inline-block;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  position: absolute;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーメニューのホバー時 */
.navbar-toggler:hover .hamburger-line {
  background-color: #ef98a6;
}

/* ハンバーガーメニューが開いている時のアニメーション */
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* モバイルメニューのアニメーション */
@media (max-width: 991.98px) {
  .navbar-collapse {
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar-collapse.collapsing {
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar-collapse.show {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
  }
  
  /* メニュー項目のアニメーション */
  .navbar-collapse .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar-collapse.show .nav-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  .navbar-collapse.show .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .navbar-collapse.show .nav-item:nth-child(2) {
    transition-delay: 0.15s;
  }
  
  .navbar-collapse.show .nav-item:nth-child(3) {
    transition-delay: 0.2s;
  }
  
  .navbar-collapse.show .nav-item:nth-child(4) {
    transition-delay: 0.25s;
  }
  
  .navbar-collapse.show .nav-item:nth-child(5) {
    transition-delay: 0.3s;
  }
  
  /* メニューが閉じる時のアニメーション */
  .navbar-collapse.collapsing .nav-item {
    opacity: 0;
    transform: translateY(10px);
    transition-delay: 0s !important;
  }
  
  /* メニュー全体のフェードイン効果 */
  .navbar-collapse {
    opacity: 0;
  }
  
  .navbar-collapse.show {
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar-collapse.collapsing {
    opacity: 0.5;
  }
}

/* デスクトップではメニュー項目を常に表示 */
@media (min-width: 992px) {
  .navbar-collapse .nav-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================
   18. SNSアイコン
   ============================================= */
.sns-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
  color: #333;
  text-decoration: none;
}

.sns-icon-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
  color: #333;
}

/* 画像アイコンの高さを統一 */
.sns-icon-link .sns-icon-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* アイコンフォントの高さを画像に合わせる */
.sns-icon-link i {
  font-size: 1.75rem; /* 28pxに相当 */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* X (Twitter) アイコンも同じ高さに */
.sns-icon-link .bi-twitter-x {
  font-size: 1.75rem !important;
}

/* 外部リンクアイコンも同じ高さに */
.sns-icon-link .bi-box-arrow-up-right {
  font-size: 1.625rem !important;
}

/* =============================================
   19. 講師プロフィール画像
   ============================================= */
.instructor-avatar {
  width: 260px;
  height: 260px;
  object-fit: cover;
}

/* MDブレークポイントでの講師アイコンサイズ調整 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .instructor-avatar {
    width: 180px;
    height: 180px;
  }
}

/* SMブレークポイントでの講師アイコンサイズ調整 */
@media (max-width: 767.98px) {
  .instructor-avatar {
    width: 200px;
    height: 200px;
  }
}

/* =============================================
   20. 資格・認証バッジ
   ============================================= */
.credential-badge-container {
  max-width: 100%;
}

.credential-badge {
  border-width: 2px !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 170px;
  flex: 0 0 auto;
  justify-content: center;
}

.credential-badge:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.credential-badge-text {
  font-size: 0.8rem;
}

/* 資格・認証バッジのアイコン */
.credential-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 資格確認書類と秘密保持契約書のアイコンを少し大きく */
.credential-badge-certification .credential-icon,
.credential-badge-nda .credential-icon {
  width: 22px;
  height: 22px;
}

/* 各バッジの個別ボーダー色 */
.credential-badge-invoice {
  border-color: #97c69d !important;
}

.credential-badge-certification {
  border-color: #c7ddec !important;
}

.credential-badge-nda {
  border-color: #d1b68e !important;
}

/* レスポンシブ対応 */
@media (max-width: 575.98px) {
  .credential-badge {
    width: 100%;
  }
  
  .credential-badge-text {
    font-size: 0.75rem;
  }
  
  .credential-icon {
    width: 16px;
    height: 16px;
  }
  
  /* モバイルでも資格確認書類と秘密保持契約書のアイコンを少し大きく */
  .credential-badge-certification .credential-icon,
  .credential-badge-nda .credential-icon {
    width: 19px;
    height: 19px;
  }
}
