@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600&family=Playfair+Display:wght@600&display=swap');

/* 全体共通 */
body {
  background: #0a0a0a;
  color: #f8f3e8;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

a {
  color: #bfa04a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ヘッダー（ロゴ表示） */
.site-header {
  text-align: center;
  padding: 1.5em 0;
  border-bottom: 1px solid #2a2a2a;
}

.channel-logo {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #3b3b3b;
  border-radius: 6px;
}

/* 記事一覧 */
.article-list {
  max-width: 900px;
  margin: 3em auto;
  padding: 0 1em;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 2em;
  margin-bottom: 2em;
}

.thumb img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border: 1px solid #3b3b3b;
}

.article-card h2 {
  font-size: 1.3em;
  color: #d4af37;
  margin: 0.2em 0 0.5em 0;
  font-family: "Playfair Display", "Noto Serif JP", serif;
  font-weight: 600;
}

.read-more {
  color: #bfa04a;
  border-bottom: 1px dotted transparent;
  font-size: 0.9em;
}
.read-more:hover {
  border-bottom: 1px dotted #bfa04a;
}

/* 記事ページ */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em;
}

.article-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: .5em;
  color: #d4af37;
}

.thumbnail {
  text-align: center;
  margin: 1.5em 0;
}
.thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3b3b3b;
}

/* 目次 */
.toc {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 2em;
}
.toc strong {
  display: block;
  margin-bottom: .5em;
  color: #d4af37;
}
.toc ul {
  list-style: none;
  padding-left: 0;
}
.toc li {
  margin: .3em 0;
}
.toc a {
  color: #bfa04a;
}
.toc a:hover {
  text-decoration: underline;
}

/* 本文 */
.article-body h2 {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 2em;
  border-left: 4px solid #d4af37;
  padding-left: .5em;
}
.article-body p {
  margin-top: .8em;
  color: #f2f2f2;
}

/* フッター */
.footer {
  text-align: center;
  padding: 2em 0;
  border-top: 1px solid #2a2a2a;
  font-size: 0.85em;
  color: #a7a7a7;
}

/* 汎用リンク */
.back-link {
  display: inline-block;
  margin-top: 2em;
  color: #bfa04a;
}
.back-link:hover {
  text-decoration: underline;
}
/* ========== ヘッダー共通 ========== */
.site-header {
  text-align: center;
  padding: 2em 0 1em 0;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
}

.channel-logo {
  width: 200px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  border: none;
}

.site-title a {
  font-size: 1.6em;
  color: #d4af37;
  text-decoration: none;
  font-family: "Playfair Display", serif;
}

.site-tagline {
  color: #ccc;
  margin: 0;
  font-size: 0.95em;
  letter-spacing: 0.03em;
}

.channel-intro {
  text-align: center;
  max-width: 800px;
  margin: 1.5em auto 2.5em;
  color: #ddd;
  font-size: 0.95em;
  line-height: 1.9;
}

.yt-stats {
  text-align: center;
  color: #bfa04a;
  font-size: 0.9em;
  margin-top: .8em;
}

.article-card h2,
.article-title {
  color: #ffffff;
}

.channel-intro {
  text-align: center;
  max-width: 800px;
  margin: 1.5em auto 3em;
  color: #ddd;
  font-size: 0.95em;
  line-height: 1.9;
}
/* ---------- ヘッダー（ロゴのみ） ---------- */
.site-header {
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
  padding: 0.5em 0; /* ← これを追加 */
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.channel-logo {
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.channel-logo:hover {
  opacity: 0.8;
}

/* ---------- チャンネルカード ---------- */
.channel-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 0.8em 1.2em;
  width: fit-content;
  margin: 2em auto 1.5em;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.channel-card:hover {
  transform: translateY(-2px);
}

.channel-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.channel-name {
  color: #fff;
  font-size: 1em;
  margin: 0 0 .3em;
  font-weight: 600;
}

.subscribe-btn {
  background: linear-gradient(90deg, #d4af37, #b58e2a);
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
}
.subscribe-btn:hover {
  background: linear-gradient(90deg, #b58e2a, #d4af37);
}

/* ---------- ヘッダー（ロゴ左・ハンバーガー右） ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 1em;
  background: #0a0a0a;
  border-bottom: 1px solid #2a2a2a;
}

.header-left img.channel-logo {
  height: 85px;
  width: auto;
  border-radius: 6px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #d4af37;
  font-size: 1.8em;
  cursor: pointer;
  display: none;
}

.header-right {
  position: relative;
}

.mobile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.6em 1em;
  display: none;
  flex-direction: column;
  gap: 0.6em;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
}

.mobile-menu.open {
  display: flex;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* PCでは右側メニューを非表示 */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* ← これがポイント */
  height: auto;
  background: #0a0a0a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0; /* ← 余白を完全に消す */
  padding-left: 5%; /* ← 余白を完全に消す */
}

.header-left img.channel-logo {
  display: block;
  height: 75px; /* ← ロゴの高さを指定 */
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  padding-right: 1em; /* メニューの右端調整 */
}

/* ハンバーガーボタン */
.menu-toggle {
  background: none;
  border: none;
  color: #d4af37;
  font-size: 1.8em;
  cursor: pointer;
  display: none;
  line-height: 1;
  height: 100%; /* ← 高さをヘッダーと一致させる */
}

/* モバイル用メニュー */
.mobile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.6em 1em;
  display: none;
  flex-direction: column;
  gap: 0.6em;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

.youtube-link {
  text-align: center;
  margin: 3em 0;
}
.youtube-link a {
  display: inline-block;
  background: linear-gradient(90deg, #d4af37, #b58e2a);
  color: #0a0a0a;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.2s;
}
.youtube-link a:hover {
  background: linear-gradient(90deg, #b58e2a, #d4af37);
  color: #000;
}

.youtube-link {
  text-align: center;
  margin: 2.5em 0;
}
.youtube-link a {
  display: inline-block;
  background: linear-gradient(90deg, #d4af37, #b58e2a);
  color: #0a0a0a;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.2s ease;
}
.youtube-link a:hover {
  background: linear-gradient(90deg, #b58e2a, #d4af37);
}

/* ---------- トップロゴ ---------- */
.top-logo {
  text-align: center;
  background: #0a0a0a;
  padding: 2em 0 1em;
}
.top-logo-img {
  width: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* ---------- チャンネル説明 ---------- */
.channel-description {
  text-align: center;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto 2em;
  font-size: 0.95em;
  line-height: 1.9;
}

/* ---------- チャンネルカード ---------- */
.channel-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 0.8em 1.2em;
  width: fit-content;
  margin: 0 auto 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.channel-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4af37;
}
.channel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.channel-name {
  color: #fff;
  font-weight: bold;
  margin: 0 0 .3em;
}
.subscribe-btn {
  background: linear-gradient(90deg, #d4af37, #b58e2a);
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
}
.subscribe-btn:hover {
  background: linear-gradient(90deg, #b58e2a, #d4af37);
}

/* ---------- 登録者情報 ---------- */
.yt-stats {
  text-align: center;
  color: #bfa04a;
  font-size: 0.9em;
  margin-bottom: 2em;
}

/* ---------- 記事一覧 ---------- */
.articles-section {
  background: #0a0a0a;
  padding: 1em 2em 3em;
}
.section-title {
  text-align: center;
  color: #d4af37;
  font-size: 1.3em;
  margin-bottom: 1.5em;
  border-bottom: 1px solid #2a2a2a;
  display: inline-block;
  padding-bottom: 0.3em;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.article-card .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-card .text {
  padding: 1em;
  color: #fff;
}
.article-card h3 {
  font-size: 1em;
  margin-bottom: 0.6em;
}
.article-card .read-more {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.9em;
}
.article-card .read-more:hover {
  text-decoration: underline;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .top-logo-img {
    width: 200px;
  }
  .article-card .thumb img {
    height: 160px;
  }
}

/* ---------- 導入文 ---------- */
.channel-intro {
  text-align: center;
  background: #0a0a0a;
  color: #ddd;
  padding: 2em 1em;
  line-height: 1.9;
  font-size: 1em;
  border-bottom: 1px solid #222;
}

/* ---------- 記事一覧 ---------- */
.articles-section {
  background: #0a0a0a;
  padding: 2em 1em 3em;
  text-align: center;
}

.section-title {
  color: #d4af37;
  font-size: 1.4em;
  margin: 0 auto 1.8em;
  border-bottom: 1px solid #2a2a2a;
  display: inline-block;
  padding-bottom: 0.3em;
}

/* グリッド表示（PC・タブレット） */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6em;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.article-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* サムネ比率調整 */
.article-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-card .text {
  padding: 1em;
  color: #fff;
}
.article-card h3 {
  font-size: 1em;
  margin-bottom: 0.5em;
}
.article-card .read-more {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.9em;
}
.article-card .read-more:hover {
  text-decoration: underline;
}

/* ---------- モバイル表示 ---------- */
@media (max-width: 768px) {
  .article-grid {
    display: block;
    max-width: 100%;
  }
  .article-card {
    background: none;
    border: none;
    border-bottom: 1px solid #222;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1.5em;
  }
  .article-card .thumb {
    aspect-ratio: 16/9;
    margin-bottom: 0.5em;
  }
  .article-card .text {
    padding: 0 0.5em;
  }
  .article-card h3 {
    font-size: 1em;
  }
}

/* ---------- チャンネルカード（aリンク対応） ---------- */
.channel-card-link {
  display: block;
  text-decoration: none;
}
.channel-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1em 1.4em;
  width: fit-content;
  margin: 0 auto 1.5em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(212,175,55,0.3);
}
.channel-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4af37;
}
.channel-info {
  text-align: left;
  color: #fff;
}
.channel-name {
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 0 .3em;
}
.subscribe-text {
  font-size: 0.9em;
  color: #ccc;
  line-height: 1.5;
}
.cta-text {
  color: #d4af37;
  font-weight: bold;
}

/* ---------- 記事一覧 ---------- */
.article-card .read-more {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-block;
  margin-top: 0.4em;
  text-align: left;
}
.article-card .read-more:hover {
  text-decoration: underline;
}

/* ---------- お問い合わせページ ---------- */
body {
  background: #0a0a0a;
  color: #eee;
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
}

.contact-page {
  max-width: 700px;
  margin: 3em auto;
  padding: 2em;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.contact-page h1 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.4em;
}

.contact-page p {
  text-align: center;
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 2em;
}

.contact-form label {
  display: block;
  margin-top: 1.5em;
  font-weight: bold;
  color: #d4af37;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 0.6em;
  font-size: 0.95em;
  resize: vertical;
}

.contact-form textarea {
  line-height: 1.6;
}

.contact-form button {
  display: block;
  width: 100%;
  margin-top: 2em;
  padding: 0.9em;
  background: linear-gradient(90deg, #d4af37, #b58e2a);
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: 0.2s;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #b58e2a, #d4af37);
}

.message-box {
  background: #222;
  border-left: 4px solid #d4af37;
  color: #fff;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

/* ▼ チャンネルカード配置（レスポンシブ対応） */
/* ▼ チャンネルカード配置（レスポンシブ対応） */
.channel-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;          /* 2枚の間の余白 */
  max-width: 720px;   /* 全体を中央に寄せる */
  margin: 40px auto;
  flex-wrap: nowrap;  /* ← 折り返し禁止（PC時） */
}

@media (max-width: 768px) {
  .channel-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .channel-card {
    width: 70%;          /* ← ここを90%→80%に変更 */
    max-width: 280px;    /* ← 上限幅を設けてはみ出し防止 */
    flex-direction: column;
    text-align: center;
    padding: 16px;       /* ← paddingを少し減らしてコンパクトに */
  }

  .channel-icon {
    margin: 0 0 10px 0;
  }
}

.channel-card {
  display: flex;
  align-items: center;
  background: #111;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  width: 320px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  background: #222;
}

.channel-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.channel-info h3 {
  margin: 0;
  font-size: 1.2em;
}

.channel-info p {
  margin: 5px 0;
  font-size: 0.9em;
}

.cta-text {
  color: #f6c700;
  font-size: 0.85em;
}

/* ▼ スマホ版では縦並びに変更 */
@media (max-width: 768px) {
  .channel-cards {
    flex-direction: column;
    align-items: center;
  }

  .channel-card {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }

  .channel-icon {
    margin: 0 0 10px 0;
  }
}

.channel-info h3 {
  margin: 0;
  font-size: 1.2em;
}
.channel-info p {
  margin: 5px 0;
  font-size: 0.9em;
}
.cta-text {
  color: #f6c700;
  font-size: 0.85em;
}

.channel-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 50px;
  height: 50px;
}
.channel-badge img {
  width: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
}

.more-link {
  text-align: center;
  margin-top: 30px;
}
.btn-more {
  background: #222;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-more:hover {
  background: #333;
}

/* ▼ チャンネルバナー表示（記事カード左上） */
.channel-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;       /* サムネとの比率を調整して縮小表示 */
  height: auto;
  z-index: 2;
}

.channel-banner img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.article-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  position: relative;            /* ← カード全体を基準にする */
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  padding: 12px 15px 55px;       /* ← バナー分の下余白を確保 */
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー（常にカード左下固定） */
.channel-banner {
  position: absolute;
  bottom: 1000px;
  left: 10px;
}

.channel-banner img {
  width: 30%;             /* ← カード幅に対する割合で縮む・広がる */
  max-width: 150px;       /* ← PC時の上限 */
  min-width: 100px;       /* ← スマホ時の下限 */
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.article-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  padding: 12px 15px;
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー（下部に固定表示） */
.channel-banner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 15px 15px;
}

.channel-banner img {
  width: 40%;           /* カード幅に対して自動スケール */
  max-width: 160px;     /* PC上限 */
  min-width: 120px;     /* スマホ下限 */
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.article-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;   /* ← 縦並び */
  justify-content: space-between; /* ← 上中下をしっかり分ける */
  height: 100%;             /* ← 均等配置のために高さ確保 */
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  flex: 1;                  /* ← 真ん中エリアとして伸びる */
  padding: 12px 15px;
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー（カード最下部に固定） */
.channel-banner {
  padding: 10px 15px 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;         /* ← 下に押し付ける決め手 */
}

.channel-banner img {
  width: 40%;               /* カード幅に対してスケール */
  max-width: 160px;
  min-width: 120px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.article-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  padding: 12px 15px;
  flex-grow: 1; /* ← 真ん中が伸びる */
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー：常にカード下部 */
.channel-banner {
  padding: 10px 15px 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto; /* ← これで常に最下部 */
}

.channel-banner img {
  width: 40%;
  max-width: 160px;
  min-width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.article-card {
  position: relative;            /* バナーの位置基準を作る */
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  padding: 12px 15px 45px;      /* ← バナー分だけ下に余白 */
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー：カード左下固定 */
.channel-banner {
  position: absolute;           /* ← カード内で位置固定 */
  bottom: 10px;
  left: 10px;
}

.channel-banner img {
  width: 35%;                   /* 自動スケール（カード幅に応じる） */
  max-width: 160px;             /* PC上限 */
  min-width: 100px;             /* スマホ下限 */
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}
.article-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  position: relative;           /* ← バナーをこの中で固定 */
  padding: 12px 15px 55px;      /* ← バナー分の余白を下に確保 */
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 8px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ▼ チャンネルバナー（.text内で下固定） */
.channel-banner {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.channel-banner img {
  width: 35%;                   /* カード幅の割合 */
  max-width: 160px;
  min-width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.article-card {
  background: #0e0e0e;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.2em; /* ← これがカード間の縦の隙間 */
}

.article-card .text {
  padding: 0.8em 1em 0.5em; /* ← 最後の値（下方向のpadding）を小さくする */
}


.article-card:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.text {
  padding: 12px 15px;
}

.text h3 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 10px;
}

/* ▼ 下部のロゴ＋続きを読む並列配置 */
.article-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.channel-banner img {
  width: 130px;
  height: auto;
  border-radius: 6px;
}

.read-more {
  font-size: 0.9em;
  color: #0af;
  text-decoration: none;
  white-space: nowrap;
}

.read-more:hover {
  text-decoration: underline;
}

.article-card .text {
  padding: 0.8em 1em 0.2em; /* ← 最後の値（下方向のpadding）を小さくする */
}


.article-card .read-more {
  display: inline-block;
  margin: 0.5em auto;
  color: #c9a34e;
  font-weight: bold;
  text-decoration: none;
}

.article-card .channel-name {
  font-size: 0.9em;
  color: #bbb;
  margin-top: 0.3em;
}

.article-channel {
  text-align: center;
  margin: 1em 0 1.5em;
}

.channel-logo-article {
  width: 160px;
  height: auto;
  object-fit: contain;
}


.channel-name {
  font-size: 0.9em;
  color: #bbb;
  margin-top: 0.3em;
}

.channel-name strong {
  color: #fff;
  font-weight: 600;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  margin-bottom: 1.5em;
  justify-content: center;
}

.filter-channels label,
.filter-order {
  font-size: 0.95em;
  color: #ddd;
}

.filter-form button {
  background: #c9a34e;
  border: none;
  color: #000;
  padding: 0.4em 1em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.filter-form button:hover {
  background: #e4c066;
}

/* 絞り込みフォーム */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  justify-content: center;
  margin: 1.5em auto;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: #111;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  color: #ddd;
  transition: 0.2s;
}

.filter-label:hover {
  background: #222;
}

.filter-form input[type="checkbox"] {
  accent-color: #c9a34e;
  transform: scale(1.2);
}

.filter-order label {
  color: #ddd;
  margin-right: 0.4em;
}

.filter-form select {
  background: #111;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.3em 0.6em;
  font-size: 0.9em;
}

.filter-form button {
  background: #c9a34e;
  border: none;
  color: #000;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.filter-form button:hover {
  background: #e4c066;
}

/* タイトル見出し（index.phpと統一） */
.section-title {
  font-size: 1.6em;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 1.2em;
  border-bottom: 2px solid #c9a34e;
  display: inline-block;
  padding-bottom: 0.2em;
}

/* 記事カードは index と共通 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2em;
  margin-bottom: 30px;
}

.view-all-wrap {
  text-align: center;
  margin-top: 3em;
}

.view-all {
  display: inline-block;
  background: #c9a34e;
  color: #000;
  font-weight: 600;
  padding: 0.8em 1.6em;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 10px;
}

.view-all:hover {
  background: #e4c066;
}

/* カード下の余白を詰める */
.article-card .text {
  padding: 0.8em 1em 0.2em;
}

/* スマホ専用調整 */
@media (max-width: 768px) {
  .article-grid {
    padding: 0 1em; /* ← 左右に余白を追加 */
    gap: 1em;       /* ← カード間の縦の隙間も確保 */
  }

  .article-card {
    margin-bottom: 1em; /* ← 念のための下マージン */
  }
}

.article-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body, .articles-section {
    padding-left: 1em;
    padding-right: 1em;
  }

  .article-grid {
    gap: 1.2em;
  }

.article-card {
  background: #0e0e0e;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 0.1em; /* ← 下の余白はmarginじゃなくpaddingで取る */
  margin-bottom: 1.2em; /* ← これで他カードとの隙間 */
}

}

.section-title2 {
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.2em;
  border-bottom: 2px solid #c9a34e;
  display: table;       /* ← 中央寄せに効く */
  padding-bottom: 0.2em;
}

/* チャンネルカード：PC表示用 */
@media (min-width: 1024px) {
  .channel-card {
    max-width: 520px;  /* ← ここを広げる。もともと400px前後なら+100〜150が目安 */
  }

  .channel-card-link {
    display: flex;
    justify-content: center;
    gap: 2em; /* 2つ並べるときの間隔 */
  }

  .channel-info {
    white-space: nowrap; /* ← 改行防止 */
  }
}

/* チャンネルロゴセクション */
.channel-logos {
  text-align: center;
  margin: 3em auto;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

.channel-logo-large {
  width: 380px;   /* PC表示で少し大きめ */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.channel-logo-large:hover {
  transform: scale(1.05);
}

.series-intro {
  color: #eee;
  font-size: 1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* スマホ表示では縦並び＆サイズ調整 */
@media (max-width: 768px) {
  .logo-wrapper {
    flex-direction: column;
    gap: 1em;
  }

  .channel-logo-large {
    width: 320px;
    margin-bottom: 40px;
  }

  .series-intro {
    font-size: 0.95em;
    padding: 0 1em;
  }
}

.article-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08); /* 薄い白 */
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(8px); /* ← ブラー効果 */
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

