/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

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

html,
body {
  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;
}

/* ==== Header & Footer nav: hover/focusで緑に ==== */
.mainnav a,
.footer-nav a {
  transition: color .18s ease, background .18s ease, transform .18s ease, opacity .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;
}

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

/* =========================
   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 .2s ease, opacity .2s ease;
}

/* Main nav (header inline layout for desktop) */
.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;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 80vh;
  background: #000;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  filter: brightness(0.86);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .35) 100%);
  z-index: 2;
}

.hero-copy {
  position: relative;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  padding: 0 4vw;
  z-index: 3;
  top: 80px;
}

.hero-title {
  margin: 0;
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(40px, 12vw, 144px);
  text-transform: uppercase;
  position: absolute;
  top: 120px;
}

.hero-tagline {
  margin: clamp(2px, 0.6vw, 8px) 0 0;
  font-size: clamp(14px, 2.2vw, 22px);
  line-height: 1.3;
  letter-spacing: .08em;
  color: #e0dddd;
  font-weight: 600;
  position: absolute;
  top: 280px;
}

/* SNS buttons (header floating) */
.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 .18s ease, color .18s ease, background .18s ease, border-color .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: 768px) {
  .site-header__bar {
    grid-template-columns: 1fr 36px;
  }

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

  .mainnav ul {
    gap: 18px;
  }

  .hero {
    min-height: 43vh;
  }

  .hero-copy{
    inset: 90px 0% 20px 0;
    top: 120px;
  }

  .hero-title {
  margin: 0;
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(80px, 12vw, 200px);
  text-transform: uppercase;
  position: absolute;
  top: -10px;
  color: #3ddc5c;
  text-shadow: #0b0b0b 2px 2px 2px;
}

.hero-tagline {
  margin: clamp(2px, 0.6vw, 8px) 0 0;
  font-size: clamp(18px, 2.2vw, 29px);
  line-height: 1.3;
  letter-spacing: .08em;
  color: #ddd;
  font-weight: 600;
  position: absolute;
  top: 80px;
  text-shadow: #0b0b0b 2px 2px 2px;
}

  .hero-media img {
    object-position: center 30%;
  }

  .socials__btn {
    width: 48px;
    height: 48px;
  }

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

}

/* =========================
   Sections
   ========================= */
.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  overflow: visible;
}

.section {
  padding: clamp(36px, 7vw, 72px) 0;
}

.section__head {
  width: 90%;
  margin-bottom: clamp(12px, 2vw, 20px);
  margin-inline: auto;
}

.section__title {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.1;
  color: #3ddc5c;
  margin-bottom: 100px;
}

.section__body {
  position: relative;
  width: 70%;
  margin-inline: auto;
  overflow: visible;
}

/* Section actions */
.section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: clamp(16px, 3vw, 80px);
  margin-inline: auto;
}

/* “More” button */
.Btn-Container {
  display: flex;
  width: 170px;
  height: fit-content;
  background-color: #1d2129;
  border-radius: 40px;
  box-shadow: 0 5px 10px rgba(190, 190, 190, 0.25);
  justify-content: space-between;
  align-items: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.icon-Container {
  width: 45px;
  height: 45px;
  background-color: #3ddc5c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid #1d2129;
}

.text {
  width: calc(170px - 45px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 1.2px;
  line-height: 1;
}

.icon-Container svg {
  transition-duration: 1.5s;
}

.Btn-Container:hover .icon-Container svg {
  transition-duration: 1.5s;
  animation: arrow 1s linear infinite;
}

@keyframes arrow {
  0% {
    opacity: 0;
    margin-left: 0;
  }

  100% {
    opacity: 1;
    margin-left: 10px;
  }
}

/* ===== Feed list ===== */
.list-ruled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-list .feed-item {
  padding: clamp(12px, 2.4vw, 18px) 0;
  border-bottom: 1px solid #ffffff33;
}

.feed-list .feed-item:first-child {
  border-top: 1px solid #ffffff33;
}

.feed-link {
  display: inline-block;
  color: #e9e9e9;
  text-decoration: none;
  font-size: clamp(14px, 2.2vw, 24px);
  line-height: 1.7;
}

.feed-link:hover {
  color: #fff;
}

.feed-date {
  opacity: .9;
  letter-spacing: .02em;
}

.feed-sep {
  margin: 0 .6em;
  opacity: .6;
}

.feed-title {
  letter-spacing: .02em;
}

.feed-sub {
  opacity: .8;
  font-size: .9em;
}

@media (max-width: 768px) {
  .section {
    padding: 32px 0;
  }

  .section__title {
  margin-bottom: 50px;
}

  .section__body {
    width: 92%;
  }

  .section-actions {
    justify-content: center;
  }

  .Btn-Container {
    width: 160px;
  }

  .text {
    width: calc(160px - 45px);
    font-size: 1em;
  }


}

/* =========================
   Music
   ========================= */
.section-music {
  position: relative;
}

.section-music .section__body {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: visible;
}

.music-section {
  width: 90%;
  margin: 0 auto;
  overflow: visible;
}

.media-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Times New Roman", serif;
  font-size: clamp(18px, 3.6vw, 28px);
  margin: clamp(10px, 2.6vw, 28px) 0 clamp(8px, 2vw, 18px);
  justify-content: center;
}

.media-group__title .fa-youtube {
  color: #FF0000;
}

.media-group__title .fa-soundcloud {
  color: #FF5500;
}

.media-grid {
  --min: 220px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(24px, 4vw, 36px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  overflow: visible;
}

.media-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.media-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.media-figure {
  margin: 0 0 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

.media-thumb {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f0f0f;
}

.media-title {
  margin: 0;
  font-size: clamp(12px, 1.8vw, 16px);
  color: #e9e9e9;
  letter-spacing: .01em;
  line-height: 1.5;
}

/* Space before SoundCloud header after YouTube grid */
.section-music .media-grid + .media-group__title {
  margin-top: 150px;
}

/* =========================
   Profile
   ========================= */
.section--profile {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: clamp(48px, 9vw, 120px) 0 clamp(88px, 14vw, 200px);
}

.section--profile .profile__inner {
  position: relative;
  z-index: 1;
  width: 90%;
  margin: 0 auto;
}

.section--profile .section__title {
  margin: 0 0 clamp(16px, 3vw, 28px);
}

.profile__content {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.profile__lead {
  margin: 0 0 clamp(14px, 2.6vw, 24px);
  font-size: clamp(18px, 3.6vw, 34px);
  letter-spacing: .08em;
  font-weight: 500;
}

.profile__catch {
  margin: 0 0 clamp(22px, 4vw, 36px);
  font-size: clamp(18px, 3.6vw, 30px);
  letter-spacing: .06em;
  font-weight: 600;
}

.profile__name {
  display: inline-block;
  margin-left: .35em;
  font-family: "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: .12em;
  color: #3ddc5c;
  font-size: clamp(42px, 12vw, 120px);
  line-height: .9;
}

.profile__text {
  margin-top: clamp(16px, 3vw, 28px);
  color: #e6e6e6;
  line-height: 1.95;
  font-size: clamp(14px, 2.2vw, 18px);
}

.profile__text p {
  margin: .4em 0;
}

.profile__em {
  font-style: normal;
  text-decoration: underline;
}

.profile-deco {
  position: absolute;
  bottom: 0;
  width: clamp(240px, 34vw, 520px);
  height: auto;
  opacity: .85;
  filter: grayscale(100%) contrast(1.05) brightness(.95);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.profile-deco--left {
  left: max(-40px, -6vw);
  transform: translateY(6%);
}

.profile-deco--right {
  right: max(-40px, -6vw);
  transform: translateY(6%);
}

@media (min-width: 1024px) {
  .profile-deco {
    width: clamp(320px, 38vw, 620px);
  }

  .section--profile {
    padding-bottom: clamp(110px, 16vw, 240px);
  }
}

@media (max-width: 900px) {
  .profile__name {
    font-size: clamp(42px, 16vw, 86px);
  }

  .profile-deco {
    opacity: .7;
  }
}

@media (max-width: 720px) {
  .section--profile {
    padding-bottom: clamp(56px, 18vw, 96px);
  }

  .profile__lead {
    letter-spacing: .05em;
  }

  .profile__catch {
    letter-spacing: .04em;
  }

  .profile-deco--left {
    display: none;
  }

  .profile-deco--right {
    width: clamp(200px, 48vw, 300px);
    right: -6vw;
    transform: translateY(18%);
    opacity: .7;
  }
}

/* =========================
   Contact
   ========================= */
.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;
  margin-top: 50px;
}

.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: .08em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .32);
  border: 3px solid #0f1115;
  transition: transform .18s ease, box-shadow .18s ease, background .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, .36);
}

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

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

.cta-btn__arrow {
  flex: 0 0 auto;
  display: block;
  color: #fff;
  opacity: .96;
  transition: transform .18s ease, opacity .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;
}

/* =========================
   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;
}

.site-footer .socials__btn {
  position: static;
  width: clamp(44px, 4.6vw, 56px);
  height: clamp(44px, 4.6vw, 56px);
}

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

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

/* Lock scroll when open */
body.is-nav-open {
  overflow: hidden;
}

/* =========================
   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 .28s cubic-bezier(.22, .61, .36, 1);
    z-index: 50;
    padding-top: 0; /* 閉じている時は0 */
    background:
      radial-gradient(120% 120% at 0% 0%, #0d1f12 0%, transparent 55%),
      linear-gradient(180deg, rgba(61, 220, 92, .12), rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .9) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* ==== Drawer: 中央配置＆大きな文字（間隔を詰め版） ==== */
  .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: .04em;
    color: #f7f7f7;
    opacity: .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, .55);
    padding-top: 72px;
  }

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

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

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

@media (max-width: 768px) {
  .mainnav a {
    font-size: 24px;  /* 好きな大きさに変更してOK */
  }

  .mainnav ul {
    justify-content: flex-start;   /* 上寄せにする */
    min-height: auto;              /* 画面いっぱい確保しない */
    padding-top: 12px;             /* 好きな量でOK（上の余白） */
    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, .12), rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .9) 100%);
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid #2a2a2a;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  z-index: 9999;
  padding-top: 0; /* 閉じている時は0 */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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 {
  padding: 10px 12px;             /* ← 以前より少し詰める */
  border-radius: 12px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  color: #f7f7f7;
  opacity: .98;
}

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

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

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

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

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

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

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

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

/* =========================
   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, .6), rgba(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: .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 {
  display: block;
}

/* Section title inside drawer */
.nav-section-title {
  margin: 8px 0 6px;
  padding: 0 18px;
  font-size: 12px;
  color: #9ae7a8;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .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 .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nav-music-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(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: hide Music title text (動画は残す) === */
.mainnav #music-drawer .section__head,
.mainnav #music-drawer .section__title {
  display: none !important;
}

/* drawer内の最初のメディア見出しの上余白を詰める */
.mainnav #music-drawer .media-group__title:first-of-type {
  margin-top: 8px;
}
