/*
Theme Name: Pop Culture Class
Theme URI: https://pop-culture-class.com/
Author: Mottu Design
Description: ポップカルチャー教室の講座案内・更新情報サイト用テーマ。
Version: 0.4.15
Text Domain: pop-culture-class
*/

:root {
  --pcc-ink: #241c1a;
  --pcc-paper: #ffffff;
  --pcc-white: #ffffff;
  --pcc-soft: #f6f5f2;
  --pcc-red: #ff1e00;
  --pcc-blue: #1856ff;
  --pcc-yellow: #fff000;
  --pcc-muted: #625d5a;
  --pcc-line: #241c1a;
  --pcc-radius: 18px;
  --pcc-shadow: 6px 6px 0 var(--pcc-ink);
  --pcc-content: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--pcc-ink);
  background: var(--pcc-paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

body.nav-open {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--pcc-red);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

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

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--pcc-ink);
  background: var(--pcc-white);
  border: 2px solid var(--pcc-ink);
}

.site-shell {
  width: min(calc(100% - 40px), var(--pcc-content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--pcc-ink);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--pcc-ink);
  text-decoration: none;
}

.custom-logo {
  display: block;
  max-width: 292px;
  max-height: 64px;
  width: auto;
}

.site-branding__fallback {
  display: grid;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-branding__fallback small {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--pcc-ink);
  background: var(--pcc-yellow);
  border: 2px solid var(--pcc-ink);
  border-radius: 999px;
  font-weight: 800;
}

.primary-menu,
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--pcc-red);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 9px solid var(--pcc-ink);
  background:
    radial-gradient(circle, rgba(36, 28, 26, 0.13) 1.2px, transparent 1.4px) 0 0 / 18px 18px,
    var(--pcc-white);
}

.hero::before {
  content: "";
  position: absolute;
  left: -110px;
  top: 110px;
  width: 220px;
  aspect-ratio: 1;
  background: var(--pcc-red);
  border: 3px solid var(--pcc-ink);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -145px;
  width: 320px;
  aspect-ratio: 1;
  background: var(--pcc-blue);
  border: 3px solid var(--pcc-ink);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 50px;
  padding-block: 62px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 690px);
  margin: 0 0 30px;
  background: var(--pcc-white);
}

.hero__eyebrow,
.section-heading__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__eyebrow {
  display: inline-block;
  padding: 3px 11px;
  background: var(--pcc-yellow);
  border: 2px solid var(--pcc-ink);
  border-radius: 999px;
}

.hero__title {
  max-width: 790px;
  margin: 0;
  font-size: clamp(43px, 7.4vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero__lead {
  max-width: 690px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.hero__visual {
  position: relative;
  align-self: end;
  min-width: 0;
  padding: 0 12px 64px 0;
}

.hero__character-wrap {
  position: relative;
  overflow: hidden;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: 48% 48% 24px 24px;
  box-shadow: 9px 9px 0 var(--pcc-yellow);
}

.hero__character {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.hero__bubble {
  position: absolute;
  right: -28px;
  bottom: 120px;
  z-index: 2;
  width: min(72%, 270px);
  padding: 20px 18px;
  text-align: center;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: 50%;
  box-shadow: var(--pcc-shadow);
  transform: rotate(3deg);
}

.hero__bubble::after {
  content: "";
  position: absolute;
  left: 24%;
  top: -18px;
  width: 34px;
  height: 34px;
  background: var(--pcc-white);
  border-top: 3px solid var(--pcc-ink);
  border-left: 3px solid var(--pcc-ink);
  transform: skew(-12deg) rotate(45deg);
}

.hero__bubble strong {
  display: block;
  color: var(--pcc-red);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.35;
}

.section {
  padding-block: 88px;
}

.section--white {
  background: var(--pcc-white);
}

.section--blue {
  background: var(--pcc-soft);
  border-block: 3px solid var(--pcc-ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-title,
.entry-title {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.page-title__line {
  display: block;
}

.section-heading h2::after,
.page-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 8px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--pcc-red) 0 33.333%, var(--pcc-yellow) 33.333% 66.666%, var(--pcc-blue) 66.666%);
  border: 2px solid var(--pcc-ink);
}

.button,
.wp-block-button__link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  color: var(--pcc-white);
  background: var(--pcc-blue);
  border: 2px solid var(--pcc-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pcc-red);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button[type="submit"]:hover {
  color: var(--pcc-ink);
  background: var(--pcc-yellow);
}

.prose .wp-block-button__link {
  color: var(--pcc-white);
}

.prose .wp-block-button__link:hover {
  color: var(--pcc-ink);
  background: var(--pcc-yellow);
}

.button--light {
  color: var(--pcc-ink);
  background: var(--pcc-white);
}

.button--disabled {
  color: #565656;
  background: #e5e5e5;
  border-color: #777;
  box-shadow: none;
  cursor: not-allowed;
}

.button--disabled:hover {
  color: #565656;
  background: #e5e5e5;
}

.news-list {
  border-top: 3px solid var(--pcc-ink);
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--pcc-ink);
}

.news-item time {
  color: var(--pcc-muted);
  font-size: 14px;
  font-weight: 800;
}

.news-item a {
  font-weight: 800;
  text-decoration: none;
}

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

.lecture-card {
  position: relative;
  overflow: hidden;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: var(--pcc-radius);
  box-shadow: var(--pcc-shadow);
}

.lecture-card__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pcc-yellow);
  border-bottom: 3px solid var(--pcc-ink);
}

.lecture-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.lecture-card:hover .lecture-card__image img {
  transform: scale(1.025);
}

.lecture-card__body {
  padding: 24px;
}

.lecture-card__title {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.5;
}

.lecture-card__title a {
  text-decoration: none;
}

.lecture-card__date,
.lecture-card__summary {
  margin: 0;
}

.lecture-card__date {
  font-size: 14px;
  font-weight: 800;
}

.lecture-card__summary {
  margin-top: 12px;
  color: #383838;
  font-size: 14px;
}

.status-label {
  display: inline-flex;
  padding: 4px 10px;
  color: var(--pcc-white);
  background: var(--pcc-red);
  border: 2px solid var(--pcc-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.status-label--archive {
  color: var(--pcc-ink);
  background: var(--pcc-yellow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 54px;
  align-items: center;
}

.intro-panel__copy {
  min-width: 0;
  font-size: 18px;
}

.intro-panel__mark {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: var(--pcc-radius);
  box-shadow: 8px 8px 0 var(--pcc-blue);
  transform: rotate(-2deg);
}

.intro-panel__mark img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.page-header {
  padding-block: 70px 54px;
  background:
    linear-gradient(90deg, var(--pcc-red) 0 33.333%, var(--pcc-yellow) 33.333% 66.666%, var(--pcc-blue) 66.666%) left bottom / 100% 8px no-repeat,
    radial-gradient(circle, rgba(36, 28, 26, 0.14) 1.2px, transparent 1.4px) 0 0 / 18px 18px,
    var(--pcc-white);
  border-bottom: 3px solid var(--pcc-ink);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.page-header__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.page-header__character {
  flex: 0 0 170px;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-height: 180px;
  overflow: hidden;
}

.page-header__character-image {
  display: block;
  width: auto;
  height: 190px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.content-area {
  padding-block: 70px 100px;
}

.prose {
  max-width: 820px;
  font-size: 17px;
}

.content-area > .prose {
  margin-inline: auto;
}

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

.prose h2 {
  margin-top: 2.4em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--pcc-ink);
  font-size: 30px;
  line-height: 1.4;
}

.prose h3 {
  margin-top: 2em;
  font-size: 22px;
}

.prose a {
  color: var(--pcc-blue);
}

.prose blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  background: #f1f4ff;
  border-left: 7px solid var(--pcc-blue);
}

.lecture-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 50px;
  align-items: start;
}

.lecture-detail__visual {
  overflow: hidden;
  background: var(--pcc-yellow);
  border: 3px solid var(--pcc-ink);
  border-radius: var(--pcc-radius);
  box-shadow: var(--pcc-shadow);
}

.lecture-detail__visual img {
  display: block;
  width: 100%;
}

.lecture-facts {
  padding: 28px;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: var(--pcc-radius);
}

.lecture-facts dl {
  margin: 0;
}

.lecture-facts dt {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 900;
}

.lecture-facts dt:first-child {
  margin-top: 0;
}

.lecture-facts dd {
  margin: 5px 0 0;
  white-space: pre-line;
}

.lecture-facts .button {
  width: 100%;
  margin-top: 28px;
}

.lecture-body {
  max-width: 820px;
  margin: 70px auto 0;
}

.archive-group + .archive-group {
  margin-top: 80px;
}

.archive-group__title {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 16px;
  background: var(--pcc-yellow);
  border: 2px solid var(--pcc-ink);
  font-size: 24px;
}

.empty-state {
  padding: 36px;
  background: var(--pcc-white);
  border: 2px dashed var(--pcc-ink);
  border-radius: var(--pcc-radius);
}

.contact-form {
  max-width: 760px;
  margin-inline: auto;
  padding: 34px;
  background: var(--pcc-white);
  border: 3px solid var(--pcc-ink);
  border-radius: var(--pcc-radius);
  box-shadow: var(--pcc-shadow);
}

.contact-form__field {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 900;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--pcc-ink);
  background: var(--pcc-soft);
  border: 2px solid var(--pcc-ink);
  border-radius: 8px;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 4px solid rgba(24, 86, 255, 0.28);
  outline-offset: 1px;
}

.contact-form__required {
  color: #b52118;
  font-size: 12px;
}

.contact-form__challenge input[type="number"] {
  width: min(100%, 180px);
}

.contact-form__challenge small {
  display: block;
  margin-top: 6px;
  color: var(--pcc-muted);
}

.form-notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 2px solid var(--pcc-ink);
  border-radius: 8px;
  font-weight: 800;
}

.form-notice--success {
  background: #dcf7e4;
}

.form-notice--error {
  background: #ffe3df;
}

.social-links {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--pcc-white);
  background: var(--pcc-blue);
  border: 2px solid var(--pcc-ink);
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--pcc-ink);
  background: var(--pcc-yellow);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.site-footer {
  color: var(--pcc-white);
  background: var(--pcc-ink);
  border-top: 8px solid;
  border-image: linear-gradient(90deg, var(--pcc-red) 0 33.333%, var(--pcc-yellow) 33.333% 66.666%, var(--pcc-blue) 66.666%) 1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-block: 54px;
}

.site-footer__title {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
}

.site-footer__meta {
  margin: 8px 0 0;
  color: #d8d8d8;
  font-size: 13px;
}

.footer-menu {
  justify-content: flex-end;
}

.footer-menu a {
  color: var(--pcc-white);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero__inner,
  .intro-panel,
  .lecture-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner {
    min-height: auto;
    gap: 40px;
  }

  .hero__visual {
    width: min(100%, 500px);
    padding-right: 0;
  }

  .hero__bubble {
    bottom: 110px;
    width: min(74%, 270px);
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 110;
    display: none;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 20px 34px;
    background: var(--pcc-paper);
    border-bottom: 3px solid var(--pcc-ink);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 0;
  }

  .primary-menu a {
    padding: 13px 4px;
    border-bottom: 1px solid #c5c5c5;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(calc(100% - 26px), var(--pcc-content));
  }

  .site-header__inner {
    min-height: 70px;
    gap: 12px;
  }

  .custom-logo {
    max-width: min(180px, calc(100vw - 145px));
    max-height: 48px;
  }

  .site-navigation {
    max-height: calc(100dvh - 70px);
  }

  .hero__inner,
  .section,
  .content-area {
    padding-block: 58px;
  }

  .hero::before {
    left: -135px;
    top: 270px;
    width: 220px;
  }

  .hero::after {
    right: -125px;
    bottom: -125px;
    width: 280px;
  }

  .hero__title {
    font-size: clamp(40px, 13vw, 62px);
  }

  .hero__logo {
    width: min(100%, 360px);
    margin-bottom: 22px;
  }

  .hero__visual {
    width: min(100%, 420px);
    margin-inline: auto;
    padding-bottom: 62px;
  }

  .hero__bubble {
    right: 4px;
    bottom: 78px;
    width: min(72%, 235px);
    padding: 18px 14px;
  }

  .hero__bubble strong {
    font-size: 18px;
  }

  .intro-panel__mark {
    width: 100%;
    transform: none;
  }

  .intro-panel .page-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .section-heading {
    display: block;
  }

  .section-heading .button {
    margin-top: 20px;
  }

  .news-item,
  .lecture-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .news-item {
    gap: 3px;
  }

  .lecture-grid {
    gap: 22px;
  }

  .page-header {
    padding-block: 48px 40px;
  }

  .page-header__inner {
    align-items: flex-end;
    gap: 12px;
  }

  .page-header__character {
    flex-basis: 92px;
    max-height: 120px;
  }

  .page-header__character-image {
    height: 125px;
  }

  .contact-form {
    padding: 22px 17px;
  }

  .site-footer__inner {
    align-items: start;
  }

  .footer-menu {
    display: grid;
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
