/**
 * Orikura サイト メインスタイルシート
 */

/* =========================================
   変数定義
   ========================================= */
:root {
    /* 基本色（ホワイト系） */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #f0f1f3;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;

    /* アクセント色 */
    --color-accent: #2c3e50;
    --color-accent-hover: #34495e;
    --color-border: #e0e0e0;
    --color-link: #2c3e50;
    --color-link-hover: #1a252f;

    /* すりガラス効果用 */
    --color-glass-bg: rgba(255, 255, 255, 0.85);
    --color-glass-border: rgba(255, 255, 255, 0.5);

    /* フォント */
    --font-family-base:
        "Sawarabi Mincho",
        "Noto Sans JP",
        -apple-system, BlinkMacSystemFont,
        "Yu Gothic UI", "游ゴシック",
        "Hiragino Sans", "ヒラギノ角ゴ ProN W3",
        Meiryo, "メイリオ",
        serif;

    /* レイアウト */
    --container-max-width: 1024px;
    --header-height: 80px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-primary);
    background-image: url('/data/media/background.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 背景画像オーバーレイ（テキスト可読性確保） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: opacity 150ms ease;
}

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* =========================================
   レイアウト
   ========================================= */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

main {
    flex: 1;
}

/* =========================================
   ヘッダー
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* サブヘッダーの絶対配置のため、headerにposition:relativeを追加 */
.header-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* =========================================
   モバイルメニューボタン（ハンバーガー）
   ========================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger-line:nth-child(2) {
    margin-bottom: 5px;
}

/* メニューオープン時のハンバーガーアニメーション */
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* メニューオープン時はハンバーガーのmarginをリセット */
.mobile-menu-btn[aria-expanded="true"] .hamburger-line {
    margin-bottom: 0;
}

.logo {
    height: 50px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-item:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.3);
    padding-left: 24px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--color-accent);
}

/* =========================================
   Artists サブヘッダー
   ========================================= */
.artist-subheader {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(100, 120, 140, 0.75);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1;
}

header:has(.nav-item--project:hover) .artist-subheader,
.artist-subheader:hover {
    max-height: 500px;
    opacity: 1;
}

.artist-subheader-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 16px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 24px;
    list-style: none;
}

.artist-grid-item {
    text-align: center;
}

.artist-grid-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.artist-grid-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   フッター
   ========================================= */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links li:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.3);
    padding-left: 24px;
}

.footer-links a {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.footer-copyright {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

/* =========================================
   セクション
   ========================================= */
section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    position: relative;
    padding: 24px 0;
    margin-bottom: 40px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.section-title::before {
    right: calc(50% + 120px);
}

.section-title::after {
    left: calc(50% + 120px);
}

/* =========================================
   ページタイトル（各ページのメインタイトル）
   ========================================= */
.page-title {
    display: flex;
    align-items: flex-start;
    padding: 32px 0;
    margin-bottom: 48px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-primary);
}

/* タイトルテキスト（baseline配置） */
.page-title-text {
    flex-shrink: 0;
    align-self: baseline;
    font-family: "Sawarabi Mincho", serif;
}

/* SVG 装飾コンテナ（baseline配置） */
.page-title-decoration {
    display: flex;
    align-items: baseline;
    margin: 0 8px;
    flex-shrink: 0;
    align-self: baseline;
}

/* SVG 装飾 */
.page-title-decoration svg {
    display: block;
    width: 50px;
    height: 20px;
}

/* 横線コンテナ（中央配置） */
.page-title-line-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    align-self: center;
}

/* 横線 */
.page-title-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-muted);
}

/* =========================================
   ヒーローセクション（YouTubeスライダー）
   ========================================= */
.hero-section {
    position: relative;
    padding: 0;
    background: transparent;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    position: relative;
}

.hero-slide__link {
    display: block;
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    padding: 40px 20px;
}

.hero-slide__info {
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slide__title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.hero-slide__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ナビゲーションボタン */
.hero-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.hero-nav {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-nav:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.hero-nav.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-nav__icon {
    width: 0;
    height: 0;
    border-style: solid;
}

.hero-nav--prev .hero-nav__icon {
    border-width: 6px 10px 6px 0;
    border-color: transparent white transparent transparent;
}

.hero-nav--next .hero-nav__icon {
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent white;
}

/* ドットインジケーター */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
    z-index: 10;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.hero-slider__dot.is-active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* =========================================
   Artists グリッド
   ========================================= */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.artist-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.artist-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.artist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.artist-card h3 {
    padding: 16px;
    text-align: center;
    font-size: 1rem;
}

/* =========================================
   Artists 一覧リスト
   ========================================= */
.artists-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.artists-list-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.artists-list-image-link {
    display: block;
    flex-shrink: 0;
    width: 200px;
}

.artists-list-image-link img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.artists-list-image-link:hover img {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.artists-list-info {
    flex: 1;
}

.artists-list-info h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.artists-list-info h2 a {
    color: var(--color-text-primary);
    transition: color 0.15s ease;
}

.artists-list-info h2 a:hover {
    color: var(--color-accent);
}

.artists-list-overview {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =========================================
   アーティスト詳細ページ
   ========================================= */
.artist-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.artist-detail-name {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text-primary);
}

.artist-detail-image {
    text-align: center;
    margin-bottom: 32px;
}

.artist-detail-image img {
    max-width: 75%;
    max-height: 800px;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}

.artist-detail .artist-overview {
    text-align: center;
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.artist-sns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sns-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sns-link:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* アーティスト詳細情報セクション */
.artist-details {
    max-width: 800px;
    margin: 64px auto 0;
}

.artist-detail-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.artist-detail-item-image {
    flex: 0 0 40%;
}

.artist-detail-item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.artist-detail-item-image a {
    display: block;
    transition: transform 0.2s ease;
}

.artist-detail-item-image a:hover img {
    transform: scale(1.03);
}

.artist-detail-item-content {
    flex: 1;
}

.artist-detail-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.artist-detail-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =========================================
   News リスト
   ========================================= */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-radius: 12px;
    padding: 16px 24px;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.news-title {
    font-size: 1rem;
}

.news-title a {
    color: var(--color-link);
}

/* =========================================
   プロフィールセクション
   ========================================= */
.profile-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

/* =========================================
   ユーティリティ
   ========================================= */
.no-data {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 0;
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 767px) {
    /* ハンバーガーメニューボタンを表示 */
    .mobile-menu-btn {
        display: flex;
    }

    /* ナビゲーションリストを非表示（デフォルト） */
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 16px 0;
        z-index: 999;
    }

    /* メニューオープン時に表示 */
    .nav-list.is-open {
        display: flex;
    }

    /* ナビゲーションアイテムのスタイル調整 */
    .nav-item {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
        color: var(--color-accent);
    }

    .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
        opacity: 1;
    }

    /* Artists サブヘッダー：非表示（ホバーで表示できないため） */
    .artist-subheader {
        display: none;
    }

    /* トップページ Project グリッド：1列表示 */
    .artists-grid {
        grid-template-columns: 1fr;
    }

    /* プロジェクト一覧リスト：縦並び */
    .artists-list-item {
        flex-direction: column;
        gap: 16px;
    }

    .artists-list-image-link {
        width: 100%;
    }

    /* プロジェクト詳細：縦並び */
    .artist-detail-item {
        flex-direction: column;
        gap: 16px;
    }

    .artist-detail-item-image {
        flex: 0 0 100%;
    }

    /* アーティスト詳細画像のモバイル対応 */
    .artist-detail-image img {
        max-width: 100%;
        max-height: 600px;
    }

    /* プロフィール：縦並び */
    .profile-content {
        flex-direction: column;
        align-items: center;
    }

    /* ニュースリスト：日付とタイトルを縦並び */
    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    /* ヒーロースライダー調整 */
    .hero-slide__title {
        font-size: 1.5rem;
    }

    .hero-slide__description {
        font-size: 0.85rem;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-navigation {
        padding: 0 10px;
    }

    .hero-dots {
        gap: 6px;
    }

    .hero-slider__dot {
        width: 10px;
        height: 10px;
    }

    /* フッター：縦並び */
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links li:not(:first-child) {
        border-left: none;
        padding-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* トップページ Project グリッド：2列 */
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Artists サブヘッダーグリッド：3列 */
    .artist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
