/* 映画/ドラマ詳細ページ専用CSS */
:root {
  --movie-primary-color: #0f3f6e; /* 健達ねっとのメインカラー */
  --movie-accent-color: #f5a11b; /* 健達ねっとのアクセントカラー */
  --movie-bg-color: #f7f9f9;
  --movie-border-color: #e0e0e0;
  --movie-text-color: #333;
  --movie-text-light-color: #555;
  --movie-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

main .postContents section p,
main .postContents section th,
main .postContents section td,
main .postContents section ul,
main .postContents section ol,
main .postContents section li {
  font-size: 18px;
  line-height: 28px;
}

/* --- タクソノミー絞り込みフィルター --- */
.movie-taxonomy-filters {
  background-color: #f7f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .movie-taxonomy-filters {
    margin: auto 12px 40px;
  }
}

.filter-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: var(--movie-primary-color);
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
}

.filter-link {
  display: inline-block;
  text-decoration: none;
  background-color: #fff;
  color: #333;
  padding: 6px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.9em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-link:hover {
  background-color: #eaf4f4;
  border-color: var(--movie-primary-color);
}

/* 現在表示中のアーカイブページのリンクを目立たせる */
.filter-link.current {
  background-color: var(--movie-primary-color);
  color: #fff;
  border-color: var(--movie-primary-color);
  font-weight: bold;
}

.filter-select-wrapper {
  position: relative;
}

.filter-select-wrapper::after {
  /* プルダウンの矢印スタイル */
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #555;
  pointer-events: none;
}

#movie-cast-filter-select {
  width: 100%;
  padding: 10px 30px 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  appearance: none; /* ブラウザ標準の矢印を消す */
  -webkit-appearance: none;
}
@media (min-width: 600px) {
  #movie-cast-filter-select {
    max-width: 300px; /* PCでは幅を調整 */
  }
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.movie-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.movie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f3f6e;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.movie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.movie-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.year {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.genre {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.movie-title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.movie-info {
  margin-bottom: 15px;
}

.movie-info p {
  color: #555;
  font-size: 16px !important;
  line-height: 20px !important;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.movie-info p .fas {
  margin-right: 8px;
  width: 1.2em;
  text-align: center;
}

.info-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  opacity: 0.7;
}

.movie-description {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 2px solid #0f3f6e;
}

.movie-description p {
  color: #555;
  font-size: 16px !important;
  line-height: 24px !important;
}

.movie-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: auto 12px;
    padding-bottom: 24px;
  }

  .postContents-page .movie-grid,
  .movie-related-posts .movie-grid {
    margin: auto;
  }

  .page-title {
    font-size: 24px;
  }

  .movie-card {
    padding: 20px;
  }

  .movie-title {
    font-size: 20px;
  }
}

.postContents ul {
  border-radius: 0 !important;
  border: none !important;
  background-color: #ffffc7 !important;
}

.postContents ul li {
  list-style: inside;
  font-size: 18px;
  line-height: 24px;
}

.partsH2-72 h2 {
  background-color: inherit !important;
}

.postContents h4 {
  font-size: 1.9rem;
}

.postContents h5 {
  font-size: 1.7rem;
}

.postContents h6 {
  font-size: 16px;
}

.partsH2-13 h2,
.partsH3-13 h3,
.partsH4-13 h4,
.partsH5-13 h5 {
  padding: 0px !important;
  border-style: none !important;
}

.partsH4-13 h4 {
  color: #414141 !important;
}

.partsH4-13 h4:before {
  content: "";
  border-left: 5px solid #afacac;
  margin-right: 15px;
  height: 18px;
}

.icon-folder:before {
  transform: translateY(1px);
  content: "";
  display: inline-block;
  height: 12px;
  width: 12px;
  background-size: cover;
  background-image: url("https://www.mcsg.co.jp/kentatsu/wp-content/uploads/2022/02/Icon-awesome-tag.png");
}

.icon-clock:before {
  content: "公開日:" !important;
}

.icon-update:before {
  content: "更新日:" !important;
}

.dividerBottom .postContents h3 {
  font-size: 21px;
}

h1 {
  margin-left: 0px !important;
  margin-right: 0px !important;
}

.postContents ul {
  padding: 20px 10px !important;
  width: 100%;
}

.postContents p,
.postContents ul,
.postContents ol,
.postContents .table-wrapper,
.postContents table,
.postContents th,
.postContents td {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}

.postContents table th,
.postContents table td {
  padding: 12px;
}

.content h3 {
  line-height: 1;
}

.dividerBottom .postContents h2 {
  border-style: none;
}

@media screen and (max-width: 767px) {
  .dividerBottom .postContents h2 {
    font-size: 20px !important;
    line-height: 28px;
  }
}

h1.heading.heading-primary {
  font-size: 27px;
}

h2 > span {
  font-size: 23px !important;
}

h2 {
  padding-left: 0px !important;
  padding-bottom: 16px;
  font-size: 23px !important;
}

p.cat_head_filter_ch {
  font-weight: bold;
  color: #0d3d6b;
  font-size: 16px;
  background-color: transparent;
}

.partsH2-72 h2::after,
.partsH3-72 h3::after,
.partsH4-72 h4::after,
.partsH5-72 h5::after {
  display: none;
}

strong {
  font-weight: normal;
}

.content ol > li:before {
  display: none;
}

.partsH2-72 h2 {
  padding-bottom: 16px !important;
}

.has-luminous-vivid-orange-color {
  color: #cf2d2d !important;
}

.outline_number {
  width: 32px;
  text-align: center;
}

.content .outline__number {
  padding: 0px !important;
  width: 32px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .archive_ex .heading-secondary {
    font-size: 18px !important;
    height: inherit;
  }

  .dateList {
    display: flex;
    flex-wrap: wrap-reverse;
  }

  .dateList li:nth-child(1) {
    position: unset;
    width: 100%;
  }

  .dateList__item {
    font-size: 14px !important;
    margin-bottom: 4px;
  }

  .dateList__item:before,
  .dateList__item i {
    margin-right: 4px !important;
  }

  .postContents {
    margin-bottom: 40px;
  }

  .postContents-page {
    margin-left: 20px;
    margin-right: 20px;
    max-width: calc(100% - 40px);
  }

  .dividerBottom {
    margin: 20px;
  }
}

@media screen and (max-width: 490px) {
  tbody {
    overflow-x: scroll;
  }

  .postContents p {
    font-size: 16px;
  }

  h1.heading.heading-primary {
    font-size: 24px !important;
    margin-top: 10px !important;
    padding-bottom: 12px;
  }

  span {
    font-size: 18px;
  }

  .eyecatch:before {
    padding-top: none !important;
  }

  .l-main {
    width: 90%;
    margin: 0 auto;
  }

  .eyecatch__link {
    width: 100%;
  }

  .eyecatch .eyecatch__link img {
    position: relative !important;
    margin: 0 auto;
  }

  h1.heading {
    margin: 10px 0 !important;
  }

  h2::after {
    display: none;
  }

  h2 {
    border-bottom: 0 !important;
  }
}

.neo_eyec img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  margin: 1rem 0;
}

.outline {
  width: 100%;
  background-color: #f7f7f7 !important;
  position: relative;
}

.outline ul li {
  background-color: #f7f7f7 !important;
}

.outline__switch {
  display: none;
}

.outline__item {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.outline__item:nth-child(1),
.outline__item:nth-child(2) {
  display: list-item;
  opacity: 1;
}

.outline__item:nth-child(n + 3) {
  display: list-item;
  opacity: 1;
}

#show-more-btn {
  position: absolute;
  z-index: 99999;
  width: 100%;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #e3e3e3 100%);
  color: #191919;
  border: none;
  text-align: center;
  bottom: 0;
  font-size: 16px;
  padding: 33px 20px 10px 20px;
  margin-left: -20px;
}

.movie-entry-wrapper {
  font-family: var(--movie-font-family);
  color: var(--movie-text-color);
  line-height: 1.8;
  background-color: #fff;
  padding: 2em 0;
}

.movie-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* h1の前の作品形態ラベル */
.movie-category-labels {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* ラベルが複数ある場合の間隔 */
}

.movie-category-label {
  display: inline-block;
  background-color: var(--movie-primary-color);
  color: #ffffff !important;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

/* 公開日・ジャンル */
.post-top-data-list {
  margin-bottom: 32px;
}

/* メインコンテンツ */
.movie-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .movie-body {
    grid-template-columns: 2fr 1fr; /* PCでは2カラム */
  }
}

.movie-main-content {
  order: 2;
}
@media (min-width: 768px) {
  .movie-main-content {
    order: 1;
  }
}

.movie-grid .movie-card-link {
  display: inline-flex;
}

.movie-sidebar {
  order: 1;
}
@media (min-width: 768px) {
  .movie-sidebar {
    order: 2;
  }
}

.movie-sidebar .movie-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* 各セクション */
.movie-section {
  margin-bottom: 2.5em;
}

.movie-section-title {
  font-size: 1.4em;
  font-weight: bold;
  padding-left: 15px;
  border-left: 5px solid var(--movie-primary-color);
  margin-bottom: 1em;
}

/* 予告編動画 */
.movie-trailer-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.movie-trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 配信リンク */
.streaming-links ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.streaming-links li {
  list-style: none !important;
}

.streaming-links a {
  display: block;
  padding: 10px 20px;
  background-color: var(--movie-accent-color);
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.3s;
}

.streaming-links a:hover {
  opacity: 0.8;
}

/* 運営者コメント */
.operator-comment {
  background-color: var(--movie-bg-color);
  border: 1px solid var(--movie-border-color);
  border-left: 5px solid var(--movie-accent-color);
  border-radius: 5px;
  padding: 1.5em;
}

/* ネタバレ注意アコーディオン */
.spoiler-accordion {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.spoiler-accordion-title {
  font-size: 18px;
  line-height: 28px;
}

.spoiler-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  color: var(--movie-primary-color, #0f3f6e);
  background-color: #f7f9f9;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.spoiler-accordion-toggle:hover {
  background-color: #eaf4f4;
}

.content div.spoiler-accordion-content {
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  margin-top: 0;
}
.content div.spoiler-accordion-content > *:first-child {
  margin-top: 0;
}
.content div.spoiler-accordion-content > *:last-child {
  margin-bottom: 0;
}

/* アイコンのスタイル */
.spoiler-accordion-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* 開いた時のアイコンを回転させる（任意） */
.spoiler-accordion-toggle[aria-expanded="true"] .spoiler-accordion-icon {
  transform: rotate(180deg);
}

/* 詳細情報テーブル */
.movie-details-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--movie-bg-color);
  border: 1px solid var(--movie-border-color);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9em;
}

.movie-details-table th,
.movie-details-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--movie-border-color);
}
.movie-details-table tr:last-child th,
.movie-details-table tr:last-child td {
  border-bottom: none;
}

.movie-details-table th {
  width: 35%;
  font-weight: 600;
  background-color: #eaf4f4;
}

.movie-details-table a {
  color: var(--movie-primary-color);
  text-decoration: none;
}
.movie-details-table a:hover {
  text-decoration: underline;
}

/* タグ（ジャンル・キャスト） */
.postContents ul.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  background-color: transparent !important;
}

.postContents ul.movie-tags li {
  list-style: none !important;
}

.postContents ul.movie-tags a {
  display: inline-block;
  background-color: #eaf4f4;
  color: var(--movie-primary-color) !important;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85em;
  transition: background-color 0.3s;
}

.postContents ul.movie-tags a:hover {
  background-color: #d1e6e6;
}

@media screen and (max-width: 490px) {
  .eyecatch:before {
    padding-top: none !important;
  }
}

@media screen and (max-width: 767px) {
  .sp_main_postContainer {
    width: 100%;
  }

  .sp_main_post {
    border-bottom: 1px solid #ccc;
  }
}

/* ページネーション */
.pagination-wrapper {
  margin-bottom: 32px;
}
