/* ハンバーガーメニューボタン */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.4s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

/* ハンバーガーメニューアクティブ時 */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
    z-index: 1001;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-white);
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .global-nav.active {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav li {
    width: 100%;
  }

  .global-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  /* ドロップダウンメニューのモバイル対応 */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 1rem;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }
}

/* ======================
   Reset or Normalize CSS
====================== */
/* 必要に応じてreset.cssやnormalize.cssを適用 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* アニメーション用のキーフレーム定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* スクロールアニメーション用の基本クラス */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   Base Typography
====================== */
/* フォントの定義 */
@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-SemiBold.otf') format('woff2'),
       url('../fonts/MOBO-Regular.otf') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-Bold.otf') format('woff2'),
       url('../fonts/MOBO-Bold.off') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* 基本フォント設定 */
body {
  font-family: 'MOBO', sans-serif;
}

/* ヘッダーナビゲーション */
.global-nav {
  font-family: 'MOBO', sans-serif;
  font-weight: normal;
}

/* ヒーローセクション */
.hero-caption h1 {
  font-family: 'MOBO', sans-serif;
  font-weight: bold;
  font-size: 3.5rem;
}

.hero-caption p {
  font-family: 'MOBO', sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
}

/* ドロップダウンメニュー */
.dropdown-menu {
  font-family: 'MOBO', sans-serif;
  font-weight: normal;
}

/* 各セクションの見出し */
h2 {
  font-family: 'MOBO', sans-serif;
  font-weight: bold;
  font-size: 2.5rem;
}

h3 {
  font-family: 'MOBO', sans-serif;
  font-weight: bold;
  font-size: 1.8rem;
}

/* 本文テキスト */
p {
  font-family: 'MOBO', sans-serif;
  font-weight: normal;
  line-height: 1.8;
}

/* ======================
   Colors (Variables)
====================== */
:root {
  --primary-white: #FEFEFE;    /* 基本の白色 */
  --light-gray: #F5F5F5;       /* 明るめのグレー */
  --accent-color: #F45327;     /* アクセントカラー */
  --accent-color-hover: #FF724D; /* アクセントカラーのホバー状態 */
  --text-color: #333333;       /* 文字色 */
}

/* ======================
   Header
====================== */
/* ヘッダー基本スタイル */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem; /* 高さを増加 */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ナビゲーションメニュー */
.global-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.global-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.global-nav a:hover {
  color: var(--accent-color);
}

/* ドロップダウンメニュー */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;           /* 左端を親要素の中心に */
  transform: translateX(-50%) translateY(-10px); /* X軸方向に中央寄せ、Y軸方向に少し上に */
  background: var(--primary-white);
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1000;       /* 重なり順を確実に最前面に */
}

/* ホバー時の表示 */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* X軸方向の中央寄せを維持 */
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* ロゴ */
.logo {
  padding: 0.5rem 0;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo-image {
  height: 40px; /* ロゴの高さを適切なサイズに調整 */
  width: auto;
  vertical-align: middle;
}

/* ======================
   Hero Section
====================== */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  margin-top: 0;
}


#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .hero-section .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* videoより前面に表示 */
    width: 100%;
    text-align: center;
    color: #fff; /* テキストを白に */
  }
  
  .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 視認性向上 */
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 視認性向上 */
  }

.hero-caption {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1000px;
}

.hero-caption h1 {
  font-size: 3.5rem; /* 文字サイズを大きく */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff; /* 白色に変更 */
  letter-spacing: 0.1em; /* 文字間隔を少し広げる */
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-caption p {
  font-size: 1.5rem; /* サブテキストも大きく */
  color: #ffffff;
  line-height: 1.6;
  margin-top: 1rem;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
  opacity: 0;
}


/* サービスセクション全体のスタイル */
.service-section3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8rem 2rem;
  margin-top: -2px; /* ヘッダーとの境目を調整 */
}

.service-section3 .container {
  max-width: 1200px;
  margin: 0 auto;
}

.service-section3 .section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: #333;
  font-weight: bold;
  position: relative;
  padding-bottom: 1.5rem;
}

.service-section3 .section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f45327;
  border-radius: 2px;
}


/* ビジネスセクションスタイル */
.business-section {
    padding: 6rem 2rem; /* 上下と左右の内側の余白を追加 */
    background: #fff;
    margin: 0 auto; /* 中央揃え */
    max-width: 1200px; /* 最大幅を設定 */
    width: 90%; /* 画面幅に対する割合 */
    margin-top: 100vh; /* hero-sectionの高さ分確保 */
    position: relative;
    z-index: 3;
}

.business-section .container {
    padding: 0;
    margin: 0 auto;
}


.container {
  text-align: center;
}

.business-description {
  text-align: center;
  font-size: 1.2rem;
  line-height: 2;
  margin: 3rem 0;
  color: #555;
}

.sns-logo {
    height: 60px;
    margin: 0 30px;
    transition: filter 0.3s ease;
}

.sns-logo:hover {
    filter: brightness(1.2);
}



/* ケーススタディスタイル */
.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.case-study {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-study:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-study h3 {
  padding: 1.5rem;
  background: #f45327;
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
}

.case-study-content {
  padding: 2rem;
}

.case-study-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.case-study-images img:hover {
  transform: scale(1.05);
}

/* サービスカードのスタイル */
.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 4rem 3rem;
  margin-top: 3rem;
}

.service-description {
  text-align: center;
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 3rem;
  font-weight: 500;
}


/* アコーディオンセクション */
.service-details {
  max-width: 900px;
  margin: 4rem auto 0;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.accordion-header {
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 1.2rem;
  font-weight: 600;
}

.accordion-header:hover {
  background: #f45327;
  color: #fff;
  box-shadow: 0 6px 12px rgba(244, 83, 39, 0.2);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  opacity: 0;
}

.accordion-content.active {
  max-height: 1000px;
  padding: 2rem;
  opacity: 1;
}

.accordion-content p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.8;
}

.accordion-content ul {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

.accordion-content li {
  margin-bottom: 0.8rem;
  color: #666;
  line-height: 1.6;
}


/* トータル学習時間 */
.total-learning-time {
  background: linear-gradient(135deg, #f45327 0%, #ff724d 100%);
  color: #fff;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 4rem;
  box-shadow: 0 10px 30px rgba(244, 83, 39, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.total-learning-time:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(244, 83, 39, 0.3);
}

.total-learning-time h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.total-learning-time p {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

/* スクロールフェードエフェクト */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

/* PRICE セクション */
.price-section {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 8rem 0;
}

.price-section .section-title {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, #f45327, #ff724d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 4rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
}

.price-content {
  margin-bottom: 2rem;
}

.price-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.currency {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.number {
  font-size: 4rem;
  font-weight: bold;
  color: #f45327;
  line-height: 1;
}

.unit {
  font-size: 1.5rem;
  color: #666;
  align-self: flex-end;
  margin-bottom: 0.5rem;
}

.price-per {
  font-size: 1.2rem;
  color: #666;
  margin: 1rem 0;
}

.price-note {
  font-size: 1rem;
  color: #888;
  margin-top: 1rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #f45327, #ff724d);
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(244, 83, 39, 0.2);
}

@media screen and (max-width: 768px) {
  .service-section .section-title,
  .price-section .section-title {
      font-size: 2.5rem;
  }

  .price-card {
      padding: 2rem;
      margin: 0 1rem;
  }

  .number {
      font-size: 3rem;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .case-studies {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  .service-section {
      padding: 6rem 1.5rem;
  }

  .service-card {
      padding: 3rem 2rem;
  }
}

@media screen and (max-width: 768px) {
    .accordion-header {
      padding: 1.5rem;
      font-size: 1.1rem;
  }

  .accordion-content.active {
      padding: 1.5rem;
  }

  .case-study-images {
      grid-template-columns: 1fr;
  }

  .total-learning-time {
      padding: 2rem;
  }

  .total-learning-time p {
      font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .service-section {
      padding: 4rem 1rem;
  }

  .service-description {
      font-size: 1.1rem;
  }
}

/* ======================
   Contact Section
====================== */
.contact-cta {
  text-align: center;
  background-color: #fff;
  padding: 13rem 1rem;
}
.contact-cta .contact-btn {
  margin-top: 1rem;
}

.contact-cta {
  position: relative;
  overflow: hidden;
}

/* 背景テキストのアニメーション用の要素 */
.contact-cta::before {
  content: 'CONTACT';
  position: absolute;
  font-size: 180px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  animation: slideText 15s linear infinite;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* 修正したスライドアニメーション */
@keyframes slideText {
  0% {
    transform: translate(100%, -50%); /* 右端（画面外）からスタート */
  }
  100% {
    transform: translate(-100%, -50%); /* 左端（画面外）まで移動 */
  }
}

/* コンタクトセクションの内容を前面に */
.contact-cta h2,
.contact-cta p,
.contact-cta .btn {
  position: relative;
  z-index: 1;
}

/* ======================
   Footer
====================== */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 0 1rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 1rem;
}

/* 左側エリア：会社情報 */
.company-info2 {
  flex: 1;
}

.company-info2 h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.company-info2 .address {
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ccc;
}

.map-container {
  width: 350px;
  height: 200px;
  margin-top: 0.5rem;
}

.map-container iframe {
  border-radius: 4px;
}

/* 右側エリア：ナビゲーション */
.footer-nav {
  flex: 1;
  align-self: center; /* 上揃えに変更 */
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.7rem;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* コピーライト */
.copyright {
  text-align: center;
  padding-top: 1rem; /* パディングを縮小 */
  margin-top: 1rem; /* マージンを縮小 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright small {
  font-size: 0.75rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .company-info,
  .footer-nav {
    width: 100%;
  }

  .map-container {
    width: 100%;
    height: 300px;
  }

  .footer-nav {
    margin-top: 2rem;
  }
}


.btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--accent-color-hover);
}


/* ======================
   Responsive (例)
====================== */
@media screen and (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .service-cards {
    flex-direction: column;
    align-items: center;
  }
  .hero-section {
    height: 100vh;
    padding-top: 60px; /* ヘッダーの高さ分を確保 */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* テキストの視認性を確保 */
  .hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* オーバーレイを少し濃くする */
  }
  .hero-caption h1 {
    font-size: 1.5rem;
  }
  .hero-caption p {
    font-size: 1rem;
  }
}


.materials-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.pdf-buttons {
  display: flex;
  justify-content: center;
  padding: 30px;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  background-color: #f45327;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pdf-button:hover {
  background-color: #cc0000;
}

.pdf-button i {
  margin-right: 10px;
}


@media (max-width: 768px) {
  .site-header {
    background-color: rgba(254, 254, 254, 0.75); /* 元の白色を透過 */
    backdrop-filter: blur(1px); /* 背景のブラー効果（オプション） */
  }

  /* ドロップダウンメニューの背景も同様に透過 */
  .global-nav {
    background-color: rgba(254, 254, 254, 0.75);
    backdrop-filter: blur(5px);
  }
}