@charset "UTF-8";
/* 書き出し */
.kakidashi {
font-size: 12px;
}

/* トップページとレコメンドエリアの画像下アフィリリンク用 */
.prtitle {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 11px 0px 11px;
}

/* 出典タグ（画像） */
.image-source {
font-size: 12px;
margin: 5px 0px 6px;
}

/* PR表記 */
.prmark {
  text-align: right;
}
#prmark {
  font-size: 12px;
  margin: 10px 0 10px;
  padding: 10px;
  background-color: #fafafa;
}

/* 目次タイトルのリンク色を黒に戻す */
#imokuji {
 color: #2f2f32;
}

/* ユニットキャラクターの見出し部分アイコン */
.characterwords-img {
  width: auto;
  max-width: 44px;
}
.characterwords-img.circle img {
  border-radius: 50%;
  margin-bottom: 5px;
}
.characterwords-img figure {
  float: left;
  margin: 10px 10px 0 0;
  width: 100%;
}

/* モーダルを開くチェックボックスを非表示にする */
.modal-toggle {
    display: none; /* チェックボックスを非表示にする */
}

/* コンテンツを表示するためのボタン */
.open-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #1558d6;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 5px;
  width: 80%;
  height: 50px;
  margin-left: 10%;
  color: #1558d6;
  text-align: center;
  text-decoration: none;
}

/* コンテンツを表示するためのボタン(ショート動画) */
.open-vmodal img {
  cursor: pointer;
}

/* モーダルウィンドウのスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 背景を薄暗くする */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* モーダル背景をクリックして閉じるためのスタイル */
.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

/* モーダルコンテンツのスタイル */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    z-index: 2; /* コンテンツが背景より上に来るように設定 */
}

/* モーダルコンテンツのスタイル(ショート動画) */
.vmodal-content {
    background-color: #fff;
    padding: 20px 0px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    z-index: 2; /* コンテンツが背景より上に来るように設定 */
}

/* モーダルを表示する際のCSS */
.modal-toggle:checked + .modal {
    opacity: 1;
    pointer-events: auto;
    z-index: 9999; /* モーダルを最前面に設定 */
}

/* モーダルを閉じるためのボタン */
.close-modal {
    background-color: #95a5a6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* モーダルを閉じるためのボタン(ショート動画) */
.close-vmodal {
    background-color: #95a5a6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* メディアクエリでさらに小さなデバイスへの対応 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 70vh;
        padding: 15px;
    }

    .open-modal, .close-modal {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* メディアクエリでさらに小さなデバイスへの対応(ショート動画) */
@media (max-width: 600px) {
    .vmodal-content {
        width: 90%;
        max-height: 90vh;
        padding: 15px 0px;
    }

    .close-vmodal {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* CSS: 擬似要素を使いウォーターマーク画像を重ねる例 */
.watermark-container {
  display: block;      /* ブロック要素化 */
  width: 100%;         /* 画面いっぱいに広げる */
  position: relative;
}

.watermark-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/watermark.png") no-repeat center center;
  background-size: 24% auto;
  opacity: 1.0;

  /* これを指定することでウォーターマーク要素がクリックを受け取らない */
  pointer-events: none;
}

/* PR広告用ボタン */
.pr-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #bf0000;
  border: 1px solid #bf0000;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 10px;
  width: 80%;
  height: 60px;
  margin-left: 10%;
  text-align: center;
  text-decoration: none;
  color: #ffffff; /* 文字色を白に設定 */
  font-weight: bold; /* この行を追記 */
}

.pr-button a {
  color: #ffffff; /* リンクの文字色を白に設定 */
  text-decoration: none; /* 下線を削除 */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* トップページ・レビューページ用ボタン */
.top-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid #bf0000;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 10px;
  width: 80%;
  height: 60px;
  margin-left: 10%;
  text-align: center;
  text-decoration: none;
  color: #333333; /* 文字色を薄黒に設定 */
  font-weight: bold; /* この行を追記 */
}

.top-button a {
  color: #333333; /* リンクの文字色を薄黒に設定 */
  text-decoration: none; /* 下線を削除 */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Youtubeショート */
.youtube_short{
 width: 90%; /* 伸縮する横幅 */
 max-width: 477px; /* 最大の横幅 */
 margin: auto; /* 画面の中央に配置 */
}
.youtube_short iframe{
 aspect-ratio: 9 / 16;
 width: 100%;
 height: 100%;
}

/* カードリンク */
.card-container {
  display: flex;             /* ★これが横並びの最も重要な指定です */
  overflow-x: auto;          /* カードがコンテナ幅を超える場合に横スクロール */
  gap: 20px;                 /* カード間の隙間 */
  padding: 20px;             /* コンテナ自体の内側の余白 */
  scroll-snap-type: x mandatory;
  /* デバッグのために一時的に背景色をつけてみるのも有効です */
  /* background-color: lightblue; */
}

.card-link {
  position: relative;
  isolation: isolate;          /* ★ いちおう親にもスタッキング壁を作る */
  flex: 0 0 auto;          /* ★縮まず、伸びず、指定された幅を維持します */
  width: 280px;              /* ★各カードの幅 */
  min-width: 280px;          /* 最小幅も同じにしておくと確実です */
  display: block;            /* aタグをブロックレベル要素として扱います */
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  /* デバッグのために一時的に背景色をつけてみるのも有効です */
  /* background-color: lightcoral; */
}

/* --- ②常設 ↗ アイコン --- */
.card-link::after{
  content: '🔗';
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 1.45rem;
  line-height: 1;

  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,.4);

  /* ↓↓↓ 追加ここから ↓↓↓ */
  z-index: 2;                  /* 疑似要素・テキストより前面へ */
  background: rgba(0,0,0,.25); /* 背景が明るい写真でも読める半透明黒帯 */
  padding: 2px 4px;            /* ほんのり余白 */
  border-radius: 4px;          /* 角丸でアイコンらしく */
  pointer-events: none;        /* タップ判定を邪魔しない */
}

.card {
  box-sizing: border-box;
  width: 100%;

  /* 背景画像関連 */
  /* background-image はHTMLのインラインスタイルで指定されます */
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent !important; /* ★追加: 背景色を強制的に透明に！ */

  padding: 16px; /* パディングは維持 */

  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 上下（縦方向）は “下寄せ” */
  align-items: center;     /* 左右（横方向）中央寄せ ─ 不要なら削除 */
  color: #fff; /* 文字色は白 */
  min-height: 180px;
  position: relative;
  overflow: hidden;     /* オーバーレイが角丸からはみ出さないように */
  isolation: isolate;   /* ★ ここを追加 ─ これだけで “壁” ができる */
}

/* 写真を暗くするオーバーレイ ------------- */
.card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
      to top,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.25) 20%,
      transparent 40%);
  border-radius:inherit;
  pointer-events:none;
  z-index:-1;            /* ★ 背景レイヤーとしてマイナス側へ */
}

/* 3) ↓ .card 内のすべての要素を “前面” に ---------------------- */
.card *{
  position:relative;     /* 新しい描画レイヤーを作る */
  z-index:1;             /* 疑似要素より前に */
}

/* カードスワイプのコンテナ（修正版）*/
.swipe-cards-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
  padding: 7px 0 7px 0px;
  scrollbar-width: none;
}

/* スクロールバーを非表示にする (Chrome, Safari) */
.swipe-cards-container::-webkit-scrollbar {
  display: none;
}

/* カードリンク本体の"親"を横並びの対象にする */
.swipe-cards-container > * {
  flex-shrink: 0;
  width: calc(100% - 48px);
  scroll-snap-align: start;
}

/* カードリンク本体 (aタグ) */
.swipe-cards-container a { /* 「>」を削除 */
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-decoration: none; /* 念のため下線を消す */
}

/* カード内の画像 (imgタグ) */
.swipe-cards-container a img { /* 「>」を削除 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* トラッキング用imgタグを非表示にする */
.swipe-cards-container > img[border="0"] {
  display: none;
}