/* ==========================
   基本設定・トークン
========================== */
:root {
  --bg: #05060a;
  --bg-elevated: #0b0d16;
  --accent: #39ff88;
  --accent2: #b347ff;
  --accent-soft: rgba(57, 255, 136, 0.15);
  --text: #f5f5f7;
  --subtext: #a3a4b3;
  --border: #262739;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --max-width: 1120px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #14172f 0, #02030a 55%);
  color: var(--text);
  line-height: 1.7;
}

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

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

/* ==========================
   レイアウト共通
========================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* 2カラムレイアウト（ABOUT/STUDIO） */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

/* ==========================
   ヘッダー
========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 10, 0.98),
    rgba(3, 4, 10, 0.7),
    transparent
  );
  border-bottom: 1px solid var(--accent-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

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

.logo-mark {
  letter-spacing: 0.18em;
  font-size: 18px;
  font-weight: 700;
}

.logo-sub {
  font-size: 11px;
  color: var(--subtext);
}

/* ヘッダー右側（ナビ＋言語切替） */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--subtext);
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

/* ==========================
   ヒーロー
========================== */

.hero {
  position: relative;
  padding-bottom: 64px;
}

/* 上部にどーんとビジュアル */
.hero-media img {
  width: 100%;
  border-radius: 0 0 32px 32px;
  box-shadow: var(--shadow-soft);
}

.hero-content {
  margin-top: 32px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-text {
  color: var(--subtext);
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================
   ボタン
========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #050509;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--subtext);
  background: rgba(6, 7, 18, 0.7);
}

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

/* ==========================
   セクション共通
========================== */

.section {
  padding: 72px 0;
}

.section-dark {
  background: radial-gradient(circle at top, #111326 0, #05060d 60%);
}

.section h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 10px;
}

.section-lead {
  color: var(--subtext);
  max-width: 620px;
  margin: 0 0 30px;
}

/* 画像入りブロック共通 */
.about-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* STUDIO セクション内の余白調整 */
.studio-grid {
  margin-bottom: 36px;
}

/* ==========================
   CONTACT
========================== */

.contact {
  text-align: center;
}

/* 説明文は中央寄せ＋幅制限 */
.contact .section-lead,
.contact .contact-text {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.contact .section-lead {
  margin-bottom: 16px;
}

.contact-text {
  color: var(--subtext);
  margin-bottom: 24px;
}

/* ==========================
   フッター
========================== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0 20px;
  background: #020309;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--subtext);
}

/* ==========================
   言語切替スイッチ
========================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #0b0d16 0, #05060d 60%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
}

.lang-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--subtext);
  opacity: 0.7;
  transition:
    background var(--transition),
    color var(--transition),
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

/* hover時はほんのり */
.lang-btn:hover {
  opacity: 0.9;
}

/* 選択中 */
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #050509;
  opacity: 1;
  transform: translateY(-0.5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

/* ==========================
   レスポンシブ
========================== */

@media (max-width: 960px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    border-radius: 0;
  }

  .header-inner {
    gap: 10px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  /* スマホではナビを消して言語切替だけ残す */
  .nav {
    display: none;
  }

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

  .lang-switch {
    padding: 2px;
    transform: translateY(1px);
  }

  .lang-btn {
    padding: 4px 10px;
    font-size: 10px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
