/**
 * Inuo. Webサイト メインスタイルシート
 * 
 * ブルーグリーンを基調とした都会的でスタイリッシュなデザイン
 * モバイルファースト・レスポンシブデザイン
 */

/* ==============================================================================
   カスタムプロパティ（CSS変数）
   ============================================================================== */

:root {
  /* カラーパレット - ブルーグリーンベース */
  --primary-color: #2dd4bf;          /* Teal 400 */
  --primary-dark: #0f766e;           /* Teal 700 */
  --primary-light: #5eead4;          /* Teal 300 */
  --secondary-color: #3b82f6;        /* Blue 500 */
  --secondary-dark: #1e40af;         /* Blue 700 */
  --accent-color: #06b6d4;           /* Cyan 500 */
  
  /* グレースケール */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* コンテキストカラー */
  --white: #ffffff;
  --black: #000000;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* タイポグラフィ */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-secondary: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  
  /* フォントサイズ */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* 行間 */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* スペーシング */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */
  
  /* ボーダー半径 */
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;
  
  /* シャドウ */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* トランジション */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* ブレークポイント */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==============================================================================
   リセット & ベーススタイル
   ============================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* フォーカススタイル */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 選択スタイル */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ==============================================================================
   タイポグラフィ
   ============================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

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

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

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ==============================================================================
   ヘッダー & ナビゲーション
   ============================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.nav {
  padding: var(--space-4) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-8);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

/* モバイルメニュートグル */
.nav-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-2);
  gap: var(--space-1);
  background: none;
  border: none;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--gray-700);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

/* モバイルメニュー */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--gray-200);
    z-index: var(--z-modal);
    transition: right var(--transition-base);
    padding: var(--space-20) var(--space-6) var(--space-6);
    overflow-y: auto;
  }
  
  .nav-menu-open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .nav-toggle-open .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle-open .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* デスクトップ表示 */
@media (min-width: 768px) {
  .nav-menu {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 var(--space-8);
  }
}

/* ==============================================================================
   メインコンテンツ
   ============================================================================== */

.main {
  margin-top: 80px; /* ヘッダーの高さ分 */
}

/* ==============================================================================
   ヒーローセクション
   ============================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video video,
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.3) 0%,
    rgba(59, 130, 246, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 100%
  );
  z-index: 2;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.hero-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ==============================================================================
   セクション共通スタイル
   ============================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: var(--space-16);
}

/* ==============================================================================
   注目作品セクション
   ============================================================================== */

.featured-works {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.work-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-info {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.work-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.work-year,
.work-medium {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: var(--space-1);
}

.work-link {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.work-link:hover {
  background: var(--primary-color);
  transform: scale(1.1);
  color: var(--white);
}

.work-icon {
  width: 20px;
  height: 20px;
}

/* ==============================================================================
   アーティストプロフィールセクション
   ============================================================================== */

.artist-profile {
  padding: var(--space-20) 0;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .profile-content {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.profile-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

.profile-image {
  position: relative;
}

.portrait-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.portrait-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.portrait-placeholder svg {
  width: 80px;
  height: 80px;
}

/* ==============================================================================
   SNSリンクセクション
   ============================================================================== */

.social-links {
  padding: var(--space-20) 0;
  background: var(--gray-50);
}

.social-title {
  text-align: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-12);
  color: var(--gray-900);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--gray-700);
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--gray-700);
}

.social-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--gray-600);
  transition: color var(--transition-base);
}

.social-link.instagram:hover .social-icon {
  color: #E4405F;
}

.social-link.facebook:hover .social-icon {
  color: #1877F2;
}

.social-link.twitter:hover .social-icon {
  color: #1DA1F2;
}

.social-name {
  font-weight: 500;
}

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

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-title {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-tagline {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
}

.footer-nav-link {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright,
.credits {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.credits-link {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.credits-link:hover {
  color: var(--primary-color);
}

/* ==============================================================================
   フォーム
   ============================================================================== */

.form-field {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-input.field-valid {
  border-color: var(--success);
}

.form-input.field-invalid {
  border-color: var(--error);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error {
  display: none;
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==============================================================================
   アクセシビリティ強化
   ============================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius-base);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
}

/* キーボードナビゲーション時のフォーカス強化 */
.keyboard-navigation *:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* スクリーンリーダー用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==============================================================================
   ローディング・スピナー
   ============================================================================== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================================================
   ヘッダー状態管理
   ============================================================================== */

.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

/* ==============================================================================
   レイジーローディング
   ============================================================================== */

img.lazy {
  opacity: 0;
  transition: opacity var(--transition-base);
}

img.lazy.loaded {
  opacity: 1;
}

/* ==============================================================================
   ユーティリティクラス
   ============================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

/* ==============================================================================
   ページヘッダー
   ============================================================================== */

.page-header {
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
}

.page-header-content {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  font-weight: 300;
}

@media (max-width: 640px) {
  .page-title {
    font-size: var(--text-4xl);
  }
  
  .page-subtitle {
    font-size: var(--text-lg);
  }
}

/* ==============================================================================
   About ページ
   ============================================================================== */

.bio-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-20) 0;
}

@media (min-width: 1024px) {
  .bio-content {
    grid-template-columns: 1fr 1fr;
  }
}

.bio-image {
  position: relative;
}

.portrait-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.artist-name {
  font-size: var(--text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.artist-title {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-6);
  font-weight: 300;
}

.artist-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gray-700);
}

/* アーティストステートメント */
.artist-statement {
  padding: var(--space-20) 0;
  background: var(--gray-50);
}

.statement-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.statement-quote {
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--primary-color);
  margin: var(--space-8) 0;
  position: relative;
}

.statement-quote::before,
.statement-quote::after {
  content: '"';
  font-size: var(--text-4xl);
  font-weight: bold;
  position: absolute;
  top: -10px;
}

.statement-quote::before {
  left: -20px;
}

.statement-quote::after {
  right: -20px;
}

.statement-paragraphs {
  text-align: left;
  margin-top: var(--space-8);
}

.statement-paragraphs p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  color: var(--gray-700);
}

/* 経歴・展示歴 */
.artist-history {
  padding: var(--space-20) 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.history-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  color: var(--gray-900);
  position: relative;
  padding-bottom: var(--space-2);
}

.history-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

.history-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.history-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.history-year {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 60px;
  font-size: var(--text-lg);
}

.history-content h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--gray-900);
}

.history-content p {
  color: var(--gray-600);
  margin: 0;
}

/* アートプロセス */
.art-process {
  padding: var(--space-20) 0;
  background: var(--gray-50);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  transition: transform var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--primary-color);
}

.process-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.process-description {
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* ==============================================================================
   Works ページ
   ============================================================================== */

.works-gallery {
  padding: var(--space-16) 0 var(--space-20);
}

/* 作品グリッド（index.phpと共通） */

/* 作品詳細ページ */
.artwork-detail {
  padding: var(--space-16) 0 var(--space-20);
}

.breadcrumb {
  margin-bottom: var(--space-8);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: var(--space-2);
  color: var(--gray-400);
}

.breadcrumb-link {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-current {
  color: var(--gray-900);
  font-weight: 500;
}

.artwork-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .artwork-content {
    grid-template-columns: 1fr 1fr;
  }
}

.artwork-image {
  position: relative;
}

.artwork-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.artwork-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
}

.artwork-details {
  margin-bottom: var(--space-8);
}

.detail-item {
  display: flex;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--gray-700);
  min-width: 80px;
  margin-right: var(--space-4);
}

.detail-value {
  color: var(--gray-900);
}

.detail-value.sold {
  color: var(--error);
  font-weight: 600;
}

.artwork-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--space-8);
}

.artwork-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ページネーション */
.pagination {
  margin-top: var(--space-16);
  text-align: center;
}

.pagination-info {
  margin-bottom: var(--space-6);
  color: var(--gray-600);
}

.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: var(--space-2) var(--space-3);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.pagination-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

.pagination-current {
  background: var(--primary-color);
  color: var(--white);
}

.pagination-prev,
.pagination-next {
  gap: var(--space-1);
}

.pagination-prev svg,
.pagination-next svg {
  width: 16px;
  height: 16px;
}

/* 作品なし表示 */
.no-works {
  text-align: center;
  padding: var(--space-20) 0;
}

.no-works-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-works h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

.no-works p {
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

/* ==============================================================================
   Contact ページ
   ============================================================================== */

.contact-form-section {
  padding: var(--space-16) 0 var(--space-20);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* お問い合わせ情報 */
.contact-info-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.contact-info-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

.contact-details {
  margin-bottom: var(--space-8);
}

.contact-detail {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.contact-detail-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-detail-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--gray-900);
}

.contact-detail-value {
  color: var(--gray-600);
  margin: 0;
}

.contact-detail-value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-detail-value a:hover {
  color: var(--primary-dark);
}

/* SNSリンク（Contact用・最下段・24px・センタリング） */
.contact-social-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.contact-social-links-bottom {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.contact-social-link-bottom {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-social-link-bottom svg {
  width: 24px;
  height: 24px;
}

.contact-social-link-bottom.instagram {
  color: #E4405F;
}

.contact-social-link-bottom.facebook {
  color: #1877F2;
}

.contact-social-link-bottom.twitter {
  color: #1DA1F2;
}

.contact-social-link-bottom:hover {
  transform: translateY(-2px);
}

/* SNSリンク（Contact用・既存の大きいバージョン） */
.contact-social {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-6);
}

.contact-social-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.contact-social-links {
  display: flex;
  gap: var(--space-4);
}

.contact-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-social-link.instagram:hover {
  border-color: #E4405F;
  color: #E4405F;
}

.contact-social-link.facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.contact-social-link.twitter:hover {
  border-color: #1DA1F2;
  color: #1DA1F2;
}

.contact-social-link svg {
  width: 20px;
  height: 20px;
}

/* フォーム（強化版） */
.contact-form {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-field {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: var(--error);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--white);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-input.field-valid {
  border-color: var(--success);
}

.form-input.field-invalid,
.form-textarea.field-invalid {
  border-color: var(--error);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.btn-submit {
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit:disabled:hover {
  transform: none;
}

.btn-text {
  transition: opacity var(--transition-fast);
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .loading-spinner {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Social ページ強化（About/Contact共通） */
.social-link {
  position: relative;
  overflow: hidden;
}

.social-link .social-description {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
  opacity: 0.8;
}

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

@media (max-width: 768px) {
  .artwork-actions {
    flex-direction: column;
  }
  
  .pagination-list {
    flex-wrap: wrap;
  }
  
  .contact-content {
    gap: var(--space-8);
  }
  
  .contact-form {
    padding: var(--space-6);
  }
  
  .bio-content,
  .artwork-content {
    gap: var(--space-8);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

@media (max-width: 639px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .hero-description {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ==============================================================================
   Contact SNSリンク（24px・センタリング・オリジナルカラー）
   ============================================================================== */

.contact-social-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.contact-social-links-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.contact-social-link-bottom {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-social-link-bottom svg {
  width: 24px;
  height: 24px;
}

.contact-social-link-bottom.instagram {
  color: #E4405F;
}

.contact-social-link-bottom.facebook {
  color: #1877F2;
}

.contact-social-link-bottom.twitter {
  color: #1DA1F2;
}

.contact-social-link-bottom:hover {
  transform: translateY(-2px);
}

/* ==============================================================================
   印刷用スタイル
   ============================================================================== */

@media print {
  .header,
  .nav-toggle,
  .hero-actions,
  .social-links,
  .footer {
    display: none;
  }
  
  .main {
    margin-top: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .work-card {
    break-inside: avoid;
  }
}