/* トップページ専用(body.home)。共通の配色・フォント・フッターは theme.css */
/* トップでは共通ヘッダー(ロゴバー)の代わりにヒーローを使う */
body.home #header { display: none; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 80vh;
    height: 80svh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 40%;
    opacity: 0;
    transform: scale(1);
    /* 非表示になる間(4.4秒)は拡大のまま保ち、見えなくなってから元に戻す */
    transition: opacity 4.4s ease-in-out, transform 0s linear 4.4s;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.08);
    transition: opacity 4.4s ease-in-out, transform 16s linear;
}
/* 読み込み直後の1枚目(拡大前の状態から寄り始める) */
.hero-slide.is-active.is-first {
    transform: scale(1);
    transition: none;
}
/* 光の漏れ(ヒーローの写真の上に、暖かい光が滲んで流れる) */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}
.hero::before {
    background: radial-gradient(46% 34% at 96% 6%, rgba(255, 150, 70, 0.28), rgba(255, 150, 70, 0) 70%);
    animation: leakBreathe 9s ease-in-out infinite alternate;
}
.hero::after {
    background: linear-gradient(105deg, rgba(255, 170, 95, 0) 36%, rgba(255, 170, 95, 0.08) 47%, rgba(255, 112, 112, 0.05) 54%, rgba(255, 112, 112, 0) 65%) 130% 0 / 230% 100% no-repeat;
    animation: leakSweep 16s ease-in-out infinite;
}
@keyframes leakBreathe {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
}
@keyframes leakSweep {
    0%, 12% { background-position: 130% 0; }
    70%, 100% { background-position: -30% 0; }
}
.hero-top,
.hero-body,
.hero-scroll { z-index: 2; }
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--bg) 2%, rgba(13, 13, 13, 0.55) 38%, rgba(13, 13, 13, 0) 65%),
        linear-gradient(to bottom, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0) 22%);
}
.hero-top {
    position: absolute;
    top: 38px;
    right: 22px;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--ink);
    opacity: 0.8;
}
.hero-body {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 0 20px 46px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-top: -4px;
    background: rgba(13, 13, 13, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-decoration: none;
    opacity: 0;
    animation: rise 1s ease 0.9s forwards;
}
.hero-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 185, 171, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(196, 185, 171, 0); }
}
.hero-logo {
    margin: 4px 0 0 -4px;
    padding: 0 0.16em 0.06em 0;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(120px, 44vw, 330px);
    line-height: 0.9;
    letter-spacing: 0;
    color: var(--ink);
    opacity: 0;
    animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) 0.5s forwards;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: none; }
}
.hero-scroll {
    position: absolute;
    right: 22px;
    bottom: 46px;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: 0.35em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-scroll::after {
    content: "";
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, var(--accent), rgba(196, 185, 171, 0));
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); }
    60% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

/* スマホ(縦長画面): 横長写真を3:2で全幅に見せ、下端を背景に溶かしてロゴを重ねる */
@media (max-width: 767px) {
    .hero {
        display: block;
        height: auto;
        min-height: 0;
    }
    .hero-slides {
        position: relative;
        inset: auto;
        margin-top: 70px;
        aspect-ratio: 3 / 2;
        -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
        mask-image: linear-gradient(to bottom, #000 72%, transparent);
    }
    .hero-shade {
        background: linear-gradient(to bottom, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0) 22%);
    }
    .hero-body {
        margin-top: -120px;
        padding-bottom: 44px;
    }
    .hero-scroll { bottom: 34px; }
}

/* ---------- TICKER ---------- */
.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: rgba(196, 185, 171, 0.88);
    color: #0d0d0d;
    transform: rotate(-1.5deg) scale(1.03);
    contain: paint;
    margin: -14px 0 20px;
    padding: 6px 0 7px;
    white-space: nowrap;
}
.ticker-track {
    display: inline-flex;
    align-items: baseline;
    /* 余白は gap ではなく各要素の右マージンで持たせる(最後の要素の後ろにも余白があるので、-50% でちょうど1周期になる) */
    gap: 0;
    will-change: transform;
    backface-visibility: hidden;
    animation: marquee 32s linear infinite;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: 0.04em;
}
/* 手書きフォントは下側(ディセンダー分)の余白が大きく、文字が上に寄って見えるので少し下げる */
.ticker-track > span { position: relative; top: 3px; }
.ticker-track > * { margin-right: 28px; }
.ticker-track .jp { font-size: 0.8em; letter-spacing: 0.1em; }
.ticker-track .horse {
    flex: none;
    align-self: center;
    width: 54px;
    height: 38px;
    fill: currentColor;
    opacity: 0.85;
    transform: scaleX(-1); /* 流れる向き(左)に顔を向ける */
}
@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
/* フォント(手書き風)が読み込まれて文字幅が変わるまで、帯は止めておく(途中の幅の変化で動きが飛ぶのを防ぐ) */
.fw .ticker-track { animation-play-state: paused; }

/* スマホなど、描画が重くなりやすい端末では、画面全体に重なる光の動きを止める(見た目は静止した淡い光のまま) */
@media (max-width: 767px), (hover: none) {
    .hero::before, .hero::after { animation: none; mix-blend-mode: normal; }
    .hero::after { display: none; }
    .hero::before { opacity: 0.55; }
}

/* ---------- 見出し ---------- */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 70px 0 24px;
    font-family: 'Caveat', cursive;
    font-size: clamp(46px, 12vw, 68px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: none;
    text-shadow: 3px 4px 10px rgba(0, 0, 0, 0.55);
}
.section-title::after {
    content: "";
    flex: 1;
    align-self: center;
    height: 1px;
    background: linear-gradient(to right, rgba(196, 185, 171, 0.55), rgba(196, 185, 171, 0));
}

/* ---------- RELEASES(ベントー) ---------- */
.releases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.release {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #181818;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.3s;
}
.release:hover { transform: translateY(-5px); border-color: rgba(196, 185, 171, 0.6); }
.release img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.release:hover img { transform: scale(1.05); }
.release-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 18px;
}
.release-meta strong { font-size: 17px; line-height: 1.3; }
.release-meta small { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.tag {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.release-main { grid-column: 1 / -1; }
.release-main .release-meta { position: relative; }
.release-main strong { font-size: 26px; }
.release-main .tag { color: #0d0d0d; background: var(--accent); border-color: var(--accent); }
.pill {
    position: absolute;
    right: 16px;
    bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #0d0d0d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background 0.25s;
}
.release-main:hover .pill { background: var(--accent); }
.release-all {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    background: transparent;
    border-style: dashed;
}
.release-all i {
    font-style: normal;
    font-size: 40px;
    color: var(--accent);
    transition: transform 0.3s;
}
.release-all:hover i { transform: translateX(8px); }

/* ---------- NEWS(トップ) ---------- */
.top-news-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: padding-left 0.35s cubic-bezier(.2, .7, .2, 1), color 0.25s;
}
.top-news-item:first-child { border-top: 1px solid var(--line); }
.top-news-item .d {
    flex-shrink: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--accent);
}
.top-news-item .t {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}
.top-news-item i {
    font-style: normal;
    color: var(--muted);
    transition: transform 0.3s, color 0.25s;
}
@media (max-width: 520px) {
    .top-news-item { flex-wrap: wrap; gap: 6px 12px; }
    .top-news-item .d { width: 100%; }
}
.top-news-item:hover { padding-left: 12px; }
.top-news-item:hover i { color: var(--accent); transform: translateX(4px); }

/* ---------- LATEST ---------- */
body.home #free-space { margin-bottom: 130px; }
body.home .free-space-item { margin-top: 20px; display: block; }
body.home .free-space-item iframe { display: block; width: 100%; border-radius: 14px; }
.listen-link {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
}
.listen-link a {
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--accent);
    transition: color 0.2s;
}
.listen-link a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero::before, .hero::after { animation: none; }
    .ticker-track, .hero-logo, .hero-chip, .hero-chip .dot, .hero-scroll::after { animation: none; }
    .hero-slide { transform: none; transition: opacity 0.01s; }
    .hero-logo, .hero-chip { opacity: 1; }
}
