:root {
  --bg: #0d0508;
  --bg-2: #1a0a10;
  --panel: rgba(40, 10, 20, 0.72);
  --line: rgba(255, 120, 170, 0.28);
  --pink: #ff5fa2;
  --pink-soft: #ffb3d1;
  --red: #c2183c;
  --gold: #e8c27a;
  --text: #f7eef2;
  --muted: #c9aab7;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(194, 24, 60, 0.35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255, 95, 162, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-soft); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: rgba(13, 5, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand img { height: 60px; width: auto; }
.site-header { padding-top: 6px; padding-bottom: 6px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em; font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--pink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 28px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13, 5, 8, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* layout */
main { max-width: 960px; margin: 0 auto; padding: 0 16px 64px; }
.page-title {
  text-align: center; margin: 48px 0 32px;
  font-family: var(--serif); font-size: clamp(28px, 6vw, 40px); letter-spacing: 0.16em;
  color: var(--pink-soft);
  text-shadow: 0 0 18px rgba(255, 95, 162, 0.55);
}
.page-title small {
  display: block; font-size: 14px; letter-spacing: 0.3em; color: var(--muted); text-shadow: none;
}
section { margin: 48px 0; }
h2 {
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; color: var(--pink-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 20px;
}
h2::before { content: "♡ "; color: var(--pink); }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: 0 0 30px rgba(194, 24, 60, 0.15);
}
.note { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(255, 95, 162, 0.35);
}
.btn.ghost { background: transparent; border: 1px solid var(--pink); box-shadow: none; color: var(--pink-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* top */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 32px; }
.hero img { border-radius: 14px; border: 1px solid var(--line); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); line-height: 1.5; margin: 0 0 16px;
  color: var(--pink-soft); text-shadow: 0 0 18px rgba(255, 95, 162, 0.55);
}
.first-price { margin: 20px 0; padding: 16px; border: 1px dashed var(--pink); border-radius: 12px; text-align: center; }
.first-price strong { font-family: var(--serif); font-size: 32px; color: var(--pink); }
.menu-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.menu-cards a {
  display: block; text-align: center; padding: 22px 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em;
}
.menu-cards a span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.05em; font-family: var(--sans); font-weight: 400; }
.menu-cards a:hover { border-color: var(--pink); }
.banner img { border-radius: 12px; border: 1px solid var(--line); }
.x-embed { max-width: 560px; margin: 0 auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .menu-cards { grid-template-columns: repeat(2, 1fr); }
  .menu-cards a:last-child { grid-column: 1 / -1; }
}

/* price tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 400; font-size: 14px; }
td.price { text-align: right; white-space: nowrap; font-weight: 700; color: var(--pink-soft); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-list li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.rules { padding-left: 1.2em; }
.rules li { margin: 6px 0; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* cast */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cast-card { text-align: center; }
.cast-card .photo {
  aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #2a0d18, #12060a);
  display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden;
}
.cast-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-card h3 { font-family: var(--serif); margin: 10px 0 2px; }

/* access */
.info dl { display: grid; grid-template-columns: 7em 1fr; gap: 10px 16px; margin: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 14px; }

/* recruit */
.recruit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.recruit-grid img { border-radius: 12px; border: 1px solid var(--line); }
.points { padding-left: 1.2em; }
@media (max-width: 760px) { .recruit-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 16px; text-align: center;
  background: rgba(13, 5, 8, 0.9); font-size: 14px; color: var(--muted);
}
.site-footer .sns { display: flex; justify-content: center; gap: 20px; margin: 12px 0 20px; }
.site-footer .sns a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-footer .sns a:hover { color: var(--pink); }
.site-footer img { height: 70px; width: auto; margin: 0 auto 12px; }

/* price plans */
.plan { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-name { font-family: var(--serif); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.plan-prices { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.plan-prices span { color: var(--muted); white-space: nowrap; }
.plan-prices b { font-family: var(--serif); font-size: 24px; color: var(--pink-soft); margin: 0 2px; }
.plan-prices em { font-style: normal; font-size: 13px; padding: 2px 10px; border-radius: 999px; margin-right: 6px; vertical-align: 3px; }
.plan-prices em.male { background: #9fd3f5; color: #10324a; }
.plan-prices em.female { background: #ffc6dd; color: #5a1030; }
.plan-prices span.wrap { white-space: normal; }
.plan-prices .nw { font-style: normal; white-space: nowrap; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid .panel { padding: 18px 20px; }
.feature-grid h3 { font-family: var(--serif); color: var(--pink-soft); margin: 0 0 6px; font-size: 18px; }
.feature-grid p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-left: 1.8em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; color: var(--pink); font-family: var(--serif); font-weight: 700; }
.faq details p { margin: 0 0 14px; padding-left: 1.8em; position: relative; }
.faq details p::before { content: "A"; position: absolute; left: 0; color: var(--gold); font-family: var(--serif); font-weight: 700; }

/* footer nav */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 8px 0 4px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.08em; }
.footer-nav a:hover { color: var(--pink); }

/* remote-site button in nav */
.nav a.nav-remote {
  padding: 6px 16px; border-radius: 999px; color: #fff; letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--pink), var(--red)); box-shadow: 0 2px 12px rgba(255, 95, 162, 0.4);
}
.nav a.nav-remote:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 1100px) and (min-width: 761px) { .nav { gap: 14px; } .nav a { font-size: 13px; letter-spacing: 0.06em; } }
@media (max-width: 760px) {
  .nav a.nav-remote { margin: 12px 20px; text-align: center; border-top: 0; padding: 12px; }
}

/* floating sns */
.sns-float {
  position: fixed; left: 14px; top: 92px; z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 8px 12px; border-radius: 999px;
  background: rgba(13, 5, 8, 0.9); border: 1px solid var(--pink);
  box-shadow: 0 0 18px rgba(255, 95, 162, 0.55);
}
.sns-label {
  font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; color: #fff;
  background: linear-gradient(135deg, #ffd166, var(--pink)); color: #3a0716;
  padding: 6px 8px; border-radius: 999px; white-space: nowrap;
  animation: sns-bounce 1.8s ease-in-out infinite;
}
.sns-float a {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--red)); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 14px rgba(255, 95, 162, 0.6);
  transition: transform .15s, filter .15s;
}
.sns-float a:hover { transform: scale(1.12); filter: brightness(1.15); }
.sns-float svg { width: 22px; height: 22px; }
@keyframes sns-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .sns-label { animation: none; } }
@media (max-width: 760px) {
  .sns-float { top: auto; bottom: 14px; left: 10px; flex-direction: row; gap: 8px; padding: 6px 8px; }
  .sns-label br.pc { display: none; }
  .sns-label { font-size: 12px; padding: 6px 10px; }
  .sns-float a { width: 42px; height: 42px; }
  .sns-float svg { width: 20px; height: 20px; }
}

.hero-kicker { display: block; font-size: 15px; letter-spacing: 0.12em; color: var(--gold); text-shadow: none; margin-bottom: 10px; line-height: 1.6; }

/* イベント告知枠（管理ページから更新。告知がない時は hidden のまま） */
.event-box[hidden] { display: none; }
.event-box {
  position: relative; padding: 16px; border-radius: 14px;
  border: 1px solid var(--pink); background: linear-gradient(160deg, rgba(90, 14, 44, 0.85), rgba(30, 8, 16, 0.9));
  box-shadow: 0 0 24px rgba(255, 95, 162, 0.25);
}
.event-label {
  display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px;
  background: var(--pink); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
}
.event-title { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.5; color: var(--pink-soft); }
.event-box .event-img { display: block; }
.event-box .event-img img {
  display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
}
.event-msg { margin: 10px 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; }
.event-msg:first-child { margin-top: 0; }
.hero.has-event { grid-template-areas: "img event" "img text"; grid-template-rows: auto 1fr; align-items: start; row-gap: 24px; }
.hero.has-event > img { grid-area: img; }
.hero.has-event > .event-box { grid-area: event; }
.hero.has-event > div:not(.event-box) { grid-area: text; }
@media (max-width: 760px) {
  .hero.has-event { grid-template-areas: "event" "img" "text"; grid-template-rows: auto; margin-top: 20px; }
  .event-box .event-img img { max-height: 70vh; }
}

/* キャスト一覧・個別ページ（写真は cast.js が読み込む） */
a.cast-card { display: block; text-decoration: none; color: var(--text); }
a.cast-card:hover .photo { border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 95, 162, 0.35); }
a.cast-card h3 { color: var(--pink-soft); letter-spacing: 0.08em; }
a.cast-card .note { margin: 0; font-size: 13px; }
.cast-card .photo, .cast-detail .photo, .cast-gallery .photo {
  background: linear-gradient(160deg, rgba(90, 14, 44, 0.6), rgba(30, 8, 16, 0.8));
}
.cast-card .photo:not(.loaded)::after, .cast-detail .photo:not(.loaded)::after { content: "♡"; color: var(--pink); opacity: 0.5; font-size: 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }
.cast-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; margin-top: 0; }
.cast-detail .photo {
  aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cast-detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-x { margin: 0 0 14px; }
.cast-x a { display: inline-block; padding: 4px 14px; border: 1px solid var(--pink); border-radius: 999px; text-decoration: none; font-size: 14px; }
.cast-prof { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.cast-prof dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.cast-prof dd { margin: 0; }
.cast-msg { margin-top: 22px; }
.cast-msg h2 { font-size: 18px; margin-bottom: 10px; }
.cast-msg p { margin: 0; white-space: pre-line; line-height: 1.9; overflow-wrap: anywhere; }
.cast-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cast-gallery > .note { grid-column: 1 / -1; text-align: center; }
.cast-gallery .photo {
  aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in;
}
.cast-gallery .photo:hover { border-color: var(--pink); }
.cast-gallery .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cast-gallery .photo:hover img { transform: scale(1.04); }
.cast-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 48px 0 0; font-size: 14px; }
.cast-pager > a:not(.btn) { text-decoration: none; }
@media (max-width: 760px) {
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cast-detail { grid-template-columns: 1fr; gap: 20px; }
  .cast-detail .photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .cast-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cast-pager .btn { padding: 10px 16px; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 10000; background: rgba(8, 2, 5, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 48px 56px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 0 40px rgba(255, 95, 162, 0.25); }
.lightbox button {
  position: absolute; background: rgba(40, 10, 20, 0.7); border: 1px solid var(--line); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox button[hidden] { display: none; }
.lightbox button:hover { border-color: var(--pink); color: var(--pink-soft); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-count { bottom: 22px; }
}

/* 店長・副店長（一覧の1段目） */
.cast-lead {
  display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 36px;
  margin: 0 auto 44px; padding: 30px 20px 26px; position: relative;
  border: 1px solid rgba(232, 194, 122, 0.45); border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 194, 122, 0.16), transparent 70%), rgba(40, 10, 20, 0.5);
  box-shadow: 0 0 40px rgba(232, 194, 122, 0.12) inset;
}
.cast-lead::before, .cast-lead::after {
  content: "✦"; position: absolute; top: 12px; color: var(--gold); font-size: 18px; opacity: 0.8;
}
.cast-lead::before { left: 18px; } .cast-lead::after { right: 18px; }
.cast-card.is-lead .photo {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(13, 5, 8, 0.9), 0 0 0 5px rgba(232, 194, 122, 0.55), 0 0 28px rgba(255, 95, 162, 0.45);
}
a.cast-card.is-lead:hover .photo { border-color: #ffe3a6; box-shadow: 0 0 0 4px rgba(13, 5, 8, 0.9), 0 0 0 5px rgba(232, 194, 122, 0.8), 0 0 34px rgba(255, 95, 162, 0.6); }
.cast-card.is-lead h3 { font-size: 22px; margin-top: 6px; }
.role-badge {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 4px 16px 5px;
  border-radius: 999px; background: linear-gradient(135deg, #f6dc9f, var(--gold) 45%, #b8893f);
  color: #2a0d16; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.12em;
  box-shadow: 0 2px 12px rgba(232, 194, 122, 0.4);
}
.role-badge small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; opacity: 0.75; }
.role-badge .crown { font-size: 16px; }
.page-title + .center .role-badge { margin-top: -18px; }
@media (max-width: 760px) {
  .cast-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 26px 12px 18px; margin-bottom: 32px; }
  .cast-card.is-lead h3 { font-size: 19px; }
  .role-badge { font-size: 13px; padding: 3px 10px 4px; gap: 4px; letter-spacing: 0.06em; }
  .role-badge small { display: none; }
}
