/* 基本設定 */
/* CSSのリセットとレイアウトの安定化 */
* {
  box-sizing: border-box; /*レイアウトのズレを防ぎ、要素のサイズを直感的に管理しやすくなる */
  margin: 0; /*ブラウザのデフォルトの余白を消すため */
  padding: 0; /*ブラウザのデフォルトの余白を消すため */
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

/* ヘッダー */
#header {
  display: flex; /* 横並び */
  justify-content: space-between; /* 両端に寄せる */
  align-items: center; /* 縦軸に中央揃え */
  position: fixed; /* 固定配置 */
  top: 0; /* 上端に固定 */
  left: 0; /* 左端に固定 */
  z-index: 500; /* 他の要素より前面に */
  width: 100%;
  height: 100px; /* 適宜調整 */
  background: rgba(255, 255, 255, 0.8); /* 背景を半透明に */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /*box-shadow: [X方向] [Y方向] [ぼかしの強さ] [広がり] [影の色];*/
}

/* PC用ナビゲーション（横並び） */
.nav_pc {
  display: flex; /* 横並び */
  align-items: center; /* ヘッダーの縦軸に中央揃え */
  margin-right: auto; /* 左寄せ */
  margin-left: 20%; /* 左に余白を作る */
  white-space: nowrap; /* 改行を防ぐ */
  overflow: hidden; /* はみ出し防止 */
}

.nav_pc .list {
  display: flex;
  list-style: none;
  padding: 0;
  white-space: nowrap; /* リスト内のテキスト改行を防ぐ */
}

.nav_pc .item {
  margin-right: 60px;
}

.nav_pc .item a {
  text-decoration: none;
  color: #494848;
  font-size: 30px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  display: inline-block;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  white-space: nowrap; /* テキストが折り返されるのを防ぐ */
}

.nav_pc .item a:hover {
  border-color: #333; /* ホバー時に線を表示 */
}

.nav_pc .item a:hover {
  color: #000;
  border-color: #333; /* ホバー時に線を表示 */
}

/* スマホ用ナビゲーション（デフォルトでは非表示） */
.nav_sp {
  display: none;
}

/* ハンバーガーメニュー関連 */
.drawer_hidden {
  display: none;
}

.drawer_open {
  height: 60px;
  width: 60px; /* アイコンのサイズ */
  position: fixed;
  top: 20px; /* 上部からの距離 */
  right: 20px; /* 右端からの距離 */
  z-index: 100;
  cursor: pointer;
}

.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: "";
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

.drawer_open span {
  top: 50%; /* 垂直方向の中央に配置 */
  left: 50%; /* 水平方向の中央に配置 */
  transform: translate(-50%, -50%); /* 完全に中央に配置 */
}

.drawer_open span:before {
  bottom: 8px;
}

.drawer_open span:after {
  top: 8px;
}

#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* メニュー関連 */
.nav_content {
  width: 100%;
  height: calc(100vh - 100px); /* 画面の高さからヘッダー分を引く */
  position: fixed;
  top: -100vh; /* 画面の上に隠しておく */
  left: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.8); /* 背景を薄く */
  transition: top 0.5s ease; /* スライドアニメーション */
}

.nav_content .list {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  padding: 0;
}

.nav_content .item {
  margin: 15px;
  padding: 15px;
}

.nav_content .item a {
  text-decoration: none;
  color: #494848;
  font-size: 32px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  display: inline-block; /* 要素がインラインで表示され、下に線を引けるようにする */
  padding-bottom: 5px; /* 線との隙間調整 */
  border-bottom: 2px solid transparent; /* 初期状態では透明な線 */
  transition: border-color 0.3s ease; /* ホバー時のアニメーション */
}

.nav_content .item a:hover {
  border-color: #333; /* ホバー時に線を表示 */
}

#drawer_input:checked ~ .nav_content {
  top: 100px; /* ヘッダーの下にナビゲーションが表示される */
}

/* メニューのデザイン */
.nav_content .list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .nav_pc {
    display: none; /* PCメニューを非表示 */
  }

  .nav_sp {
    display: block; /* スマホ用メニューを表示 */
  }
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

body {
  /*background: linear-gradient(to bottom, #ffffff, #e2e5ff);*/
  background-color: #ffffff;
}

/* キャッチフレーズ表示 */
#welcome-image {
  margin: 80px 0 20px; /* 上の余白を広げる */
}

/* スマホ用のサイズ調整 */
@media screen and (max-width: 768px) {
  #welcome-image img {
    width: 80%; /* スマホでは80%のサイズに縮小 */
    height: auto; /* 縦横比を維持 */
    margin: 120px auto 0px; /* 中央配置 */
    display: block; /* 余白を調整 */
  }
}

.title {
  width: 100%;
  font-size: 45px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  margin: 120px 0 10px;
  padding-left: 50px;
  color: #494848;
}

.title a {
  text-decoration: none;
  color: inherit; /* 親(title)の色を継承 */
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.title a:hover {
  border-color: #333;
}

/* スマホ時のスタイル（常に下線を表示） */
@media screen and (max-width: 768px) {
  .title a {
    border-bottom: 2px solid #333; /* 常に下線を表示 */
  }
}

/* 説明文カードのデザイン */
#about {
  font-size: 1.3rem;
  line-height: 1.5;
  width: 85%;
  margin: auto; /* 中央寄せ */
  text-align: center;
  padding: 20px; /* 余白を追加 */
  margin-top: 30px; /* 下部に余白を追加 */
  margin-bottom: 40px; /* 下部に余白を追加 */
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: scale(1);
  display: flex;
  flex-direction: column;
}

#about strong {
  font-size: 1.8rem;
  text-align: center;
  line-height: 2;
}
#about p {
  font-size: 1.3rem;
  line-height: 2;
}

/* スマホ向け調整 */
@media screen and (max-width: 768px) {
  .about_background1 {
    background-color: #fbf0ff; /* スマホ時のみ背景色を変更 */
    padding: 30px 0; /* 上下の余白を広く */
  }

  .about_background2 {
    background-color: #f0f8ff; /* スマホ時のみ背景色を変更 */
    padding: 30px 0; /* 上下の余白を広く */
  }

  .about_background3 {
    background-color: #f4fff0; /* スマホ時のみ背景色を変更 */
    padding: 30px 0; /* 上下の余白を広く */
  }

  .about_background4 {
    background-color: #fffbf0; /* スマホ時のみ背景色を変更 */
    padding: 30px 0; /* 上下の余白を広く */
  }

  #about strong {
    font-size: 1.4rem; /* スマホでは少し小さく */
    line-height: 1.8;
    text-align: center;
    display: block; /* インライン要素をブロック要素に */
  }

  #about .middle {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    display: block;
  }

  #about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
  }
}

/* PC ではデフォルトの改行を維持 */
#about br {
  display: block;
}

@media screen and (max-width: 768px) {
  #about br {
    display: none; /* PC の <br> を非表示に */
  }

  .sp-br {
    display: block; /* スマホで通常の改行 */
  }

  .sp-br-large {
    display: block;
    height: 1em; /* 1行分のスペースを確保 */
  }
}

/* ホバー時のエフェクト */
#about:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* フェードイン＆スライドアップアニメーション */
#about {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

/* Join Us の #about だけ色を変える */
#join-us-section #about {
  background-color: rgba(246, 203, 223, 0.551); /* 背景色を変更 */
}

.detail-button {
  display: inline-block;
  width: 50%;
  padding: 12px;
  margin: 30px auto;
  background-color: rgba(249, 167, 16, 0.743);
  color: #000000; /* 白文字 */
  text-decoration: none; /* 下線を消す */
  border-radius: 45px; /* 角丸 */
  font-size: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background-color: rgb(251, 163, 0);
}

/* スマホ用の調整 */
@media (max-width: 768px) {
  #about {
    width: 90%; /* スマホでは少し幅を縮める */
    font-size: 1.1rem; /* 文字サイズを少し小さく */
    padding: 15px; /* 余白を少し減らす */
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about_wrapper {
  display: block;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  padding: 0 50px;
}

@media screen and (max-width: 768px) {
  .about_wrapper {
    margin: 50px auto; /* スマホでは上下の余白を広くする */
    padding: 0 10px; /* スマホでは横幅を小さくする */
  }

  /* スマホでは <br> を非表示にする */
  .about_wrapper p br {
    display: none;
  }

  .sp-br {
    display: block; /* スマホで改行 */
  }

  .sp-br-large {
    display: block;
    height: 0.5em; /* 1行分のスペースを確保 */
  }
}

.about_container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 30px; /* テキストと画像の間隔 */
  margin-top: 50px;
}

.about_text {
  flex: 1; /* テキストと画像の比率 */
}

.about_text h1 {
  font-size: 40px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: #494848;
  margin: 0 auto 20px auto; /* 上下の余白を設定しつつ中央揃え */
  padding: 0 10%; /* 左右に適度な余白を確保 */
}

.about_text p {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 auto 20px auto; /* 上下の余白を設定しつつ中央揃え */
  padding: 0 10%; /* 左右に適度な余白を確保 */
}

@media (max-width: 768px) {
  /* スマホ向けのスタイル */
  .about_text h1 {
    font-size: 36px; /* 文字を小さく */
    line-height: 1.2; /* 行間を少し詰める */
    text-align: center; /* テキストを中央寄せ */
  }

  .about_text p {
    font-size: 1.1rem; /* 文字を少し小さく */
    line-height: 1.6;
    padding: 0 5%; /* 左右の余白を狭める */
    text-align: left; /* テキストを左寄せ */
  }

  /* スマホの時だけ改行を追加 */
  .about_text br {
    display: block; /* 改行を有効にする */
    content: ""; /* 空白を確保 */
  }
}
.about_image {
  flex: 1; /* テキストと画像の比率 */
  max-width: 50%; /* 画像の幅を50%に */
}

.about_image img {
  width: 90%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto; /* 上下は0、左右は自動で中央寄せ */
}

/* スマホ（768px以下）では縦並び */
@media screen and (max-width: 768px) {
  .about_container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about_image {
    max-width: 100%;
  }
}

/* PCのとき、2番目と4番目のテキストと画像の位置を入れ替える */
@media screen and (min-width: 769px) {
  /* デフォルトのフェードイン（左から右へ） */
  .fade-in {
    opacity: 0;
    transform: translateX(0px); /* 左からスライド */
    transition: opacity 2s ease-out, transform 2s ease-out;
  }

  /* 表示時（元の位置に戻る） */
  .fade-in.show {
    opacity: 1;
    transform: translateX(0);
  }

  /* 偶数番目のテキストと画像の順番を逆に */
  .about_container:nth-child(even) {
    flex-direction: row-reverse; /* 偶数番目のテキストと画像の順番を逆に */
  }

  /* 偶数番目（2,4番目）は逆向き（右から左へ） */
  .about_container:nth-of-type(even) {
    flex-direction: row-reverse; /* テキストと画像の位置を入れ替え */
  }

  /* 偶数番目のfade-inは右から左 */
  .about_container:nth-of-type(even).fade-in {
    transform: translateX(0px); /* 右からスライド */
  }

  /* 偶数番目が表示されたら元の位置へ */
  .about_container:nth-of-type(even).fade-in.show {
    transform: translateX(0);
  }
}

/* スマホのときは、並び替えを無効化し、縦並びにする */
@media screen and (max-width: 768px) {
  .about_container {
    flex-direction: column; /* 全体的に縦並びにする */
  }

  /* 偶数番目だけ元の順番に戻す */
  .about_container:nth-child(even) {
    flex-direction: column; /* 偶数番目でも縦並びにする */
  }
}
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

.activity_wrapper {
  display: block;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px auto;
  padding: 0 10px;
}

/* スライダーコンテナ */
.slider {
  width: 100%;
}

/* スライドエリア */
.slides {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.slider-title {
  text-align: left;
  font-size: 40px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  margin: 30px 0 10px;
  padding-left: 50px;
  color: #494848;
}

/* 各スライド */
.slides > div {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9); /* スライドの背景 */
  transform-origin: center;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out,
    background 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* スライドの影 */
}

/* ホバー時の拡大と影の変化 */
.slides > div:hover {
  transform: scale(0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* より強い影 */
  background: rgba(243, 251, 255, 1); /* 背景色が完全に白に */
}

/* リンクのスタイル */
.slide-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.slide-link h2 {
  font-size: 40px; /* PC版 */
  margin-bottom: 10px;
  color: #494848;
}

@media screen and (max-width: 768px) {
  .slide-link h2 {
    font-size: 30px; /* スマホ版 */
  }
}

.slide-link:hover h2 {
  color: #0084ff;
}

/* 画像のスタイル */
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.contact_img {
  width: 30%;
  height: 100%;
  margin: 0 40px;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .contact_img {
    display: block; /* ブロック要素にして縦並び */
    margin: 10px auto; /* 画像同士の間隔を調整しつつ中央寄せ */
    width: 80%; /* 画像の幅を調整（必要に応じて変更） */
  }
}

.twitter-container {
  justify-content: center;
  max-width: 500px;
  margin: 30px auto;
}

@media (max-width: 600px) {
  .twitter-container {
    width: 90%;
    margin: 20px auto; /* 左右中央寄せ */
  }

  .twitter-timeline {
    width: 100% !important; /* コンテナ幅に合わせる */
  }
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

.footer {
  text-align: center;
  margin-top: 0px;
  padding: 30px 0px;
  background-color: #ffffff;
  border-top: 1px solid #494848; /* 上に線を追加 */
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

/* レスポンシブデザイン */
/* スマートフォン向け */
@media (max-width: 600px) {
  .slides > div {
    width: 80%;
    height: 400px;
  }
  .slide-link h1 {
    font-size: 24px;
  }
}

/* タブレット向け */
@media (min-width: 601px) and (max-width: 1024px) {
  .slides > div {
    width: 60%;
    height: 450px;
  }
  .slide-link h1 {
    font-size: 28px;
  }
}

/* PC向け */
@media (min-width: 1025px) {
  .slides > div {
    width: 30%;
    height: 500px;
  }
  .slide-link h1 {
    font-size: 32px;
  }
}
