@charset "UTF-8";

/* ==========================================================================
   Project: Connect Station HOME
   File: css/memorial.css
   Description: 3.11 / 4.16 等の追悼・特別企画用デザイン
   ========================================================================== */

/* --- ベース設定 --- */
body.mode-memorial {
    background-color: #050505;
    color: #e0e0e0;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGSMinchoE", serif; /* 明朝体で重みを出す */
}

/* --- ヒーローセクション --- */
.hero-memorial {
    height: 100vh; /* 全画面 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-memorial::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 暗くする */
    z-index: 1;
}

.hero-memorial-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInSlow 3s ease-out;
}

.memorial-date {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.memorial-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.memorial-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* --- ストーリーテリング（対話）エリア --- */
.story-section {
    padding: 8rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.story-dialogue {
    margin-bottom: 6rem;
    opacity: 0; /* スクロールで表示 */
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.story-dialogue.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 左側（質問者：わかまる等） */
.story-dialogue.left {
    flex-direction: row;
}
/* 右側（回答者：フォリオ等） */
.story-dialogue.right {
    flex-direction: row-reverse;
    text-align: right;
}

.story-char-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
/* 過去の幻影のように少し淡く */
.story-char-img.ghost {
    filter: sepia(0.5) contrast(0.9);
}

.story-text h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: #aaa;
}
.story-text p {
    font-size: 1.1rem;
    line-height: 2.2;
    margin: 0;
}

/* 強調メッセージ */
.story-message {
    text-align: center;
    padding: 6rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* --- コンテンツリンク --- */
.memorial-links {
    padding: 6rem 0;
    background: #111;
    text-align: center;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memorial-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}
.memorial-card:hover {
    background: #222;
    border-color: #555;
    transform: translateY(-5px);
}
.memorial-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 1rem;
}
.memorial-card p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- アニメーション --- */
@keyframes fadeInSlow {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}