/*
 * home-v2.css — HOME page (ネギさい v3)
 * Prefix: .h-  (home)
 * Uses --n-* tokens from brand.css.
 *
 * 設計原則:
 * - タイポグラフィ主役
 * - セクションごとに別レイアウト (テンプレートの羅列にしない)
 * - グリーンは CTA/アクセントのみ
 * - 絵文字・バッジ・過剰装飾なし
 */

/* ── 共通ユーティリティ ── */
.h-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--n-green);
    margin-bottom: 12px;
}

.h-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.h-more-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--n-green);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.h-more-link:hover {
    text-decoration: underline;
    color: var(--n-green-h);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.h-hero {
    background: var(--n-surface);
    border-bottom: 1px solid var(--n-border);
    padding: clamp(56px, 10vw, 112px) 0;
}

.h-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.h-hero__kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--n-text3);
    margin-bottom: 16px;
}

.h-hero__name {
    font-size: clamp(52px, 10vw, 96px);
    font-weight: 900;
    color: var(--n-text);
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: 24px;
}

.h-hero__desc {
    font-size: 16px;
    color: var(--n-text2);
    line-height: 1.9;
    max-width: 440px;
    margin-bottom: 36px;
}
.h-hero__desc strong {
    color: var(--n-text);
    font-weight: 700;
}

.h-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 写真: 奥行き感 (CSS perspective のみ) */
.h-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.h-hero__photo-frame {
    width: clamp(180px, 22vw, 300px);
    aspect-ratio: 1;
    transform: perspective(700px) rotateY(-5deg) rotateX(1deg);
    transition: transform .5s cubic-bezier(.25,.1,.25,1);
}
.h-hero__photo-frame:hover,
.h-hero:focus-within .h-hero__photo-frame {
    transform: perspective(700px) rotateY(0deg) rotateX(0deg);
}

.h-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--n-r-lg);
    display: block;
    box-shadow:
        4px 8px 24px rgba(0, 0, 0, .1),
        0  2px  6px rgba(0, 0, 0, .06);
}

/* ════════════════════════════════════════
   FEATURED — エディトリアル (1 記事)
════════════════════════════════════════ */
.h-featured {
    padding: 64px 0;
    border-bottom: 1px solid var(--n-border);
}

.h-featured__link {
    display: block;
    text-decoration: none;
}

.h-featured__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.h-featured__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--n-r-lg);
    background: var(--n-bg2);
}
.h-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.h-featured__link:hover .h-featured__img img {
    transform: scale(1.025);
}

.h-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-block: 8px;
}

.h-featured__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--n-green);
}

.h-featured__title {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 800;
    color: var(--n-text);
    line-height: 1.35;
    letter-spacing: -.02em;
    text-wrap: balance;
    transition: color .15s;
}
.h-featured__link:hover .h-featured__title {
    color: var(--n-green);
}

.h-featured__excerpt {
    font-size: 14.5px;
    color: var(--n-text2);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-featured__date {
    font-size: 12px;
    color: var(--n-text3);
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════
   LATEST POSTS — リスト形式 (カードなし)
════════════════════════════════════════ */
.h-latest {
    padding: 64px 0;
    border-bottom: 1px solid var(--n-border);
}

.h-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-post-list__item {
    border-top: 1px solid var(--n-border);
}
.h-post-list__item:last-child {
    border-bottom: 1px solid var(--n-border);
}

.h-post-list__link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    transition: background .1s;
}

.h-post-list__thumb {
    width: 88px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--n-r-sm);
    background: var(--n-bg2);
    flex-shrink: 0;
}
.h-post-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.h-post-list__link:hover .h-post-list__thumb img {
    transform: scale(1.04);
}

.h-post-list__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.h-post-list__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--n-text);
    line-height: 1.5;
    transition: color .15s;
}
.h-post-list__link:hover .h-post-list__title {
    color: var(--n-green);
}

.h-post-list__meta {
    font-size: 12px;
    color: var(--n-text3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-post-list__cat {
    font-weight: 600;
    color: var(--n-text2);
}

/* ════════════════════════════════════════
   MUSIC — dark / atmospheric
════════════════════════════════════════ */
.h-music {
    background: #111110;
    padding: 72px 0;
    border-top: 1px solid #1E1E1C;
    border-bottom: 1px solid #1E1E1C;
}

.h-music__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    margin-bottom: 20px;
}

.h-music__teaser {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .04em;
    font-style: italic;
    margin-bottom: 32px;
    line-height: 1;
}

.h-music__tracks {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--n-r);
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 520px;
}

.h-music__track {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .03);
    transition: background .15s;
}
.h-music__track:hover {
    background: rgba(255, 255, 255, .06);
}

.h-music__cover {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--n-r-sm);
    flex-shrink: 0;
    display: block;
}

.h-music__cover-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--n-r-sm);
    background: rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.h-music__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.h-music__track-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-music__track-year {
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
}

.h-music__cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding-bottom: 2px;
    transition: color .15s, border-color .15s;
}
.h-music__cta:hover {
    color: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .4);
}

/* ════════════════════════════════════════
   STREAM BAND — 細い横帯
════════════════════════════════════════ */
.h-stream-band {
    background: var(--n-bg2);
    border-bottom: 1px solid var(--n-border);
    padding: 14px 0;
}

.h-stream-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.h-stream-band__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-stream-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--n-text3);
    flex-shrink: 0;
}

.h-stream-dot--live {
    background: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .2);
    animation: h-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes h-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
    50%       { box-shadow: 0 0 0 7px rgba(239, 68, 68, .06); }
}

.h-stream-band__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--n-text);
    letter-spacing: .03em;
}

.h-stream-band__channel {
    font-size: 12px;
    font-family: var(--n-font-mono);
    color: var(--n-text3);
}

.h-stream-band__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.h-stream-band__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--n-text2);
    text-decoration: none;
}
.h-stream-band__more:hover {
    color: var(--n-text);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   ABOUT — 個人的・親密な感じ
════════════════════════════════════════ */
.h-about {
    padding: 80px 0;
    background: var(--n-surface);
}

.h-about__inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 780px;
}

.h-about__photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.h-about__name {
    font-size: 26px;
    font-weight: 800;
    color: var(--n-text);
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.h-about__text {
    font-size: 15px;
    color: var(--n-text2);
    line-height: 1.9;
    margin-bottom: 28px;
}
.h-about__text strong {
    color: var(--n-text);
    font-weight: 700;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 860px) {
    .h-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .h-hero__visual {
        order: -1;
        justify-content: center;
    }
    .h-hero__photo-frame {
        width: clamp(140px, 38vw, 200px);
        transform: none;
    }
    .h-hero__photo-frame:hover {
        transform: none;
    }
    .h-hero__ctas {
        justify-content: center;
    }
    .h-hero__desc {
        margin-inline: auto;
    }

    .h-featured__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .h-about__inner {
        grid-template-columns: 120px 1fr;
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .h-hero { padding: 40px 0; }

    .h-featured,
    .h-latest { padding: 40px 0; }

    .h-music { padding: 48px 0; }

    .h-about { padding: 56px 0; }

    .h-post-list__link {
        grid-template-columns: 64px 1fr;
        gap: 14px;
        padding: 16px 0;
    }
    .h-post-list__thumb { width: 64px; }
    .h-post-list__title { font-size: 14px; }

    .h-about__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .h-about__photo {
        width: 110px;
        margin-inline: auto;
    }

    .h-stream-band__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .h-hero__name { font-size: 44px; }
    .h-hero__ctas { flex-direction: column; }
    .h-hero__ctas .n-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .h-hero__photo-frame,
    .h-hero__photo-frame:hover { transform: none; transition: none; }
    .h-featured__img img,
    .h-post-list__thumb img { transition: none; }
    .h-stream-dot--live { animation: none; }
    .h-featured__title { transition: none; }
    .h-post-list__title { transition: none; }
}
