/* =========================================================
   クロトコン Official Site - style.css
   ========================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #121212;
  --color-text: #f5f5f2;
  --color-text-dim: #b8b6b0;
  --color-line: rgba(245, 245, 242, 0.14);
  --color-gold: #c9a24b;
  --color-gold-soft: #e3c98a;

  --font-jp-heading: 'Shippori Mincho', serif;
  --font-jp-body: 'Noto Sans JP', sans-serif;
  --font-en: 'Cormorant Garamond', serif;

  --header-h: 76px;
  --container-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-jp-body);
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

/* 黒いロゴを白へ反転して暗い背景に合わせる（BIGUP など） */
.icon-invert { filter: invert(1); }

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

ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: #111;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-eyebrow {
  font-family: var(--font-en);
  color: var(--color-gold);
  letter-spacing: 0.25em;
  font-size: 14px;
  margin: 0 0 12px;
  text-align: center;
}

.section-title {
  font-family: var(--font-jp-heading);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 64px;
  letter-spacing: 0.08em;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  /* メニューのオーバーレイ(550)より前面に置き、開いている間も×が見えるようにする */
  z-index: 600;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: background .3s ease, border-color .3s ease;
}

/* メニュー展開中はヘッダーの背景を消してオーバーレイと一体に見せる */
body.nav-open .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
}
.logo-jp {
  font-family: var(--font-jp-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.nav-desktop ul {
  display: flex;
  gap: 40px;
}
.nav-desktop a {
  font-size: 14px;
  letter-spacing: 0.12em;
  position: relative;
  padding-bottom: 6px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width .3s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 600;
}
.hamburger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--color-text);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 23px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: rgba(8, 8, 8, 0.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nav-mobile a {
  font-family: var(--font-jp-heading);
  font-size: 22px;
  letter-spacing: 0.15em;
}
.nav-mobile-sns {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-mobile-sns img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.nav-mobile-sns-bigup img {
  width: auto;
  height: 16px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--color-gold-soft);
  margin: 0 0 24px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(32px, 7vw, 56px);
  letter-spacing: 0.15em;
  color: var(--color-gold);
  font-weight: 500;
}
.hero-title-jp {
  font-family: var(--font-jp-heading);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 88px);
  letter-spacing: 0.12em;
}
.hero-copy {
  font-size: 14px;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  min-height: 1.5em;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-text-dim);
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-lead {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 15px;
}

.about-stage-img {
  margin: 0 auto 72px;
  max-width: 900px;
  overflow: hidden;
}
.about-stage-img img {
  width: 100%;
  filter: grayscale(0.15);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.member-card {
  text-align: center;
}
.member-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 18px;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: filter .4s ease, transform .5s ease;
}
.member-card:hover .member-photo img {
  filter: grayscale(0);
  transform: scale(1.04);
}
.member-part {
  font-family: var(--font-en);
  color: var(--color-gold);
  letter-spacing: 0.2em;
  font-size: 13px;
  margin: 0 0 6px;
}
.member-name {
  font-family: var(--font-jp-heading);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin: 0;
}

/* =========================================================
   YOUTUBE
   ========================================================= */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.youtube-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-align: center;
  border: 1px solid var(--color-gold);
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.btn-outline {
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: var(--color-gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-gold);
  color: #12100a;
}
.btn-gold {
  background: var(--color-gold);
  color: #12100a;
  border-color: var(--color-gold);
  font-weight: 500;
}
.btn-gold:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  transform: translateY(-2px);
}
.btn-line {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-line:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* =========================================================
   GOODS
   ========================================================= */
.goods-text {
  color: var(--color-text-dim);
  font-size: 15px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.goods-list {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.goods-list img {
  width: 100%;
  height: auto;
}

/* =========================================================
   LINKS
   ========================================================= */
.sns-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.sns-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 120px;
  padding: 28px 12px;
  border: 1px solid var(--color-line);
  transition: border-color .3s ease, transform .3s ease;
}
.sns-link:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}
.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.sns-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .3s ease;
}
.sns-link:hover .sns-icon img {
  opacity: 0.75;
}
/* 横長ロゴ（BIGUP）用の広めのアイコン枠 */
.sns-icon-wide {
  width: 76px;
}
.sns-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.cta-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 56px 24px 40px;
}
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-copy {
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  margin: 0;
}
.back-to-top {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

/* =========================================================
   404
   ========================================================= */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.not-found .section-inner {
  width: 100%;
  text-align: center;
}
.not-found-text {
  color: var(--color-text-dim);
  font-size: 15px;
  margin: 0 0 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .youtube-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
  .nav-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .section-inner {
    padding: 88px 20px;
  }
  .section-title {
    margin-bottom: 44px;
  }
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* 縦長画面ではメンバー全員が切れないよう画像全体を表示し、
     上下をグラデーションで背景になじませて文字を中央に重ねる */
  .hero {
    align-items: center;
  }
  .hero-bg {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-bg img {
    width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg,
      transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg,
      transparent 0%, #000 24%, #000 76%, transparent 100%);
  }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.30) 45%,
      rgba(10, 10, 10, 0.60) 100%);
  }
  .hero-title-jp,
  .hero-title-en {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
  }
  .scroll-cue {
    bottom: 40px;
  }
  /* バンド名が画像の中央に重なるよう、テキスト全体をわずかに上へ寄せる */
  .hero-content {
    padding-bottom: 78px;
  }

  .cta-grid {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .cta-grid .btn {
    width: 100%;
    max-width: 340px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sns-grid {
    gap: 12px;
  }
  .sns-link {
    width: 100px;
    padding: 22px 8px;
  }
}
