/* =========================================
   HDR Photo Gallery PoC - Top Page (Portal) Stylesheet
   ========================================= */

:root {
    --bg-color: #080808;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #f59e0b; /* 暖かいアンバーの輝き */
    --accent-blue: #3b82f6;
    --card-bg: rgba(255, 255, 255, 0.02);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

img {
    -webkit-touch-callout: none; /* iOS Safari長押し保存禁止 */
    -webkit-user-drag: none;      /* Chrome, Safari ドラッグ禁止 */
    user-select: none;            /* 選択禁止 */
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 100% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 45%);
    color: var(--text-color);
    font-family: 'Outfit', 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ヒーローセクション */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 20%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    letter-spacing: 0.02em;
}

/* 注意書ナビゲーションバナー */
.notice-banner {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.notice-banner:hover {
    border-color: var(--accent-color);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
}

.notice-banner-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #f3f4f6;
    text-align: left;
}

.notice-banner-text svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.notice-banner-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* メインコンテナ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* セクションタイトル */
.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.section-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* カテゴリグリッド */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* カテゴリカード */
.category-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: default; /* カード自体はリンクではなく、中のボタンがリンクになる */
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: var(--transition-smooth);
    filter: brightness(0.6) saturate(0.8);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.4) 50%, rgba(8, 8, 8, 0.1) 100%);
    z-index: 1;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.8rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.category-tag-en {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.category-footer {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

/* ホバーエフェクト */
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.05), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.category-card:hover img {
    opacity: 0.5;
    transform: scale(1.03);
    filter: brightness(0.8) saturate(1.05);
}

/* おすすめ周辺機器・機材スペース（アドブロック対策済） */
.gear-section {
    margin-bottom: 5rem;
    background: radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    border-radius: 24px;
    padding: 1px; /* グラス境界用 */
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* 周辺機器紹介カード */
.gear-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.gear-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.gear-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.gear-visual-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 画像のはみ出しを防ぐ */
    transition: var(--transition-smooth);
}

.gear-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 綺麗に切り抜いてフィットさせる */
    transition: var(--transition-smooth);
    user-select: none;
    -webkit-user-drag: none;
}

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

.gear-card:hover .gear-visual-placeholder {
    border-color: rgba(245, 158, 11, 0.15);
}

.gear-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gear-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.gear-btn {
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.gear-card:hover .gear-btn {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* カテゴリーカード内のアクションエリアとインラインnoteボタン */
.category-actions {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* 共通ボタンスタイル */
.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem; /* 文字が綺麗に収まるよう微調整 */
    font-weight: 600;
    padding: 0.7rem 0.8rem; /* 左右の余白を少しだけ詰めて幅を確保 */
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-height: 44px; /* スマホタップの推奨サイズ */
    box-sizing: border-box;
    flex: 1; /* 親要素がhas-noteなら2つ並んで等幅になる */
    text-align: center;
    white-space: nowrap; /* ボタンテキストの途中で改行されるのを防止 */
}

/* プライマリ（ギャラリーを見る）ボタン */
.category-btn-primary {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #080808;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* noteボタン */
.category-btn-note {
    color: #a7f3d0; /* 上品なペールグリーン */
    background: rgba(44, 182, 150, 0.1);
    border: 1px solid rgba(44, 182, 150, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-btn-note:hover {
    background: #2cb696;
    border-color: #2cb696;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 182, 150, 0.3);
}

.category-btn svg {
    color: inherit;
    flex-shrink: 0;
}

/* フッター */
.footer {
    text-align: center;
    padding: 4rem 1rem;
    color: #4b5563;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    max-width: 1200px;
    margin: 4rem auto 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p.hero-desc {
        font-size: 0.95rem;
    }
    
    .notice-banner {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.2rem 1.5rem;
        border-radius: 24px;
        text-align: center;
    }
    
    .notice-banner-text {
        text-align: center;
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.85rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* スマホなど特に狭い画面（480px以下）でのボタン縦並び化 */
    @media (max-width: 480px) {
        .category-actions.has-note {
            flex-direction: column;
            gap: 0.6rem;
        }
        
        .category-btn {
            width: 100%;
            flex: none; /* 縦並び時は自動伸縮させない */
        }
    }
}
