/*
Theme Name: BDSM Tokyo
Theme URI: https://example.com/
Author: BDSM Tokyo
Description: Bilingual EN/JA WordPress theme for a private BDSM members’ club in Tokyo. Lasiora-like layout, 18+ age gate, Rate & Charge page.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: black-velvet
*/

:root {
  --ink: #2c2c2c;
  --muted: #848484;
  --text: #333;
  --line: #f1f1f1;
  --max: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Poppins', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; letter-spacing: 1px; font-weight: 500; }
a:hover { color: rgba(44, 44, 44, 0.8); }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: 1px; margin: 0 0 15px; font-weight: 500; }
p { font-size: 16px; margin: 0 0 15px; }

.container {
  width: min(var(--max), calc(100% - 30px));
  margin: 0 auto;
}

.site-header { padding-top: 50px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.logo-text { white-space: nowrap; }

#menu-trigger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}
#menu-trigger span,
#menu-trigger span:before,
#menu-trigger span:after {
  background: #333;
  width: 25px;
  height: 2px;
  position: absolute;
  left: 7px;
  transition: 0.3s;
}
#menu-trigger span { top: 19px; }
#menu-trigger span:before,
#menu-trigger span:after { content: ''; left: 0; }
#menu-trigger span:before { top: -8px; }
#menu-trigger span:after { top: 8px; }
#menu-trigger.open span { background: transparent; }
#menu-trigger.open span:before { transform: translateY(8px) rotate(-45deg); }
#menu-trigger.open span:after { transform: translateY(-8px) rotate(45deg); }

#main-menu ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
#main-menu a {
  color: rgba(44, 44, 44, 0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 70px;
  text-transform: uppercase;
}
#main-menu a:hover,
#main-menu a.lang-switch { color: var(--ink); }

.hero-banner {
  margin-top: 50px;
  background: #ddd;
  position: relative;
}
.hero-banner img { width: 100%; }
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  right: 6%;
  bottom: 12%;
  text-align: right;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero-line {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.hero-join {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0;
}

.page-title { padding: 40px 0 10px; }
h1.heading {
  font-size: 38px;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: 1px;
}
h1.heading strong { font-weight: 500; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 10px 0 28px;
}
.filters button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
}
.filters button.is-active,
.filters button:hover { color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3 / 4;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-caption {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tile:hover .tile-caption { opacity: 1; }
.tile-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.tile-desc {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4px;
  color: #cecece;
  line-height: 1.55;
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  margin: 55px 0 80px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.story h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 22px;
}
.project-meta {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}
.project-meta li,
.project-meta a {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 18px;
}
.project-meta span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.project-meta a:hover { color: var(--ink); }

#sitemap-footer {
  border-top: 1px solid #eee;
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
#sitemap-footer h4 {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
#sitemap-footer ul { list-style: none; margin: 0; padding: 0; }
#sitemap-footer li,
#sitemap-footer a {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
#sitemap-footer a:hover { color: var(--ink); }
#footer { border-top: 1px solid #333; }
.copyrights {
  text-align: center;
  color: #999;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 20px 0;
}
.copyrights p { margin: 0; }

.inner-page { padding: 50px 0 90px; }
.kicker {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
.lead { font-size: 18px; color: var(--ink); max-width: 720px; margin-bottom: 40px; }
.rule-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.rule-list b { color: var(--ink); font-weight: 500; }
.rule-list h2 { font-size: 20px; margin: 0 0 6px; }
.rule-list p { margin: 0; color: var(--muted); }
.notice {
  border: 1px solid #ddd;
  padding: 22px;
  margin-top: 30px;
  color: #666;
  font-size: 14px;
}
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.faq p { color: var(--muted); max-width: 800px; margin: 12px 0 0; }
.member-page { display: grid; place-items: start center; }
.member-card { width: min(480px, 100%); }
label { display: block; font-size: 13px; margin: 24px 0 8px; color: var(--ink); }
input {
  width: 100%;
  border: 1px solid #e9e9e9;
  padding: 12px 15px;
  font: inherit;
  margin-bottom: 16px;
}
input:focus { outline: none; border-color: #c1c1c1; }
.form-message { color: var(--ink); font-size: 14px; min-height: 1.4em; }
.access-meta { max-width: 420px; }
.rate-heading {
  font-size: 18px;
  margin: 36px 0 14px;
}
.rate-table {
  width: min(720px, 100%);
  border-collapse: collapse;
  font-size: 15px;
}
.rate-table th,
.rate-table td {
  border-top: 1px solid var(--line);
  padding: 14px 12px 14px 0;
  text-align: left;
  font-weight: 400;
}
.rate-table thead th { font-weight: 500; color: var(--ink); }
.rate-table tbody th { font-weight: 500; color: var(--ink); width: 50%; }
.rate-table td { color: var(--muted); }
.rate-notes {
  max-width: 720px;
  padding-left: 18px;
  color: var(--muted);
}
.rate-notes li { margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; }
.full { width: 100%; }

.age-gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f7f4ee;
  padding: 24px;
}
.age-card {
  max-width: 520px;
  text-align: center;
  border: 1px solid #e5e5e5;
  padding: 48px 36px;
  background: #fff;
}
.age-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border: 1px solid #ddd;
}
.age-stamp {
  display: inline-block;
  border: 2px solid #b00020;
  color: #b00020;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  margin: 0 0 16px;
}
.age-lead {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.age-error {
  background: #fff4f4;
  border: 1px solid #b00020;
  color: #b00020;
  padding: 10px 12px;
  font-size: 14px;
}
.lang-pick {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
}
.lang-opt { cursor: pointer; }
.lang-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lang-opt span {
  display: block;
  min-width: 108px;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  letter-spacing: 1px;
}
.lang-opt input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.lang-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.logo-type {
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}
.age-card h1 { font-size: 32px; font-weight: 300; line-height: 1.2; }
.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
}
.age-actions .btn { width: 100%; }

.tile.is-hidden { display: none; }

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .home-split, .footer-grid { grid-template-columns: 1fr 1fr; }
  h1.heading { font-size: 28px; line-height: 38px; }
}
@media (max-width: 800px) {
  .site-header { padding-top: 20px; }
  #menu-trigger { display: block; }
  #main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 20;
    padding: 10px 0 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  #main-menu.open { display: block; }
  #main-menu ul { flex-direction: column; gap: 0; align-items: stretch; }
  #main-menu a { line-height: 44px; padding: 0 8px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .home-split, .footer-grid { grid-template-columns: 1fr; }
  .hero-line { font-size: 16px; }
  .hero-join { font-size: 22px; }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .logo-text { display: none; }
}
