/*========================================
  全体設定 (Global)
========================================*/
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.5; /* 行間を調整 */
  background: #ffe8e8;
  color: #222;
}

/* メインコンテンツ全体の余白 */
main {
  padding: 20px;
  max-width: 1000px; /* PCでの表示サイズを制限 */
  margin: 0 auto; /* ページの中央に配置 */
}

/*========================================
  ヘッダー (Header)
========================================*/
.site-header {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(182, 147, 147, 0.5);
  color: #e5e5e5;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  /* 【修正】z-indexを下げ、メニュー (z-index: 3) の下に配置 */
  z-index: 1; 
}

.site-header h1 {
  margin: 0;
  font-size: 24px;
}

.site-header p {
  margin: 6px 0 0;
  font-size: 14px;
}

.site-title-link {
  text-decoration: none;
  color: inherit;
}

/*========================================
  インデックスページ (Index Page)
========================================*/

/* ヒーローエリア */
.hero {
  text-align: center; /* テキストを中央揃え */
  padding: 10px 0;
}


.hero img {
  max-width: 70%; /* 画像が親要素からはみ出さないようにする */
  height: auto;
  margin-top: 20px;
}

/* 各セクションの区切り */
.about {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ccc;
}

/* レビュー一覧 */
.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-list li {
  margin-bottom: 16px;
}

.review-card {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  
  /* ★変更：背景色を削除し、文字色を明るくする */
  background: none; 
  color: #fff; 
  
  /* ホバーアニメーション、ボーダーなどは維持 */
  border: 1px solid #eee;
  text-decoration: none;
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out, border-color 0.05s ease-out;

  /* 【画像共通設定】*/
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  
  /* ※初期画像が必要な場合はここに設定（今回は個別設定を優先） */
}

/* ホバー時の調整 */
.review-card:hover {
  transform: translateY(-2px);
  /* 影を濃くして浮き上がりを強調 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
  border-color: #ddd;
}

/* 【個別カードの背景画像設定】 */

/* 『ghostpia』のカード */
.card-ghostpia {
  /* 画像の上にrgba(0,0,0,0.3)の半透明の黒を重ねる */
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/ghostpia.png');
}

/* 『ステラーコード』のカード */
.card-stellarcode {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/stellarcode.jpg');
}

/* 『イハナシの魔女』のカード */
.card-ihanashi {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/ihanashi.png');
}

/* 『レイジングループ』のカード */
.card-レイジングループ {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/レイジングループ.jpg');
}

/* 『片腕のザリガニ』のカード */
.card-片腕のザリガニ {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/片腕のザリガニ.jpg');
}

/* 『パラノマサイト』のカード */
.card-パラノマサイト {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/パラノマサイト.jpg');
}

.review-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  /* ★変更：白系の半透明に */
  color: rgba(255, 255, 255, 0.8); 
  margin-bottom: 4px;
}

.review-card h3 {
  margin: 4px 0 6px;
  font-size: 16px;
}

.review-snippet {
  margin: 0;
  font-size: 13px;
  /* ★変更：白系の半透明に */
  color: rgba(255, 255, 255, 0.9); 
}

.review-type {
  padding: 0 6px;
  border-radius: auto;
  border: 1 1px solid #ddd;
  font-size: 11px;
}

.review-date {
  font-variant-numeric: tabular-nums;
}


/*========================================
  個別ページ (Review Article)
========================================*/

.review-article {
  padding: 20px; /* mainのpaddingとは別に記事内の余白を確保 */
  background-color: rgba(255, 255, 255, 0.9); /* 白の半透明背景 */
  border-radius: 12px; /* リストカードと似た丸み */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* わずかな影で浮き出しを表現 */
}

.review-article h2 {
  margin-top: 0;
}

.review-meta-line {
  font-size: 13px;
  color: #666;
}

.spoiler-note {
  margin: 0 0 4px;
  font-size: 12px;
  color: #b56a00;
}

.back-link {
  margin-top: 24px;
  font-size: 14px;
}

.back-link a {
  text-decoration: none;
  color: #0070f3;
}

/*========================================
  フッター (Footer)
========================================*/
.footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #fafafa;
  background-color: rgba(182, 147, 147, 0.5);
}

/* 【ここに追加】フッターのTwitterリンクスタイル */
.footer-twitter-link {
    display: inline-block;
    margin-left: 15px;
    padding: 4px 8px;
    color: #fafafa; 
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    transition: background-color 0.2s;
}


/*========================================
  背景動画 (Background Video)
========================================*/
#bg-video {
  /* 画面全体に固定 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 中央配置 */

  /* サイズ設定 */
  min-width: 100%;
  min-height: 100%;
  
  /* アスペクト比を維持しつつ画面を覆う */
  object-fit: cover; 

  /* コンテンツの下に配置 */
  z-index: -1;

  /* 【ここを追加】不透明度を調整 (0.0 から 1.0 の値) */
  opacity: 0.6; 
}

/*========================================
  アニメーション (Animations)
========================================*/

/* ポップインアニメーションの定義 */
@keyframes pop-in {
  /* 開始時：完全に透明で、非常に小さい状態から */
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  /* 中間：少しだけオーバーシュートして「飛び出す」感じを出す */
  70% {
    opacity: 1;
    transform: scale(1.05);
  }
  /* 終了時：元のサイズに戻る */
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 画像にアニメーションを適用 */
.animate-pop {
  /* アニメーション適用前に画像を見えなくしておく */
  opacity: 0; 
  
  /* アニメーション設定 */
  /* 名前: pop-in, 実行時間: 0.8秒, 速度: ease-out, 終了後状態維持: forwards */
  animation: pop-in 0.8s ease-out forwards;
}

/*============
nav
=============*/
nav {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: rgba(136, 110, 110, 0.8);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: .5s;
  z-index: 3;
}
.open nav {
  left: 0;
}
nav .inner {
  padding: 25px;
}
nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #ffffff;
}
nav .inner ul li a {
  display: block;
  color: #ffffff;
  font-size: 14px;
  padding: 1em;
  text-decoration: none;
  transition-duration: 0.2s;
}
nav .inner ul li a:hover {
  background: rgba(182, 147, 147, 0.2);
}
@media screen and (max-width: 767px) {
  nav {
    left: -240px;
    width: 240px;
  }
}
/*============
@keyframes
=============*/
@keyframes equalizer01 {
  0% {
    width: 70%;
  }
  10% {
    width: 50%;
  }
  20% {
    width: 100%;
  }
  30% {
    width: 10%;
  }
  40% {
    width: 50%;
  }
  50% {
    width: 70%;
  }
  60% {
    width: 50%;
  }
  70% {
    width: 10%;
  }
  80% {
    width: 100%;
  }
  90% {
    width: 10%;
  }
  100% {
    width: 70%;
  }
}
@keyframes equalizer02 {
  0% {
    width: 30%;
  }
  10% {
    width: 20%;
  }
  20% {
    width: 40%;
  }
  30% {
    width: 10%;
  }
  40% {
    width: 20%;
  }
  50% {
    width: 30%;
  }
  60% {
    width: 20%;
  }
  70% {
    width: 10%;
  }
  80% {
    width: 40%;
  }
  90% {
    width: 10%;
  }
  100% {
    width: 30%;
  }
}
/*============
.toggle_btn
=============*/
.toggle_btn {
  display: block;
  position: fixed;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 30px;
  transform: translate(0, 0);
  transition: all .5s;
  cursor: pointer;
  z-index: 3;
}
.open .toggle_btn {
  left: 330px;
}
.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #666;
  transition: all .5s;
}
.toggle_btn span:nth-child(1) {
  top: 5px;
  width: 60px;
  animation: equalizer01 7000ms infinite;
}
.toggle_btn span:nth-child(2) {
  top: 15px;
  width: 30px;
  animation: equalizer02 5000ms infinite;
  animation-delay: 0.33s;
}
.toggle_btn span:nth-child(3) {
  top: 25px;
  width: 20px;
  animation: equalizer02 5000ms infinite;
}
.open .toggle_btn span {
  background-color: #fff;
  width: 30px;
}
.open .toggle_btn span:nth-child(1) {
  transform: translate(0, 10px) rotate(-45deg);
  animation: unset;
}
.open .toggle_btn span:nth-child(2) {
  opacity: 0;
  animation: unset;
}
.open .toggle_btn span:nth-child(3) {
  transform: translate(0, -10px) rotate(45deg);
  animation: unset;
}
@media screen and (max-width: 767px) {
  .open .toggle_btn {
    left: 260px;
  }
}
/*============
#mask
=============*/
#mask {
  display: none;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 2;
  cursor: pointer;
  transition: all .5s;
}

/*========================================
  ナビゲーション: トグルリストのスタイル
========================================*/

/* トグル開閉可能な親要素 */
nav .inner ul li.has-children {
    position: relative;
}

/* トグルボタン（親項目）のスタイル */
.nav-toggle-btn {
    /* 矢印アイコンのための余白 */
    padding-right: 30px !important; 
    position: relative;
}

/* 矢印アイコンの装飾 */
.nav-toggle-btn::after {
    content: '▼'; /* 閉じているときの矢印 */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* openクラスが付いたときの矢印 */
.has-children.open .nav-toggle-btn::after {
    content: '▲'; /* 開いているときの矢印 */
}

/* サブメニューの初期状態 (非表示) */
.sub-menu {
    display: none; /* 初期は非表示 */
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(182, 147, 147, 0.3);; /* サブメニューの背景色を少し変える */
}

/* サブメニュー内のリンク */
.sub-menu li {
    border-bottom: none !important; /* サブメニュー内の区切り線は不要 */
}

.sub-menu li a {
    padding: 8px 1em 8px 25px !important; /* 親リンクよりもインデントさせる */
    font-size: 13px !important;
}

.sub-menu li a:hover {
    background: rgba(182, 147, 147, 0.2) !important;
}


