/* -------------------------------------------------------------
 * 神戸 義憲 公式ホームページ - スタイルシート
 * 静謐な和風・美術館風モダンプレミアムデザイン
 * ------------------------------------------------------------- */

/* 1. リセット & 共通変数設定 */
:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;
    --accent: #d4af37; /* 上品なゴールド */
    --accent-dim: rgba(212, 175, 55, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Noto Serif JP', serif;
    --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.8;
}

/* 2. 背景装飾 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 3. ヘッダー / ナビゲーション */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0) 100%);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-jp {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-primary);
}

.logo-en {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: var(--transition-medium);
    font-weight: 300;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-medium);
}

.site-nav a:hover {
    color: var(--text-primary);
}

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

/* 4. セクション共通レイアウト */
.section-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 4rem;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border-color);
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

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

/* 5. ヒーローセクション */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    z-index: 1;
    transform: scale(1.05);
    animation: zoomOutBg 10s ease-out forwards;
}

@keyframes zoomOutBg {
    to {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.title-wrap {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.artist-name {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.artist-name .jp {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-indent: 0.4em; /* 右余白によるズレを相殺 */
}

.artist-name .en {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.artist-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.artist-title .jp {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.8em;
    text-indent: 0.8em;
    color: var(--accent);
}

.artist-title .en {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeIn 2s ease-in 1.5s forwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-indicator .arrow {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    animation: scrollLine 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 6. ご挨拶 (About) */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text-column {
    display: flex;
    flex-direction: column;
}

.greeting-message {
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.greeting-lead {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.greeting-message p {
    margin-bottom: 1.8rem;
}

.greeting-closing {
    margin-top: 3rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.about-image-column {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(18, 18, 18, 0.4) 100%);
}

.intro-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-wrapper:hover .intro-image {
    transform: scale(1.05);
}

/* 7. 来歴 (Biography) */
.bio-layout {
    max-width: 900px;
}

.bio-intro {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 2;
}

.bio-profile-pair {
    --bio-photo-main-width: 260px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 0 auto 2rem;
}

.bio-profile-photo {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.bio-profile-photo-main {
    width: var(--bio-photo-main-width);
}

.bio-profile-photo-sub {
    width: calc(var(--bio-photo-main-width) * 0.75);
}

.bio-profile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bio-intro .birth-info {
    margin-bottom: 1rem;
}

.bio-intro .current-address {
    font-size: 1rem;
    color: var(--accent);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.bio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: var(--transition-medium);
}

.bio-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bio-card h3 {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.8rem;
}

.bio-card ul {
    list-style: none;
}

.bio-card li {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.bio-card li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.award-list li,
.exhibition-list li {
    display: grid;
    grid-template-columns: 5.6em minmax(0, 1fr) 8.8em;
    column-gap: 0.8rem;
    align-items: start;
}

.award-list .col-year,
.exhibition-list .col-year {
    white-space: nowrap;
}

.award-list .col-show,
.exhibition-list .col-show {
    min-width: 0;
}

.award-list .col-note,
.exhibition-list .col-note {
    white-space: nowrap;
}

/* 8. 代表作品 & お問い合わせ (Coming Soon) */
.coming-soon-box {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.01);
    padding: 6rem 4rem;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.coming-soon-title {
    font-size: 1.4rem;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.coming-soon-subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.coming-soon-deco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.05) 50%);
}

/* 8b. ギャラリーグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

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

/* 9. ギャラリーモーダル */
@keyframes floatingPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    z-index: 1002;
}

.modal-close:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.modal-body {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    /* PC版のレイアウト */
    opacity: 0;
    transform: scale(0.8);
    animation: floatingPopIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-image {
    flex: 0 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-info {
    flex: 0 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-detail {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    line-height: 2;
    color: var(--text-secondary);
}

/* スマートフォン版（768px以下） */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 2rem;
    }

    .modal-image {
        flex: 0 1 auto;
        width: 100%;
    }

    #modal-image {
        max-height: 50vh;
    }

    .modal-info {
        flex: 0 1 auto;
        width: 100%;
        text-align: center;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-detail {
        font-size: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .modal-content {
        padding: 1rem;
    }
}

/* 10. フッター */
.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* 10. スクロールフェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* キーフレームアニメーション */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* PC表示の圧迫感を抑えるため、全体を約80%スケールに調整 */
@media (min-width: 1200px) {
    html {
        font-size: 80%;
    }

    .section-inner {
        max-width: 960px;
    }

    .bio-layout {
        max-width: 720px;
    }

    .bio-profile-pair {
        --bio-photo-main-width: 208px;
    }
}

/* 11. レスポンシブ対応 */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-column {
        order: -1; /* スマホ・タブレットでは画像を先に表示 */
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav ul {
        gap: 1.5rem;
    }

    .section-container {
        padding: 6rem 2rem;
    }

    .artist-name .jp {
        font-size: 2.5rem;
    }

    .artist-name .en {
        font-size: 1rem;
    }

    .coming-soon-box {
        padding: 4rem 2rem;
    }

    .bio-profile-pair {
        --bio-photo-main-width: 180px;
        gap: 0.75rem;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .award-list li,
    .exhibition-list li {
        grid-template-columns: 5.2em minmax(0, 1fr);
        row-gap: 0.2rem;
    }

    .award-list .col-note,
    .exhibition-list .col-note {
        grid-column: 2;
        white-space: normal;
    }
}
