@tailwind base;
@tailwind components;
@tailwind utilities;

/* カスタムスタイルを追加 */
/* ヒーローセクションのグラデーション背景 */
.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 動画コンテナのスタイル強化 */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(45deg, #111122, #1a1a2e);
    min-height: 225px;
}

.video-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' width='48px' height='48px'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: 1;
}

.video-container iframe {
    position: relative;
    z-index: 2;
}

.video-container:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* アスペクト比の維持 */
.aspect-video {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ボタンアニメーション効果 */
.pulse-animation {
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: none;
    }
}

/* CTAボタンを大きく表示 */
.cta-gradient {
    background: linear-gradient(90deg, #ff6b6b, #ff9e4f, #ffb347);
    background-size: 200% auto;
    transition: background-position 0.5s ease;
    /* ボタンサイズを大幅拡大 */
    font-size: 1.5rem !important;
    padding: 1.5rem 3rem !important;
    font-weight: 700 !important;
    /* 必要最小限のシャドウ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

.cta-gradient:hover {
    background-position: right center;
}

/* ヒーローセクション内のCTAコンテナの余白調整 */
.hero-gradient .flex.flex-col.items-center {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

/* スマホ表示用のCTA調整 */
@media (max-width: 640px) {
    .cta-gradient {
        font-size: 1.25rem !important;
        padding: 1.25rem 2.5rem !important;
        white-space: nowrap;
    }
}

/* 中サイズ画面用の調整 */
@media (min-width: 641px) and (max-width: 1023px) {
    .cta-gradient {
        font-size: 1.4rem !important;
        padding: 1.35rem 2.7rem !important;
    }
}

/* 問題提起セクション内の説明文のフォントサイズ拡大 */
#about p.text-base.sm\:text-lg.text-gray-700,
#about p.text-base.sm\:text-lg.font-semibold.text-gray-800 {
  font-size: 1.25rem !important; /* 20px - モバイル向け */
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* フレーズコンテナの横幅を広げる - 2行にならないよう調整 */
.phrase-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.5rem !important;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.phrase-line {
  white-space: nowrap !important; /* 改行を防止 */
  display: block;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  font-size: 1.375rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

/* 問題提起セクションの幅調整 */
#about .bg-white.bg-opacity-90 {
  max-width: 95% !important;
  width: 95% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2rem !important;
}

#about .sm\:max-w-2xl, 
#about .md\:max-w-3xl,
#about .max-w-4xl,
#about .max-w-5xl {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 講師紹介セクション用スタイル - スマホでのはみ出し問題解決 */
#instructors {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

#instructors .container {
  width: 100%;
  max-width: 850px; /* 最大幅を制限 */
  overflow-x: hidden;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 auto; /* 中央寄せ */
}

#instructors .bg-white.bg-opacity-95 {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 講師カード全体のスタイル改善 */
#instructors .bg-white.p-3.rounded-xl {
  padding: 24px !important;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  max-width: 800px; /* カードの最大幅を制限 */
  margin-left: auto;
  margin-right: auto;
}

#instructors .bg-white.p-3.rounded-xl:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 講師の名前スタイル */
#instructors h4 {
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

/* PC表示用のスタイル */
@media (min-width: 640px) {
    .phrase-container {
        line-height: 1.8;
        font-size: 2rem !important; /* コンテナ全体のサイズを大きく */
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .phrase-line {
        display: block;
        margin-bottom: 1rem;
        white-space: nowrap !important; /* 改行を防止 */
        font-size: 1.875rem !important; /* 30px に増加 */
        letter-spacing: normal;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 問題提起セクションの親要素の幅を広げる */
    #about .bg-white.bg-opacity-90 {
        max-width: 95% !important;
        width: 95% !important;
        margin: 0 auto !important;
        padding: 2.5rem !important;
    }
  
    #about p.text-base.sm\:text-lg.text-gray-700,
    #about p.text-base.sm\:text-lg.font-semibold.text-gray-800 {
      font-size: 1.5rem !important; /* 24px */
      line-height: 1.8;
    }
}

/* タブレット表示用 */
@media (min-width: 768px) {
    .phrase-container {
        font-size: 2.25rem !important; /* コンテナ全体を36pxに */
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .phrase-line {
        font-size: 2.125rem !important; /* 34px に増加 */
        white-space: nowrap !important;
    }
    
    /* 問題提起セクションの親要素の幅をさらに広げる */
    #about .bg-white.bg-opacity-90 {
        max-width: 90% !important;
        width: 90% !important;
        padding: 3rem !important;
    }
  
    #about p.text-base.sm\:text-lg.text-gray-700,
    #about p.text-base.sm\:text-lg.font-semibold.text-gray-800 {
      font-size: 1.625rem !important; /* 26px */
      line-height: 1.8;
    }
}

/* 大画面PC表示用 */
@media (min-width: 1024px) {
    .phrase-container {
        font-size: 2.5rem !important; /* コンテナ全体を40pxに */
        max-width: 85% !important;
    }
    
    .phrase-line {
        font-size: 2.375rem !important; /* 38px に増加 */
        margin-bottom: 1.25rem;
    }
    
    #about p.text-base.sm\:text-lg.text-gray-700,
    #about p.text-base.sm\:text-lg.font-semibold.text-gray-800 {
      font-size: 1.75rem !important; /* 28px */
      line-height: 1.8;
    }
}

/* 超大画面用 */
@media (min-width: 1280px) {
    .phrase-container {
        font-size: 2.75rem !important; /* コンテナ全体を44pxに */
        max-width: 80% !important;
        width: 80% !important;
    }
    
    .phrase-line {
        font-size: 2.625rem !important; /* 42px に増加 */
        margin-bottom: 1.5rem;
    }
    
    #about p.text-base.sm\:text-lg.text-gray-700,
    #about p.text-base.sm\:text-lg.font-semibold.text-gray-800 {
      font-size: 1.875rem !important; /* 30px */
      line-height: 1.8;
    }
}

/* モバイル用テキスト調整 */
@media (max-width: 390px) {
    .mobile-nowrap {
        display: inline-block;
        white-space: nowrap;
        max-width: 95%;
    }
    
    .whitespace-normal {
        white-space: normal !important;
    }
    
    /* 単語の途中での改行を防止 */
    wbr {
        display: block;
    }
    
    /* フォントサイズを細かく調整 */
    .text-blue-600.font-bold.mb-6.sm\:mb-8.text-center.leading-relaxed {
        font-size: 1.25rem !important;
    }
    
    /* セリフが一行に収まるための追加対策 */
    .phrase-line {
        font-feature-settings: "palt";
        font-size: 1.375rem !important;
        letter-spacing: 0.02em !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto 1rem;
        overflow-x: hidden;
        white-space: normal;
        word-break: keep-all !important;
        line-height: 1.5 !important;
    }
    
    /* フレーズコンテナの横幅を制限 */
    .max-w-xs.mx-auto.sm\:max-width-none {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .phrase-container {
        font-size: 1.5rem !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
    }
    
    #about h2 {
        font-size: 1.75rem !important;
    }
    
    #about p {
        font-size: 1.3rem !important;
        line-height: 1.5 !important;
    }
}

/* スマホ表示時の横幅調整 */
@media (max-width: 640px) {
    html, body, section, div {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .hero-gradient .flex.flex-col.items-center::before {
        display: none;
    }
}

/* CTAセクションの注意書きテキストサイズ拡大 */
#cta p.mt-4.sm\:mt-6.text-blue-100.text-xs.sm\:text-sm {
  font-size: 1rem !important; /* 16px - モバイル向け */
  font-weight: bold;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  #cta p.mt-4.sm\:mt-6.text-blue-100.text-xs.sm\:text-sm {
    font-size: 1.25rem !important; /* 20px */
  }
}

@media (min-width: 768px) {
  #cta p.mt-4.sm\:mt-6.text-blue-100.text-xs.sm\:text-sm {
    font-size: 1.375rem !important; /* 22px */
  }
}

@media (min-width: 1024px) {
  #cta p.mt-4.sm\:mt-6.text-blue-100.text-xs.sm\:text-sm {
    font-size: 1.5rem !important; /* 24px */
  }
}

/* プロダクト開発の流れセクションのスマホ表示修正 */
@media (max-width: 767px) {
  /* ウェビナー内容セクション全体の調整 */
  .mt-10.sm\:mt-16.relative.w-full {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  /* カードのレイアウト調整 */
  .bg-white.rounded-xl.overflow-hidden.border.border-gray-100 {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* 画像コンテナの高さ調整 */
  .md\:w-2\/5.relative.overflow-hidden.h-48.md\:h-auto.md\:order-last,
  .md\:w-2\/5.relative.overflow-hidden.h-48.md\:h-auto {
    height: 160px !important; /* 画像の高さを固定 */
    width: 100% !important;
  }
  
  /* テキストコンテナの余白調整 */
  .md\:w-3\/5.p-4.sm\:p-8.md\:p-10.flex.flex-col.justify-center,
  .md\:w-3\/5.p-4.sm\:p-8.md\:p-10.flex.flex-col.justify-center.md\:order-first {
    width: 100% !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }
  
  /* テキストのフォントサイズ調整 */
  .text-lg.sm\:text-2xl.font-bold.text-indigo-900 {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.4 !important;
    margin-right: 0 !important;
    width: calc(100% - 40px) !important; /* 番号の円の分の余白を確保 */
  }
  
  /* 段落テキストの調整 */
  .text-gray-700.text-sm.sm\:text-lg.leading-relaxed {
    font-size: 1rem !important; /* 16px */
    line-height: 1.6 !important;
    margin-top: 0.5rem !important;
  }
  
  /* wbr タグの制御 - 改行位置の調整 */
  wbr {
    display: none !important; /* ブラウザが自動で適切な場所で改行するように */
  }
  
  /* 段落内の単語の途中での改行を防止 */
  p {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
}

/* ヒーローセクション内のCTA強調用のコンテナスタイル */
.hero-gradient .flex.flex-col.items-center {
    margin-top: 2rem;
    position: relative;
}

/* CTAの背景輝き効果 */
.hero-gradient .flex.flex-col.items-center::before {
    display: none;
}

@keyframes glow {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
} 