/* --- 基本設定 --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* ヘッダー被り対策 */
}
body {
    margin: 0;
    font-family: "Zen Maru Gothic", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    font-weight: 700;
}
* {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    transition: opacity 0.3s;
    color: #FF00B1;
}

a:hover {
    opacity: 0.7;
}
.artists a:hover,
.artists a:hover span {
    opacity: 1;
    color: white;
    background-color: #FF00B1;
}

img {
    width: 100%;
}
h1 {
    margin: 0;
    padding: 0;
    line-height: 0;
}
/* --- レイアウトユーティリティ --- */
.container {
    max-width: 960px;
    margin: 0 auto;
}

section.logo.pc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
section.logo.pc img {
    width: 98%;
}
section.logo.pc img.tiny {
    position: fixed;
    width: 40px;
    height: auto;
    right: 0;
    top: 0;
}
section.logo.smp {
    display: none;
}

/* --- ヘッダー --- */
header {
    /* PC: 右端固定 */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: auto;
    padding: 0 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    /* 垂直中央 */
    pointer-events: none;
    /* 領域のクリック透過 */
}
header .container {
    width: auto;
    margin: 0;
    max-width: none;
}
nav {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
/* PC操作中に隠すためのクラス */
nav.hidden .nav-links a {
    opacity: 0;
    pointer-events: none;
}
/* ナビゲーションにマウスが乗っている時は隠さない（操作可能にするため） */
nav:hover .nav-links a {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* 常に表示される横線 */
.nav-links li::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ccc;
    margin-left: 15px;
}
.nav-links a {
    color: #FF00B1;
    font-weight: bold;
    font-size: 1.2rem;
    transition: opacity 0.5s ease;
}

/* --- ハンバーガーメニューボタン --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* --- ヒーローセクション（メインビジュアル） --- */
.hero {
    background-image: url("../image/main-kojima.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    padding: 100px 0;
    height: 150vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 20vh;
}
.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}
.hero p {
    background-color: rgba(0,0,0,0.1);
    width: 40%;
    line-height: 3;
    padding: 0;
    margin: 0;
    font-size: 1.3em;
}
#dates {
    position: fixed;
    bottom: 1em;
    left: 1em;
    width: 50%;
    max-width: 800px;
    z-index: 90;
}

/* --- メインセクション --- */
section.main {
    min-height: 150vh;
    background-color: #fff;
    background-image: url("../image/svg/title-logo-pink.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center 30%;
    display: flex;
    flex-wrap: wrap;
}
section.main div:first-child {
    width: 60%;
    display: flex;
    flex-direction: column;
}
section.main div:first-child img:nth-child(1) {
    width: 50%;
    margin-left: 10%;
    margin-top: -30%;
}
section.main div:first-child img:nth-child(2) {
    width: 65%;
    margin-top: 80%;
    margin-left: 25%;
}
section.main div:first-child img:nth-child(3) {
    width: 80%;
    margin-top: 10%;
}
section.main div:first-child img:nth-child(4) {
    width: 65%;
    margin-top: 5%;
    margin-left: 30%;
}

section.main div:last-child {
    width: 40%;
    padding-top: 10%;
}
section.main p {
    width: 90%;
    font-size: 1.2em;
    line-height: 3;

    background-color: rgba(255,255,255,0.9);

}
section.main p:first-child {
    margin-bottom: 100%;
}

/* --- アーティストセクション ---*/
section.artists {
    background-color: #fff;
    color: #FF00B1;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 3;
    background-image: url("../image/svg/parts-artists.svg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 10%;
    width: 100%;
    min-height: 80vh;
    margin: 10vh 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10%;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20vh;
}

section.artists div {
    width: 28%;
    height: 100%;
}
section.artists div span {
    line-height: 1.2;
    display: inline-block;
}
section.artists div small {
    color: #888;
    font-size: 0.6em;
    font-weight: 400;
}
section.artists a span.smp {
    display: none;
}

/* --- 作品セクション ---*/
section.works {
    width: 85%;
    margin-bottom: 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
section.works img:nth-child(1) {
    width: 50%;
    height: auto;
}
section.works img:nth-child(2) {
    width: 40%;
    margin-top: 25%;
    height: auto;
}
section.works img:nth-child(3) {
    width: 70%;
    margin-top: 5%;
    margin-left: 15%;
    height: auto;
}
section.works img:nth-child(4) {
    width: 45%;
    margin-top: 5%;
    margin-left: 2%;
    height: auto;
}
section.works img:nth-child(5) {
    width: 50%;
    margin-top: -10%;
    margin-left: 55%;
    height: auto;
}

/* --- アクセスセクション ---*/
section#access .container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5%;
}
.prop {
    font-size: 0.9em;
}
section#access div div {
    width: 65%;
}
.logo-full {
    width: 40%;
}
section#access div div.map {
    width: 30%;
}
span.date,
.date-num span{
    font-size: 1.2em;
}
span.smaller{ font-size: 0.9em;}
/* --- イベントセクション ---*/
section#event {
    min-height: 70vh;
    padding: 5em 0;
    color: #FF00B1;
}

section#event .container {
    width: 100%;
}

/* --- フッター --- */
.footer-top-image {
    width: 93%;
    margin-left: 1%;
}
footer {
    background: #FF00B1;
    color: #000000;
    text-align: right;
    padding: 2em 0 1em;
    font-size: 0.8rem;
    margin: 0;

}
footer div {
    width: 43%;
    margin-left: 57%;
}

/* --- To Top ボタン --- */
#to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    /* 灰色 */
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* 初期状態は隠す */
    pointer-events: none;
    transition: opacity 0.3s;
}
#to-top.active {
    opacity: 1;
    pointer-events: auto;
}
/* 上向きの三角（線） */
#to-top::after {
    content: '';
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 6px;
    /* 重心調整 */
}
.pc {
    display: block;
}
.smp {
    display: none;
}
.bktc {
    background-color: #FF00B1;
    padding: 1em 0;
}

/* --- タブレット対応 (メディアクエリ) --- */
@media (max-width: 960px) {
    .pc {
        display: none;
    }
    .smp {
        display: block;
    }
    /* ヘッダーを上部固定に戻す */
    header {
        position: sticky;
        top: 0;
        right: auto;
        height: auto;
        width: 100%;
        padding: 20px 0;
        display: block;
        pointer-events: auto;
        background: rgba(255,255,255,0);
    }
    header .container {
        margin: 0 auto;
        padding: 0 20px 0 0;
    }
    nav {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        opacity: 1 !important;
        /* スマホでは常に表示 */
        pointer-events: auto !important;
    }

    .nav-links li {
        display: block;
    }
    .nav-links li::after {
        display: none;
    }

    section.logo.pc {
        display: none;
    }
    section.logo.smp {
        display: block;
    }
    section.logo.smp img {
        width: 98%;
    }
    section.logo.smp img.tiny {
        position: absolute;
        width: 40px;
        height: auto;
        right: 10px;
        top: 80px;
    }
    h1 {
        margin-top: 50px;
    }

    .hero {
        padding: 0;
        margin-top: 0;
        background-size: cover;
        background-position: top center;
        height: 40vh;
        background-color: #FF00B1;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    #dates,
    .hero .container {
        display: none;
    }

    .smp .container p {
        font-size: 1.2em;
        line-height: 2;

    }
    /* ハンバーガー表示 */
    .hamburger {
        display: block;
    }

    /* スマホ用メニュー（初期状態は隠す） */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        gap: 40px;
        /* メニュー間の間隔 */
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    /* ハンバーガーのアニメーション */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* --- Flex要素のスマホ対応（縦並び・幅98%） --- */
    .container {
        width: 98%;
        padding: 0 1%;
    }

    /* Main Section */
    section.main {
        flex-direction: column;
        background-image: none;
    }
    section.main div:first-child,
    section.main div:last-child {
        width: 98%;
        margin: 0 auto;
        padding: 0;

    }
    /* 画像の配置リセット（PC用のマージンを解除） */
    section.main div:first-child img:nth-child(1),
    section.main div:first-child img:nth-child(2),
    section.main div:first-child img:nth-child(3),
    section.main div:first-child img:nth-child(4) {
        width: 100%;
        margin: 10px 0;
    }
    section.main p {
        width: 100%;
        line-height: 2;
        padding: 0 5%;
    }
    section.main p.js-mobile-caption {
        padding: 0;
    }

    section.main p:first-child {
        margin-bottom: 40px;
        /* PC用の大きな余白を縮小 */
    }

    /* Artists Section */
    section.artists {
        background-size: 15%;
        flex-direction: column;
        padding-top: 0;
        gap: 40px;
    }
    section.artists div {
        width: 75%;
        margin-left: 20%;
        height: auto;
        text-align: left;
    }
    section.artists a span.smp {
        display: inline-block;
        color: #909090;
        padding-left: 1.5em;
        font-weight: 500;
    }
    /* Works Section */
    section.works {
        width: 98%;
        flex-direction: column;
        margin: 0 auto 50px;
    }
    section.works img:nth-child(1),
    section.works img:nth-child(2),
    section.works img:nth-child(3),
    section.works img:nth-child(4),
    section.works img:nth-child(5) {
        width: 100%;
        margin: 10px 0;
    }
    .container {
        padding: 0 1em;
    }
    /* Access Section */
    section#access .container {
        flex-direction: column;

        align-items: start;
    }

    section#access {
        padding: 0 5%;
    }
    section#access div div {
        width: 98%;
    }

    section#access div div.map {
        width: 60%;
        margin: 0;
    }

    .logo-full {
        width: 40%;
        margin-bottom: 3em;
    }

    section#event {
        min-height: 50vh;
        font-size: 0.9em;
        padding-left: 5%;
        padding-right: 5%;
    }
    /* Footer */
    footer {
        text-align: center;
    }
    footer div {
        width: 98%;
        margin: 0 auto;
    }
}

/* --- スマホ対応 (メディアクエリ) --- */
@media (max-width: 600px) {
    section#access div div.map {
        width: 90%;
        margin: 0;
    }
    .logo-full {
        width: 60%;
        margin-bottom: 10em;
    }
}

/* --- PCのみ: Lightbox画像のホバーエフェクト --- */
@media (min-width: 961px) {
    img.lightbox {
        transition: transform 0.5s ease;
    }
    img.lightbox:hover {
        transform: translateY(-5px);
    }
}
