/**
 * 共通：body
 */
body {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
}

/**
 * サイトヘッダ／メニュー 
 */
.site-header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-top: 0;
}
.header-inner img{
  height: 70px;
  object-fit: contain;
  display: block;
}
/**
 * メニューのトグルボタン(三本線) 
 */
.menu-toggle {
  width: 50px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 4px; /* 線の太さ */
  width: 100%;
  margin: 3px 0; /* 線の上下の間隔 */
  background: #ff0080;
  border-radius: 2px;
}

/**
 * 画面上部ヘッダメニュー（横並び）
 */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: #ff0080;
  font-weight: bold;
}
.nav-icons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列構成 */
  gap: 0px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-icons li {
  margin: 0;
  padding: 0;
}

/**
 * リンク無効化対応
 */
a.link-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.5; /* 無効っぽく見せる */
}

/**
 * 共通フッタ
 */
.footer-sns {
  text-align: center;
  margin: 30px 0 10px;
}
.footer-sns a img {
  height: 24px;
  margin: 0 10px;
}
.footer-copyright {
  text-align: center;
  margin: 30px 0 10px;
  color: white
}

/**
 * 「もっとみる」（サブページへのリンク）
 */
.more-link {
  display: inline-block;
  background-color: #ff0080;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  margin-top: 1em;
}
.more-link:hover {
  background-color: #ffb6c1;
}

/**
 * トップページ
 */
.top-main{
  max-width: 900px;
  margin: 0 auto;
}

/**
 * キービジュアル
 */
.section-kv img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/**
 * main 共通
 */
.top-main,
.introduction-main,
.news-main,
.character-main,
.staffcast-main {
 margin-top: 80px; /* ヘッダの高さ分 */
}

/**
 * section 共通スタイル
 */
.section-news,
.section-introduction,
.section-story,
.section-staffcast,
.section-character,
.section-movie, 
.section-goods,
.section-onair {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80%;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 0px 20px 20px; /* 上・左右・下 */
  margin: 0px auto 20px; /* 上・左右・下 */
  max-width: 960px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/**
 *「キャラクター」ページ
 */
.character-main {
  max-width: 900px;
  padding: 20px auto;
  margin-right: auto;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
}
.character-large {
  max-width: 50vw;
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.character-feature {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 0 30px;
  text-align: center;
  box-sizing: border-box;
}
.character-feature img {
  max-width: 100%;
  height: auto;
}
.character-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.character-thumbnails ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.character-thumbnails li {
  flex: 0 0 calc(20% - 10px);
  text-align: center;
  position: relative;
}
.character-thumbnails img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

/**
 * 「スタッフ＆キャスト」ページ 
 */
.staffcast {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.staffcast h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 24px;
}
.staff-card {
  background-color: rgba(255, 255, 255, 0.8); /* 白80%不透明 */
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.comment-icon {
  position: relative;
  top: -8px;
  right: -8px;
  background-color: #fff;
  border-radius: 50%;
  padding: 3px 5px;
  font-size: 14px;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  cursor: pointer;
}
/**
 * モーダルウィンドウ関連
 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* 初期状態は非表示。JSでflexに切り替える */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒背景 */
  z-index: 9999;
}
/**
 * モーダルボックス自体のレイアウト
 */
.modal-box {
  position: relative;
  background-color: white;
  margin-top: 90px;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: visible;
  max-height: 90vh;
  overflow-y: auto; /* 中身だけスクロールできるように */
}
/**
 * モーダルの内容
 */
.modal-content {
  padding: 20px 0;
  text-align: center;
}
.modal-content .comment{
  text-align: left;
  display: block;
  width: 100%;
}
/* 画像を横並びで固定するラッパー */
.modal-images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 20px 0;
}
.modal-images img {
  width: auto;
  max-width: 45%;
  max-height: 300px;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
}
/* 閉じるボタン */
#modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
#comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: flex-start; /* 上部に配置 */
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto; /* モーダル全体が長いときにスクロール可能にする */
}

/**
 * レスポンシブ対応
 */
@media (max-width: 956px) {
  .menu-toggle {
    position: relative;
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 5px;
    width: 300px;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin: 0;
    padding: 0px 0px;
  }
  .site-nav li {
    margin: 0px 0px;
    padding: 0px 0px;
    border-bottom: 1px solid #ccc; /* 区切り線 */
  }
  .nav-icons {
    display: grid !important;  /* flex を上書きする */
    grid-template-columns: repeat(2, 1fr);  /* 2列 */
    gap: 10px;
    justify-items: center;
    padding: 0px;
  }
 .nav-icons li {
    margin: 0;
    list-style: none;
  }
  .nav-icons a {
    display: inline-block;
  }
  .nav-icons img {
    width: 100px;
    height: auto;
  }
  .character-thumbnails li {
    flex: 0 0 calc(20% - 5px);
  }
}


/**
 * キャラクター紹介セクション
 */
.section-character {
  text-align: center;
  margin: 40px auto;
}
.character-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
}
.character-card {
  width: 100px;
  font-size: 14px;
}
.character-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/**
 * コメント表示モーダルウィンドウ
 */
img.character-image{
  /*width: 50%;*/
  max-width: 500px;
  height: auto;
  border-radius: 8px;
}
img.cv-image {
  /*width: 50%;*/
  max-width: 500px;
  height: auto;
  border-radius: 8px;
}

/**
 * フォントサイズのクラス
 * 1rem = 16px を基準に設定
 */
:root {
  font-size: 16px; /* 1rem = 16px */
}
.fs-md { font-size: 1rem; }      /* base/middle 16px */
.fs-lg { font-size: 1.25rem; }   /* large 20px */
.fs-xl { font-size: 1.5rem; }    /* x-large 24px */
.fs-xxl { font-size: 2rem; }     /* xx-large 32px */
/* フォント装飾 */
.bold-text {
  font-weight: bold;
}
/* 文字色 */
.text-default {
  color: #ff0080;
}
.text-white {
  color: white;
}
.text-black {
  color: black;
}

/****
  *「ニュース記事ページのスタイル」
  */
.news-list-wrapper {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}
.news-heading {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}
/* グリッド表示 */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
/* 各ニュースカード */
.news-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
/* トップページ・記事一覧ページのカード内リンクの下線を消す */
.news-card a,
.card a,
.archive .post a,
.home .post a {
  text-decoration: none !important;
}
/* ニュースで画像がカードに収まるようにする */
.card img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* 投稿ページのアイキャッチ画像をトリミングせず、全体表示させる */
.single .post-thumbnail img,
.single .wp-post-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* ← cover ではなく contain を使う */
  display: block;
  max-width: 100%;
}
.news-card:hover {
  transform: translateY(-4px);
}
/* アイキャッチ画像（16:9固定） */
.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ピンク帯部分（高さは内容に応じて自動） */
.news-overlay {
  background-color: #ff0080;
  color: #fff;
  padding: 8px 12px 12px;
  display: block;
}
/* 日付 */
.news-date {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  line-height: 1.1;
}
/* タイトルが折り返されても全部見えるように */
.news-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 10px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}
/* ダイジェスト */
.news-excerpt {
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #333;
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
  line-height: 1.4;
}
/* ページネーション */
.news-pagination {
  margin-top: 40px;
  text-align: center;
}
.news-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.news-pagination .page-numbers:hover {
  background-color: #f0f0f0;
  color: #000;
}
.news-pagination .current {
  background-color: #ff0080;
  color: #fff;
  border-color: #ff0080;
  font-weight: bold;
  pointer-events: none;
}

/**
 * 個別のニュース記事ページの
 */
.single-main {
  padding: 40px 20px;
}
/* 記事全体を囲む白い四角 */
.single-article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
/* 投稿日 */
.single-date {
  font-size: 1rem;
  margin-bottom: 8px;
}
/* タイトル（大きめ・太字） */
.single-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}
/* アイキャッチ画像 */
.single-thumbnail img {
  width: auto;
  max-height: 300px;
  display: block;
  margin: 0 auto 24px;
  border-radius: 12px;
}
/* 本文 */
.single-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
