@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;
}

/* 管理画面で背景画像を設定した場合に適用される
   ※ background-attachment:fixed や position:fixed のレイヤーはスマホで
      アドレスバーの表示/非表示に伴うリサイズ時にガクつくため使わない。
      cover でページ全体の高さに引き伸ばすと画像が破綻するほど拡大されて
      しまうため、横幅基準の等倍サイズで上部に配置し、それ以降は単色に
      戻す（画像はページ最上部だけに敷く）方式にしている。 */
body.has-bg-image {
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}
body.has-bg-image .hero {
  background: rgba(11, 11, 12, .55);
}
body.has-bg-image .working-section,
body.has-bg-image .list-section,
body.has-bg-image .profile-section,
body.has-bg-image .site-footer {
  background: rgba(11, 11, 12, .82);
}

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;
  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 {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.working-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.working-scroll::-webkit-scrollbar { display: none; }
.working-empty {
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
  padding: 20px 0;
}
.working-card {
  flex: 0 0 auto;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.working-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold);
  position: relative;
}
.working-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.working-name {
  font-size: .78rem;
  color: var(--text);
}
.working-badge {
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--gold-soft);
}

/* ── 一覧 ── */
.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: 50px 0 40px;
  scroll-margin-top: var(--header-h);
}
.profile-card:first-child {
  border-top: none;
}
.profile-photo {
  width: 78%;
  max-width: 320px;
  margin: 0 auto 22px;
  position: relative;
  border: 1px solid var(--line);
}
.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);
}
.profile-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.profile-slider-track::-webkit-scrollbar {
  display: none;
}
.profile-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}
.profile-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.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);
}
.profile-name {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: .15em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.profile-furigana {
  text-align: center;
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.profile-info-table {
  border-collapse: collapse;
  margin: 0 auto 18px;
}
.profile-info-table th,
.profile-info-table td {
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: normal;
  border-top: 1px solid var(--line);
  text-align: left;
}
.profile-info-table tr:first-child th,
.profile-info-table tr:first-child td {
  border-top: none;
}
.profile-info-table th {
  color: var(--text-dim);
  letter-spacing: .05em;
  white-space: nowrap;
}
.profile-info-table td {
  color: var(--text);
}
.profile-comment {
  text-align: center;
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding: 0 20px;
}
.sns-link {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}
.sns-link a,
.sns-link span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.sns-link a {
  color: var(--gold-soft);
  border-color: var(--gold);
}
.sns-link svg {
  width: 16px;
  height: 16px;
  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;
}
