/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==== Header & Footer nav: hover/focusで緑に ==== */

.mainnav a,
.footer-nav a {
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.mainnav a:hover,
.mainnav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #3ddc5c;            /* 緑 */
  text-decoration: none;
  outline: none;
}

/* 現在地 */

.mainnav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: #3ddc5c;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 20px;
}

/* Brand */

.brand {
  margin: 0;
  text-align: center;
  font-size: 0;
}

.brand__link {
  display: inline-block;
  line-height: 0;
  width: clamp(200px, 26vw, 380px);
  height: clamp(40px, 7.5vw, 80px);
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hamburger */

.hamburger {
  justify-self: end;
  width: 36px;
  height: 28px;
  display: inline-grid;
  align-content: space-between;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #d9d9d9;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* 開いた時の「×」変形 */

body.is-nav-open .hamburger span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

body.is-nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .hamburger span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* =========================
   Main nav（PC横並び）
   ========================= */

.mainnav {
  border-top: 1px solid #aaa2;
  border-bottom: 1px solid #aaa2;
  background: #000;
}

.mainnav ul {
  margin: 0;
  padding: 10px 16px;
  list-style: none;
  display: flex;
  gap: clamp(16px, 5vw, 56px);
  justify-content: center;
  align-items: center;
}

.mainnav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 2.2vw, 24px);
  font-family: "Times New Roman", serif;
}

/* =========================
   Overlay
   ========================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 49;
}

body.is-nav-open {
  overflow: hidden;
}

body.is-nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   Drawer for mobile (<=1024px)
   ========================= */

@media (max-width: 1024px) {
  .mainnav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 360px);
    height: 100dvh;

    /* スクロール可 & iOS慣性 & バウンス抑止 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid #2a2a2a;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 50;
    padding-top: 0;
    background:
      radial-gradient(120% 120% at 0% 0%, #0d1f12 0%, transparent 55%),
      linear-gradient(
        180deg,
        rgba(61, 220, 92, 0.12),
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.9) 100%
      );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* ドロワー内のナビリスト */

  .mainnav ul {
    display: flex;
    flex-direction: column;
    align-items: center;          /* 横方向センター */
    justify-content: center;      /* 縦方向センター */
    gap: clamp(8px, 3.6vw, 18px);
    padding: 16px 16px;
    margin: 0 auto;
    text-align: center;
    min-height: calc(100dvh - 72px); /* ヘッダ分差し引き */
  }

  .mainnav a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: clamp(18px, 5vw, 28px);  /* スマホ時・大きめ文字 */
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f7f7f7;
    opacity: 0.98;
  }

  .mainnav a:hover {
    background: #1d2129;
    transform: translateX(2px);
    opacity: 1;
  }

  body.is-nav-open .mainnav {
    transform: translateX(0);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
    padding-top: 72px;
  }

  /* ×ボタンをドロワーの上に出す */

  .hamburger {
    position: relative;
    z-index: 51;
  }
}

/* 768px以下：ホームと同じスマホレイアウト */

@media (max-width: 768px) {

  .brand__link {
    width: clamp(190px, 40vw, 280px);   /* 幅アップ */
    height: clamp(36px, 10vw, 60px);    /* 高さアップ */
    margin-left: 30px;
  }


  .mainnav a {
    font-size: 24px;  /* お好みの大きさ */
  }

  .mainnav ul {
    justify-content: flex-start;  /* 上寄せにする */
    min-height: auto;             /* 全高センター解除 */
    padding-top: 12px;            /* 上余白を少なめに */
    padding-bottom: 5px;          /* 下余白も詰める */
  }
}

/* =========================================
   Fallback: force drawer even on desktop
   ========================================= */

body.force-drawer .mainnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(88vw, 380px);
  height: 100dvh;

  /* スクロール可 & iOS慣性 & バウンス抑止 */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  background:
    radial-gradient(120% 120% at 0% 0%, #0d1f12 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(61, 220, 92, 0.12),
      rgba(0, 0, 0, 0.6) 40%,
      rgba(0, 0, 0, 0.9) 100%
    );
  border-left: 1px solid #2a2a2a;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 9999;
  padding-top: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.force-drawer.is-nav-open .mainnav {
  transform: translateX(0);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
  padding-top: 72px;
}

body.force-drawer .hamburger {
  position: relative;
  z-index: 10000;
}

body.force-drawer .mainnav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 16px);
  padding: 16px 16px;
  margin: 0 auto;
  text-align: center;
  min-height: calc(40dvh - 72px);
}

body.force-drawer .mainnav a {
  border-radius: 12px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f7f7f7;
  opacity: 0.98;
}

body.force-drawer .mainnav a:hover {
  background: #1d2129;
  transform: translateX(2px);
  opacity: 1;
}

body.force-drawer .nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 9998;
}

body.force-drawer.is-nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   Drawer: header & music rail（必要なら）
   ========================= */

/* 初期は非表示（CSSガード） */

.mainnav .nav-head {
  display: none;
}

.mainnav .nav-head[hidden] {
  display: none !important;
}

/* 開いた時だけ表示 */

body.is-nav-open .mainnav .nav-head,
body.force-drawer.is-nav-open .mainnav .nav-head {
  display: grid;
}

.mainnav .nav-head {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  z-index: 1;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #ffffff12;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.nav-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8ffe9;
  text-decoration: none;
}

.nav-head__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-head__brand span {
  font-family: "Times New Roman", serif;
  letter-spacing: 0.08em;
  font-weight: 800;
}

/* Drawer Extras (Music) — default hidden */

.mainnav .nav-extras,
.mainnav .nav-section-title,
.mainnav .nav-music-rail {
  display: none;
}

.mainnav .nav-extras[hidden] {
  display: none !important;
}

/* Show only when drawer is open */

body.is-nav-open .mainnav .nav-extras,
body.is-nav-open .mainnav .nav-section-title,
body.is-nav-open .mainnav .nav-music-rail {
  display: block;
}

body.force-drawer.is-nav-open .mainnav .nav-extras,
body.force-drawer.is-nav-open .mainnav .nav-section-title,
body.force-drawer.is-nav-open .mainnav .nav-music-rail {
  display: block;
}

/* Drawer内に注入するMusicブロックは閉じたら出さない（ガード） */

.mainnav .drawer-music-section {
  display: none;
}

body.is-nav-open .mainnav .drawer-music-section,
body.force-drawer.is-nav-open .mainnav .drawer-music-section {
  display: block;
}

/* Section title inside drawer */

.nav-section-title {
  margin: 8px 0 6px;
  padding: 0 18px;
  font-size: 12px;
  color: #9ae7a8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Music rail inside drawer */

.nav-music-rail {
  padding: 6px 12px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
  gap: 12px;
  scrollbar-width: thin;
}

.nav-music-card {
  display: block;
  text-decoration: none;
  color: #eaeaea;
  background: #0f1418;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 8px;
  width: 140px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.nav-music-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  border-color: #3ddc5c40;
}

.nav-music-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #0b0b0b;
}

.nav-music-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  color: #b9b9b9;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  font-size: 10px;
  color: #dcdcdc;
  background: #151a1f;
}

.nav-badge i.fa-youtube {
  color: #FF3B3B;
}

.nav-badge i.fa-soundcloud {
  color: #FF7A2F;
}

.nav-music-title {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #f2f2f2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* drawer内 Music セクションのタイトル部を隠す想定 */

.mainnav #music-drawer .section__head,
.mainnav #music-drawer .section__title {
  display: none !important;
}

.mainnav #music-drawer .media-group__title:first-of-type {
  margin-top: 8px;
}

/* =========================
   Footer（共通）
   ========================= */

.site-footer {
  border-top: 1px solid #aaa2;
  background: #000;
  padding: clamp(20px, 4vw, 28px) 0 clamp(24px, 5vw, 40px);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 20px);
  padding: 8px 0 10px;
}

/* Footer用 SNSボタン */

.socials__btn {
  width: clamp(44px, 4.6vw, 56px);
  height: clamp(44px, 4.6vw, 56px);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: 1px solid #ffffff40;
  background: color-mix(in oklab, #000, transparent 40%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.socials__btn i {
  font-size: 24px;
  line-height: 1;
}

.socials__btn:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #fff;
  color: #000;
}

.footer-nav ul {
  margin: 0;
  padding: clamp(6px, 1.4vw, 12px) clamp(12px, 2vw, 16px);
  list-style: none;
  display: flex;
  gap: clamp(16px, 5vw, 56px);
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 2.2vw, 24px);
  font-family: "Times New Roman", serif;
}

.footer-brand {
  display: grid;
  place-items: center;
  padding-top: clamp(8px, 1.6vw, 16px);
}

.footer-brand img {
  width: 60px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

@media (max-width: 720px) {
  .footer-nav ul {
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* =========================
   Contact page — Hero
   ========================= */

.hero--contact {
  position: relative;
  min-height: clamp(420px, 68vh, 760px);
  background: #000;
  overflow: hidden;
}

/* 左上：放射カーブ */

.contact-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: min(48vw, 740px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* 右の人物写真 */

.contact-photo {
  position: absolute;
  right: clamp(14px, 4vw, 36px);
  bottom: 0;
  margin: 0;
  z-index: 1;
  width: min(42vw, 520px);
  pointer-events: none;
  user-select: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
}

/* 中央見出し */

.contact-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 0 4vw;
  transform: translate(6rem, -2.5rem); /* 位置調整 */
}

.contact-title {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #3ddc5c;
  line-height: 0.9;
  font-size: clamp(40px, 12vw, 140px);
  position: relative;
}

.contact-sub {
  margin: 0;
  color: #3ddc5c;
  font-weight: 600;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(14px, 2vw, 28px);
  letter-spacing: 0.12em;
  line-height: 1.1;
  position: absolute;
  right: 21em;
  bottom: 5.8em;
}

@media (max-width: 768px) {
  .hero--contact{
    min-height: clamp(200px, 1vh, 760px);
  }

  .contact-curve{
    width: min(70vw, 700px);
  }

  .contact-photo{
    width: min(54vw, 360px);
    bottom: -50px;
        right: -50px;
  }

  .contact-copy{
    transform: translate(0rem, -1rem);
  }

  .contact-sub{
    right: 5.5em;
    bottom: 3.8em;
  }
}


/* =========================
   SNS共通
   ========================= */
.socials {
  position: absolute;
  right: clamp(12px, 3vw, 32px);
  bottom: clamp(12px, 3vw, 28px);
  display: flex;
  gap: 14px;
  z-index: 4;
}

.socials__btn {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: 1px solid #ffffff40;
  background: color-mix(in oklab, #000, transparent 40%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.socials__btn i {
  font-size: 24px;
  line-height: 1;
}

.socials__btn:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #fff;
  color: #000;
}

.socials__btn.sc:hover {
  color: #FF5500;
}

.socials__btn.yt:hover {
  color: #FF0000;
}

.socials__btn.ig:hover {
  color: #C13584;
}

@media (max-width: 780px) {
  .socials__btn {
    width: 48px;
    height: 48px;
  }

  .socials__btn i {
    font-size: 22px;
  }
}


/* =========================
   Contact Section
   ========================= */

.section--contact {
  padding: clamp(40px, 9vw, 96px) 0 clamp(56px, 12vw, 120px);
}

.section--contact .section__title {
  margin-bottom: clamp(8px, 1.8vw, 12px);
}

.section--contact .contact__lead {
  text-align: center;
  margin: clamp(12px, 2.4vw, 20px) 0 clamp(18px, 3.2vw, 28px);
  font-size: clamp(14px, 2.4vw, 20px);
  color: #e8e8e8;
  line-height: 1.9;
}

.section--contact .section-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(16px, 3vw, 28px);
  margin-inline: auto;
}

/* CTA button */

.cta-btn {
  --bg: #232832;
  --fg: #ffffff;

  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border-radius: 999px;
  padding: 20px 18px;
  min-width: 240px;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  border: 3px solid #0f1115;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.2s ease;
  margin-top: 30px;
}

.cta-btn:focus-visible {
  outline: 2px solid #3ddc5c;
  outline-offset: 3px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.cta-btn__icon {
  font-size: 1.15em;
  opacity: 0.95;
}

.cta-btn__text {
  flex: 1;
  text-align: center;
}

.cta-btn__arrow {
  flex: 0 0 auto;
  display: block;
  color: #fff;
  opacity: 0.96;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.cta-btn:hover .cta-btn__arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Instagramカラー版 */

.cta-btn--ig {
  background: radial-gradient(
    120% 120% at 10% 10%,
    #ffdf8e,
    #f77737 35%,
    #c13584 60%,
    #5851db 95%
  );
  border-color: #0e0f14;
}

/* ===== スマホ時だけ：フッター下の余白を限界までなくす ===== */
@media (max-width: 768px) {
  html,
  body {
    height: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }

  .hero--contact {
    flex: 0 0 auto;   /* ヒーロー分だけ確保 */
  }

  .section--contact {
    flex: 1 0 auto;   /* ここが残りの高さを全部埋める */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;  /* 必要ならここを 24px とかにしてもOK */
  }

  .site-footer {
    flex-shrink: 0;   /* フッターを下に固定して潰さない */
  }
}

