/* CSS変数 */
/* ====================================
   シンプル・視認性重視のカラーパレット
   ==================================== */
:root {
  /* メイン：ピンク系で統一 */
  --primary-color: #ff6b9d;       /* メインピンク */
  --secondary-color: #ff9bcf;     /* ライトピンク */
  --accent-color: #fff0f5;        /* 極薄ピンク */
  --text-dark: #2c3e50;           /* ダークグレー */
  --text-medium: #6c757d;          /* ミディアムグレー */
  --bg-light: #ffffff;            /* 白背景 */
  --bg-white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* シンプルなグラデーション */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-subtle: linear-gradient(135deg, #fff0f5, #ffffff);
  
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* カテゴリー別カラー定義 */
  --illustration-color: linear-gradient(90deg, #667eea 0%, #708ff0 100%);
  --fanart-color: linear-gradient(90deg, #11998e 0%, #1ba394 100%);
  --programming-color: linear-gradient(90deg, #4facfe 0%, #59b4fe 100%);
  --photography-color: linear-gradient(90deg, #ffa726 0%, #ffb142 100%);
  --default-color: linear-gradient(90deg, #ff6b9d 0%, #ff79a9 100%);
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}
/* ====================================
   ローディング画面（完全制御）
   ==================================== */
.idol-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;  /* 最高優先度 */
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* ローディング非表示状態 */
.idol-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* シンプルなピンクグラデーション背景 */
.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #ff6b9d 0%,      /* メインピンク */
    #ff9bcf 50%,     /* ライトピンク */
    #ffffff 100%     /* 白 */
  );
  background-size: 300% 300%;
  animation: simpleGradientFlow 8s ease infinite;
}

.loading-content {
  position: relative;
  z-index: 10;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 32px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

/* シンプルなロゴ */
.brand-logo {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--primary-color);
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 32px;
  font-weight: 600;
  opacity: 0.8;
}

/* シンプルなプログレスバー */
.progress-bar {
  width: 240px;
  height: 8px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 16px auto;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0%;
  animation: progressLoad 3s ease-out forwards;
}

.loading-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  opacity: 0.7;
}

/* メイン画面は白背景・ピンクアクセント */
.hero {
  background: var(--bg-white);  /* 白背景に変更 */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4rem;            /* より大きく */
  font-weight: 900;
  color: var(--text-dark);    /* 濃いグレー */
  margin-bottom: 1rem;
  line-height: 1.1;
}

/* サークル情報を控えめに */
.creator-info {
  font-size: 1.1rem;
  color: var(--primary-color); /* ピンクでアクセント */
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.2rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.hero p {
  color: var(--text-light) !important;
}

/* アニメーション */
@keyframes simpleGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes progressLoad {
  from { width: 0%; }
  to { width: 100%; }
}


/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ユーティリティクラス */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hero セクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-warm);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* キャッチコピーを美しく */
.tagline {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
    line-height: 1.4;
    letter-spacing: 0.5px; /* 文字間隔を少し追加 */
}

/* キャッチコピーの装飾（赤線を削除、代わりにエレガントな装飾） */
.tagline::before,
.tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.tagline::before {
  left: -40px;
}

.tagline::after {
  right: -40px;
}

/* ボタンエリア */
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.4rem;
  }
  
  .tagline::before,
  .tagline::after {
    display: none; /* モバイルでは装飾線を非表示 */
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .coming-soon-content h4 {
        font-size: 24px;
    }
    
    .coming-soon-content p {
        font-size: 14px;
    }
    
    .work-image.coming-soon {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.2rem;
    padding: 0;
  }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(78, 205, 196, 0.3));
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.4), rgba(255, 107, 157, 0.4));
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* About セクション */
.about {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.about-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ブランドアイデンティティスタイル */
.brand-identity {
    margin-bottom: 3rem;
}

.creator-brand-info {
    margin-top: 1.5rem;
}

.brand-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(78, 205, 196, 0.05));
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.brand-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.brand-content {
    flex: 1;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.brand-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* サービス情報のスタイル */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.service-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.service-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.price-info {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    font-size: 1rem;
}

/* 制作環境のスタイル */
.work-environment {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.env-section {
    margin-bottom: 1.2rem;
}

.env-section:last-child {
    margin-bottom: 0;
}

.env-section h4 {
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.env-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 個人向けサービス */
.personal-services {
    background: rgba(78, 205, 196, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.platform-link:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.2);
}

.platform-info strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.platform-info span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.service-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
}

.service-item-simple strong {
    color: var(--text-dark);
}

.service-item-simple span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* work-noteのスタイル */
.work-note {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 107, 157, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.work-note p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.work-note strong {
    color: var(--text-dark);
}

/* Works セクション */
.works {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
    z-index: 1;
}

.works-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* ====================================
   切り替えタブのスタイル
   ==================================== */

.works-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem; /* ←これが重要！ボタン間の余白 */
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.works-nav button {
  padding: 0.6rem 1.2rem !important;
  border: 2px solid transparent;
  background: #f8f9fa;
  color: #6c757d;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* ← 影も小さく */
  font-size: 0.9rem !important; /* ← フォントサイズを追加 */
  /* グラデーションを均一にする */
  background-clip: padding-box;
}

/* すべて（デフォルト選択状態） */
.works-nav button.active,
.works-nav button[data-filter="all"].active {
  background: var(--default-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* イラスト */
.works-nav button[data-filter="illustration"].active,
.illustration-tag {
  background: var(--illustration-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ファンアート */
.works-nav button[data-filter="fanart"].active,
.fanart-tag {
  background: var(--fanart-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
}

/* プログラミング */
.works-nav button[data-filter="programming"].active,
.programming-tag {
  background: var(--programming-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* 写真 */
.works-nav button[data-filter="photography"].active,
.photography-tag {
  background: var(--photography-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
  /* 統一サイズの強制適用 */
  font-size: 0.9rem !important;
  padding: 0.6rem 1.2rem !important;
  margin: 0 !important;
  line-height: normal !important;
  flex-grow: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* ====================================
   作品タグのスタイル（統一）
   ==================================== */

.work-category-tag {
    font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: white;
}

.illustration-tag {
  background: var(--illustration-color);
}

.fanart-tag {
  background: var(--fanart-color);
}

.programming-tag {
  background: var(--programming-color);
}

/* 写真タグが大きくならないよう特別に制限 */
.photography-tag {
    background: var(--photography-color) !important;
}


/* ホバー効果 */
.works-nav button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.work-category-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.sort-btn {
    padding: 0.4rem 1rem;
    background: white;
    color: var(--text-light);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.85rem;
}

.sort-btn.active,
.sort-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.works-search-container {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.search-clear.show {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    background: var(--primary-color);
    color: white;
}

.search-results-info {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    min-height: 1.2rem;
}

.search-results-info.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.work-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 3;
}

.work-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 4;
}

.work-item.hide {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease-out;
    display: none !important;
}

.work-item.search-hidden {
    display: none !important;
}

.work-item.sorting {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item.sort-animate {
    animation: sortFadeIn 0.5s ease-out;
}

.work-image {
    height: 200px;
    overflow: hidden;
}

/* Coming Soon作品用スタイル */
.work-image.coming-soon {
    background: var(--illustration-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.coming-soon-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.coming-soon-content h4 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.coming-soon-content p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* ホバー効果 */
.work-item:hover .work-image.coming-soon {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}


.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
}

.illustration-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.programming-placeholder {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.photography-placeholder {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.work-actual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-actual-image {
    transform: scale(1.05);
}

.work-image img,
.work-image .placeholder-image {
    display: block;
    width: 100%;
    height: 200px;
}

.work-info {
    padding: 1.5rem;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.work-date::before {
    content: '📅';
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.work-category-tag {
    font-size: 0.7rem !important;
    font-weight: 600;
    padding: 0.3rem 0.6rem !important;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.work-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.work-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.work-play-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.work-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==== CONTACT SECTION - 2025年ミニマル再設計版 ==== */

.contact {
    padding: 5rem 0;
    background: #fafafa;
}

.contact .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヘッダー部分 */
.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Grid - 2x2レイアウト */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.2);
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-content {
    text-align: center;
}

/* 情報行 */
.info-line {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* メールボックス */
.email-box {
    background: rgba(255, 107, 157, 0.05);
    border: 2px solid rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.email-box:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
}

.email-address {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.email-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
    line-height: 1.5;
}

/* メールリンクの追加スタイル */
.email-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px;
}

.email-link:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.email-link:hover .email-address {
    color: #007bff;
    text-decoration: underline;
}

.email-note {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.4;
}


/* ソーシャルハンドル */
.social-handle {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* サービステキスト */
.services-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ====================================
SNS・プラットフォーム - PNG画像対応版
==================================== */

/* SNS・プラットフォームセクション */
.social-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 3rem;
    margin-top: 3rem;
}

.social-title {
    font-size: 1.5rem; /* contact-card-title と統一 */
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* SNSカード */
.social-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* PNG画像対応アイコン */
.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa; /* 軽いグレー背景 */
    flex-shrink: 0;
    padding: 8px; /* 画像に余白を追加 */
}

.social-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* アスペクト比を保持 */
    object-position: center;
}

/* SNS情報 - フォントサイズ統一 */
.social-info {
    flex: 1;
}

.social-name {
    font-size: 1.1rem; /* contact-card-title と統一 */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.social-desc {
    font-size: 0.9rem; /* info-line より少し小さく */
    color: var(--text-medium);
    line-height: 1.4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        padding: 1.5rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .social-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
}



/* 作品詳細モーダル */
.work-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-modal.show {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ====================================
🎨 ジャンル別最適化レイアウト - 1400行目付近
==================================== */

/* 基本レイアウト */
.modal-content {
    background: white;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
    display: flex;
    gap: 0;
    position: relative;
    box-shadow: var(--shadow-hover);
}

/* 左側エリア - 基本設定 */
.modal-left-section {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    padding: 3rem;
    min-height: 500px;
}

/* 🎨 イラスト・写真専用（画像のみ完璧中央） */
.modal-left-section.artwork-only {
    justify-content: center;
}

.modal-left-section.artwork-only .modal-work-image {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0; /* 余白完全除去 */
    flex-shrink: 0;
}

/* 🎮 プログラム・ゲーム専用（画像+ボタンセット） */
.modal-left-section.interactive {
    justify-content: center;
    align-items: center;
}

.modal-left-section.interactive .modal-work-image {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0 0 2rem 0; /* ボタン用余白 */
    flex-shrink: 0;
}

/* 画像共通スタイル */
.modal-work-image img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-work-image {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-work-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.modal-work-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-work-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.modal-work-details p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-work-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-open {
    overflow: hidden;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes sortFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .hero-circle {
        width: 200px;
        height: 200px;
    }
    
    .hero-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .about-content {
        max-width: none;
        padding: 0 1rem;
    }
    
    .brand-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .brand-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .about-heading {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .price-info {
        align-self: flex-end;
    }
    
    .platform-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .works-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .works-filter {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .works-search-container {
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-input {
        padding: 0.7rem 2.5rem 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-clear {
        right: 0.6rem;
        font-size: 1rem;
        width: 20px;
        height: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-methods {
        text-align: left;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-label {
        min-width: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .email-container {
        width: 100%;
    }
    
    .email-address {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .email-note {
        font-size: 0.75rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        padding: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-work-image,
    .modal-work-info {
        padding: 1.5rem;
    }
    
    .work-meta {
        justify-content: flex-start;
    }
    
    .work-date {
        font-size: 0.75rem;
    }
    
    .work-category-tag {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .works-grid {
        gap: 1rem;
    }
    
    .works-controls {
        gap: 1rem;
    }
    
    .filter-btn, .sort-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sort-label {
        font-size: 0.8rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .brand-item {
        padding: 1rem;
    }
    
    .about-heading {
        font-size: 1.3rem;
    }
}

/* 依頼受付カードセクション */
.request-section {
    margin: 2rem auto;            /* ← auto追加 */
    padding: 2rem 1.5rem;         /* ← 左右パディング追加 */
    max-width: 1200px;            /* ← 最大幅追加 */
}

.request-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
    /* 追加 */
    padding: 0 1rem;              /* ← パディング追加 */
}

@media (min-width: 768px) {
    .request-cards {
        /* カード幅を制限してコンパクトに */
        grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); /* ← 幅変更 */
        justify-content: center;   /* ← 中央揃え追加 */
        max-width: 1000px;         /* ← 最大幅追加 */
        margin: 1.5rem auto 0;     /* ← 中央配置追加 */
    }
}

/* デスクトップ用追加 */
@media (min-width: 1024px) {
    .request-cards {
        grid-template-columns: repeat(3, 300px);  /* ← 3列固定 */
        gap: 2rem;
    }
}

.request-card {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;          /* ← 角丸大きく */
    padding: 1.75rem;             /* ← パディング増加 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* 追加 */
    min-height: 140px;            /* ← 最小高さ */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.request-card:hover {
    transform: translateY(-3px);  /* ← より大きく */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.card-header {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-align: center;           /* ← 中央揃え追加 */
}

.card-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;           /* ← 中央揃え追加 */
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .request-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .card-header {
        color: #e2e8f0;
    }
    
    .card-content {
        color: #a0aec0;
    }
    
    .request-card:hover {
        border-color: #718096;
    }
}

/* 依頼受付カードのスタイル - 修正版 */
.request-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem; /* 余白を大きく */
}

.request-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    
    /* 重要：カード高さを統一 */
    display: flex;
    flex-direction: column;
    height: 280px; /* 固定高さで統一 */
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* カード内レイアウト構造 */
.card-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    flex: 0 0 auto;
}

.card-content {
    padding: 0 2rem;
    text-align: center;
    flex: 1 1 auto; /* コンテンツ領域は伸縮可能 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-footer {
    padding: 1rem 2rem 2rem 2rem;
    flex: 0 0 auto;
}

/* アイコンとタイトル */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

/* コンテンツテキスト */
.card-content p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 統一されたボタンスタイル */
.service-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto; /* ボタンを下部に固定 */
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* セクション間の適切な余白 */
.section-spacer {
    height: 3rem; /* 余白を明示的に追加 */
}

/* ご依頼の流れセクション */
.request-guide {
    background: var(--accent-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.request-guide h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.step p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .request-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .request-card {
        height: 180px; /* モバイルでは少し小さく */
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .request-card {
        height: 160px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        min-height: 35px;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .service-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* ====================================
   依頼受付カード修正 - 正しいバージョン
   ==================================== */

/* 正しいクラス名での設定 */
.request-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 0 auto 4rem auto !important;
    max-width: 1000px !important;
}

/* カードの高さを統一 */
.request-card {
    height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* カード内のレイアウト */
.card-content {
    height: 100% !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .request-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ====================================
   依頼受付カード余白修正 - 2025年9月19日
   ==================================== */

/* 依頼受付セクション専用のcard-titleのmargin調整 */
.request-cards-grid .card-title {
    margin-bottom: 1.5rem !important;
}

/* card-descriptionの余白調整 */
.request-cards-grid .card-description {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}

/* ==== 統一されたパターン - 内側タイトル版 ==== */

/* H3タイトルを非表示（セクション外部のタイトルを削除） */
.philosophy-section > h3 {
    display: none;
}

.philosophy-quote {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 3rem;
    min-height: 220px;
    background: rgba(255, 107, 157, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 内側ヘッダー（アイコン + タイトル） */
.philosophy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.philosophy-icon {
    font-size: 1.8rem;
    filter: grayscale(20%);
}

.philosophy-inner-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* 引用符の調整 - 削除または控えめに */
.philosophy-quote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem; /* 右上に移動 */
    font-size: 3rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    opacity: 0.1; /* より控えめに */
    line-height: 1;
    z-index: 1;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 2;
}

.philosophy-detail-inside {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
    font-style: italic;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    position: relative;
    z-index: 2;
}

/* Creator Identityとの統一性も確保 */
.creator-text {
    font-size: 1rem; /* 同じサイズに統一 */
    line-height: 1.6;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .philosophy-quote {
        padding: 2rem;
        min-height: 180px;
    }
    
    .philosophy-quote::before {
        font-size: 2.5rem;
        top: 0.5rem;
        right: 1rem;
    }
    
    .philosophy-inner-title {
        font-size: 1.2rem;
    }
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .quote-text {
        font-size: 0.95rem; /* モバイルでさらに調整 */
        line-height: 1.5;
    }
    
    .philosophy-detail-inside {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 0.9rem;
    }
}

/* スキルセクション - カード版 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center; /* タイトルを中央揃えに修正 */
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center; /* 中央揃えに修正 */
    margin-bottom: 1rem;
}

.skill-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center; /* 注釈テキストも中央揃え */
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;  /* この1行で上下スペースを管理 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

@media (max-width: 768px) {
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-highlights {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* レスポンシブでも中央揃えを維持 */
@media (max-width: 768px) {
    .skill-items {
        justify-content: center; /* モバイルでも中央揃え */
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .skill-items {
        justify-content: center; /* 小画面でも中央揃え */
        flex-direction: row; /* 横並びを維持 */
    }
}

/* レスポンシブでもバランス維持 */
@media (max-width: 768px) {
    .skill-card {
        text-align: center; /* モバイルでも中央揃え維持 */
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center; /* 縦積み時は中央揃え */
        text-align: center;
        gap: 0.3rem;
    }
}

/* 🎮 テトリス専用動的ボタンエリア */
.dynamic-button-area {
    display: none; /* デフォルトは非表示 */
    justify-content: center;
    align-items: center;
    margin: 25px 0 15px 0;
    padding: 0;
    animation: fadeInUp 0.3s ease-out;
}

.dynamic-button-area .work-play-btn {
    /* 既存のwork-play-btnスタイルを継承 */
    min-width: 180px;
    text-align: center;
}

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

/* 🎮 ボタンエリア - 美しい余白で配置 */
.dynamic-button-area {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%; /* ボタンも最大幅 */
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.dynamic-button-area .work-play-btn {
    width: 80%; /* 少し余裕を持ったサイズ */
    max-width: 300px; /* 最大幅制限 */
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 24px;
    border-radius: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.25);
}

.dynamic-button-area .work-play-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.35);
}

/* 🎨 ボタンなしの場合の画像配置調整 */
.modal-left-section.no-button .modal-work-image {
    margin-bottom: 0;
}

/* 🎨 レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .modal-left-section {
        flex: none;
        width: 100%;
        order: 1;
        padding: 2.5rem 2rem;
        min-height: auto;
        justify-content: flex-start;
    }
    
    .modal-work-info {
        order: 2;
        padding: 2.5rem 2rem;
    }
    
    .modal-work-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .dynamic-button-area {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .dynamic-button-area .work-play-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-left-section,
    .modal-work-info {
        padding: 2rem 1.5rem;
    }
    
    .modal-work-image {
        margin-bottom: 1.5rem;
    }
    
    .dynamic-button-area .work-play-btn {
        font-size: 15px;
        padding: 16px 20px;
    }
}

/* 🎨 背景グラデーションは維持（上品さのため） */
.modal-left-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}
