@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Shippori+Mincho:wght@500;600&display=swap');

:root {
  --gold: #c9a24a;
  --gold-soft: #e4c98a;
  --bg: #0b0b0c;
  --bg-panel: #141416;
  --line: #2a2a2c;
  --text: #f2f0ec;
  --text-dim: #9a968d;
  --off: #55524b;
  --header-h: 64px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  line-height: 1.7;
  letter-spacing: .04em;
  position: relative;
}

/* 管理画面で背景画像を設定した場合、画面最上部（1画面分の高さ）にだけ敷く。
   #bg-banner は position:absolute でドキュメント先頭に配置し、
   width:100vw のためPC幅で見た時の両サイドの黒い余白にも反映される。
   height を1画面分（100vh）に固定することで cover の基準がページ全体の
   高さにならず、画像が間延びして見えるのを防ぐ。
   position:fixed / background-attachment:fixed は使わない（iOSのアドレス
   バー表示/非表示時にガクつく問題があったため、absoluteで通常のスクロール
   に任せている）。 */
#bg-banner {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 480px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.has-bg-image #bg-banner {
  display: block;
}
body.has-bg-image .hero {
  background: rgba(11, 11, 12, .5);
}

/* 一覧・プロフィールの背景画像（管理画面で個別に設定）。
   セクション自体を画面幅いっぱいに広げて両サイドの黒い余白にも反映しつつ、
   実際のコンテンツは .section-inner で640px幅に再度収める。
   セクション全体（かなり縦長になる場合がある）に1枚の画像を引き伸ばすため、
   ホストの数が多いページでは画像がぼやけて見えることがある。 */
.list-section.has-section-bg,
.profile-section.has-section-bg {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.list-section.has-section-bg .section-inner,
.profile-section.has-section-bg .section-inner {
  max-width: 640px;
  margin-inline: auto;
  padding: 60px 20px 20px;
  background: rgba(11, 11, 12, .78);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

#wrapper {
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.section {
  padding: 60px 20px 20px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  letter-spacing: .2em;
  text-align: center;
  color: var(--gold-soft);
  margin-bottom: 28px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ── ヘッダー ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(11, 11, 12, .92);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  max-width: 640px;
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  letter-spacing: .3em;
  color: var(--gold-soft);
}

.menu-checkbox {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 44px;
  top: 10px;
  right: 12px;
  z-index: 110;
  cursor: pointer;
}
.hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--gold-soft);
  transition: all .25s ease;
  transform-origin: 0 0;
}
.menu-checkbox:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(1px, -2px);
}
.menu-checkbox:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-checkbox:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 2px);
}

/* ── ナビ オーバーレイ ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, .96);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  overflow-y: auto;
}
.menu-checkbox:checked ~ .nav-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-menu-list {
  max-width: 320px;
  margin: 0 auto;
  padding: 130px 24px 60px;
}
.nav-menu-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--gold-soft);
}
.nav-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 24px;
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
}

/* ── ヒーロー ── */
.hero {
  height: 100vh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,162,74,.12), transparent 60%),
    var(--bg);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-logo-img {
  max-width: 70%;
  max-height: 30vh;
  width: auto;
  height: auto;
}
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 9vw, 3.2rem);
  letter-spacing: .3em;
  color: var(--gold-soft);
}
.hero-copy {
  font-size: .85rem;
  letter-spacing: .5em;
  color: var(--text-dim);
  padding-left: .5em;
}
.hero-scroll {
  margin-top: 40px;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-dim);
}

/* ── 本日出勤 ── */
.working-section {
  padding-bottom: 10px;
}
.working-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.working-list::-webkit-scrollbar {
  display: none;
}
.working-list li {
  flex: 0 0 auto;
}
.working-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 78px;
}
.working-photo {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, .15);
}
.working-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.working-name {
  display: block;
  max-width: 100%;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.working-empty {
  width: 100%;
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
  padding: 20px 0;
}

/* ── 一覧 ── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: .8rem;
  letter-spacing: .1em;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 12px;
}
.host-grid li {
  min-width: 0;
}
.host-grid li.is-hidden {
  display: none;
}
.host-card {
  display: block;
  min-width: 0;
}
.host-card .photo-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 3.3;
  overflow: hidden;
  border: 1px solid var(--line);
}
.host-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}
[data-status="working"] .photo-wrap {
  box-shadow: 0 0 0 2px var(--gold);
}
.grid-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0b0b0c;
  font-size: .58rem;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.host-card .host-name {
  margin-top: 8px;
  text-align: center;
  font-size: .8rem;
}

/* ── 各プロフィール ── */
.profile-section {
  padding-top: 60px;
}
.profile-card {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  scroll-margin-top: var(--header-h);
}
.profile-card:first-child {
  border-top: none;
}
.profile-photo {
  width: 100%;
  margin: 0 0 14px;
  position: relative;
  overflow: hidden;
}
.profile-photo .status-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .65rem;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  z-index: 4;
}
.profile-slider-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.profile-slider-track::-webkit-scrollbar {
  display: none;
}
.profile-slider-track img,
.profile-slider-track video {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: start;
  display: block;
}
.profile-slider-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.profile-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.profile-slider-dot.active {
  background: var(--gold);
}
/* 画像自体は幅100%・高さ自動で全体を表示し、トリミングしない。
   通常時は名前だけを写真下端に軽く重ねる帯にとどめ、顔には被らない。
   名前をタップすると、詳細情報（ふりがな・出身地等・コメント・SNS）が
   半透明・すりガラス調のパネルとして写真の下側の上に重なって展開する。 */
.profile-overlay-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.profile-detail-content {
  padding: 26px 20px 6px;
  background: rgba(10, 10, 11, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.profile-namebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 28px 16px 14px;
  border: none;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,0) 100%);
  color: var(--gold-soft);
  font-size: 1.15rem;
  letter-spacing: .15em;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.profile-overlay-panel.is-open .profile-namebar {
  background: rgba(10, 10, 11, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px;
}
.profile-overlay-panel.is-open .profile-namebar-text {
  display: none;
}
.profile-namebar-arrow {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease;
}
.profile-overlay-panel.is-open .profile-namebar-arrow {
  transform: rotate(90deg);
}
.profile-detail-name {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .15em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.profile-furigana {
  text-align: center;
  font-size: .85rem;
  letter-spacing: .15em;
  color: var(--text);
  margin-bottom: 18px;
}
.profile-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 auto 20px;
}
.profile-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.profile-info-item:first-child {
  border-left: none;
}
.info-label {
  font-size: .65rem;
  letter-spacing: .05em;
  color: var(--text-dim);
  white-space: nowrap;
}
.info-value {
  font-size: .85rem;
  color: var(--text);
  white-space: nowrap;
}
.profile-comment {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  padding: 0 12px;
}
.sns-link {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}
.sns-link a,
.sns-link span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(0,0,0,.4);
}
.sns-link a {
  color: var(--gold-soft);
  border-color: var(--gold);
}
.sns-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.profile-backtop {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

/* ── フッター ── */
.site-footer {
  text-align: center;
  padding: 60px 20px 100px;
  border-top: 1px solid var(--line);
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: .3em;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.footer-copy {
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

.pagetop {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  letter-spacing: .05em;
  z-index: 80;
}
