/*
Theme Name: Lovers Fanclub
Description: MASAYUKI SUZUKI Official Fanclub "Lovers" のオリジナルテーマ
Author: Lovers
Version: 1.0.0
*/

:root {
  --purple-dark: #8c5996;
  --purple-light: #d4b2dc;
  --purple-pale: #f4ebf6;
  --text-dark: #222222;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text-dark);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Header */
.header-bar {
  background: var(--purple-dark);
  padding: 10px;
  text-align: center;
}

.header-logo img {
  height: 40px;
  margin: 0 auto;
}

.hamburger-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.hamburger-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #f4ebf6;
  border-radius: 2px;
}

.lovers-band {
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 12px;
}

.lovers-band .mascot {
  width: auto;
  height: 94px;
}

.lovers-band .lovers-logo {
  height: 85px;
  width: auto;
}

.site-nav {
  background: var(--purple-pale);
  padding: 12px 16px;
  margin-bottom: 50px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.nav-menu a {
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.nav-menu a:hover {
  color: var(--purple-dark);
}

/* Hero */
.hero {
  position: relative;
  max-width: 720px;
  margin: 0 auto 70px;
}

.hero img {
  width: 100%;
  height: auto;
}

.hero-caption-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 70px;
  padding: 0 16px;
}

.cta {
  flex: 1;
  display: block;
  text-align: center;
  padding: 28px 16px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
}

.cta-photo {
  background: var(--purple-dark);
}

.cta-song {
  background: var(--purple-light);
  color: var(--text-dark);
}

.cta:hover {
  opacity: 0.7;
}

/* What's New */
.whats-new {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.whats-new h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 8px;
}

.whats-new ul,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.whats-new li {
  display: grid;
  grid-template-columns: 80px 130px 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.whats-new li a {
  font-size: 14px;
  text-align: left;
}

.whats-new li a:hover {
  color: #8c5996;
}

.wn-date,
.post-date {
  color: #888;
  flex-shrink: 0;
  font-size: 12px;
}

.wn-category {
  background: #f4ebf6;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--text-dark);
  flex-shrink: 0;
  white-space: nowrap;
  width: fit-content;
}

.wn-category--photo-diary {
  background: #d9edff;
}

.wn-category--monthly-song {
  background: #e9f2df;
}

.whats-new-more {
  text-align: center;
  margin-top: 40px;
}

.whats-new-more a {
  display: inline-block;
  background: var(--purple-light);
  border-radius: 5px;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 14px;
}

.whats-new-more a:hover {
  opacity: 0.7;
}

/* Generic page content */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 16px 64px;
}

.page-title {
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 8px;
}

.archive-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 8px;
}

.archive-header .page-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.archive-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border: 1.5px solid var(--purple-dark);
  border-radius: 20px;
  color: var(--purple-dark);
  font-weight: bold;
  font-size: 14px;
  background: #fff;
}

.category-switch:hover {
  opacity: 0.7;
}

.year-filter select {
  padding: 6px 10px;
  border: 1px solid var(--purple-light);
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
}

.post-body {
  line-height: 1.8;
}

/* Archive post list (category pages) */
.archive-post {
  padding: 32px 0;
  border-bottom: 1px solid #ddd;
}

.archive-post:last-child {
  border-bottom: none;
}

.archive-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--purple-dark);
  padding: 6px 16px;
  margin-bottom: 15px;
}

.archive-post-header .archive-post-title {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.archive-post-header .post-date {
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
}

.archive-post .post-thumb {
  margin: 12px 0;
}

.archive-post .post-body {
  line-height: 1.8;
}

.archive-post .post-body figure {
  margin-bottom: 30px;
}

.archive-post .post-body img {
  margin-bottom: 0;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4ebf6;
  color: var(--text-dark);
}

.pagination .page-numbers:hover {
  background: #d4b2dc;
}

.pagination .page-numbers.current {
  background: #8c5996;
  color: #fff;
}

.pagination .page-numbers.dots {
  background: transparent;
}

/* Fan Mail form */
.cf7-name-row {
  margin-bottom: 28px;
}

.cf7-name-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.cf7-name-row .cf7-name-title p,
.cf7-name-row .cf7-name-fields p {
  margin: 0;
}

.cf7-required {
  color: #e53e3e;
  margin-left: 2px;
}

.cf7-name-fields p {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cf7-name-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cf7-name-row .cf7-name-field input {
  width: 260px;
}

.wpcf7-form p {
  margin: 0 0 28px;
}

.cf7-field {
  display: block;
}

.cf7-field-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #8c5996;
}

.cf7-name-row .cf7-name-field .wpcf7-form-control {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.cf7-name-row .cf7-name-field .wpcf7-form-control:focus {
  outline: none;
  border-color: #8c5996;
}

/* Q&A */
.qa-category {
  margin-bottom: 48px;
}

.qa-category:last-child {
  margin-bottom: 0;
}

.qa-category-title {
  font-size: 18px;
  color: var(--purple-dark);
  border-bottom: 2px solid var(--purple-light);
  padding-bottom: 8px;
  margin: 0 0 8px;
}

.qa-list {
  margin: 0;
}

.qa-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  margin: 0;
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-q,
.qa-a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.qa-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.qa-text {
  flex: 1;
}

.qa-q {
  font-weight: bold;
}

.qa-q .qa-mark {
  background: var(--purple-dark);
  color: #fff;
}

.qa-a {
  color: var(--text-dark);
  line-height: 1.8;
}

.qa-a .qa-mark {
  background: var(--purple-pale);
  color: var(--purple-dark);
}

.qa-a .qa-text p {
  margin: 0 0 8px;
}

.qa-a .qa-text p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--purple-dark);
  color: #fff;
  text-align: center;
  padding: 5px;
  font-size: 13px;
}

.footer-mobile-break {
  display: none;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo img {
    height: 32px;
  }

  .hamburger-toggle {
    display: flex;
  }

  .lovers-band {
    gap: 16px;
    padding: 12px 8px;
    margin-top: 52px;
  }

  .lovers-band .mascot {
    height: 50px;
  }

  .lovers-band .lovers-logo {
    height: 45px;
  }

  .site-nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-menu a {
    display: block;
    padding: 14px 20px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .hero-caption-overlay {
    font-size: 11px;
    line-height: 1.4;
  }

  .cta-row {
    margin-bottom: 40px;
  }

  .cta {
    font-size: 13px;
    padding: 15px 10px;
  }

  .whats-new li {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date category"
      "title title";
    row-gap: 6px;
  }

  .whats-new li .wn-date {
    grid-area: date;
    justify-self: start;
  }

  .whats-new li .wn-category {
    grid-area: category;
    justify-self: end;
    font-size: 10px;
  }

  .whats-new li a {
    grid-area: title;
  }

  .site-footer {
    padding: 5px;
    font-size: 10px;
  }

  .footer-mobile-break {
    display: inline;
  }

  h1.page-title {
    font-size: 18px;
  }
}
