:root {
  --bg: #000000;
  --text: #f4f4f4;
  --muted: rgba(255, 255, 255, 0.78);

  --bone: #4cff61;
  --bone-strong: #96ffa0;
  --panel-bg-top: rgba(7, 14, 10, 0.55);
  --panel-bg-bottom: rgba(2, 5, 3, 0.70);
  --panel-border: rgba(120, 255, 135, 0.22);

  --spine-width: 100vw;
  --panel-width: min(46vw, 640px);
  --side-gap: clamp(18px, 7vw, 120px);

  --content-height: 94vh;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  line-height: 0;
  padding-top: 84px;
}

img {
  display: block;
  max-width: 100%;
}

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

/* 背景 */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 75%, rgba(0, 90, 25, 0.14), transparent 24%),
    radial-gradient(circle at 50% 30%, rgba(76, 255, 97, 0.05), transparent 22%),
    linear-gradient(180deg, #000000 0%, #020503 45%, #000000 100%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.45) 72%, rgba(0, 0, 0, 0.92) 100%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 255, 130, 0.85);
  filter: blur(0.5px);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.65;
  }
  85% {
    opacity: 0.32;
  }
  100% {
    transform: translate3d(0, -120vh, 0);
    opacity: 0;
  }
}

/* ローディング */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(76, 255, 97, 0.08), transparent 20%),
    linear-gradient(180deg, #000000 0%, #020503 60%, #000000 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading__inner {
  width: min(68vw, 320px);
  text-align: center;
  line-height: normal;
}

.loading__dino {
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 0 12px rgba(76, 255, 97, 0.35))
    drop-shadow(0 0 28px rgba(76, 255, 97, 0.14));
  animation: loadingFloat 2.2s ease-in-out infinite;
}

.loading__text {
  margin: 16px 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

@keyframes loadingFloat {
  0%, 100% {
    transform: translateY(0) scale(0.985);
    opacity: 0.86;
  }
  50% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
}

/* 全体 */
.site,
.excavation {
  position: relative;
  width: 100%;
}

.records-wrap {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(1100px, 155vw, 1800px);
  overflow: visible;
  z-index: 1;
}

/* 首 + 恐竜を同じstackで縦積み */
.spine-stack {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spine-piece {
  width: 100vw;
  max-width: none;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  margin-bottom: -2px;
  vertical-align: bottom;
  filter:
    drop-shadow(0 0 8px rgba(76, 255, 97, 0.42))
    drop-shadow(0 0 18px rgba(76, 255, 97, 0.24))
    drop-shadow(0 0 34px rgba(76, 255, 97, 0.08));
}

.spine-dino-wrap {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0;
  margin-top: -2px;
  line-height: 0;
  z-index: 2;
}

.spine-dino-glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: min(100vw, 900px);
  height: min(100vw, 900px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(76, 255, 97, 0.15), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
}

.spine-dino {
  position: relative;
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
  z-index: 2;
  filter:
    drop-shadow(0 0 10px rgba(76, 255, 97, 0.34))
    drop-shadow(0 0 26px rgba(76, 255, 97, 0.16));
}

/* 情報 */
.records {
  position: relative;
  z-index: 3;
  padding-bottom: 0;
  margin-bottom: 0;
}

.content {
  min-height: var(--content-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
  line-height: normal;
}

.content--left {
  justify-content: flex-start;
}

.content--right {
  justify-content: flex-end;
}

.panel {
  position: relative;
  width: var(--panel-width);
  margin-inline: var(--side-gap);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--panel-bg-top), var(--panel-bg-bottom));
    border:none;
    box-shadow:none;
    background:none;
  backdrop-filter: blur(4px);
  overflow: hidden;
  line-height: normal;
}

.panel__title,
.panel__text,
.panel__image-wrap,
.cast-list {
  position: relative;
  z-index: 1;
}

.panel__title {
  margin: 0 0 16px;
  font-size: clamp(1.52rem, 3vw, 2.45rem);
  line-height: 1.2;
  font-weight: 900;
}

.panel__text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.92;
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
}

.cast-list{
  display:grid;
  gap:6px;
  font-size:1.05rem;
  line-height:1.7;
  color:rgba(255,255,255,0.85);
  }
  
  .cast-list span{
  padding:0;
  border:none;
  background:none;
  }

  @media (max-width:768px){

    .cast-list{
    font-size:0.95rem;
    gap:4px;
    }
    
    }

.panel__image-wrap {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.panel__image {
  width: 100%;
  height: auto;
  display: block;
}

.panel strong {
  display: block;
  margin-bottom: 22px;
  line-height: 1.9;
}

.panel__text {
  margin-top: 0;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(8px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--bottom {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  :root {
    --spine-width: 100vw;
    --panel-width: min(48vw, 480px);
    --content-height: 88vh;
  }

  .records-wrap {
    padding-bottom: clamp(980px, 170vw, 1600px);
  }
}

@media (max-width: 768px) {
  :root {
    --spine-width: 100vw;
    --panel-width: calc(100vw - 32px);
    --side-gap: 16px;
    --content-height: 76vh;
  }

  .records-wrap {
    padding-bottom: clamp(820px, 190vw, 1360px);
  }

  .content {
    justify-content: center;
    min-height: auto;
    padding: 34px 0;
  }

  .cast-list {
    grid-template-columns: 1fr;
  }

  .spine-dino-glow {
    width: 100vw;
    height: 100vw;
  }

  .panel__text {
    line-height: 1.82;
  }
}

@media (max-width: 480px) {
  :root {
    --spine-width: 100vw;
    --content-height: 68vh;
  }

  .records-wrap {
    padding-bottom: clamp(700px, 205vw, 1180px);
  }

  .panel {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .panel__title {
    font-size: 1.4rem;
  }

  .spine-piece {
    margin-bottom: -4px;
  }

  .spine-dino-wrap {
    margin-top: -4px;
  }
}

.panel__text strong {
  font-weight: 900;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
  border-bottom:1px solid #ffd84d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  line-height: normal;
}

.header-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content:flex-start;
  gap: 20px;
  padding: 12px 24px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo__img {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(42vw, 520px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.12))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.06));
}

.header-ticket--desktop {
  margin-left:auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  line-height: normal;
}

.ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border:2px solid #ffd84d;
  background:rgba(0,0,0,0.7);
  color:#ffd84d;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ticket-btn:hover {
  transform: translateY(-1px);
  background:rgba(40,40,0,0.8);
  border-color:#ffd84d;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(76, 255, 97, 0.08);
}

.ticket-btn--primary {
  background: linear-gradient(180deg, #7dff88 0%, #4cff61 100%);
  color: #041006;
  border-color: rgba(120, 255, 135, 0.9);
  box-shadow:
    0 10px 24px rgba(76, 255, 97, 0.18),
    0 0 18px rgba(76, 255, 97, 0.14);
}

.ticket-btn--primary:hover {
  background: linear-gradient(180deg, #96ffa0 0%, #64ff75 100%);
}

/* ハンバーガー */
.menu-toggle {
  display: none;
  appearance: none;
  background: rgba(7, 14, 10, 0.9);
  border:2px solid #ffd84d;
  color:#ffd84d;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 14px 0 16px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(76, 255, 97, 0.08);
}

.menu-toggle__label {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color:#ffd84d;
}

.menu-toggle__icon {
  width: 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle__ticket {
  display: block;
  width: 34px;
  height: auto;
  flex: 0 0 auto;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle.is-open .menu-toggle__ticket {
  transform: rotate(-8deg) scale(1.06);
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
}

.mobile-menu__nav {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(120, 255, 135, 0.14);
}

.mobile-ticket-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 255, 135, 0.28);
  background: rgba(7, 14, 10, 0.88);
  color: #f4f4f4;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.mobile-ticket-btn--primary {
  background: linear-gradient(180deg, #7dff88 0%, #4cff61 100%);
  color: #041006;
  border-color: rgba(120, 255, 135, 0.9);
}

@media (max-width:768px){

  .menu-toggle{
  margin-left:auto;
  }
  
  }
/* PCでボタンをもう少し大きく */
@media (min-width: 1025px) {
  .header-inner {
    min-height: 92px;
    padding: 14px 28px;
  }

  @media (max-width:768px){

    .header-inner{
    justify-content:space-between;
    }
    
    }

  .header-logo__img {
    height: 66px;
    max-width: 560px;
  }

  .ticket-btn {
    min-height: 54px;
    padding: 0 24px;
    font-size: 1.02rem;
  }

  body {
    padding-top: 92px;
  }
}

/* タブレット */
@media (max-width: 1024px) {
  .header-inner {
    min-height: 78px;
    padding: 10px 18px;
  }

  .header-logo__img {
    height: 50px;
    max-width: 52vw;
  }

  .header-ticket--desktop {
    gap: 10px;
  }

  .ticket-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  body {
    padding-top: 78px;
  }
}

/* モバイル */
@media (max-width: 768px) {
  :root {
    --spine-width: 100vw;
    --panel-width: calc(100vw - 32px);
    --side-gap: 16px;
    --content-height: 76vh;
  }

  .records-wrap {
    padding-bottom:clamp(900px,150vw,1200px);
  }

  .content {
    justify-content: center;
    min-height: auto;
    padding: 34px 0;
  }

  .cast-list {
    grid-template-columns: 1fr;
  }

  .spine-dino-glow {
    width: 100vw;
    height: 100vw;
  }

  .panel__text {
    line-height: 1.82;
  }
}

@media (max-width: 480px) {
  :root {
    --spine-width: 100vw;
    --content-height: 68vh;
  }

  .records-wrap {
   padding-bottom:clamp(700px,120vw,900px);
  }

  .panel {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .panel__title {
    font-size: 1.4rem;
  }

  .spine-piece {
    margin-bottom: -4px;
  }
}

.scroll-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.scroll-dot.active {
  background: #4cff61;
  box-shadow: 0 0 10px #4cff61;
  transform: scale(1.35);
}

@media (min-width: 1200px) {
  :root {
    --panel-width: min(52vw, 760px);
  }
}

.spine-mobile{
display:none;
}

@media (max-width:768px){
.spine-mobile{
display:block;
}
}

@media (max-width:768px){

.panel__text{
font-size:0.88rem;
}

.panel strong{
font-size:0.92rem;
}

}

.mobile-menu{
display:none;
}

.mobile-menu.is-open{
display:block;
}

/* モバイルではスクロールドット非表示 */
@media (max-width:768px){
.scroll-indicator{
display:none;
}
}

.mobile-menu[hidden]{
display:none !important;
}

@media (max-width:768px){

.panel__image{
transform:scale(1.06);
transform-origin:center;
}

}

.nankyoku-link{
display:flex;
justify-content:center;
align-items:center;
}

.nankyoku-logo{
width:min(420px,80%);
height:auto;
filter:drop-shadow(0 0 20px rgba(76,255,97,0.25));
transition:transform .3s ease;
}

.nankyoku-logo:hover{
transform:scale(1.05);
}

.nankyoku-panel{
  width: 100%;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .header-ticket--desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 74px;
    padding: 10px 14px;
  }

  .header-logo__img {
    height: 42px;
    max-width: 48vw;
  }

  body {
    padding-top: 74px;
  }
}

@media (max-width: 480px) {
  .header-logo__img {
    height: 36px;
    max-width: 46vw;
  }

  .menu-toggle {
    min-height: 44px;
    padding: 0 12px 0 14px;
    gap: 10px;
  }

  .menu-toggle__label {
    font-size: 0.86rem;
  }
}

@media (max-width:768px){

.nankyoku-logo{
width:min(200px,65%);
}
}


.credit-list{
display:grid;
gap:6px;
font-size:0.95rem;
line-height:1.7;
color:rgba(255,255,255,0.85);
}

.credit-list p{
margin:0;
}

@media (max-width:768px){

.credit-list{
font-size:0.85rem;
gap:4px;
}

}

.scroll-up-hint{
  position:absolute;
  right:20px;
  top:140px;
  z-index:10;
  width:90px;
  opacity:0.9;
  animation: scrollHintFloat 2.2s ease-in-out infinite;
}

.scroll-up-hint__img {
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 0 16px rgba(76,255,97,0.2));
}

@keyframes scrollHintFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-2deg);
  }
}

.scroll-up-hint:hover{
  transform: translateY(-2px) scale(1.03);
  opacity:1;
}

@media (min-width:769px){
  .scroll-up-hint{
    display:none;
  }
}

@media (max-width:768px){
  .scroll-up-hint{
    right:12px;
    top:400px;
    width:70px;
  }

  .menu-toggle__ticket{
    width:30px;
  }
}

@media (max-width:480px){
  .scroll-up-hint{
    right:8px;
    top:400px;
    width:64px;
    height:auto;
  }

  .menu-toggle__ticket{
    width:28px;
  }
}

/* モバイルで少し小さく */
@media (max-width: 768px) {
  .scroll-up-hint {
    right:12px;
    top:400px;
    width:70px;
  }

  .menu-toggle__ticket {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .scroll-up-hint {
    right: 8px;
    top: 400px;
    width: 64px;
    height: auto;
  }

  .menu-toggle__ticket {
    width: 28px;
  }
}

body.is-loading {
  overflow: hidden;
  height: 100vh;
}

@media (max-width:768px){
  
  }
  
  @keyframes scrollHintFloat {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(8px) rotate(-2deg);
    }
  }