/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   隠神村 — style.css
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --red:      #C0392B;
  --red-dark: #8B1A14;
  --gold:     #C9A84C;
  --camel:    #D2B48C;
  --ink:      #1A1008;
  --charcoal: #2B2218;
  --ash:      #4A3F35;
  --paper:    #F5F0E8;
  --cream:    #FBF8F2;
  --muted:    #8C7B6B;
  --border:   #D4C8B0;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

img {
  user-select: none; /* 選択禁止 */
  -webkit-user-drag: none; /* Webkitブラウザ（ChromeやSafari）向け */
  -webkit-user-select: none;
  -moz-user-select: none; /* Firefox向け */
  -ms-user-select: none; /* IE向け */
}

/* ─── SITE NAV ───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,16,8,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
  display: flex; justify-content: center; align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 0 20px;
  height: 52px;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  letter-spacing: .12em;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--camel);
  transition: width .3s;
}
.site-nav a:hover { color: var(--camel); }
.site-nav a:hover::after { width: 100%; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: min(60vh, 460px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero.webp') center/cover no-repeat;
  filter: brightness(.55) saturate(.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(10,6,2,.65) 100%);
}

.hero-text {
  position: relative; z-index: 1;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(280px, 55vw, 520px);
  height: auto;
transform: translateX(30px);
  /* 黒背景を透過させてロゴの白文字だけ表示 */
  mix-blend-mode: screen;
  filter: brightness(1.05);
}
.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 1.8vw, 15px);
  color: rgba(255,255,255,.5);
  letter-spacing: .35em;
  margin-top: 4px;
  font-weight: 300;
}

/* ─── SECTION COMMON ─────────────────────────────────────── */
.section { padding: 60px 20px; max-width: 860px; margin: 0 auto; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: .1em;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 32px;
}
.section-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  /* background: linear-gradient(90deg, var(--red) 0%, transparent 100%); */
  background: var(--red)
}


/* ─── SOCIAL BAR ─────────────────────────────────────────── */
.social-bar {
  display: flex; justify-content: center; gap: 40px;
  padding: 48px 20px 40px;
}
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ash);
  font-size: 12px; letter-spacing: .08em;
  transition: transform .2s, color .2s;
}
.social-link:hover { transform: translateY(-4px); color: var(--red); }
.social-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .2s;
}
.social-icon.x-icon  { background: #000; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.social-icon.yt-icon { background: #FF0000; box-shadow: 0 4px 16px rgba(255,0,0,.3); }
.social-link:hover .social-icon { box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* ─── NEWS LIST (top page) ───────────────────────────────── */
.news-list { list-style: none; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list li:first-child { border-top: 1px solid var(--border); }
.news-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 8px;
  text-decoration: none; color: var(--ink);
  transition: background .15s, padding-left .15s;
}
.news-list a:hover { background: rgba(192,57,43,.05); padding-left: 16px; }
.news-date       { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 88px; }
.news-tag        { font-size: 11px; padding: 2px 8px; border: 1px solid var(--red); color: var(--red); border-radius: 2px; white-space: nowrap; }
.news-title-text { font-size: 14px; flex: 1; }
.news-arrow      { color: var(--muted); font-size: 18px; margin-left: auto; transition: transform .2s; }
.news-list a:hover .news-arrow { transform: translateX(4px); color: var(--red); }
.news-more {
  display: block; text-align: right; margin-top: 12px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  letter-spacing: .05em; transition: color .2s;
}
.news-more:hover { color: var(--red); }

/* ─── OVERVIEW PILLS ─────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.pill {
  background: #fdfdfd;
  border: 2px solid var(--red);
  border-radius: 5%;
  width: 360px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; line-height: 1.6; color: var(--ink); padding: 16px;
  box-shadow: 0 4px 16px rgba(192,57,43,.1);
  transition: transform .2s, box-shadow .2s;
}
.pill img{
  width:100%;
  height:auto;
}
.pill:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 28px rgba(192,57,43,.2); }
.pill strong { color: var(--red-dark); font-size: 20px; }

/* ─── 企画概要のクリック ──────────────────────────────────── */
.pill { cursor: pointer; }

.overview-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
  padding: 20px;
}
.overview-lightbox.open { display: flex; }
.overview-lightbox-inner {
  text-align: center;
  max-width: 800px; width: 100%;
}
.overview-lightbox-inner img {
  max-width: 100%; max-height: 70vh;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  display: block; margin: 0 auto;
}
.overview-lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-family: 'M PLUS 2', sans-serif;
  letter-spacing: .08em;
  margin-top: 16px;
  line-height: 1.6;
}
.overview-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 36px; color: #fff; cursor: pointer;
  background: none; border: none; line-height: 1;
}
/* ─── SLIDESHOW ──────────────────────────────────────────── */
.slideshow {
  position: relative;
  aspect-ratio: 16/9; max-height: 480px;
  overflow: hidden; border-radius: 6px;
  background: var(--charcoal); cursor: pointer;
}
.slideshow-track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.slideshow-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; }
.slideshow-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,16,8,.55) 0%, transparent 45%);
  pointer-events: none;
}
.slideshow-btn {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(26,16,8,.55); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; backdrop-filter: blur(4px);
}
.slideshow-btn:hover { background: var(--red-dark); transform: translateY(-50%) scale(1.08); }
.slideshow-btn.prev { left: 14px; }
.slideshow-btn.next { right: 14px; }
.slideshow-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slideshow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.slideshow-dot.active { background: var(--gold); transform: scale(1.3); }
.slideshow-caption {
  position: absolute; bottom: 36px; left: 20px; right: 20px; z-index: 10;
  font-family: 'Noto Serif JP', serif; font-size: 13px;
  color: rgba(255,255,255,.75); letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0,0,0,.7); text-align: center; pointer-events: none;
}
.slideshow-counter {
  position: absolute; top: 14px; right: 16px; z-index: 10;
  font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .08em; pointer-events: none;
}
.slideshow-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.slideshow-thumb {
  flex-shrink: 0; width: 80px; height: 52px;
  border-radius: 3px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color .2s, opacity .2s; opacity: .55;
}
.slideshow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow-thumb.active { border-color: var(--gold); opacity: 1; }

/* ─── MEMBER GRID ────────────────────────────────────────── */
.role-section { margin-bottom: 48px; }
.role-label {
  text-align: center; font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 700; color: var(--red-dark);
  letter-spacing: .15em; margin-bottom: 20px;
}
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.member-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.member-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.member-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.member-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: var(--border);
}
.member-name     { font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 700; }
.member-role-tag { font-size: 11px; color: var(--muted); margin-top: 2px; }
.member-desc     { font-size: 12px; line-height: 1.8; color: var(--ash); margin-bottom: 12px; }
.member-links    { display: flex; gap: 8px; margin-top: auto; }
.member-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 12px; text-decoration: none; color: var(--ash);
  transition: background .15s, border-color .15s, color .15s;
}
.member-link:hover    { background: var(--ink); color: #fff; border-color: var(--ink); }
.member-link.yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }
.member-link.twitch:hover { background: #9146FF; border-color: #9146FF; color: #fff; }


/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 0 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 36px; color: #fff; cursor: pointer; line-height: 1;
  background: none; border: none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  /*background: var(--ink); color: rgba(255,255,255,.4); */
  text-align: center; padding: 24px 20px;
  font-size: 12px; letter-spacing: .1em;
  border-top: 3px solid var(--red-dark);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-nav { gap: 12px; font-size: 11px; }
  .member-grid { grid-template-columns: 1fr; }
}

/* ─── OMIKUJI ────────────────────────────────────────────── */
.omikuji-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 82px; height: 82px;
  background: var(--red);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(192,57,43,.5);
  transition: transform .2s, box-shadow .2s;
}
.omikuji-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(192,57,43,.6);
}
.omikuji-fab-img {
  width: 40px; height: 40px;
  object-fit: contain;
}
.omikuji-fab-label { font-size: 10px; color: #fff; letter-spacing: .08em; font-family: 'M PLUS 2', sans-serif; }

.omikuji-modal {
  display: none; position: fixed; inset: 0; z-index: 201;
  background: rgba(0,0,0,.75);
  align-items: center; justify-content: center;
  padding: 20px;
}
.omikuji-modal.open { display: flex; }

.omikuji-modal-inner {
  background: var(--cream);
  border: 2px solid var(--red-dark);
  border-radius: 8px;
  width: 100%; max-width: 360px;
  padding: 40px 28px 32px;
  position: relative;
  text-align: center;
}
.omikuji-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 24px;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.omikuji-modal-close:hover { color: var(--red); }

/* 筒 */
.omikuji-shake-area { cursor: pointer; padding: 12px 0 8px; }
.omikuji-tube {
  width: 84px; height: 166px; /* 167×332の半分スケール */
  margin: 0 auto 16px;
}
.omikuji-tube-img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.omikuji-hint {
  font-size: 13px; color: var(--muted);
  font-family: 'M PLUS 2', sans-serif;
}

/* シェイクアニメーション */
@keyframes shake {
  0%,100% { transform: rotate(0deg); }
  15%      { transform: rotate(-12deg); }
  30%      { transform: rotate(12deg); }
  45%      { transform: rotate(-10deg); }
  60%      { transform: rotate(10deg); }
  75%      { transform: rotate(-6deg); }
  90%      { transform: rotate(6deg); }
}
.omikuji-shake-area.shaking .omikuji-tube { animation: shake .8s ease-in-out; }

/* 結果 */
.omikuji-paper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.omikuji-result.reveal-in { animation: reveal-in .4s ease forwards; }

.omikuji-rank {
  font-family: 'Zen Old Mincho', serif;
  font-size: 48px; font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 16px;
  line-height: 1;
}
.rank-kiwamidaikichi {color:#dd573f}
.rank-daikichi { color: #C0392B; }
.rank-chukichi { color: #E67E22; }
.rank-shokichi { color: #27AE60; }
.rank-kichi    { color: #2980B9; }
.rank-suekichi { color: var(--muted); }
.rank-kyo      { color: #215e9b; }
.rank-daikyo { color:#1e3f61}

.omikuji-message {
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px; color: var(--ink);
  margin-bottom: 10px; line-height: 1.7;
}
.omikuji-sub {
  font-size: 12px; color: var(--muted);
  line-height: 1.7;
}
.omikuji-used {
  font-size: 14px; color: var(--muted);
  line-height: 1.9; padding: 20px 0;
  font-family: 'M PLUS 2', sans-serif;
}

/* ─── EVENT BANNER ───────────────────────────────────────── */
.event-banner {
  background: var(--red-dark);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: .06em;
  font-family: 'M PLUS 2', sans-serif;
  transition: background .2s;
  border-left: var(--ash) solid 20px;
  border-right: var(--ash) solid 20px;
}
.event-banner:hover { background: var(--red); }
.event-banner-text { line-height: 1.6; }

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  display: block;
  margin: 0 auto 40px;
  padding: 10px 32px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--camel);
  font-size: 13px;
  font-family: 'M PLUS 2', sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.back-to-top:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── NOT FOUND ───────────────────────────────────────── */
.not-found-page {
  text-align: center;
  margin: 200px;
  font-size: 18px;
  border: var(--camel) ;
  padding:10px;
  background-color: var(--camel);
  border-radius:30px ;
}
.not-found-page a {
  text-decoration: none;
  color: #000;
}

.not-found-page:hover{
  background-color: #be9560;
}
/* ─── OMIKUJI SHARE ──────────────────────────────────────── */
.omikuji-share-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.omikuji-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  font-size: 12px; text-decoration: none; color: #fff;
  border-radius: 20px;
  transition: opacity .2s;
}
.omikuji-share-btn:hover { opacity: .8; }
.share-x       { background: #000; }
.share-threads { background: #000; }
.share-misskey { background: #86b300; }
.share-bluesky { background: #0085ff; }
