/* ===================================
   モデル一覧ページ - ぴにょぐらむphoto session
   =================================== */

/* フォント設定 */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* ページ全体のレイアウト */
.models-index-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #F5F5F5;
    min-height: 100vh;
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

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

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: var(--gray-600);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* ページヘッダー */
.page-header {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto 40px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* カテゴリフィルターセクション */
.category-filter-section {
    margin: 0 auto 24px auto;
    max-width: 1200px;
}

.category-filter-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 24px;
}

.category-filter {
    display: flex;
    gap: 12px;
    min-width: max-content;
    -webkit-overflow-scrolling: touch;
}

.category-filter::-webkit-scrollbar {
    height: 6px;
}

.category-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-filter::-webkit-scrollbar-thumb {
    background: #FFB6D9;
    border-radius: 3px;
}

.category-filter::-webkit-scrollbar-thumb:hover {
    background: #FF69B4;
}

.category-filter-button {
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #FFC9DA;
    background: white;
    color: #FF1493;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none;
    transform: scale(1);
    outline: none;
}

.category-filter-button:hover {
    background: #FFF0F5;
    border-color: #FFC9DA;
}

.category-filter-button:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.category-filter-button.active {
    background: #FF69B4;
    color: white;
    border-color: #FF69B4;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.category-filter-button.active:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.category-filter-button .count {
    margin-left: 8px;
    opacity: 0.8;
    font-weight: 500;
}

/* モデル一覧セクション */
.models-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto 40px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-md);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.model-card {
    background: white;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.model-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4のアスペクト比 */
    overflow: hidden;
    background: #f5f5f5;
}

.model-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.model-card-categories {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.model-card-category {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #FF1493;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.model-card-content {
    padding: 16px;
}

.model-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
}

.model-card-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-card-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(198, 125, 255, 0.2);
    border-bottom: 1px solid rgba(198, 125, 255, 0.2);
}

.model-card-stat {
    text-align: center;
}

.model-card-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.model-card-stat-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.model-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.model-card-button:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .category-filter-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .models-index-page {
        padding: 16px;
    }
    
    .page-header,
    .models-section,
    .category-filter-container {
        padding: 24px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .category-filter {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-filter-button {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .model-card-name {
        font-size: 16px;
    }
    
    .model-card-content {
        padding: 12px;
    }
    
    .model-card-categories {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    
    .model-card-category {
        padding: 3px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .page-header,
    .models-section {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .model-card-name {
        font-size: 14px;
    }
    
    .model-card-content {
        padding: 10px;
    }
    
    .model-card-categories {
        top: 6px;
        left: 6px;
        gap: 3px;
    }
    
    .model-card-category {
        padding: 2px 8px;
        font-size: 10px;
    }
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   モデル詳細ページ - ギャラリー
   =================================== */

/* ギャラリーセクション */
.gallery-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    overflow: visible;
    min-height: auto;
}

.gallery-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 24px;
    text-align: center;
}

/* ギャラリーセクション */
.gallery-section {
    margin: 40px 0;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Masonryグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    grid-auto-rows: min-content;
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: auto;
    min-height: 0;
}

.gallery-item[data-orientation="portrait"] {
    grid-row: span 2;
    height: auto;
}

.gallery-item[data-orientation="landscape"] {
    grid-column: span 2;
    grid-row: span 1;
    height: auto;
    align-self: start;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-item[data-orientation="portrait"] img {
    height: auto;
    object-fit: cover;
}

.gallery-item[data-orientation="landscape"] img {
    height: auto !important;
    object-fit: contain;
    max-height: none;
}

/* タイトル・説明文は非表示 */
.gallery-item-title,
.gallery-item-description {
    display: none;
}

/* 共有ボタン（ホバー時に表示） */
.share-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    color: #007bff;
}

.gallery-item:hover .share-button {
    opacity: 1;
}

.share-button:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.share-button.copied {
    background: #28a745;
    color: white;
}

.share-button.copied i::before {
    content: "\f00c"; /* Font Awesome check icon */
}

/* ハイライトアニメーション */
@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
        border: 3px solid transparent;
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0.3);
        border: 3px solid #007bff;
    }
}

.gallery-item.highlight-animation {
    animation: highlight-pulse 0.8s ease-in-out 3;
}

/* ライトボックス */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    max-width: 500px;
}

.lightbox-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.lightbox-description {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.lightbox-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.lightbox-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.lightbox-btn.secondary {
    background: var(--gray-600);
}

.lightbox-btn.secondary:hover {
    background: var(--gray-700);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-left {
    left: 30px;
}

.lightbox-nav-right {
    right: 30px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ライトボックス内の共有ボタン */
.lightbox-share {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    color: #007bff;
}

.lightbox-share:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.lightbox-share.copied {
    background: #28a745;
    color: white;
}

.lightbox-share.copied i::before {
    content: "\f00c"; /* Font Awesome check icon */
}

/* ライトボックスコンテンツにカーソルがある時にボタンを表示 */
.lightbox-content:hover .lightbox-share,
.lightbox-content:hover .lightbox-close,
.lightbox-content:hover .lightbox-nav {
    opacity: 1;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* レスポンシブ Masonry */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .lightbox-nav-left {
        left: 15px;
    }
    
    .lightbox-nav-right {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-info {
        padding: 16px;
        margin-top: 16px;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示 */
.model-card:focus,
.model-card-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===================================
   モデル詳細ページ - ぴにょぐらむphoto session
   =================================== */

/* ページ全体のレイアウト */
.model-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #F5F5F5;
    min-height: 100vh;
    overflow: visible;
}

/* プロフィールセクション */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* プロフィールヘッダー */
.profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* プロフィール画像コンテナ */
.profile-image-container {
    flex-shrink: 0;
    width: 280px;
}

.profile-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* プロフィール情報 */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    white-space: pre-line;
    margin-bottom: 0;
}

/* 注意事項・コメントセクション */
.info-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.info-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-section .section-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    white-space: pre-line;
}

/* SNSリンクとアップロードボタンのコンテナ */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

.sns-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sns-link:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

/* アップロードボタン */
.upload-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
    min-width: fit-content;
    width: auto;
    max-width: none;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.upload-button i {
    font-size: 1.1rem;
}

/* ギャラリーセクション */
.gallery-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

/* イベントセクション */
.events-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.events-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

.event-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(198, 125, 255, 0.15);
    border-color: rgba(198, 125, 255, 0.3);
}

.event-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(198, 125, 255, 0.2);
}

/* メディアフレーム（バナー画像） */
.media-frame {
    position: relative;
    aspect-ratio: 40 / 21;
    width: 100%;
    overflow: hidden;
    margin: 0;
    line-height: 0;
    border-radius: 12px 12px 0 0;
    background: #111;
    isolation: isolate;
}

.media-frame.is-40x21 {
    aspect-ratio: 40 / 21;
}

.media-frame.fill-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}

.media-overlay {
    position: absolute;
    inset: auto 0 0 0;
    margin: 0;
    line-height: normal;
    pointer-events: none;
    z-index: 2;
}

.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-limited {
    background: rgba(255, 149, 0, 0.9);
    color: white;
}

.event-content {
    padding: 20px;
    flex: 1;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-info {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-footer {
    padding: 15px 20px;
    background: var(--gray-50);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: min-content;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image-container {
        width: 100%;
        max-width: 280px;
    }
    
    .profile-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .profile-bio {
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .sns-links {
        justify-content: center;
    }
    
    .upload-section {
        width: 100%;
        justify-content: center;
    }
    
    .upload-button {
        width: auto;
        max-width: none;
        min-width: fit-content;
        justify-content: center;
        white-space: nowrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: min-content;
    }

    .gallery-item[data-orientation="landscape"] {
        grid-column: span 2;
    }
    
    .share-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .profile-section,
    .gallery-section,
    .events-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .info-section {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
    }
    
    .gallery-item {
        height: auto;
    }
    
    .gallery-item img {
        height: auto;
    }
    
    .gallery-item[data-orientation="portrait"],
    .gallery-item[data-orientation="landscape"] {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .model-detail-page {
        padding: 10px;
    }
    
    .profile-section,
    .gallery-section,
    .events-section {
        padding: 15px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-card {
        max-width: 100%;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-footer {
        padding: 10px 15px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .upload-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: fit-content;
        width: auto;
        max-width: calc(100vw - 40px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}