/*
Theme Name: Simple White
Description: 白背景のシンプルなブログテーマ。項目一覧から詳細ページへ遷移できる。
Version: 1.9
Requires PHP: 7.4
Text Domain: simple-white
*/

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --accent: #2563eb;
  --muted: #6b7280;
  --border: #e5e7eb;
  --hover-bg: #f9fafb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-header__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.site-header__title a:hover {
  color: var(--accent);
}

.site-header__nav a {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 1.5rem;
  transition: color 0.15s;
}

.site-header__nav a:hover {
  color: var(--accent);
}

/* ── Layout ── */
.site-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* ── Page title ── */
.page-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fg);
}

/* ── Post list ── */
.post-list {
  list-style: none;
}

.post-list__item {
  border-bottom: 1px solid var(--border);
}

.post-list__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  transition: background 0.15s;
  border-radius: 4px;
}

.post-list__link:hover {
  background: var(--hover-bg);
  padding-left: 0.75rem;
}

/* パッケージ画像は表裏の見開きなので、右寄せで切り抜いて表紙を見せる */
.post-list__thumb {
  flex-shrink: 0;
  width: 70px;
  aspect-ratio: 7 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--hover-bg);
}

.post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.post-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.post-list__date {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.post-list__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}

.post-list__arrow {
  flex-shrink: 0;
  color: var(--border);
  font-size: 1rem;
  transition: color 0.15s, transform 0.15s;
}

.post-list__link:hover .post-list__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Pagination ── */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Single post ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header__date {
  font-size: 0.83rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

.post-header__title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── Featured image ── */
.post-thumbnail {
  margin: 0 0 2rem;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.post-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

/* ── PR notice ── */
.pr-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--hover-bg);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.pr-notice__label {
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  background: var(--muted);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pr-notice__text a {
  color: var(--muted);
  text-decoration: underline;
}

.pr-notice__text a:hover {
  color: var(--accent);
}

.post-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}

.post-content p a,
.post-content li a {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.post-content p a:hover,
.post-content li a:hover {
  text-decoration: none;
}

.post-content .wp-block-gallery img {
  margin: 0;
}

/* ── CTA button ── */
.cta {
  margin: 2rem 0 2.5rem;
}

.cta--bottom {
  margin: 2rem 0 0;
}

.cta .cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.1rem 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.cta .cta__btn:hover,
.cta .cta__btn:focus-visible {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
  text-decoration: none;
}

.cta__label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta__sub {
  font-size: 0.78rem;
  opacity: 0.88;
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.breadcrumb li {
  display: flex;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.5rem;
}

.breadcrumb li[aria-current] {
  flex: 1 1 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ── Cast under the title ── */
.post-cast {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-cast a {
  color: var(--accent);
  font-weight: 500;
}

.post-cast a:hover {
  text-decoration: underline;
}

/* ── Sections after the article ── */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

.work-spec,
.related,
.actress-index {
  margin-top: 3rem;
}

.work-spec__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.work-spec__table th,
.work-spec__table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.work-spec__table th {
  width: 7.5em;
  white-space: nowrap;
  font-weight: 500;
  color: var(--muted);
  background: var(--hover-bg);
}

.work-spec__table a {
  color: var(--accent);
}

.work-spec__table a:hover {
  text-decoration: underline;
}

.work-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem 1rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card__cover {
  display: block;
  aspect-ratio: 7 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--hover-bg);
}

.work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  transition: transform 0.2s;
}

.work-card:hover .work-card__cover img {
  transform: scale(1.03);
}

.work-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.5;
}

.work-card:hover .work-card__title {
  color: var(--accent);
}

.related__more {
  margin-top: 1rem;
  text-align: right;
  font-size: 0.88rem;
}

.related__more a {
  color: var(--accent);
}

.related__more a:hover {
  text-decoration: underline;
}

/* ── Actress index & archive header ── */
.actress-index__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.actress-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  transition: border-color 0.15s, color 0.15s;
}

.actress-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.actress-chip__count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.archive-header {
  margin-bottom: 2rem;
}

.archive-header .page-heading {
  margin-bottom: 0.75rem;
}

.archive-header__ruby {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.archive-header__intro,
.archive-header__desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444;
}

.archive-header__desc {
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .cta .cta__btn,
  .work-card__cover img {
    transition: background 0.15s;
  }

  .cta .cta__btn:hover,
  .cta .cta__btn:focus-visible,
  .work-card:hover .work-card__cover img {
    transform: none;
  }
}

.post-content blockquote {
  border-left: 3px solid var(--border);
  padding: 0.5rem 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

/* ── Age gate ── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 15, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.age-gate__box {
  background: var(--bg);
  border-radius: 8px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
}

.age-gate__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fg);
}

.age-gate__lead {
  font-size: 0.92rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 1.25rem;
}

.age-gate__question {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.age-gate__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.age-gate__btn--yes {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.age-gate__btn--yes:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.age-gate__btn--no {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.age-gate__btn--no:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.age-gate__note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
}

.age-gate__note a {
  color: var(--muted);
  text-decoration: underline;
}

.age-gate__note a:hover {
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__nav {
  margin-bottom: 1.25rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-menu a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-menu a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__copy {
  color: var(--muted);
}
