/* ========================================
   NAGATABI - style.css
   長い旅 / 長崎のたび
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-deep:    #09090f;
    --sky-dark:    #0d1030;
    --sky-mid:     #1a1f5e;
    --sky-dusk:    #2d1b4e;
    --horizon:     #7b3a5a;
    --glow-warm:   #f4c97a;
    --glow-soft:   #e8a56d;
    --star-white:  rgba(255,255,255,0.9);
    --text-light:  rgba(255,255,255,0.88);
    --text-muted:  rgba(255,255,255,0.45);
    --accent:      #d4956a;
    --accent-cool: #8fa8d0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--sky-deep);
    color: var(--text-light);
    font-family: 'Noto Serif JP', 'Georgia', serif;
    overflow-x: hidden;
    cursor: default;
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 夜空グラデーション背景 */
.sky-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 110%,
        #4a1a2e 0%,
        #2d1b4e 20%,
        #1a1f5e 40%,
        #0d1030 65%,
        #09090f 100%
    );
    z-index: 0;
}

/* 星キャンバス */
#star-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ヒーロー画像 */
.hero-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: bottom center;
    z-index: 2;
    mask-image: linear-gradient(to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 40%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 40%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0) 100%
    );
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    animation: heroFadeIn 2.4s ease-out forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* メインロゴ */
.site-logo {
    max-width: 420px;
    width: 65%;
    margin: 0 auto 2rem;
    display: block;
    mix-blend-mode: screen;  /* 黒背景を透過、金色のみ残す */
    animation: logoPulse 6s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 30px rgba(212,149,106,0.3)); }
    50%       { filter: brightness(1.15) drop-shadow(0 0 50px rgba(212,149,106,0.55)); }
}

/* キャッチコピー */
.hero-tagline {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    letter-spacing: 0.35em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: fadeInDelay 3s ease-out forwards;
    opacity: 0;
}

.hero-tagline.en {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    letter-spacing: 0.15em;
    color: rgba(212, 149, 106, 0.7);
}

@keyframes fadeInDelay {
    0%   { opacity: 0; transform: translateY(12px); }
    40%  { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* スクロール誘導 */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInDelay 4s ease-out forwards;
}

.scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: arrowDrop 2s ease-in-out infinite;
}

@keyframes arrowDrop {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* 歩く猫シルエット（CSSアニメ） */
.cat-walk-container {
    position: absolute;
    bottom: 18%;
    z-index: 8;
    pointer-events: none;
    animation: catWalkAcross 28s linear infinite;
}

@keyframes catWalkAcross {
    from { left: -120px; }
    to   { left: calc(100vw + 120px); }
}

.cat-svg {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    animation: catBob 0.5s ease-in-out infinite alternate;
}

@keyframes catBob {
    from { transform: translateY(0px); }
    to   { transform: translateY(-3px); }
}

/* ========================================
   SECOND SECTION — 旅の断章
   ======================================== */

#journey {
    position: relative;
    padding: 8rem 2rem 6rem;
    background: linear-gradient(to bottom,
        var(--sky-deep) 0%,
        #0f0e1a 30%,
        #13101e 100%
    );
    overflow: hidden;
}

#journey::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent, rgba(212,149,106,0.3), transparent
    );
}

.journey-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.journey-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.journey-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-kana {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.journey-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.journey-title em {
    font-style: normal;
    color: var(--glow-warm);
}

.journey-body {
    font-size: 0.92rem;
    line-height: 2.2;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.journey-image-wrap {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.journey-image-wrap.visible {
    opacity: 1;
    transform: translateX(0);
}

.journey-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: saturate(0.8) brightness(0.85);
    transition: filter 0.6s ease, transform 0.8s ease;
}

.journey-image-wrap:hover img {
    filter: saturate(1) brightness(0.95);
    transform: scale(1.03);
}

.journey-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212,149,106,0.15);
    pointer-events: none;
}

/* ========================================
   THIRD SECTION — 詩のコーナー
   ======================================== */

#poem {
    padding: 6rem 2rem 8rem;
    background: linear-gradient(to bottom, #13101e, #0a0810);
    text-align: center;
    position: relative;
}

#poem::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(212,149,106,0.4);
}

.poem-wrap {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.poem-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.poem-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    line-height: 2.8;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
}

.poem-text .highlight {
    color: var(--glow-warm);
    font-weight: 400;
}

.poem-en {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: rgba(212,149,106,0.5);
    letter-spacing: 0.08em;
    margin-top: 3rem;
    line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    padding: 2.5rem;
    text-align: center;
    background: #06050b;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-logo {
    max-width: 160px;
    margin: 0 auto 1rem;
    display: block;
    mix-blend-mode: screen;
    opacity: 0.5;
    filter: brightness(0.7) grayscale(0.4);
    transition: opacity 0.4s, filter 0.4s;
}

.footer-logo:hover {
    opacity: 0.8;
    filter: brightness(1) grayscale(0);
}

footer p {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */

.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: particleFloat linear infinite;
    z-index: 5;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .journey-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .journey-image-wrap {
        order: -1;
    }

    .journey-image-wrap img {
        height: 260px;
    }

    .site-logo {
        width: 72%;
    }

    .cat-svg {
        width: 54px;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        letter-spacing: 0.2em;
    }
}
