/* ==============================
   共通スタイル
   ============================== */
.release-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
	.release-archive {
        padding: 15px;
    }
}

/* ==============================
   header-release.php 用スタイル
   ============================== */
.release-body {
  --header-height: 70px;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  padding-top: var(--header-height); /* 固定ヘッダーの分だけ押し下げ */
}

.release-header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #222;
  color: white;
  /* パフォーマンス改善 */
  will-change: transform;
  backdrop-filter: blur(10px);
}

.release-header-inner {
  padding: 0.1rem 2rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.release-header a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.release-header a:hover {
  color: #00bcd4;
}

/* フォーカス状態の改善 */
.release-header a:focus {
  outline: 2px solid #00bcd4;
  outline-offset: 2px;
  border-radius: 2px;
}

.release-header-title {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.0rem);
  line-height: 1.2;
}

/* ナビゲーション */
.release-nav__list {
  display: flex; 
  gap: 1rem; 
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.release-nav__list li {
  display: flex;
  align-items: center;
}

.release-nav a {
  margin-left: 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* 検索フォーム（ヘッダー専用）*/
.release-header .search-form {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.search-label {
  display: block;
  position: relative;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.release-header .search-field {
  width: 100%;
  min-width: 265px;
  height: 37px;
  padding: 0 40px 0 0.75rem; /* 右側にボタンスペース確保 */
  font-size: 0.8rem;
  border-radius: 44px;	
  border: 1px solid transparent;
  background: #fff;
  transition: all 0.2s ease;
}

.release-header .search-field::placeholder { 
  color: #9ca3af;
}

.release-header .search-field:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

/* 検索ボタン */
.search-submit {
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.search-submit:hover { 
  background: #000;
  transform: translateY(-50%) scale(1.05);
}

.search-submit:focus {
  outline: 2px solid #00bcd4;
  outline-offset: 2px;
}

.search-submit:active {
  transform: translateY(-50%) scale(0.95);
}

/* 検索アイコン */
.search-icon {
  width: 18px;
  height: 18px;
  color: white;
  transition: opacity 0.2s ease;
}

.search-submit:hover .search-icon {
  opacity: 0.8;
}

/* SearchWP 結果 */
.searchwp-live-search-no-results {
  padding: 1.7em 2em 0 !important;
  color: #666;
  font-style: italic;
}

.searchwp-live-search-results {
  position: fixed !important;
  top: calc(var(--header-height) - 2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
}

/* フッター */
.release-footer {
  text-align: center;
  padding: 1rem;
  background: #ddd;
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
}

.release-footer p {
  margin:0;
}

.cr-pswp {
  display: none !important;
}

/* ------------------------------
   レスポンシブ対応
------------------------------ */
/* デスクトップでは Mega Menu を隠す */
@media (min-width: 1025px) {
  #mega-menu-wrap-max_mega_menu_1 {
    display: none !important;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #mega-menu-wrap-max_mega_menu_1 {
    display: none !important;
  }
  
  .release-nav a {
    margin: 0 0.5rem;
    font-size: 0.7rem;
  }
  
  .release-header .search-field {
    min-width: 200px;
  }
  
  .release-nav__list {
    gap: 0.5rem;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .release-body {
    --header-height: 60px;
  }
  
  .release-header-title {
    font-size: 18px;
  }
  
  .release-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 1rem 0;
    flex-wrap: nowrap;
  }
  
  /* メガメニューの調整 */
  #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle {
    margin-left: auto;
	padding-bottom: 15px;
	padding-right: 15px;
  }
  
  #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle ~ button.mega-close:before {
    display: none;
  }
  
  #mega-menu-max_mega_menu_1 {
    top: var(--header-height) !important;
  }
  
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link {	
    font-size: 16px;
    font-weight: bold;
  }
  
  /* デスクトップナビを隠す */
  .release-nav__list {
    display: none;
  }
  
  /* 検索結果の位置調整 */
  .searchwp-live-search-results {
    top: calc(var(--header-height) + 42px) !important;
	gap: 0;
  }
}

/* 極小画面の対応 */
@media screen and (max-width: 480px) {
  .release-header-inner {
    padding: 15px 0.5rem 0;
  }
  
  .release-header-title {
    font-size: 16px;
	padding-bottom: 15px;
	padding-left: 5px;
  }
  
  .release-header-title a {
    display: block;
    overflow: hidden;
    max-width: 200px;
  }
}

/* プリント用スタイル */
@media print {
  .release-header {
    position: static;
    background: white;
    color: black;
    box-shadow: none;
  }
  
  .release-body {
    padding-top: 0;
  }
  
  .search-form,
  #mega-menu-wrap-max_mega_menu_1 {
    display: none;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .release-header {
    background-color: #111;
  }
  
  .release-header .search-field {
    background: #333;
    color: white;
    border-color: #555;
  }
  
  .release-header .search-field::placeholder {
    color: #aaa;
  }
}

/* ==============================
   「Browse by Title」「Browse by Series」「Browse by Maker」用スタイル
   ============================== */
/* タクソノミーカードの基本スタイル */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 1rem;
  border-radius: 8px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: var(--bg-pos, 50% 50%);
  background-repeat: no-repeat;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* タイトルカード（横長レイアウト） */
.category-card.title-card {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  aspect-ratio: 21 / 9;
  min-height: 90px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 背景オーバーレイ（グラデーション） */
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* タイトルカード用の背景オーバーレイ */
.category-card.title-card::before {
  background: rgba(0, 0, 0, 1); /* 固定背景 */
  opacity: 0.45;                /* 濃さをopacityで調整 */
}

/* 背景画像（タイトルカード用） */
.category-card.title-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #ddd;
  background-image: var(--bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--bg-pos, 50% 50%);
  transition: transform 0.5s ease, background-position 0.5s ease;
  will-change: transform, background-position;
}

/* ホバーエフェクト */
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background-position: var(--bg-pos-hover, 50% 40%);
  color: #fff;
}

.category-card:hover::before {
  opacity: 0.9; /* ← opacityだけを変える */
}

/* タイトルカードのホバーエフェクト */
.category-card.title-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.category-card.title-card:hover::before {
  opacity: 0.6; /* ← opacityで濃さ調整 */
}

.category-card.title-card:hover::after {
  transform: scale(1.05); /* ← transformだけ変える */
  background-position: var(--bg-pos-hover, var(--bg-pos, 50% 50%));
}

/* テキストスタイル */
.term-name {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* タイトルカード用のテキストスタイル */
.category-card.title-card .term-name {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25em 0.5em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-left: 14px;
}

.category-card.title-card:hover .term-name {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.post-count {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  padding-left: 5px;
}

/* タイトルカード内での投稿数表示調整 */
.category-card.title-card .post-count {
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

/* エラー状態 */
.no-terms-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .category-card {
    min-height: 150px;
    padding: 0.75rem;
  }
  
  .category-card.title-card {
    min-height: 80px;
    padding: 0.5rem;
  }
  
  .term-name {
    font-size: 1rem;
  }
  
  .category-card.title-card .term-name {
    font-size: 0.85rem;
  }
  
  .post-count {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .category-card {
    min-height: 120px;
  }
  
  .category-card.title-card {
    min-height: 70px;
    aspect-ratio: 21 / 9;
  }
  
  .term-name {
    font-size: 0.95rem;
  }
  
  .category-card.title-card .term-name {
    font-size: 0.8rem;
    padding: 0.2em 0.4em;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card::before,
  .category-card::after,
  .category-card .term-name {
    transition: none !important;
  }
  
  .category-card:hover {
    transform: none;
  }
  
  .category-card.title-card:hover::after {
    transform: none;
  }
}

/* フォーカス状態 */
.category-card:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.category-card:focus:not(:focus-visible) {
  outline: none;
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
  .no-terms-found {
    background: #2a2a2a;
    color: #ccc;
    border-color: #444;
  }
}


/* ==============================
   page-release-schedule 用スタイル
   ============================== */
.section-title {
  font-size: 1.6rem;
  margin: 2.5rem 0 1.2rem;
  font-weight: 700;
  text-align: left;
  color: #222;
  border-left: 4px solid #333;
  padding-left: 0.6rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.view-all {
    margin: 20px auto 0;
    max-width: 290px;
}

.btn-view-all {
	display: flex;
	justify-content: center;
    align-items: center;
    width: 100%;
	padding: 10px;
	background: #333;
    color: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	border-radius: 44px;
    font-size: 1rem;
    font-weight: 600;
	line-height: 1.3;
}


.btn-view-all:hover {
  background: #333;
	color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.no-items-message,
.taxonomy-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin: 1rem 0;
}

.no-items,
.taxonomy-error p {
  color: #666;
  font-style: italic;
  margin: 0;
}

.btn-view-all.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {	
	.section-title {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem;
    }
	
    .category-grid,
    .title-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {   
    .category-card {
        min-height: 160px;
        padding: 0.75rem;
    }
	
	.category-grid,
    .title-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ==============================
   render_release_schedule_cards 用スタイル
   ============================== */
.release-schedule {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 0 16px;
}

.release-month-dropdown {
    margin: 0 auto;
    margin-bottom: 1.5rem;
    width: 220px;
}

.release-month-dropdown select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
}

/* 月カードデザイン */
.release-month-card {
    padding: 0.5em 1em;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.release-month-card:hover {
    background: #e6f0fa; /* ホバー時の背景色を少し変更して視覚的変化を追加 */
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* 月名 */
.release-month-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.release-month-grid-with-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin: 1em 0;
}


.release-months {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
}

.year-nav {
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.no-releases {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
}

@media screen and (max-width: 767px) {
	.release-month-card {
		padding: 0.2em 0.4em;
	}
	.release-month-name {
    	font-size: 1.0rem;
	}
	.release-month-grid-with-nav {
		flex-wrap: nowrap;
		margin: 0;
	}
}



/* ==============================
   page-release-schedule page-search-result release-common 共通用スタイル
   ============================== */
.release-archive__grid--top,
.release-archive__grid--common {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

/* タブレット: 8件まで表示（768px〜1024pxの範囲） */
@media (min-width: 768px) and (max-width: 1024px) {
  .release-archive__grid--top,
  .release-archive__grid--common {
      grid-template-columns: repeat(4, 1fr);
   }
  /* 一度リセットしてから上書き（確実に効かせる） */
  .release-archive__grid--top .release-card { display: block; }
  .release-archive__grid--top .release-card:nth-child(-n+8) { display: block; }  /* 1〜6 を確実に表示 */	
  .release-archive__grid--top .release-card:nth-child(n+9) { display: none; } /* 9個目以降を隠す => 最大8個表示 */
}

/* スマホサイズ以上で3列 */
@media (max-width: 767px) {
	.title-grid {
    	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  	}
	.title-card { 
		/*spect-ratio: 4 / 3;*/ 
		min-height: 96px; 
	}
    .release-archive__grid--top,
	.release-archive__grid--common,
	.release-archive__grid--related {
        grid-template-columns: repeat(3, 1fr);
		gap: 5px;
    }
	/* 明示的に先頭6つを表示、それ以外を非表示にする（優先度上げ） */
  .release-archive__grid--top .release-card { display: block; }
  .release-archive__grid--top .release-card:nth-child(-n+9) { display: block; }  /* 1〜6 を確実に表示 */
  .release-archive__grid--top .release-card:nth-child(n+10) { display: none; }      /* 7 以降を非表示 */
}

/* ==============================
   release-common page-search-result page-release-undecided 用スタイル
   ============================== */
.release-count {
	font-weight: bold;
}

#release-list {
	margin-top: 25px;
}

/* ==============================
   release-common page-release-schedule page-search-result page-release-undecided 用スタイル
   ============================== */
.release-archive__header {
    margin-bottom: 20px;
    text-align: center;
}
.release-archive__title {
    font-size: 1.8rem;
    font-weight: bold;
}

/* 空状態 */
.release-archive__empty {
    text-align: center;
    color: #777;
    padding: 40px 0;
}



/* ==============================
   ページネーション全体
   ============================== */
 .release-pagination {
      position: relative;
      margin: 2rem 0;
      /* 親幅に対して中央に寄せる */
      text-align: center;
    }

    /* 全体の行（prev / numbers / next） */
    .release-pagination__list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      position: relative;
    }

    /* Prev/Next は左／右に自然に並ぶ（幅は要素が常に存在するため変わらない） */
    .release-pagination__item.prev,
    .release-pagination__item.next {
      flex: 0 0 auto;
    }

    /* 数字ブロックを絶対中央に固定（これがズレ防止の肝） */
    .release-pagination__item.numbers {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 50%;
      transform: translateX(-50%);
      /* 中央で重ならないように z-index を上げる */
      z-index: 2;
      display: block;
      padding: 0;
      margin: 0;
    }

    .release-pagination__numbers {
      display: flex;
      gap: 0.5rem;
      list-style: none;
      margin: 0;
      padding: 0;
      align-items: center;
      justify-content: center;
      background: transparent; /* 必要なら背景を指定 */
      white-space: nowrap;
    }

    .release-pagination__numbers-item { display: inline-block; }

    /* 共通リンクスタイル */
    .release-page-link {
      display: inline-block;
      min-width: 2.2rem; /* 幅を確保して数字の揺れを減らす */
      padding: 0.45rem 0.6rem;
      border-radius: 6px;
      border: 1px solid #ddd;
      background: #fff;
      color: #222;
      text-decoration: none;
      text-align: center;
      transition: background .15s, color .15s, border-color .15s;
      box-sizing: border-box;
      font-size: 0.95rem;
    }

    .release-page-link:hover { background: #f6f6f6; }

    /* アクティブ（現在ページ） */
    .release-page-link.is-active {
      background: #222;
      color: #fff;
      border-color: #222;
      pointer-events: none;
      font-weight: 600;
    }

    /* 無効状態（常に要素は存在するので見た目だけ変える） */
    .release-page-link.is-disabled {
      background: #fafafa;
      color: #aaa;
      border-color: #eee;
      pointer-events: none;
      opacity: 0.9;
    }

    /* 省略（dots） */
    .release-page-link.ellipsis {
      border: none;
      background: transparent;
      color: #666;
      pointer-events: none;
      padding: 0.45rem 0.6rem;
    }
	
	.pagination-result {
		margin-top: 10px; 
		padding: 10px; 
		background: #f0f0f0; 
		font-size: 12px;
	}

    /* 小さな画面での対応 */
    @media (max-width: 520px) {
      .release-pagination__list { gap: 0.5rem; }
      .release-page-link { min-width: 1.8rem; padding: 0.35rem 0.45rem; font-size: 0.85rem; }
      .release-pagination__item.numbers { position: static; transform: none; } /* 必要なら中央を崩さない別挙動に */
      .release-pagination__numbers { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    }





/* ==============================
   パンくずリスト用スタイル
   ============================== */
.release-breadcrumbs {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1.5em;
}

.release-breadcrumbs__line {
  margin-bottom: 0.4em;
  font-size: 0.9rem;
}

.release-breadcrumbs__line a {
  color: #0066cc;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.release-breadcrumbs__line a:hover {
  text-decoration: none;
  opacity: 0.6;
}

/* 矢印セパレーター（独立要素なのでホバー影響なし） */
.release-breadcrumbs__separator {
  margin: 0 0.5em;
  color: #666;
  display: inline;
}

.release-breadcrumbs__label {
  color: #333;
  opacity: 0.7;
  cursor: default;
}








/* ==============================
   single-release.php 用スタイル
   ============================== */
/* スクリーンリーダー専用クラス */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ベースレイアウト */
.release-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.release-detail__header {
  text-align: center;
  margin-bottom: 2rem;
}

.release-detail__header--borderTop {
  border-top: 2px solid #005cac;
  padding-top: 20px;
}

.release-detail__title {
  /*font-size: clamp(1.75rem, 4vw, 2.5rem);*/
  font-size: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
}

.release-detail__date-wrapper {
  margin-bottom: 2rem;
}

/* CSS Grid対応のメインレイアウト */
@supports (display: grid) {
  .release-detail__main {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.8fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
  }
}

/* Flexboxフォールバック */
@supports not (display: grid) {
  .release-detail__main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
  }

  .release-detail__image {
    flex: 1 1 55%;
  }

  .release-detail__info {
    flex: 1 1 40%;
  }
}

/* 画像エリア */
.release-detail__image {
  text-align: center;
}

.release-detail__main-image {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-detail__main-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 情報テーブル */
.release-detail__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.release-detail__table th,
.release-detail__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  text-align: left;
}

.release-detail__table th {
  width: 30%;
  font-weight: 600;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.release-detail__table td {
  color: #495057;
  background: #fff;
}

.release-detail__table tr:last-child th,
.release-detail__table tr:last-child td {
  border-bottom: none;
}

.release-detail__table a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.release-detail__table a:hover {
  opacity: 0.6; /* ← hover中だけ薄く */
  text-decoration: none;
}

.release-detail__table a:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* 購入ボタン */
.release-detail__buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.release-detail__buy-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-detail__product-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  min-width: 120px;
}

.release-detail__buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #007bff;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  /* 全てのプロパティにtransitionを適用 */
  transition: all 0.3s ease !important;
  /* 初期状態を明示 */
  transform: translateY(0);
}

.release-detail__buy-button:hover {
  background-color: #0056b3;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.release-detail__buy-button:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .release-detail__buy-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .release-detail__buy-button {
    width: 100%;
  }
}

/* 説明エリア */
.release-detail__description {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.release-detail__description h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  border-left: 4px solid #ff6b6b;
  padding-left: 1rem;
  color: #2c3e50;
  font-weight: 600;
}

.release-detail__description p {
  line-height: 1.7;
  margin: 0;
  color: #495057;
}

/* 日付スタイル */
.release-detail__date--single {
  /*font-size: clamp(1.2rem, 3vw, 1.6rem);*/
  font-size: 1em;
  font-weight: 700;
  border: 2px solid #0066cc;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  margin: 0.5rem;
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.release-detail__date--single::before,
.release-detail__date--single::after {
  position: absolute;
  top: 0.75rem;
  content: '';
  width: 4px;
  height: calc(100% - 1.5rem);
  background: linear-gradient(to bottom, #0066cc 0%, #004499 100%);
  border-radius: 2px;
}

.release-detail__date--single::before {
  left: 0.75rem;
}

.release-detail__date--single::after {
  right: 0.75rem;
}

/* セクション見出し */
.headLine {
  border-top: 3px solid #0066cc;
  margin: 3rem 0 2rem 0;
  padding: 1rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
}

/* 動画エリア */
.release-detail__video-section {
  margin: 3rem 0;
}

.release-detail__youtube-video {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 関連商品 */
.release-detail__related {
  margin: 3rem 0;
}

.release-archive__grid--related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.release-detail__related-more {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-more {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: #28a745;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-more:hover {
  color: #fff;
  opacity: 0.8;
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.btn-more:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

.btn-more:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* 詳細コンテンツ */
.release-detail__content {
  margin: 3rem 0;
  padding: 2rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #ffffff;
}

.release-detail__content h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 767px) {
  .release-detail {
    padding: 1rem;
  }
  
  @supports (display: grid) {
    .release-detail__main {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }
  
  .release-detail__table th,
  .release-detail__table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .release-detail__table th {
    width: 35%;
  }
  
  .release-detail__buy-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .release-detail__description {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .release-detail__youtube-video {
    max-width: 100%;
    margin: 0;
  }
  
  .release-archive__grid--related {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .headLine {
    margin: 2rem 0 1.5rem 0;
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .release-archive__grid--related {
    grid-template-columns: repeat(3, 1fr);
	gap: 5px;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .release-detail__table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
  }
  
  .release-detail__table td {
    background: #2c3e50;
    color: #ecf0f1;
    border-bottom-color: #34495e;
  }
  
  .release-detail__description {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #34495e;
    color: #ecf0f1;
  }
  
  .release-detail__content {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
  }
}

/* プリント用スタイル */
@media print {
  .release-detail__buy-button,
  .release-detail__youtube-video,
  .release-detail__related {
    display: none;
  }
  
  .release-detail {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .release-detail__main {
    display: block;
  }
  
  .release-detail__image {
    max-width: 50%;
    float: right;
    margin: 0 0 1rem 1rem;
  }
}

/* 高コントラスト設定対応 */
@media (prefers-contrast: high) {
  .release-detail__table {
    border: 2px solid #000;
  }
  
  .release-detail__table th,
  .release-detail__table td {
    border: 1px solid #000;
  }
  
  .release-detail__buy-button {
    border: 2px solid #000;
    background: #000;
    color: #fff;
  }
}

/* ==============================
   release-card.php 用スタイル
   ============================== */
.release-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* グリッドレイアウトと組み合わせる */
}

.release-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.release-card a {
  display: flex; /* blockからflexに変更 */
  flex-direction: column;
  flex: 1; /* 親の高さいっぱいに広がる */
  text-decoration: none;
  color: inherit;
  outline: none;
}

.release-card__thumb {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-shrink: 0; /* 画像エリアが縮まないようにする */
}

.release-card__image {
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.release-card__image--placeholder {
  opacity: 0.7;
  filter: grayscale(20%);
}

.release-card__body {
    padding: 15px;
    text-align: center;
    flex: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* タイトルと日付を上下に配置 */
}

.release-card__body h2 {
  font-size: 0.9rem;
  margin: 0 0 8px;
  line-height: 1.4;
  /* テキストが長い場合の省略表示 */
  /*display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;*/
  overflow: visible; /* テキストを省略しない */
}

.release-card__date--top {
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
}

.release-card__date--related {
  color: #555;
  font-size: 0.7rem;
  margin-top: auto; /* 日付を下に配置 */
}

/* スマホ対応の改善 */
@media (max-width: 767px) {
  .release-card__body {
    padding: 12px;
  }
  
  .release-card__body h2 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .release-card__date--top {
    font-size: 0.75rem;
    margin-bottom: 0;
  }
  
  .release-card__date--related {
    font-size: 0.6rem;
  }
  
  .release-card__date--archive {
    font-size: 0.7rem;
  }
  
  .release-card__date--search {
    font-size: 0.65rem;
  }
}

/* より小さな画面での調整 */
@media (max-width: 480px) {
  .release-card__thumb {
    padding: 8px;
  }
  
  .release-card__body {
    padding: 10px;
  }
  
  .release-card__body h2 {
    font-size: 0.85rem;
  }
  
  .release-card__date--top {
    font-size: 0.7rem;
  }
  
  .release-card__date--related {
    font-size: 0.55rem;
  }
}

/* アクセシビリティ改善 */
@media (prefers-reduced-motion: reduce) {
  .release-card {
    transition: none;
  }
  
  .release-card:hover {
    transform: none;
  }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  .release-card {
    border: 2px solid #000;
  }
  
  .release-card__body h2 {
    color: #000;
    font-weight: bold;
  }
  
  .release-card__date--top,
  .release-card__date--related,
  .release-card__date--archive,
  .release-card__date--search {
    color: #000;
    font-weight: 600;
  }
}




/* 広告の高さ制限（モバイル） */
@media (max-width: 768px) {
  .ad-container {
    max-height: 150px;
    overflow: hidden;
  }
  
  .ad-container .adsbygoogle,
  .ad-container ins {
    max-height: 150px !important;
  }
}
