/*
Theme Name: Pronoia Official SEO v2
Theme URI: https://juken.pronoia.jp/
Author: Pronoia
Description: 受験対策のPronoia 公式サイト用テーマ
Version: 2.2.3
Text Domain: pronoia-official
*/

/* Page styles are loaded from web/styles.css to keep the WordPress version aligned with the approved site. */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-page,
.article-single {
  background:
    linear-gradient(180deg, #eef6ff 0, #fff 520px),
    #fff;
}

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(360px, 480px);
  grid-template-areas:
    "copy panel"
    "visual panel";
  gap: 28px clamp(28px, 5vw, 76px);
  align-items: stretch;
  padding: 70px clamp(24px, 7vw, 128px) 64px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 197, 22, .2), transparent 28%),
    linear-gradient(135deg, #082f6c 0%, #0a3f86 50%, #062657 100%);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 78%);
}

.article-hero__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  max-width: 720px;
}

.article-hero h1,
.article-archive-hero h1,
.article-section-head h2,
.article-single__hero h1,
.article-related h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  letter-spacing: .04em;
  line-height: 1.45;
}

.article-hero h1 {
  max-width: 700px;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.28;
}

.article-hero__copy > p:not(.eyebrow),
.article-archive-hero > p:not(.eyebrow):not(.breadcrumbs),
.article-single__hero > p:not(.breadcrumbs) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.article-hero__copy > p:not(.eyebrow) {
  color: #dcecff;
  font-size: 16px;
  line-height: 2;
}

.article-hero .eyebrow {
  color: #ffd95a;
}

.article-hero__visual {
  position: relative;
  z-index: 1;
  grid-area: visual;
  margin: 0;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  overflow: hidden;
  background: #eaf4ff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .18);
}

.article-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #eaf4ff;
}

.article-hero__panel {
  position: relative;
  z-index: 1;
  grid-area: panel;
  align-self: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(0, 20, 55, .25);
}

.article-hero__panel b {
  display: block;
  margin-bottom: 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 21px;
}

.article-panel-label {
  margin: 15px 0 0;
  color: #2d6fae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.article-search input {
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd9e8;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.article-search button {
  height: 48px;
  border: 0;
  border-radius: 4px;
  color: var(--navy);
  background: var(--yellow);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.article-hotwords,
.article-chip-list,
.article-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-hotwords {
  margin-top: 14px;
}

.article-hotwords a,
.article-chip-list a,
.article-single__tags a,
.article-sidebar__box a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #cbd9e8;
  border-radius: 4px;
  color: var(--navy);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.article-hotwords a:hover,
.article-chip-list a:hover,
.article-chip-list a.is-active,
.article-single__tags a:hover,
.article-sidebar__box a:hover {
  border-color: #1d6ab0;
  background: #edf6ff;
}

.article-filter-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px clamp(24px, 7vw, 128px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.article-filter-band span {
  display: block;
  margin-bottom: 9px;
  color: #2d6fae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-featured,
.article-list-section,
.article-related {
  padding: 62px clamp(24px, 7vw, 128px);
}

.article-featured {
  padding-bottom: 24px;
}

.article-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.article-section-head h2 {
  font-size: 30px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(360px, .76fr);
  border: 1px solid #c9ddf4;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8, 47, 108, .07);
}

.featured-card__media,
.article-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  min-height: 100%;
  color: #d7e8fb;
  background:
    linear-gradient(135deg, rgba(8, 47, 108, .08), rgba(12, 76, 158, .06)),
    #f7fbff;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
}

.featured-card__media img,
.article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-card__body {
  padding: clamp(28px, 4vw, 54px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: #2d6fae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.article-meta a {
  padding: 2px 8px;
  border-radius: 3px;
  background: #eaf4ff;
}

.article-meta span {
  padding: 2px 8px;
  border-radius: 3px;
  color: #0c438c;
  background: #fff6cc;
}

.article-section-head > span {
  flex: none;
  padding: 6px 10px;
  border: 1px solid #c9ddf4;
  border-radius: 4px;
  color: #2d6fae;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.popular-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #c9ddf4;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8, 47, 108, .07);
}

.popular-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  color: #d7e8fb;
  background:
    linear-gradient(135deg, rgba(8, 47, 108, .08), rgba(12, 76, 158, .06)),
    #f7fbff;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 700;
}

.popular-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popular-rank {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--yellow);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.popular-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.popular-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.popular-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.featured-card h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.48;
}

.featured-card p {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: #83abd5;
  box-shadow: 0 13px 30px rgba(8, 47, 108, .08);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.article-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.article-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.article-readmore {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.article-readmore span {
  font-size: 18px;
}

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 34px;
}

.article-pagination .page-numbers,
.article-pagination a,
.article-pagination span {
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.article-pagination .current {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.article-archive-hero,
.article-single__hero {
  padding: 58px clamp(24px, 7vw, 128px) 42px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #fff 0%, #f1f8ff 70%, #dcecff);
}

.article-archive-hero h1,
.article-single__hero h1 {
  max-width: 980px;
  font-size: clamp(32px, 4vw, 52px);
}

.article-archive-hero .article-search {
  max-width: 620px;
  margin-top: 22px;
}

.article-empty {
  max-width: 780px;
  padding: 34px;
  border: 1px solid #c9ddf4;
  border-radius: 6px;
  background: #f7fbff;
}

.article-empty h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
}

.article-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-single__article {
  background: #fff;
}

.article-single__eyecatch {
  max-width: min(920px, calc(100vw - 48px));
  margin: 28px auto 0;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.article-single__eyecatch img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.article-single__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: clamp(24px, 5vw, 72px);
  justify-content: center;
  padding: 52px 24px 74px;
}

.article-sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.article-sidebar__box,
.article-sidebar__cta {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.article-sidebar__box b,
.article-sidebar__cta b {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.article-sidebar__box > a {
  width: 100%;
  justify-content: flex-start;
  margin-top: 7px;
}

.article-sidebar__search .article-search {
  grid-template-columns: 1fr;
}

.article-sidebar__search .article-search button {
  width: 100%;
}

.sidebar-popular-list {
  display: grid;
  gap: 10px;
}

.sidebar-popular-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: start;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.sidebar-popular-list a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-popular-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-popular-list em {
  min-width: 0;
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.sidebar-popular-list small {
  grid-column: 2;
  color: #2d6fae;
  font-size: 10px;
  font-weight: 800;
}

.article-sidebar__cta {
  background: linear-gradient(145deg, #082f6c, #0c4c9e);
  color: #fff;
}

.article-sidebar__cta p {
  margin: 0 0 13px;
  color: #d3e6ff;
  font-size: 12px;
}

.article-sidebar__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.article-body {
  min-width: 0;
  font-size: 16px;
  line-height: 2;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  line-height: 1.55;
}

.article-body h2 {
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dceafa;
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
}

.article-body h3 {
  margin: 34px 0 12px;
  padding-left: 13px;
  border-left: 4px solid var(--yellow);
  font-size: 21px;
}

.article-body p,
.article-body li {
  color: #263f62;
}

.article-body a {
  color: #1767ad;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid #1d6ab0;
  background: #f7fbff;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.article-body > figure:first-child {
  margin-top: 0;
  max-width: min(920px, calc(100vw - 48px));
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  overflow: visible;
}

.article-body > figure:first-child img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body.single-post .article-single__eyecatch,
body.single-post .article-body > figure:first-child {
  max-width: min(920px, calc(100vw - 48px)) !important;
  overflow: visible !important;
}

body.single-post .article-single__eyecatch img,
body.single-post .article-body > figure:first-child img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.article-single__tags {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-related {
  border-top: 1px solid var(--line);
  background: #f7fbff;
}

@media (max-width: 1320px) {
  .article-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 24px 34px;
  }

  .article-hero__copy {
    max-width: 640px;
  }

  .article-hero h1 {
    font-size: clamp(36px, 4.4vw, 52px);
  }

  .article-hero__visual {
    min-height: 190px;
  }

  .article-hero__panel {
    align-self: stretch;
  }
}

@media (max-width: 1020px) {
  .article-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "panel"
      "visual";
  }

  .featured-card,
  .article-single__layout {
    grid-template-columns: 1fr;
  }

  .article-hero__visual {
    min-height: 220px;
  }

  .article-grid,
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .article-hero,
  .article-featured,
  .article-list-section,
  .article-related,
  .article-archive-hero,
  .article-single__hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .article-hero h1,
  .article-archive-hero h1,
  .article-single__hero h1 {
    font-size: 32px;
    letter-spacing: 0;
  }

  .article-hero__panel {
    padding: 18px;
  }

  .article-search {
    grid-template-columns: 1fr;
  }

  .article-search button {
    width: 100%;
  }

  .article-filter-band {
    padding: 22px 20px;
  }

  .article-section-head {
    display: block;
  }

  .article-section-head h2 {
    font-size: 25px;
  }

  .article-grid,
  .article-sidebar,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .article-hero__visual {
    min-height: 190px;
  }

  .article-card {
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .featured-card__body,
  .article-card__body {
    padding: 20px;
  }

  .featured-card h2 {
    font-size: 23px;
  }

  .article-single__layout {
    padding: 38px 20px 54px;
  }

  .article-single__eyecatch {
    margin-top: 22px;
    max-width: calc(100vw - 32px);
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }
}
