@charset "utf-8";
/*--------------------------------------------------
基本設定
--------------------------------------------------*/
body.top-page {
  display: block !important;
}
/* ページ全体を縦方向のFlexboxにする */
html, body {
  height: 100%; /* 高さを100%に */
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ビューポート全体の高さ */
  color: #000000;
  font-family: "メイリオ","Meiryo","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","MS Pゴシック", "MS P Gothic",sans-serif;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 20px;
  padding-left: 0px;
  background-color: #ffffff;
  /* アニメーション設定 */
  animation: bgChange 10s infinite alternate ease-in-out;
}
/* 背景色を変化させるキーフレーム */
/* @keyframes bgChange {
  0%   { background-color: #f2f4fc; }
  50%  { background-color: #f6f6f9; }
  100% { background-color: #e2e2e2; }
} */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
  margin:0;
  padding:0;
}
h1 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size:18px;
  font-weight:bold;
  padding:20px 0;
  text-align:center;
}
/* SP用部品は非表示 */
@media (min-width: 1024px){
  #main{
    display: none;
  }
}
#wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  clear:both;
  width:100%;
  min-height: 0; /* ← 超重要 */
}
.yt_wrap {
  width: 100%;
  height: 100%;
  position: relative;
  pointer-events: none; /* クリックやタッチを無効化 */
}
/*サウンド ON/OFFボタン*/
a.ytplyaer-mute {
  position:fixed;
  bottom:100px;
  right:30px;
  position: fixed;
  z-index: 100;
}
#sound_btn {
  width:100px;
  height:100px;
}
.sound_off {
  background:url(../images/common/mute.png) no-repeat center center;
}
.sound_on {
  background:url(../images/common/value.png) no-repeat center center;
}
.custom-iframe {
  margin-top: 50px;
  border: none; /* 枠線を削除 */
  width: 100%; /* 幅をページ全体に設定 */
  height: 1080px; /* 高さを固定 */
  overflow: hidden; /* はみ出し部分を非表示 */
}
@media only screen and (max-width: 768px) {
  #wrap_top {
    width: 100%;
    height: 500px;
    background:url(../images/common/sp_back.png) center center no-repeat;
    background-size:cover;
    position:relative;
  }
  #wrap {
    width: 100%;
    /* height: 480px; */
    position:relative;
  }
  .yt_wrap {
    display: none;
  }
  a.ytplyaer-mute {
    display: none;
  }
}
/*--------------------------------------------------
   HEADER
--------------------------------------------------*/
#header {
  width:100%;
  /* height:100%; */
  overflow:hidden;
  clear:both;
  position:relative; 
  z-index: 10;
}
.menu{
  width: 100%;
  height: 54px; /* ← PC版の高さを固定 */
  position:fixed;
  background-color: #4e54c8;
  z-index: 9;
  top: 0 !important;
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center; /* ← これが効くようになる */
}
.menu li {
  display: block;
  float: left;
  width: 10%;
  margin: 0;
  padding: 0;
}
.menu li a {
  display: block;
  padding: 15px 0 15px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.menu li a:hover {
  background: #afbaf0;
}
/* 現在選択中（アクティブ）メニュー */
nav ul li a.active {
  background-color: #027afc;
  color: #fff;
}
@media only screen and (max-width: 768px) {
  #header {
    width:100%;
    height:5%;
    overflow:hidden;
    clear:both;
    /* position:relative;  */
    z-index: 10;
  }
  .menu-wrapper {
    position: relative;
  }
  .menu-icon {
    width: 40px;
    height: 30px;
    position: fixed; /* ← fixedにして常に左上固定 */
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1102;
    display: inline-block;
  }
  .menu-icon span {
    display: block;
    height: 4px;
    margin: 6px 0;
    background: #0055ff;
    border-radius: 2px;
    transition: 0.4s;
  }
  /* ハンバーガーがXに変形 */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  /* オーバーレイ背景 */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 1;
  }
  #menu-toggle:checked ~ .overlay {
    opacity: 1;
    pointer-events: auto;
  }
  /* メニュー本体（左から出す） */
  .menu {
    position: fixed;
    top: 0;
    left: -250px; /* ← 初期位置を左へ */
    width: 250px;
    height: 100%;
    background: #000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.4s ease;
    z-index: 1101;
  }
  #menu-toggle:checked ~ .menu {
    left: 0; /* ← 開いたときは左0へ */
  }
  .menu ul {
    list-style: none;
    padding: 60px 20px;
    flex-direction: column;
    align-items: flex-start; /* ← 左寄せ */
  }
  /* 通知ベルの li を一番上にする */
  .menu li.notify-li {
    order: -1; /* ← 最上部に移動 */
  }
  .menu li {
    margin: 20px 0;
    width: 100%; /* ← 左寄せを安定させる */
  }
  .menu li a {
    display: block;
    width: 100%; /* ← タップ領域を広げる */
    text-align: left; /* ← 文字も左寄せ */
    padding: 10px 0;
  }
  .menu a:hover {
    color: #007bff;
  }
}
/*--------------------------------------------------
   TOP
--------------------------------------------------*/
#top_contents {
  width:100%;
  margin:0 auto;
  margin-bottom: 10px;
  overflow:auto;
  clear:both;
  padding-top:20px;
  border-radius: 5px;
  flex: 1; /* フッター以外の領域を自動で広げる */
}
@media only screen and (max-width: 768px) {
  #top_contents {
    height: auto;
    margin:0 auto;
    margin-top: 20px;
    overflow:auto;
    clear:both;
    padding-top:5px;
  }
}
/*--------------------------------------------------
   NEWS
--------------------------------------------------*/
#newsbox {
  position: relative;
  width: 95%;
  max-width: 1080px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background:#4e54c8;
}
#news {
  width:90%;
  margin:20px auto 50px;
  padding-bottom: 20px;
  overflow:hidden;
  clear:both;
  position:relative;
}
#news a {
  text-decoration:none;
  color:#FFFFFF;
  display:block;
}
#news a:hover {
  color:#000000;
}
#news .news_box {
  background-color: rgba(255,255,255,0.1);
  font-size:14px;
}
#news .news_box dl {
  margin:0px 10px;
  padding:15px 10px;
  border-bottom:dotted 1px #AAA;
  overflow:hidden;
  clear:both;
}
#news .news_box dt {
  display:block;
  width:100px;
  padding-left:20px;
  float:left;
  background:url() no-repeat center left;
}
#news .news_box dd {
  float:left;
  width:680px;
  display:block;
  overflow:hidden;
  padding-bottom: 5px;
}
@media only screen and (max-width: 768px) {
  #newsbox {
    margin-top: 80px;
    color: #fff;
    background:#4e54c8;
  }
  #news {
    width:90%;
    overflow:hidden;
    clear:both;
    position:relative;
  }
  #news h1 {
    color:#fff;
  }
  #news .news_box dt {
    display:block;
    width:90%;
    padding-left:20px;
    float:left;
  }
  #news .news_box dd {
    float:left;
    width:90%;
    display:block;
    overflow:hidden;
  }
}
 /* フェードイン初期状態 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* 表示時 */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/*--------------------------------------------------
   概要
--------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #898ccc, #5454c8 70%);
}
#space-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding-top: 20vh;
}
.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 120, 255, 0.4);
  border: 1px solid rgba(0, 150, 255, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.4);
}
.hero-btn:hover {
  background: rgba(0, 150, 255, 0.7);
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.8);
  transform: translateY(-3px);
}
.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}
@media (max-width: 600px) {
  .hero {
    display: flex;
    justify-content: center;   /* 横方向の中央 */
    align-items: center;       /* 縦方向の中央 */
    text-align: center;
    padding: 0 20px;           /* 左右余白 */
  }
  .hero-content {
    padding: 0;                /* SPでは上の余白を消す */
    width: 100%;
  }
  .hero-content p {
    text-align: center;
  }
}
/* ログイン画面 */
.login_body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #74ABE2, #5563DE);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 300px;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}
/* 入力フィールド */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #444;
}
.form-group input {
  width: 90%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus {
  border-color: #5563DE;
  outline: none;
}
/* ログインボタン */
.login-btn {
  width: 100%;
  padding: 0.75rem;
  background: #5563DE;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.login-btn:hover {
    background: #3f4bb8;
}
.invalid-feedback {
  font-size: 10px;
  color: #dc3545; 
}
.alert-danger {
  font-size: 10px;
  color: #dc3545; 
}
.result {
  font-size: 10px;
  color: #2601f5; 
}
/* レスポンシブ対応 */
@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }
  .login-container h2 {
    font-size: 1.5rem;
  }
}
/* アカウントPW変更 */
.ac_wrapper{
  width: 400px;
  padding: 20px;
  margin: 0 auto;
}
.alert-danger {
  font-size: 10px;
  color: #dc3545; 
}
.result {
  font-size: 10px;
  color: #2601f5; 
}
/* MyPage */
#monotone-module-1 {
  /* font-family: 'Inter', sans-serif; */
  color: #1f2937;
  line-height: 1.6;
  max-width: 30%; /* 最大幅を設定 */
  margin: 0 auto; /* 左右のマージンを auto に */
}
@media only screen and (max-width: 768px) {
  #monotone-module-1 {
    /* font-family: 'Inter', sans-serif; */
    color: #1f2937;
    line-height: 1.6;
    max-width: 350px; /* 最大幅を設定 */
    margin: 0 auto; /* 左右のマージンを auto に */
  }
}
#monotone-module-1 .card-base {
  max-width: 880px;
  height:580px;
  padding: 18px;
  margin-top: 60px;
  border-radius: 12px;
  transition: all 0.3s;
}
#monotone-module-1 .card-header {
  /* display: flex; */
  align-items: center;
  gap: 20px;
}
#monotone-module-1 .card-header img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  /* filter: grayscale(100%); */
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px auto 1rem auto; /* 中央寄せ */
  border: 3px solid #4a90e2;
  display: block;
}
/* 未保存状態の強調 */
.avatar.unsaved {
    border-color: orange;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
}
.text_input {
  width: 95%;
  padding: 0.4rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
}
.file-label {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: linear-gradient(135deg, #4a90e2, #357ABD);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}
.file-label:hover {
  background: linear-gradient(135deg, #5aa0f2, #4689d6);
}
.file-input {
  display: none; /* 実際のinputは非表示 */
}
#monotone-module-1 .card-content {
  margin-top: 2px;
  padding-top: 6px;
  font-size: 0.875rem;
  color: #6b7280;
}
#monotone-module-1 .card-minimal {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
#monotone-module-1 .card-minimal:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
/* Member carousel */
.member-carousel {
  position: relative;
  width: 95%;
  max-width: 1080px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.member-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.member-carousel-slide {
  flex: 0 0 100%; /* SP版は1枚表示 */
  box-sizing: border-box;
  padding: 35px;
  margin-left: auto;
}
/* PC版は3枚表示 */
@media (min-width: 768px) {
  .member-carousel-slide {
    flex: 0 0 33.3333%;
  }
}
/* ボタン */
.member-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}
.member-carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
/* ドットナビゲーション */
.member-carousel-dots {
  text-align: center;
  margin-top: 10px;
}
.member-carousel-dots button {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}
.member-carousel-dots button.active {
  background: #333;
}
/* カード全体 */
.member-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* ホバー時の浮き上がり効果 */
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
/* 画像部分 */
.member-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}
/* コンテンツ部分 */
.member-card-content {
  padding: 20px;
}
.member-card-content h3 {
  margin: 0 0 10px;
  font-size: 1.4em;
  color: #333;
}
.member-card-content p {
  font-size: 0.95em;
  color: #666;
  line-height: 1.6;
}
/* ボタン */
.member-card-content a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #6a5acd, #00bfff);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s ease;
}
.member-card-content a:hover {
  background: linear-gradient(45deg, #00bfff, #6a5acd);
}
/* フッター */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
}
footer a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 8px;
}
footer a:hover {
  text-decoration: underline;
}
/* レスポンシブ対応 */
@media (max-width: 600px) {
  footer {
    font-size: 14px;
  }
}
/* スクロールバーカスタマイズ */
/* WebKit系（Chrome / Edge / Safari） */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: transparent; /* 背景透過 */
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); /* 半透明白 */
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2); /* 枠も半透明 */
  backdrop-filter: blur(4px); /* ガラス風ぼかし */
  -webkit-backdrop-filter: blur(4px); /* Safari対応 */
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5); /* ホバーで少し濃く */
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}
#notify-box {
  position: absolute;
  top: 50px;
  right: 10px;
  width: 260px;
  max-height: 350px;
  overflow-y: auto;
  background: #dde7f7;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 10px;
  z-index: 2000;
}
/* ▼ 通知アイテム */
.notify-item {
  display: block;
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

/* 未読 */
.notify-item.unread {
  background: #ffebe8; /* 薄い青 */
  font-weight: bold;
}

/* 既読 */
.notify-item.read {
  background: #fff;
  opacity: 0.7;
}
.notify-item small {
  color: #777;
}
.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 11px;
  display: none;
  pointer-events: none;
}
#notify-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: red;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 12px;
  display: none; /* ← 未読0のとき非表示 */
  z-index: 9999;
}
/* ▼ SP版（〜768px） */
@media (max-width: 768px) {
  /* 通知ボックス：画面下に固定してスライド表示 */
  #notify-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 60vh;
    background: #f0f4ff;
    border-top: 2px solid #ccc;
    border-radius: 12px 12px 0 0;
    padding: 14px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    overflow-y: auto;
    display: none;
    z-index: 3000;
    animation: slideUp 0.25s ease-out;
  }
  /* スライドアニメーション */
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  /* 通知アイテム */
  .notify-item {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
  }
  .notify-item small {
    color: #666;
    font-size: 13px;
  }
  /* 未読バッジ（SPは少し大きめ） */
  #notify-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: white;
    padding: 3px 7px;
    border-radius: 50%;
    font-size: 13px;
    display: none;
  }
}