:root {
  --green: #3cdebf;
  --green-dark: #16a58f;
  --pink: #fc5590;
  --pink-soft: #fff1f6;
  --ink: #22252a;
  --text: #4b4b4b;
  --muted: #848484;
  --line: #ededed;
  --paper: #ffffff;
  --wash: #f7fbfa;
  --yellow: #ffce00;
  --shadow: 0 12px 30px rgba(45, 55, 72, 0.12);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(60, 222, 191, 0.08), transparent 28%, transparent 72%, rgba(252, 85, 144, 0.08)),
    #f4f6f8;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.04);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: env(safe-area-inset-top) 8px 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.header-icon:first-child {
  color: var(--yellow);
}

.top-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.top-pill {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.top-pill span {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.top-pill strong {
  font-size: 1rem;
  line-height: 1.1;
}

.top-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #76f7de 0%, var(--green) 100%);
  box-shadow: 0 4px 10px rgba(60, 222, 191, 0.32);
}

#app {
  min-height: calc(100vh - 52px);
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  outline: none;
}

.page {
  padding: 12px 8px 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.breadcrumb span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.hero-banner {
  position: relative;
  display: block;
  height: 96px;
  margin: 9px 0 14px;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 36, 38, 0.86), rgba(60, 222, 191, 0.42)),
    url("./assets/ren_01.jpg") center 22% / cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.28));
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: 72%;
  height: 100%;
  padding: 12px 14px;
}

.hero-banner small {
  width: fit-content;
  padding: 3px 7px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.hero-banner strong {
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.search-card svg {
  width: 22px;
  color: var(--green-dark);
}

.search-card input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 1.4rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
}

.section-head a,
.section-head button {
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.avatar-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78px;
  gap: 5px;
  margin: 0 -8px 20px;
  padding: 0 8px 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.avatar-rail::-webkit-scrollbar {
  display: none;
}

.avatar-card {
  display: block;
  min-width: 0;
  text-align: center;
}

.avatar-photo {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 50%;
  background: #ddd center / cover;
  background-position: center 35%;
  background-size: cover;
}

.avatar-photo::after {
  content: "";
  position: absolute;
  inset: 68% 0 0;
  background: rgba(0, 0, 0, 0.52);
}

.avatar-area {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  z-index: 1;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.avatar-name {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  margin: 0 -8px 14px;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 10px;
}

.cast-card {
  min-width: 0;
  color: var(--text);
}

.cast-image {
  position: relative;
  display: block;
  aspect-ratio: 175 / 236;
  overflow: hidden;
  background: #ddd center / cover;
  background-position: center 35%;
  background-size: cover;
}

.cast-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent);
}

.area-label,
.status-label,
.rank-label {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 1.1rem;
  font-weight: 800;
}

.area-label {
  left: 0;
  bottom: 0;
}

.status-label {
  top: 0;
  right: 0;
  background: var(--pink);
}

.rank-label {
  top: 0;
  left: 0;
  background: #121212;
}

.cast-meta {
  display: block;
  padding-top: 7px;
}

.name-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.name-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.spec {
  overflow: hidden;
  margin: 1px 0 5px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.rating svg {
  width: 13px;
  height: 13px;
  color: var(--yellow);
  fill: var(--yellow);
}

.fee {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.fee small {
  color: var(--muted);
  font-size: 1rem;
}

.detail-hero {
  position: relative;
  min-height: 62vh;
  margin: -12px -8px 0;
  overflow: hidden;
  background: #222 center top / cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

.detail-back {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
}

.detail-info {
  position: absolute;
  right: 14px;
  bottom: 20px;
  left: 14px;
  z-index: 1;
  color: #fff;
}

.detail-info h1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 3rem;
  line-height: 1.1;
}

.detail-info h1 span {
  font-size: 1.4rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
}

.detail-tags span {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
  font-weight: 800;
}

.detail-body {
  padding: 18px 0 92px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.info-grid div {
  min-height: 58px;
  padding: 8px 5px;
  text-align: center;
  background: #fff;
}

.info-grid small {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.info-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.3rem;
}

.panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.6rem;
}

.panel p {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.8;
}

.gallery-panel {
  padding-right: 0;
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 130px;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 2px 0;
  scrollbar-width: none;
}

.gallery-rail::-webkit-scrollbar {
  display: none;
}

.gallery-photo {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: #ddd center 35% / cover;
}

.video-panel {
  padding: 14px;
}

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.sns-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--wash);
  font-size: 1.25rem;
  font-weight: 900;
}

.sns-links svg {
  width: 17px;
  height: 17px;
}

.x-timeline {
  min-height: 120px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.x-post-list {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.x-post-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.x-post-card img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.x-post-card span {
  min-width: 0;
}

.x-post-card.no-media span {
  grid-column: 1 / -1;
}

.x-post-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.x-post-card time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.x-post-empty {
  display: block;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--wash);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.timeline {
  display: grid;
  gap: 10px;
}

.time-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.time-row:last-child {
  border-bottom: 0;
}

.time-row strong {
  color: var(--green-dark);
  font-size: 1.25rem;
}

.time-row span {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.time-row em {
  color: var(--muted);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 800;
}

.reserve-bar {
  position: fixed;
  right: max(8px, calc((100vw - 430px) / 2 + 8px));
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: max(8px, calc((100vw - 430px) / 2 + 8px));
  z-index: 28;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-width: 414px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.reserve-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 10px;
  color: #fff;
  background: var(--pink);
  font-size: 1.3rem;
  font-weight: 900;
}

.reserve-bar a:first-child {
  color: var(--green-dark);
  background: var(--wash);
}

.plain-page {
  padding: 18px 14px 30px;
}

.page-title {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.25;
}

.lead {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.8;
}

.step-list,
.price-list,
.form-grid {
  display: grid;
  gap: 10px;
}

.step-item,
.price-item,
.form-box,
.schedule-card,
.blog-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-item b,
.price-item b,
.schedule-card b,
.blog-card b {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.35;
}

.step-item p,
.price-item p,
.schedule-card p,
.blog-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.7;
}

.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.price-item strong {
  color: var(--pink);
  font-size: 1.6rem;
}

.form-box label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline-color: var(--green);
}

.form-box textarea {
  min-height: 96px;
  resize: vertical;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--pink);
  font-weight: 900;
  cursor: pointer;
}

.mini-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-tabs a {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
}

.mini-tabs a.active {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}

.bottom-nav {
  position: fixed;
  right: max(0px, calc((100vw - 430px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 430px;
  height: calc(65px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 7px 0 env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.bottom-nav a.active {
  color: var(--green-dark);
}

.float-action {
  position: fixed;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 26;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 5px solid rgba(60, 222, 191, 0.46);
  border-radius: 50%;
  color: var(--green-dark);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.float-action svg {
  width: 30px;
  height: 30px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.36);
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: max(0px, calc((100vw - 430px) / 2));
  width: min(86vw, 330px);
  height: 100%;
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin: 12px auto 18px;
  border-radius: 50%;
}

.drawer-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  cursor: pointer;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)),
    url("./assets/fuwa_01.jpg") center top / cover;
  backdrop-filter: blur(10px);
}

.age-gate.hide {
  display: none;
}

.age-card {
  width: min(100%, 360px);
  padding: 24px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.age-card img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.age-card h1 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.8rem;
}

.age-card p {
  margin: 7px 0;
  font-size: 1.3rem;
  line-height: 1.6;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.age-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.age-actions button:last-child {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}

.empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 1.3rem;
}

@media (min-width: 720px) {
  .phone-shell {
    min-height: 860px;
  }
}
