/* --------------------------------------------------------------------------
   白隠さんの禅 — ヒーロー（MV 右／下に情報パネル）
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
    background-color: #0d1210;
    color: #f5f2eb;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ----- モバイル（900px 未満）: 上詰め MV、スクロール可 ----- */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 100dvh;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #1a1f1c;
}

.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(8, 12, 10, 0.32) 100%
    );
}

.hero__figure {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.hero__mv {
    display: block;
    width: 100%;
    height: auto;
}

.hero__image-credit {
    position: absolute;
    left: 0.5rem;
    bottom: 0.4rem;
    z-index: 1;
    margin: 0;
    padding: 0.15rem 0.35rem;
    font-size: clamp(0.48rem, 1.4vw, 0.62rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.hero__panel {
    position: relative;
    flex-shrink: 0;
    color: #faf8f3;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(212, 175, 95, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, #141c18 0%, #0a0e0c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__panel::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    top: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 95, 0.85) 30%,
        rgba(212, 175, 95, 0.5) 70%,
        transparent
    );
}

.hero__panel-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.1rem 1rem;
    max-width: 36rem;
    margin-inline: auto;
}

.hero__panel-stack {
    flex: 0 0 auto;
}

/* ----- ヘッダー ----- */
.hero__header {
    margin-bottom: 0.65rem;
    text-align: center;
}

.hero__credit {
    margin: 0 auto 0.45rem;
    max-width: 22rem;
    font-size: clamp(0.94rem, 3vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.hero__title {
    margin: 0;
    line-height: 0;
}

/* 約 1.5 倍（220px → 330px 相当） */
.hero__logo {
    display: block;
    width: min(100%, 330px);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
}

/* ----- メタ（会期・会場とも会期色） ----- */
.hero__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.meta-line {
    margin: 0;
    font-size: clamp(0.88rem, 3.4vw, 1rem);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0.05em;
    color: #d4b87a;
}

.meta-line__year,
.meta-line__week {
    font-size: 0.82em;
    font-weight: 500;
    color: #c9a96a;
}

.meta-line__date-mid {
    font-weight: 600;
    color: #d4b87a;
}

.meta-line__tilde {
    margin: 0 0.12em;
    font-weight: 600;
    color: #d4b87a;
}

/* ----- フッタークレジット ----- */
.site-credit {
    margin: 0.85rem 0 0;
    padding-top: 0.35rem;
    text-align: right;
    font-size: clamp(0.58rem, 1.65vw, 0.68rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    align-self: flex-end;
    width: 100%;
}

@media (max-width: 899px) and (max-height: 640px) {
    .hero__panel-inner {
        padding: 0.55rem 0.85rem 0.65rem;
    }

    .hero__header {
        margin-bottom: 0.45rem;
    }

    .hero__credit {
        font-size: clamp(0.82rem, 2.6vw, 0.92rem);
        margin-bottom: 0.3rem;
    }

    .hero__logo {
        width: min(100%, 300px);
    }

    .hero__meta {
        gap: 0.32rem;
    }

    .meta-line {
        font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    }
}

/* ----- デスクトップ（900px 以上） ----- */
@media (min-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        min-height: 100dvh;
        column-gap: clamp(0.5rem, 1.35vw, 1.1rem);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(100dvh, auto);
        align-items: stretch;
    }

    .hero__visual {
        min-height: 100dvh;
        justify-content: flex-end;
        align-items: flex-start;
        padding-inline-end: clamp(0.2rem, 0.65vw, 0.55rem);
    }

    .hero__visual::after {
        background: linear-gradient(
            90deg,
            transparent 40%,
            rgba(8, 12, 10, 0.22) 78%,
            rgba(8, 12, 10, 0.48) 100%
        );
    }

    .hero__figure {
        width: auto;
        max-width: 100%;
        max-height: 100dvh;
    }

    .hero__mv {
        width: auto;
        max-width: 100%;
        max-height: 100dvh;
        height: auto;
        object-fit: contain;
        object-position: top center;
    }

    .hero__panel {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        padding-inline-start: clamp(0.15rem, 0.45vw, 0.4rem);
        padding-inline-end: clamp(0.75rem, 2vw, 1.5rem);
    }

    .hero__panel::before {
        left: 0;
        transform: none;
        width: 3px;
        height: 100%;
        top: 0;
        background: linear-gradient(
            180deg,
            rgba(212, 175, 95, 0.85) 0%,
            rgba(212, 175, 95, 0.25) 35%,
            transparent 70%
        );
    }

    .hero__panel-inner {
        flex: 0 1 auto;
        width: 100%;
        max-width: 34rem;
        margin-inline: 0;
        margin-inline-end: auto;
        padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
        min-height: 100dvh;
    }

    .hero__panel-stack {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
    }

    .hero__header {
        margin-bottom: clamp(2.1rem, 3.6vw, 2.85rem);
    }

    .hero__credit {
        font-size: clamp(1.02rem, 1.45vw, 1.18rem);
        margin-bottom: 0.7rem;
        max-width: none;
    }

    .hero__logo {
        width: min(100%, clamp(360px, 40vw, 510px));
    }

    .hero__meta {
        gap: clamp(0.55rem, 1vw, 0.85rem);
    }

    .meta-line {
        font-size: clamp(1.18rem, 2vw, 1.52rem);
        line-height: 1.42;
    }

    /* 年・曜日を一段小さく（強弱） */
    .meta-line__year,
    .meta-line__week {
        font-size: 0.76em;
        font-weight: 500;
        color: #c9a96a;
    }

    .meta-line__date-mid {
        font-size: 1em;
    }

    .site-credit {
        margin-top: auto;
        padding-top: 1rem;
        font-size: clamp(0.62rem, 0.95vw, 0.74rem);
    }
}
