/* ------------------------------------------------------------------
   Ishida Naoki — スタイル
   配色はすべて :root の変数にまとめています。
   白版を作るときは、この変数の値だけを差し替えます。
------------------------------------------------------------------ */

:root {
  --bg: #0e0c09;
  --bg-header: rgba(14, 12, 9, 0.9);
  --text: #e4ddd3;
  --heading: #d8d0c4;
  --muted: #8a8278;
  --label: #7a6e5f;
  --faint: #5a5450;
  --faintest: #4a4438;
  --line: #2a261f;
  --line-strong: #3a3228;
  --line-hover: #4a4438;
  --surface: #1a1712;
  --error: #a08878;

  --font-display: "Lora", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --wrap: 896px;
  --gutter: 24px;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
}

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

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

::selection {
  background: var(--line-strong);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------------- ヘッダー ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.brand:hover {
  color: var(--text);
}

.nav {
  display: none;
  gap: 32px;
}

.nav a,
.mobile-nav a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.menu-btn:hover {
  color: var(--text);
}

.menu-btn__close {
  display: none;
}

.site-header.is-open .menu-btn__open {
  display: none;
}

.site-header.is-open .menu-btn__close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 16px var(--gutter);
  flex-direction: column;
  gap: 16px;
}

.site-header.is-open .mobile-nav {
  display: flex;
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
  .menu-btn,
  .site-header.is-open .mobile-nav {
    display: none;
  }
}

/* ---------------- ヒーロー ---------------- */

.hero {
  padding-top: 160px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--label);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}

.hero__tagline {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.625;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.hero__rule {
  margin-top: 16px;
  width: 64px;
  height: 1px;
  background: var(--line-strong);
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 72px;
  }
}

/* ---------------- 共通パーツ ---------------- */

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------------- Music ---------------- */

.music {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.work {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--heading);
}

.work__meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.work__link {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.025em;
  color: var(--faint);
}

.work__link a {
  transition: color 0.3s;
}

.work__link a:hover {
  color: var(--muted);
}

.frame-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.frame-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bandcamp のプレイヤーは Bandcamp 側 CSS で max-width:700px が入っており、
   そのままでは YouTube（枠いっぱい）より狭く表示されます。
   枠が 700px を超えるときだけ拡大して、幅を揃えています。 */
.frame-audio {
  container-type: inline-size;
}

.frame-audio iframe {
  display: block;
  width: 100%;
  height: 406px;
  border: 0;
}

@container (min-width: 700px) {
  .frame-audio__scale {
    height: calc(100cqw * 406 / 700);
    overflow: hidden;
  }

  .frame-audio__scale iframe {
    width: 700px;
    transform: scale(calc(100cqw / 700px));
    transform-origin: top left;
  }
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--surface);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--faintest);
}

.placeholder--audio {
  height: 406px;
}

/* ---------------- Apps ---------------- */

.apps-head {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.apps {
  display: flex;
  flex-direction: column;
}

.app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  transition: border-color 0.3s;
}

.app:hover {
  border-color: var(--line-hover);
}

.app__thumb {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.app__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app__title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  color: var(--heading);
  transition: color 0.3s;
}

.app:hover .app__title {
  color: var(--text);
}

.app__desc {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.app__desc--en {
  color: var(--faint);
}

.app__tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.app__tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.app__mark {
  margin-left: auto;
  font-size: 12px;
  line-height: 16px;
  color: var(--faintest);
  transition: color 0.3s;
}

.app:hover .app__mark {
  color: var(--label);
}

@media (min-width: 640px) {
  .app {
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* ---------------- Bio / Contact ---------------- */

.panel {
  padding-bottom: 96px;
}

.panel--contact {
  padding-bottom: 128px;
}

.panel__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .panel__grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.bio__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio__lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  color: var(--heading);
}

.bio__text {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .bio__lead {
    font-size: 20px;
  }
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

/* SNS リンク（現在は HTML 側で非表示。戻すときはコメントを外す） */
.sns {
  display: flex;
  flex-direction: column;
}

.sns a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  transition: border-color 0.3s;
}

.sns a:hover {
  border-color: var(--line-hover);
}

.sns__label {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.025em;
  color: var(--muted);
  transition: color 0.3s;
}

.sns a:hover .sns__label {
  color: var(--text);
}

.sns__mark {
  font-size: 12px;
  line-height: 16px;
  color: var(--faintest);
  transition: color 0.3s;
}

.sns a:hover .sns__mark {
  color: var(--label);
}

/* ---------------- フォーム ---------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.025em;
  color: var(--text);
  transition: border-color 0.3s;
}

.form textarea {
  resize: none;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--faint);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--line-hover);
}

.form__botcheck {
  display: none;
}

.form__row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  line-height: inherit;
  background: none;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 12px 24px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.btn:hover {
  color: var(--text);
  border-color: var(--line-hover);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.form__status {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.form__status.is-error {
  color: var(--error);
}

/* ---------------- フッター ---------------- */

.site-footer {
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faintest);
}
