@charset "UTF-8";

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa; /* 静謐なアーカイブを感じさせる僅かなグレー */
    color: #333;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Layout (Hub Container)
   ========================================================================== */
.hub-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ==========================================================================
   3. Header Section
   ========================================================================== */
.hub-header {
    text-align: center;
    margin-bottom: 60px;
}

.hub-header h1 {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.2;
}

.hub-lead {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

.hub-description {
    color: #555;
    font-size: 0.95em;
    max-width: 750px;
    margin: 0 auto;
    text-align: left; /* 長めの文章が読みやすいように左揃え */
    line-height: 1.9;
}

/* ==========================================================================
   4. Navigation Grid (Cards)
   ========================================================================== */
.hub-nav {
    display: grid;
    /* 画面幅に余裕があれば2列（最低380px）、狭ければ自動で1列に折り返し */
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.nav-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 35px 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #ccc;
}

/* ==========================================================================
   5. Card Internals
   ========================================================================== */
.part-label {
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    border-bottom: 2px solid #333;
    padding-bottom: 2px;
}

.nav-card h2 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #222;
}

.nav-card p {
    font-size: 0.88em;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-action {
    font-weight: bold;
    font-size: 0.85em;
    text-align: right;
    color: #333;
    margin-top: auto; /* ボタンテキストを常にカード下部に押し付ける */
}

.card-action span {
    transition: margin 0.2s ease-in-out;
}

.nav-card:hover .card-action span {
    margin-left: 8px; /* ホバー時に矢印が少し右に動く演出 */
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.hub-footer {
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

/* ==========================================================================
   7. Animations (JS hooks)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* カードが順番にフワッと浮き上がるための遅延設定 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   8. Responsive Tweaks
   ========================================================================== */
@media (max-width: 800px) {
    .hub-container {
        padding: 40px 15px;
    }
    .hub-header h1 {
        font-size: 2em;
    }
    .hub-nav {
        grid-template-columns: 1fr; /* スマホでは完全に1列にする強制指定 */
    }
}
