/* shinkan.css — 新歓ページ用スタイル */
@import url('https://fonts.googleapis.com/css2?family=Klee+One&display=swap');

/* --- ページ全体のレイアウト調整 --- */

/* ヘッダーの裏に隠れないように余白を空ける */
.new-page-main {
  padding-top: 100px; /* ヘッダーの高さ分 */
  width: 100%;
  /* bodyへの指定をここに移動 */
  font-family: "Klee One", cursive;
  color: #522e1d;
  overflow-x: hidden;
}

/* コンテンツ幅を制限して中央寄せにするラッパー */
.shinkan-wrapper {
  width: 100%;
  max-width: 1000px; /* PCで見やすくなる幅 */
  margin: 0 auto;
  padding: 20px;
}

/* リンクの設定（このページ内限定） */
.shinkan-wrapper a {
  color: greenyellow;
  text-decoration: none;
}
.shinkan-wrapper a:hover {
  cursor: pointer;
  opacity: 0.7;
}

/* --- トップエリア（旧header, .top） --- */

/* 旧headerタグのデザインをdivで再現 */
.shinkan-top-bar {
  background-color: #fff3e1;
  color: #522e1d;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  margin-bottom: 2rem;
}
.shinkan-top-bar img {
  width: 50px;
  height: 50px;
}

/* ★重要：クラス名を変更 (.logo -> .shinkan-logo) */
.shinkan-logo {
  margin: 1.5rem auto; /* 中央寄せ */
  width: 380px;
  height: 380px;
  border-radius: 70px;
  display: block; /* 画像をブロック要素化 */
  object-fit: cover;
}

.top {
  text-align: center;
  padding: 0 1rem;
  padding-bottom: 3rem;
  font-size: 1.25rem;
}

.top h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.top h2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.top h5 {
  margin-bottom: 3rem;
}
.top p {
  margin-bottom: 1.1rem;
}

/* ボーダーのデザイン調整 */
.border {
  width: 100%;
  max-width: 800px;
  margin: 3rem auto; /* 上下の余白 */
  
  /* 高さをなくして線だけにする */
  height: 1px; 
  border: none; 
  background-color: #522e1d; /* 文字と同じ茶色に変更 */
  padding: 0;
}

/* --- サークル（局紹介）エリア --- */

#midashi {
  color: #522e1d;
  text-align: center;
  padding-top: 4rem;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* mainタグの代わりにセクションで囲む */
.circle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 20px 0;
}

.circle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center; /* 中央寄せ */
}

.circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-info {
  position: absolute;
  text-align: center;
  color: white;
  font-weight: bold;
  pointer-events: none; /* クリックを透過 */
}

.circle:hover {
  cursor: pointer;
  transform: scale(1.1);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

/* 各円の色指定 */
#circle-1 { background-color: black; }
#circle-2 { background-color: #f4e511; }
#circle-3 { background-color: orange; }
#circle-4 { background-color: #f44336; }
#circle-5 { background-color: blue; }
#circle-6 { background-color: rgb(243, 37, 185); }
#circle-7 { background-color: #9c27b0; }

/* 黄色の円だけ文字を見やすく黒にする調整（任意） */
#circle-2 .circle-info { color: #522e1d; }

/* --- モーダル（ポップアップ） --- */

.modal {
  display: none; 
  position: fixed;
  z-index: 9999; /* 共通ヘッダーより上に表示 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #fff3e1;
  color: #522e1d;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 60vh; 
  overflow-y: auto;
  margin: auto;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #522e1d;
}

.modal-content h3,
.modal-content h5 {
  text-align: center;
}

.modal-content iframe {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
}

.modal-content img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  margin: 10px auto;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #522e1d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SNSエリア --- */

.sns {
  color: #522e1d;
  text-align: center;
  margin-bottom: 4rem;
  padding: 20px;
}
.sns h2 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.qr {
  margin: 1.5rem auto;
  width: 280px;
  height: 280px;
  display: block; /* 画像を中央寄せしやすく */
}
.snsimg {
  margin: 1.5rem auto;
  width: 300px;
  height: 300px;
  border-radius: 90px;
  display: block;
}

/* 編集局モーダルの文章を中央揃え */
#modal-7 .modal-content p {
  text-align: center;
}

/* --- スマホ対応 (レスポンシブ) --- */

@media (max-width: 700px) {
  /* ロゴサイズ調整 */
  .shinkan-logo {
    width: 250px;
    height: 250px;
  }
  
  /* 円サイズ調整 */
  .circle {
    width: 140px;
    height: 140px;
  }
  
  /* 余白調整 */
  .top {
    padding: 0 1rem;
  }
  
  .border {
    margin-left: 0;
    margin-right: 0;
    padding: 0; /* ← これが1.5remになっていると太くなります！0にしてください */
  }
}

/* ============================================ */
/* 重要：何があっても画面を表示させる設定 */
/* ============================================ */
/* これを入れれば、ローディング機能がフリーズしても
   強制的に画面が表示されるようになります */

#global-container {
  opacity: 1 !important;     /* 透明(0)ではなく、見える状態(1)を強制 */
  transition: none !important; /* ふわっと出るアニメーションも無効化 */
}

/* もしローディングバーが残っていたら消す */
.pace {
  display: none !important;
}

/* ============================================ */
/* 重要：文字が表示されない問題を解決する設定 */
/* ============================================ */

/* アニメーション用の「透明待機」を無効化して、最初から表示させます */

/* 1. ヘッダーやフッターの項目 */
.appear .item {
  opacity: 1 !important;
  transform: none !important;
}

/* 2. 横から出てくる文字（サイドバー）やタイトル */
.tween-animate-title,
.animate-title {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 文字が1文字ずつバラバラになっている場合の対策 */
.tween-animate-title span, 
.tween-animate-title .char,
.animate-title span,
.animate-title .char {
  opacity: 1 !important;
  transform: none !important;
}

/* 3. サイドバーの文字色を確実に茶色にする */
.side .tween-animate-title {
  color: #522e1d !important;
}

/* 4. サイドバー自体を表示させる（念のため） */
.side {
  opacity: 1 !important;
  display: block !important;
}

/* ============================================ */
/* 黒板風デザイン */
/* ============================================ */
.blackboard {
  border: 8px solid #aa6600; /* 木枠 */
  background: #104300; /* 黒板の緑 */
  color: #ffffff; /* 基本の文字色（白チョーク） */
  box-shadow: 2px 2px 4px #999999, 2px 2px 2px #002200 inset;
  padding: 30px 20px;
  margin: 3rem auto;
  border-radius: 4px;
  max-width: 800px; /* PCでも広がりすぎないように制限 */
  line-height: 1.6;
  font-size: 20px; /* ★ここに追加：PC画面では少し大きくする */
}

/* タイトル部分 */
.blackboard-title {
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.4em;
}
.blackboard-title span {
  border-bottom: 1px solid #ffffff;
  padding-bottom: 5px;
}

/* 4月・5月の見出し（中央揃え） */
.blackboard-month-wrapper {
  text-align: center;
  margin-top: 2.5em;
  margin-bottom: 1em;
}
.blackboard-month {
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6); /* チョークの擦れ感を出す点線 */
  display: inline-block;
  padding: 0 15px 5px;
}

/* 箇条書きリスト */
.blackboard-list {
  list-style-type: none; /* 「・」を消す */
  padding: 0;
  margin: 0 auto; /* 左右の余白を均等にして中央寄せ */
  width: fit-content; /* ★重要：リストの塊の幅を文字に合わせる */
  text-align: center; /* 文字の頭出しは揃える */
}

.blackboard-list li {
  margin-bottom: 1.5em;
}

/* ★追加：日付の黄色ハイライト */
.highlight-yellow {
  color: #ffe66d; /* チョーク風の柔らかい黄色 */
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 5px;
}

/* 黒板下部の注意書き・メッセージ */
.blackboard-footer {
  text-align: center;
  font-size: 0.95em;
  margin-top: 3em;
  border-top: 1px dashed rgba(255, 255, 255, 0.5);
  padding-top: 2em;
}
.blackboard-footer p {
  margin-bottom: 1.5em;
}
.blackboard-footer p:last-child {
  margin-bottom: 0;
}

/* ============================================ */
/* スマホ対応 (レスポンシブ) — */
/* ============================================ */
@media (max-width: 700px) {
  /* 黒板全体の余白を少し詰める */
  .blackboard {
    padding: 20px 10px;
    margin: 1.5rem auto;
  }

  /* ★修正：スマホでもリストの塊が中央にくるように直しました */
  .blackboard-list {
    margin: 0 auto; 
    padding-left: 0;
    width: 100%; /* スマホでは幅いっぱいに広げて中央揃えしやすくする */
  }

  /* 日付の下にイベント名が来るように調整 */
  .blackboard-list li {
    text-align: center; /* スマホでは全体を中央揃えに */
  }

  .highlight-yellow {
    display: block; /* 日付をブロック要素にして改行させる */
    margin-bottom: 5px; /* イベント名との間隔を作る */
    margin-right: 0; /* 右余白をなくす（中央揃えにするため） */
  }
}

/* ============================================ */
/* 新歓ページ専用：風の強制上書き設定 */
/* ============================================ */

/* 1. 帯の高さ（ここを変えれば見た目がすぐ変わります） */
.new-page-main .wind-decoration-area {
  height: 120px !important; /* 90pxから150pxに強制変更 */
  margin: 0px 0 !important; /* 前後の余白をわざと広く設定 */
}

/* 2. 波の動きをトップページと同じ速度に戻す */
.new-page-main .wind-wave.purple { animation-duration: 15s !important; }
.new-page-main .wind-wave.pink   { animation-duration: 12s !important; }
.new-page-main .wind-wave.cyan   { animation-duration: 18s !important; }
.new-page-main .wind-wave.orange { animation-duration: 20s !important; }

/* 3. 線の太さを変える（SVGの中身を上書き） */
.new-page-main .wind-wave.purple {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 100" xmlns="http://www.w3.org/2000/svg"><path d="M 0 50 Q 250 10, 500 50 T 1000 50" fill="none" stroke="%23DCD3E6" stroke-width="20"/></svg>') !important;
}

/* 4. 新歓ページで風を確実に見せる（透明化・重なりなどを強制解除） */
.new-page-main .wind-decoration-area {
  opacity: 1 !important;
  z-index: 10 !important;
}

.new-page-main .wind-wave {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.new-page-main .wind-wave.purple,
.new-page-main .wind-wave.pink,
.new-page-main .wind-wave.cyan,
.new-page-main .wind-wave.orange {
  background-repeat: repeat-x !important;
  animation-play-state: running !important;
}

