/* ポケカタイムズ: 初期デザイン調整 */
:root {
  --pct-ink: #17202a;
  --pct-muted: #5d6875;
  --pct-line: #e5e9ef;
  --pct-bg: #f5f7fa;
  --pct-card: #ffffff;
  --pct-red: #e73346;
  --pct-blue: #2468b2;
  --pct-yellow: #f4c430;
}

body {
  background: var(--pct-bg);
  color: var(--pct-ink);
}

a {
  color: var(--pct-blue);
}

.l-header,
#header {
  border-bottom: 1px solid var(--pct-line);
  box-shadow: 0 2px 14px rgba(23, 32, 42, 0.06);
}

.l-header .menu-item:has(a[href*="/about/"]),
.l-header .menu-item:has(a[href*="/contact/"]),
.l-header .menu-item:has(a[href*="/privacy-policy/"]),
.l-header .menu-item:has(a[href*="/advertising-policy/"]),
.l-fixHeader__gnav .menu-item:has(a[href*="/about/"]),
.l-fixHeader__gnav .menu-item:has(a[href*="/contact/"]),
.l-fixHeader__gnav .menu-item:has(a[href*="/privacy-policy/"]),
.l-fixHeader__gnav .menu-item:has(a[href*="/advertising-policy/"]),
.p-spMenu__nav .menu-item:has(a[href*="/about/"]),
.p-spMenu__nav .menu-item:has(a[href*="/contact/"]),
.p-spMenu__nav .menu-item:has(a[href*="/privacy-policy/"]),
.p-spMenu__nav .menu-item:has(a[href*="/advertising-policy/"]) {
  display: none !important;
}

#header .c-headLogo,
#fix_header .c-headLogo {
  width: clamp(180px, 24vw, 280px);
  max-width: 58vw;
  min-height: 68px;
}

#header .c-headLogo__link,
#fix_header .c-headLogo__link {
  display: block !important;
  width: 100%;
  height: 68px;
  overflow: hidden;
  color: transparent !important;
  text-indent: -9999px;
  white-space: nowrap;
  letter-spacing: 0;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

#header .c-headLogo__link::before,
#header .c-headLogo a::before,
#fix_header .c-headLogo__link::before,
#fix_header .c-headLogo a::before {
  display: none !important;
  content: none !important;
}

#header .l-header__inner {
  min-height: 84px;
}

#post_slider,
.p-postSlider {
  display: none !important;
}

#content {
  padding-top: 28px;
}

#content:has(#post_list_tab_1) {
  display: block;
  max-width: 1120px;
}

#content:has(#post_list_tab_1) #main_content {
  width: 100%;
}

#content:has(#post_list_tab_1) #sidebar {
  display: none;
}

#post_list_tab_1 .p-postList {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

#post_list_tab_1 .p-postList::before {
  content: "新着記事";
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 -4px;
  color: var(--pct-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

#main_content .p-postList__item:has(a[href*="/hello-world/"]) {
  display: none !important;
}

.p-postList__item {
  width: auto !important;
  margin: 0 !important;
  border: 1px solid var(--pct-line);
  border-radius: 8px;
  background: var(--pct-card);
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.06);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.p-postList__item:hover {
  border-color: rgba(36, 104, 178, 0.3);
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.1);
  transform: translateY(-2px);
}

#post_list_tab_1 .p-postList__thumb.c-postThumb.noimg_ {
  min-height: 156px;
}

.c-postThumb.noimg_ {
  position: relative;
  background: linear-gradient(135deg, #17202a 0%, #2468b2 54%, #f4c430 100%);
}

.c-postThumb.noimg_ .c-postThumb__figure {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  background: transparent;
}

.c-postThumb.noimg_ .c-postThumb__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.c-postThumb.noimg_ .c-postThumb__figure::after {
  content: "POKECA TIMES";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.c-postThumb.noimg_ img {
  opacity: 0;
}

.c-postThumb.noimg_::before {
  background: none !important;
}

.c-postThumb__cat {
  z-index: 2;
}

.p-postList__title {
  color: var(--pct-ink);
  font-weight: 800;
  line-height: 1.55;
}

.p-postList__excerpt {
  color: var(--pct-muted);
  font-size: 14px;
  line-height: 1.8;
}

.c-categoryList__link,
.c-postThumb__cat {
  border-radius: 999px;
  background: var(--pct-yellow) !important;
  color: var(--pct-ink) !important;
  font-weight: 800;
}

.c-meta__item,
.p-postList__meta {
  color: var(--pct-muted);
}

.l-sidebar .c-widget,
.w-widget,
.p-profileBox,
.widget {
  border: 1px solid var(--pct-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.05);
}

.post_content h2,
.entry-content h2 {
  border-left: 6px solid var(--pct-red);
  border-bottom: 1px solid var(--pct-line);
  background: #fff;
  color: var(--pct-ink);
}

.post_content h3,
.entry-content h3 {
  border-left: 4px solid var(--pct-blue);
  color: var(--pct-ink);
}

.post_content strong,
.entry-content strong {
  background: linear-gradient(transparent 62%, rgba(244, 196, 48, 0.38) 62%);
}

@media (max-width: 768px) {
  #content {
    padding-top: 18px;
  }

  #header .c-headLogo,
  #fix_header .c-headLogo {
    width: 188px;
    max-width: 62vw;
    min-height: 50px;
  }

  #header .c-headLogo__link,
  #fix_header .c-headLogo__link {
    height: 50px;
  }

  #header .l-header__inner {
    min-height: 66px;
  }

  #post_list_tab_1 .p-postList {
    grid-template-columns: 1fr;
  }

  #post_list_tab_1 .p-postList::before {
    font-size: 20px;
  }

  #post_list_tab_1 .p-postList__thumb.c-postThumb.noimg_,
  .c-postThumb.noimg_ .c-postThumb__figure {
    min-height: 132px;
  }
}

/* ポケカタイムズ: 現在のロゴ・HERO設定 */
#header .c-headLogo,
#fix_header .c-headLogo {
  width: clamp(190px, 25vw, 300px) !important;
  max-width: 62vw !important;
  min-height: 74px !important;
}

#header .c-headLogo__link,
#fix_header .c-headLogo__link {
  height: 74px !important;
  background-image: url("https://pokecatimes.jp/wp-content/uploads/2026/09/%E3%83%AD%E3%82%B4-%E3%81%AE%E3%82%B3%E3%83%94%E3%83%BC.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
}

#header .l-header__inner {
  min-height: 88px !important;
}

@media (max-width: 768px) {
  #header .c-headLogo,
  #fix_header .c-headLogo {
    width: 196px !important;
    min-height: 58px !important;
  }

  #header .c-headLogo__link,
  #fix_header .c-headLogo__link {
    height: 58px !important;
  }

  #header .l-header__inner {
    min-height: 70px !important;
  }
}

/* SWELLメインビジュアル: ロゴとキャッチコピー */
#main_visual {
  display: block !important;
  margin: 0 !important;
}

#main_visual .p-mainVisual__textLayer {
  padding: 24px !important;
}

#main_visual .p-blogParts {
  width: min(620px, 88vw);
  margin: 0 auto;
}

#main_visual .pct-mv-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
}

#main_visual .pct-mv-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  max-height: 190px;
  margin: 0;
  object-fit: contain;
}

#main_visual .pct-mv-copy {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
}

@media (max-width: 768px) {
  #main_visual .p-mainVisual__textLayer {
    padding: 20px !important;
  }

  #main_visual .p-blogParts {
    width: min(92vw, 420px);
  }

  #main_visual .pct-mv-content {
    gap: 16px;
  }

  #main_visual .pct-mv-logo {
    width: min(84vw, 360px);
  }

  #main_visual .pct-mv-copy {
    font-size: 15px;
  }
}
