/*
 * ホームページ専用スタイル
 * 倉本鐵工株式会社 WordPressテーマ
 * 
 * @package Kuramoto
 * @version 1.0.0
 * @author 倉本鐵工株式会社
 */

/* ========================================
   ヒーローセクション
======================================== */

/* ヒーローセクション基本スタイル */
.hero-section {
  position: relative;
  height: 150vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  /* 背景画像は動画が読み込まれるまで非表示 */
  background-image: none !important;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 動画が読み込まれたら背景画像を表示（フォールバック用） */
.hero-section.video-loaded {
  background-image: url('../img/top.png') !important;
}

/* ヒーロー背景画像（パララックス） */
.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 背景画像は動画が読み込まれるまで非表示 */
  background-image: none !important;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
  will-change: transform;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* リロード時の一瞬の表示を防ぐ */
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

/* 動画が読み込まれたら表示 */
.hero-background.loaded {
  opacity: 1 !important;
  /* 背景画像は表示しない（動画のみ） */
  background-image: none !important;
}

/* ヒーロー背景動画 */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  /* 動画を優先表示 */
  opacity: 1;
  transition: opacity 0.5s ease;
}


/* オーバーレイ（テキストの視認性向上） */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 200px;
}

/* メインキャッチコピーエリア */
.hero-slogan {
  max-width: 600px;
}

.slogan-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  margin-bottom: 10px;
  display: inline-block;
  width: auto;
}

.main-slogan {
  font-size: clamp(1rem, 0.7rem + 1.5vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* 「水」と「未来」を強調表示 */
.main-slogan .slogan-emphasis {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 3.5rem);
  display: inline-block;
}


.sub-slogan {
  font-size: 24px;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

/* ABOUT USセクション */
.about-us-section {
  max-width: 800px;
  margin: 0 auto;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 30px 0;
  text-align: center;
}

/* 共通タイトルクラスをABOUT USでも使用可能にする */
.about-title.section-title {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-content {
  text-align: center;
}

.about-description {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.8;
  margin: 0 0 40px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* パララックス効果の終了 */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff;
  z-index: 10;
}

/* ========================================
   NEWSセクション
======================================== */

/* NEWSセクション基本スタイル（共通クラスと統合） */
.news-section {
  position: relative;
  min-height: 100vh;
  display: block;
  z-index: 10;
}

/* ニュース背景画像要素 */
.news-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  max-width: 350px;
  max-height: 270px;
}

.news-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 共通クラスを適用した場合のスタイル */
.news-section.section-content {
  /* 既存のスタイルを維持しつつ、共通クラスのスタイルも適用 */
  position: relative;
}

/* パララックス効果の確実な終了 */
.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 1);
  z-index: -1;
}

/* パララックス背景を隠すための追加スタイル */
.news-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 3;
  pointer-events: none;
}

/* コンテンツエリア */
.news-content {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 3;
  gap: 100px;
}

/* 左側エリア（タイトルとボタン） */
.news-left-content {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 右側コンテンツエリア（ニュース記事） */
.news-right {
  flex: 1;
  padding: 0;
  background: #ffffff;
  position: relative;
}

/* NEWSタイトル（共通クラスを使用） */
/* .news-title {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #70CC94 0%, #5CC9E2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
} */

/* ニュース記事一覧 */
.news-articles {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 0;
}

/* ニュース記事アイテム */
.news-item {
  padding-top: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-item:hover {
  opacity: 0.8;
  border-bottom: 1px solid #5CC9E2;
}

/* ニュースメタ情報 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
  min-width: 180px;
}

.news-date {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 500;
}

.news-category {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.news-tag {
  background: #5CC9E2;
}

.event-tag {
  background: #FF8C42;
}

/* ニュースタイトル */
.news-item-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  flex: 1;
  font-weight: 500;
}

.news-item-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item-title a:hover {
  color: #5CC9E2;
  text-decoration: none;
}

/* ========================================
   セパレーター画像
======================================== */

/* セパレーターセクション */
.separator-section {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

/* セパレーター画像 */
.separator-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}

/* ========================================
   リクルートセクション
======================================== */

/* リクルートセクション基本スタイル */
.recruit-section {
  position: relative;
  min-height: 70vh;
  background: #ffffff;
  padding: 0 !important;
  display: block;
  z-index: 10;
}

/* リクルート背景 */
.recruit-background {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-image: url('../img/bg-recruit.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* リクルートコンテンツ */
.recruit-content {
  position: absolute;
  bottom: -20%;
  right: 5%;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 90px 0;
  background: url('../img/recruitbox.png') no-repeat center center;
  background-size: cover;
  box-shadow: 8px 8px 0 rgba(30, 150, 252, 0.2);
}

/* リクルートタイトル */
.recruit-title {
  font-size: 3rem;
  font-weight: 700;
  color: #70CC94;
  margin: 0 0 30px 0;
  line-height: 1.1;
}

/* リクルート説明文 */
.recruit-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 40px 0;
}

.ashirai-image-2 {
  max-width: 914px;
}

/* セパレーター画像（ashirai-section） */
.ashirai-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ashirai-section .ashirai-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  .recruit-section {
    min-height: 30vh;
  }

  .recruit-background {
    min-height: 30vh;
  }

  .recruit-content {
    top: 95%;
    left: 50%;
    transform: translate(-50%, -20%);
    max-width: 550px;
    width: 100%;
    padding: 20px 0;
    background: #fff;
    height: 250px;
  }

  .recruit-title {
    font-size: 3rem;
  }

  .recruit-description {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .recruit-content {
    padding: 30px 20px;
    width: 90%;
  }

  .recruit-title {
    font-size: 2.5rem;
  }

  .recruit-description {
    font-size: 1rem;
  }
}

/* ========================================
   事業内容セクション
======================================== */

/* 事業内容セクション基本スタイル（共通クラスと統合） */
.business-content {
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 3;
  gap: 100px;
}

/* 共通クラスを適用した場合のスタイル */
.business-content.section-content {
  /* 既存のスタイルを維持しつつ、共通クラスのスタイルも適用 */
  position: relative;
}


/* ========================================
   共通デザインクラス
======================================== */

/* セクションタイトル共通スタイルは common.css で定義 */

/* セクション説明文共通スタイル */
.section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
}

/* セクションコンテンツ共通スタイル */
.section-content {
  position: relative;
  padding: 100px 20px;
  display: flex;
  z-index: 10;
}

/* セクション左側コンテンツ共通スタイル */
.section-left-content {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* セクション右側コンテンツ共通スタイル */
.section-right-content {
  flex: 1;
  padding: 0;
  background: #ffffff;
  position: relative;
}

@media screen and (max-width: 1024px) {
  .business-content {
    gap: 40px;
  }
}

/* レスポンシブ対応の共通スタイル */
@media screen and (max-width: 768px) {
  .section-description {
    font-size: 1rem;
  }

  .section-content {
    padding: 40px 20px;
  }

  .business-content {
    gap: 30px;
    flex-direction: column;
    align-items: baseline;
    max-width: 550px;
    width: 100%;
  }

}

@media screen and (max-width: 480px) {
  .section-description {
    font-size: 0.95rem;
  }

}

/* ========================================
   OUR HISTORYセクション
======================================== */

/* OUR HISTORYセクション基本スタイル */
.history-content {
  background: rgba(30, 150, 252, 0.05);
  display: block;
}

/* 左側コンテンツ */
.history-left-content {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* カメラアイコン */
.history-camera-icon {
  width: 60px;
  height: 60px;
}

/* カルーセルコンテナ */
.history-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* カルーセルトラック */
.history-carousel-track {
  display: flex;
  /* JavaScriptでアニメーション制御 */
  width: calc(400% + 220px);
  /* 4セット分 + マージン調整（11枚 × 20px = 220px） */
  will-change: transform;
}

/* カルーセルアイテム */
.history-carousel-item {
  flex: 0 0 300px;
  margin-right: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* カルーセル画像 */
.history-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* 無限スクロールアニメーションはJavaScriptで制御 */

/* ホバー時の一時停止 */
/* .history-carousel:hover .history-carousel-track {
  animation-play-state: paused;
} */

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .history-content {
    padding: 40px 0;
  }

  .history-carousel-item {
    flex: 0 0 250px;
    margin-right: 15px;
  }

  .history-image {
    height: 150px;
  }

  .history-carousel-track {
    width: calc(400% + 165px);
    /* 4セット分 + マージン調整（11枚 × 15px = 165px） */
  }
}

@media screen and (max-width: 480px) {
  .history-carousel-item {
    flex: 0 0 200px;
    margin-right: 10px;
  }

  .history-image {
    height: 120px;
  }

  .history-carousel-track {
    width: calc(400% + 110px);
    /* 4セット分 + マージン調整（11枚 × 10px = 110px） */
  }
}

/* ========================================
   YouTube動画セクション
======================================== */

/* YouTube動画セクション（通常の配置用） */
.youtube-video-section {
  padding: 80px 0;
  background: #ffffff;
}

.youtube-video-wrapper {
  position: relative;
  width: 800px;
  height: 450px;
  margin: 0 auto;
  overflow: hidden;
}

.youtube-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 900px) {
  .youtube-video-wrapper {
    width: 100%;
    max-width: 800px;
    padding-bottom: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
  }
}

@media screen and (max-width: 768px) {
  .youtube-video-section {
    padding: 60px 20px;
  }

  .ashirai-section-2 .youtube-video-section {
    padding: 60px 20px;
  }
}

@media screen and (max-width: 480px) {
  .youtube-video-section {
    padding: 40px 20px;
  }

  .ashirai-section-2 .youtube-video-section {
    padding: 40px 20px;
  }
}

/* ========================================
   グラデーションボタン
======================================== */

/* グラデーションボタン基本スタイル */
.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #70CC94 0%, #5CC9E2 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(112, 204, 148, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  max-width: 300px;
  width: 250px;
  height: 70px;
}

/* キラッと演出用のシャインエフェクト */
.gradient-button::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 40%;
  height: 180%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-150%) skewX(-20deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.gradient-button:hover::after {
  transform: translateX(350%) skewX(-20deg);
}


/* ホバー時の効果（落ち着いた挙動に変更） */
.gradient-button:hover {
  box-shadow: 0 6px 18px rgba(112, 204, 148, 0.35);
}

.gradient-button:hover .button-icon {
  transform: translateX(6px);
}

.gradient-button:hover .button-text {
  color: #ffffff;
  /* 文字はそのまま見せる */
}

.gradient-button:hover .icon-arrow {
  transform: translateX(2px);
}

/* ボタンテキスト */
.button-text {
  flex: 1;
  text-align: center;
  padding-right: 15px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ボタンアイコン（白丸） */
.button-icon {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  right: 0;
  top: 0;
  transform: none;
}


/* 矢印アイコン */
.icon-arrow {
  color: #5CC9E2;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}


/* ========================================
   採用情報バー
======================================== */

/* 採用情報バー（固定） */
.recruitment-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #5CC9E2;
  color: #ffffff;
  padding: 20px 15px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 1000;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
}

.recruitment-bar:hover {
  background: #357ABD;
  transform: translateY(-50%) translateX(-5px);
}

.recruitment-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.recruitment-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.recruitment-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.recruitment-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  display: block;
}

/* ========================================
   レスポンシブデザイン
======================================== */

@media (max-width: 1024px) {
  .about-title {
    font-size: 2.5rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .news-background-image {
    display: none;
  }

  .news-section {
    padding: 40px 0;
  }

  .news-content {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
    max-width: 550px;
    width: 100%;
    align-items: baseline;
  }

  .news-item {
    padding: 10px 0;
  }

  .news-right {
    padding: 0;
    min-height: auto;
  }

  .news-title {
    font-size: 3rem;
  }

  .separator-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
  }

  .section-left-content {
    flex: none;
    gap: 5px;
  }

  .news-articles {
    padding: 0;
  }

}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 500px;
  }

  .sub-slogan {
    font-size: 1rem;
  }

  .about-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .about-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .news-section {
    padding: 30px 0;
    min-height: auto;
  }

  .news-content {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    min-height: auto;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .news-item {
    padding: 15px;
  }

  .news-item-title {
    font-size: 0.9rem;
  }

  .recruitment-bar {
    padding: 15px 10px;
    right: -5px;
  }

  .recruitment-text {
    font-size: 0.8rem;
  }

  .recruit-button {
    margin-bottom: 30px;
  }

  .recruit-description {
    margin: 0 0 10px 0;
  }

  .gradient-button {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 180px;
    max-width: 250px;
    height: 50px;
  }

  .gradient-button:hover .button-icon {
    height: 35px;
  }

  .button-icon {
    width: 35px;
    height: 35px;
  }

  .icon-arrow {
    font-size: 1.1rem;
  }

  .separator-image {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .hero-content {
    gap: 60px;
  }

  .sub-slogan {
    font-size: 0.9rem;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-description {
    font-size: 0.9rem;
  }

  .news-section {
    padding: 20px 0;
  }

  .news-section .news-content {
    padding: 15px;
  }

  .news-right {
    padding: 0;
  }

  .news-title {
    font-size: 2rem;
  }

  .news-item {
    padding: 12px;
  }

  .news-item-title {
    font-size: 0.85rem;
  }

  .news-date {
    font-size: 0.8rem;
  }

  .news-category {
    padding: 3px 10px;
    font-size: 0.75rem;
  }

  .gradient-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 160px;
    max-width: 220px;
  }

  .button-icon {
    width: 30px;
    height: 30px;
  }

  .icon-arrow {
    font-size: 1rem;
  }

  .separator-image {
    width: 100%;
    height: auto;
    min-height: 120px;
    object-fit: cover;
  }
}

/* ========================================
   アニメーション
======================================== */

.hero-slogan {
  /* 1文字ずつフェードインアニメーションはJavaScriptで制御 */
  opacity: 1;
}

/* キャッチフレーズの文字の初期状態 */
.main-slogan .char-wrapper {
  display: inline-block;
}

.main-slogan .char {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  animation: charFadeIn 0.8s ease forwards;
  /* グラデーションテキストを適用 */
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* 通常の文字のサイズ（強調文字以外） */
  font-size: clamp(1rem, 0.7rem + 1.5vw, 2.5rem);
}

/* 強調文字（水、未来）のサイズ */
.main-slogan .slogan-emphasis.char {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 3.5rem);
}

/* 各文字に遅延を設定（よりゆっくり） */
.main-slogan .char-wrapper:nth-child(1) .char {
  animation-delay: 0.15s;
}

.main-slogan .char-wrapper:nth-child(2) .char {
  animation-delay: 0.3s;
}

.main-slogan .char-wrapper:nth-child(3) .char {
  animation-delay: 0.45s;
}

.main-slogan .char-wrapper:nth-child(4) .char {
  animation-delay: 0.6s;
}

.main-slogan .char-wrapper:nth-child(5) .char {
  animation-delay: 0.75s;
}

.main-slogan .char-wrapper:nth-child(6) .char {
  animation-delay: 0.9s;
}

.main-slogan .char-wrapper:nth-child(7) .char {
  animation-delay: 1.05s;
}

.main-slogan .char-wrapper:nth-child(8) .char {
  animation-delay: 1.2s;
}

.main-slogan .char-wrapper:nth-child(9) .char {
  animation-delay: 1.35s;
}

.main-slogan .char-wrapper:nth-child(10) .char {
  animation-delay: 1.5s;
}

@keyframes charFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-us-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* 左から右に現れるアニメーション */
@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-title,
.news-button {
  animation: fadeInUp 0.6s ease-out;
}

.news-button {
  animation-delay: 0.2s;
}

/* ========================================
   印刷用スタイル
======================================== */

@media print {
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-background {
    display: none;
  }

  .hero-overlay {
    display: none;
  }

  .main-slogan,
  .sub-slogan,
  .about-title,
  .about-description {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .slogan-box {
    background: #ffffff !important;
    border: 1px solid #ccc;
  }

  .recruitment-bar {
    display: none;
  }

  .news-section {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .news-title {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
  }

  .separator-section {
    display: none;
  }

  .gradient-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000;
    box-shadow: none !important;
  }

  .button-icon {
    background: #ffffff !important;
    border: 2px solid #000000;
  }

  .icon-arrow {
    color: #000000 !important;
  }
}

/* Instagram埋め込みセクション */
.ashirai-section-2 {
  position: relative;
}

.ashirai-section-2 .ashirai-image-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* YouTube動画セクション（背景画像の上に配置） */
.ashirai-section-2 .youtube-video-section {
  position: relative;
  z-index: 2;
  margin-top: 150px;
  background: transparent;
}

.instagram-section {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.instagram-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Instagramセクションのレスポンシブ対応 */
@media (max-width: 1024px) {
  .ashirai-section-2 {
    display: flex;
    flex-direction: column;
    position: relative;
  }


  .ashirai-section-2 .youtube-video-section {
    margin-top: 200px;
  }

  .instagram-section {
    position: relative;
    width: 100%;
    height: auto;
    order: 3;
    padding: 40px 0;
    z-index: 2;
  }

  .instagram-container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .instagram-section {
    padding: 30px 0;
  }

  .instagram-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .instagram-section {
    padding: 20px 0;
  }

  .instagram-container {
    padding: 0 10px;
  }
}

/* SNSフォローボタンセクション */
.sns-follow-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 20px;
  margin-top: 20px;
}

/* Instagramフォローボタン */
.instagram-follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #833AB4 0%, #E4405F 50%, #FCAF45 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
  position: relative;
  overflow: hidden;
}

.instagram-follow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.instagram-follow-button:hover::before {
  left: 100%;
}

.instagram-follow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 64, 95, 0.4);
  background: linear-gradient(135deg, #FCAF45 0%, #E4405F 50%, #833AB4 100%);
}

.instagram-follow-button:active {
  transform: translateY(0);
}

.instagram-icon {
  font-size: 20px;
  line-height: 1;
}

.instagram-text {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* TikTokフォローボタン */
.tiktok-follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #000000 0%, #161823 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.tiktok-follow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tiktok-follow-button:hover::before {
  left: 100%;
}

.tiktok-follow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #161823 0%, #000000 100%);
}

.tiktok-follow-button:active {
  transform: translateY(0);
}

.tiktok-icon {
  font-size: 20px;
  line-height: 1;
}

.tiktok-text {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* SNSフォローボタンのレスポンシブ対応 */
@media (max-width: 768px) {
  .sns-follow-section {
    padding: 30px 15px;
    margin-top: 15px;
    gap: 15px;
  }

  .instagram-follow-button,
  .tiktok-follow-button {
    padding: 14px 28px;
    font-size: 14px;
    gap: 10px;
  }

  .instagram-icon,
  .tiktok-icon {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sns-follow-section {
    padding: 20px 10px;
    margin-top: 10px;
    gap: 12px;
    flex-direction: column;
  }

  .instagram-follow-button,
  .tiktok-follow-button {
    padding: 12px 24px;
    font-size: 13px;
    gap: 8px;
    width: 100%;
    max-width: 280px;
  }

  .instagram-icon,
  .tiktok-icon {
    font-size: 16px;
  }
}