/* ==========================================================================
       テーマ設定：シネマティック・モダンダーク（Cinematic Modern Dark）
       ========================================================================== */
:root {
  --bg-base: #0b0e14;
  --bg-surface: #131822;
  --bg-surface-elevated: #1a202c;
  --bg-surface-hover: #222b3b;

  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  /* シネマ・エディターアクセント（エメラルド ＆ サイアン） */
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-cyan: #38bdf8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ==========================================================================
       ヘッダー & ナビゲーション（ガラスモーフィズム）
       ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  transition: var(--transition);
  padding: 6px 4px;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

/* ==========================================================================
       ヒーロー（Hero）セクション
       ========================================================================== */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  opacity: 0.7;
  filter: blur(8px);
  z-index: 0;
  transition: var(--transition);
}

.avatar-wrapper:hover::before {
  opacity: 1;
  filter: blur(12px);
}

.hero .avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-surface);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}

.hero .intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--line-bright);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
       メインレイアウト & 共通セクション
       ========================================================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin-top: 80px;
}

.section-header {
  margin-bottom: 32px;
  position: relative;
}

.section-en {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-bright) 0%, transparent 100%);
}

/* ==========================================================================
       WORKS（実績紹介）カード
       ========================================================================== */
.work-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
  opacity: 0.7;
}

.work-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.work-card-header {
  margin-bottom: 20px;
}

.work-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.work-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.scope-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  background: var(--bg-surface-elevated);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-bright);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chips li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 0.8rem;
}

.chips li:hover {
  border-color: var(--accent);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
       SKILLS（スキル）グリッド
       ========================================================================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
}

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.skill-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.skill-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.skill-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 6px;
}

/* ==========================================================================
       ABOUT & 制作について（最後に）
       ========================================================================== */
.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.about-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.cg-work-preview {
  margin: 24px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.cg-work-preview img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cg-work-preview:hover img {
  transform: scale(1.02);
}

.cg-caption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--line);
  text-align: right;
}

.attitude-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 20px;
}

.attitude-box .attitude-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attitude-box p {
  color: #e2e8f0;
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.attitude-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
       CONTACT（お問い合わせ）
       ========================================================================== */
.contact-card {
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-card p.contact-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 30px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-item {
  background: var(--bg-base);
  border: 1px solid var(--line-bright);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.contact-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
       フッター
       ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dark);
  font-size: 0.85rem;
  background: var(--bg-base);
}

footer .footer-name {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

footer .footer-credits {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

/* ==========================================================================
       スクロール表示アニメーション（Reveal）
       ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
       レスポンシブ（Mobile）
       ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 50px 20px 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 16px 60px;
  }

  section {
    margin-top: 60px;
  }

  .work-card {
    padding: 22px 18px;
  }

  .work-card h3 {
    font-size: 1.2rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 24px 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: center;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.85rem;
  }
}