/* ============================================
   EarthKey Forest Palette
   Tailwind既製色から独自の深い森トーンへ (2026-07)
   ============================================ */
:root {
    /* 森の緑（深→浅） */
    --forest-950: #0B291C;
    --forest-900: #133828;
    --forest-800: #1C5440;
    --forest-700: #23684E;
    --forest-600: #2A7D5C;
    --forest-500: #2D8A60;
    --forest-300: #6FBB95;
    --forest-100: #DCEFE3;
    --forest-50: #F2F8F3;
    /* 差し色 */
    --leaf: #C4E3C0;      /* 舞う木の葉 */
    --cream: #F7F3E7;     /* 木漏れ日のクリーム */
    /* フォント */
    --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
    --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--forest-50);
    color: #0F172A;
    font-family: var(--font-body);
    line-height: 1.6;
}

/* 見出しは丸ゴシックで森の柔らかさを */
h1, h2, h3, h4,
.site-brand-title,
.back-to-top-label {
    font-family: var(--font-display);
}

/* Forest background wrapper */
.forest-bg {  min-height: 100vh;  background: radial-gradient(circle at top, var(--forest-100) 0, var(--forest-900) 60%, var(--forest-950) 100%);  position: relative;  overflow: hidden;}

/* ページ本体を上に重ねる */
.page-content {
    position: relative;
    z-index: 10;
    padding-top: 96px;
}

section[id] {
    scroll-margin-top: 110px;
}

/* 木の葉のレイヤー */
.leaf-layer {  position: fixed;  inset: 0;  pointer-events: none;  z-index: 5;}

/* 葉の見た目と落下アニメ */
.leaf {  position: absolute;  top: -40px;  width: 16px;  height: 16px;  border-radius: 999px;  background: var(--leaf);  opacity: 0.9;  box-shadow: 0 0 6px rgba(45, 138, 96, 0.5);  animation-name: leaf-fall;  animation-timing-function: linear;  animation-iteration-count: infinite;}

@keyframes leaf-fall {  0% {    transform: translate3d(0, 0, 0) rotate(0deg);    opacity: 0;  }  10% {    opacity: 1;  }  100% {    transform: translate3d(-40px, 110vh, 0) rotate(180deg);    opacity: 0;  }}

@keyframes leaf-sway {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(var(--sway, 40px)) rotate(180deg); }
    100% { transform: translateX(0) rotate(360deg); }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--forest-100);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.site-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--forest-500) 0%, var(--forest-600) 100%);
    box-shadow: 0 12px 30px rgba(45, 138, 96, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-brand:hover .site-brand-icon {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(45, 138, 96, 0.34);
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
}

.site-brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--forest-800);
}

.site-brand-subtitle {
    font-size: 0.84rem;
    color: #64748B;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.main-nav a {
    margin-right: 0;
    padding: 10px 14px;
    color: var(--forest-800);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(220, 239, 227, 0.9);
    border-radius: 999px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 138, 96, 0.45);
    background: rgba(255, 255, 255, 0.96);
}

.hero-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--forest-50), var(--cream));
    text-align: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 240px;
    background: var(--forest-100);
    margin-top: 24px;
    border-radius: 16px;
}

.footer {
    background: var(--forest-950);
    color: var(--forest-50);
    padding: 24px;
    text-align: center;
}
/* Footer links */
.footer a { color: var(--forest-50); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--forest-500) 0%, var(--forest-600) 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(45, 138, 96, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(45, 138, 96, 0.36);
    filter: saturate(1.06);
}

.back-to-top-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.15rem;
}

.back-to-top-label {
    font-size: 0.92rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Components */
.section {
    padding: 60px 0;
}

.card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.character-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.character-name {
    color: var(--forest-800);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.character-desc {
    font-size: 0.95rem;
    color: #64748B;
}

/* キャラクターセクション */
.character-section {
    padding: 64px 24px;
}

.character-section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--forest-800);
    margin-bottom: 8px;
}

.character-section-lead {
    text-align: center;
    color: #64748B;
    max-width: 640px;
    margin: 0 auto 32px auto;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.character-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.15);
}

.character-thumb {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 999px;
    margin-bottom: 12px;
}

.character-card h3 {
    margin: 8px 0;
    font-size: 1.1rem;
    color: var(--forest-800);
}

.character-short {
    font-size: 0.9rem;
    color: #64748B;
}

/* モーダル全体（背景 / 黒幕） */
.character-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    /* ← 透過率を約20%に調整 */
    display: none;
    align-items: center;
    justify-content: center;
    /* ← 右側に寄せる */
    z-index: 1000;
}

/* モーダル表示時（backdrop を表示） */
.character-modal-backdrop.is-open {
    display: flex;
}

/* モーダル本体（スライドイン前の初期状態） */
.character-modal {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    max-width: none;
    /* スライドパネルっぽく少し細めでもOK。好みで調整してね */
    width: 70vw;
    height: 70vh;
    padding: 24px;
    position: relative;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.3);
    border-top: 6px solid var(--forest-500);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* スライドイン用の初期位置（画面の右外） */
    transform: translateY(-100%);
    opacity: 0;
    transition:
        transform 0.18s ease-out,
        opacity 0.18s ease-out;
}

/* is-open 時に「横からスッ」と入ってくる */
.character-modal-backdrop.is-open .character-modal {
    transform: translateY(0);
    opacity: 1;
}

/* 閉じるボタン */
.character-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748B;
}

.character-modal-close:hover {
    color: #0F172A;
}

/* モーダル内部レイアウトはそのままでOK（以前のままでも可） */
.character-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .character-modal-body {
        flex-direction: row;
    }
}

.character-modal-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal-image-wrap img {
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: var(--forest-50);
}

.character-modal-content {
    flex: 1;
    padding: 8px 0 0 0;
}

.character-modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--forest-800);
}

.character-modal-content p {
    font-size: 0.95rem;
    color: #0F172A;
}

.character-modal-bgm {
    margin-top: 16px;
    font-size: 0.9rem;
}

.character-modal-bgm a {
    display: inline-block;
    margin-top: 4px;
    color: #0EA5E9;
    text-decoration: none;
    font-weight: 500;
}

.character-modal-bgm a:hover {
    text-decoration: underline;
}

/* --- テーマごとの色指定 --- */

/* ベースは共通（すでにあるやつ） */
.character-modal {
    border-top: 6px solid var(--forest-500);
    /* デフォルト：サイトのグリーン */
}

/* 🌸 マリア：やわらかいピンク系 */
.character-modal.theme-maria {
    border-top-color: #DB2777;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-maria .character-modal-content h3 {
    color: #BE185D;
}

/* 🔷 エリカ：落ち着いたブルー系 */
.character-modal.theme-erika {
    border-top-color: #2563EB;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-erika .character-modal-content h3 {
    color: #1D4ED8;
}

/* 🍀 ナオミ：明るいグリーン系（少しポップ寄せ） */
.character-modal.theme-naomi {
    border-top-color: #16A34A;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-naomi .character-modal-content h3 {
    color: #15803D;
}

/* 💛 ユリカ：やさしいイエロー系 */
.character-modal.theme-yurika {
    border-top-color: #EAB308;
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-yurika .character-modal-content h3 {
    color: #CA8A04;
}

.bgm-list {
    margin-top: 6px;
    padding-left: 16px;
}

.bgm-list li {
    margin-bottom: 4px;
}

.bgm-list a {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.bgm-list a:hover {
    text-decoration: underline;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Profu Link Button --- */
.profu-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--forest-500) 0%, var(--forest-600) 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(45, 138, 96, 0.3),
        0 0 20px rgba(45, 138, 96, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profu-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.profu-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 138, 96, 0.4),
        0 0 30px rgba(45, 138, 96, 0.3);
    background: linear-gradient(135deg, var(--forest-600) 0%, var(--forest-700) 100%);
}

.profu-link-btn:hover::before {
    left: 100%;
}

.profu-link-btn .btn-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* --- Hero Badges --- */
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    color: var(--forest-800);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1.5px solid var(--forest-500);
    box-shadow: 0 2px 6px rgba(45, 138, 96, 0.15);
}

/* --- Hero Actions --- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--forest-500);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--forest-600);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--forest-800);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 10px;
    border: 2px solid var(--forest-500);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--forest-100);
    transform: translateY(-2px);
}

/* --- Channel Grid --- */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    text-decoration: none;
    color: #0F172A;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(45, 138, 96, 0.15);
    border-color: var(--forest-500);
}

.channel-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.channel-card h4 {
    color: var(--forest-800);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.channel-card p {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

/* --- Works --- */
.works-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.works-text {
    flex: 1;
    min-width: 200px;
}

.works-text h4 {
    color: var(--forest-800);
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.works-text p {
    color: #334155;
    margin: 0 0 12px 0;
}

.works-link {
    color: var(--forest-500);
    font-weight: 700;
    text-decoration: none;
}

.works-link:hover {
    text-decoration: underline;
}

.works-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--forest-800);
    background: var(--forest-100);
    border-radius: 999px;
    padding: 2px 12px;
    margin-bottom: 8px;
}

.works-thumb {
    flex: 0 0 auto;
}

.works-thumb img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* --- About Summary --- */
.about-summary {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #334155;
}

/* --- STORY Section --- */
.story-card {
    max-width: 720px;
    margin: 0 auto;
}

.story-card p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.story-highlight {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--forest-800) !important;
    border-left: 4px solid var(--forest-500);
    padding-left: 16px;
    margin: 1.6rem 0 !important;
}

.story-closing {
    font-weight: 600;
    color: var(--forest-800) !important;
}

/* --- About Profile Image --- */
.about-profile-img {
    width: 100%;
    max-width: 760px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- About Theme Cards --- */
.about-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.theme-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.theme-header h4 {
    color: var(--forest-800);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.theme-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-list li {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
    padding-left: 14px;
    position: relative;
}

.theme-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--forest-500);
    font-size: 0.8rem;
    top: 2px;
}

/* --- About Page --- */
.about-heading {
    font-size: 1.3rem;
    color: var(--forest-800);
    margin: 0 0 16px 0;
}

.about-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.95rem;
}

.profile-table th {
    width: 140px;
    color: var(--forest-800);
    font-weight: 700;
    white-space: nowrap;
}

.profile-table td {
    color: #334155;
}

.profile-table td a {
    color: var(--forest-500);
    text-decoration: none;
    font-weight: 600;
}

.profile-table td a:hover {
    text-decoration: underline;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
    border-bottom: none;
}

/* Styled Section Headers */
.section-header-styled {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--forest-50) 0%, var(--forest-100) 100%);
    border: 2px solid var(--forest-500);
    border-radius: 9999px;
    padding: 0.5rem 3rem;
    color: var(--forest-800);
    box-shadow: 0 2px 4px rgba(45, 138, 96, 0.1);
}

/* AI Partners リッチボタン */
.btn-ai-partners {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--forest-800) 0%, var(--forest-500) 60%, var(--forest-300) 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(45, 138, 96, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-ai-partners:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45, 138, 96, 0.5);
}
.btn-ai-partners-icons {
    font-size: 1.4rem;
    letter-spacing: 4px;
}
.btn-ai-partners-text {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 144px;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        padding: 11px 14px;
    }

    .back-to-top-label {
        display: none;
    }
}

/* ============================================
   背景イメージ（DAO HOSPITAL・うっすら敷く）
   2026-08-05 追加
   ============================================ */
.forest-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("./assets/bg/dao-hospital.webp");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   モーション（スクロール連動・ホバー・初回ロード）
   2026-08-05 追加
   ============================================ */

/* 1. スクロールでふわっと現れる */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 同じ行に並ぶカードは少しずつ遅らせる */
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* 3. カードにホバーすると浮き上がる */
.card {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px -14px rgba(11, 41, 28, 0.45);
    border-color: var(--forest-300);
}

/* 4. ファーストビューの要素が順に出てくる */
.hero-section > * {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section > *:nth-child(1) { animation-delay: 0.10s; }
.hero-section > *:nth-child(2) { animation-delay: 0.22s; }
.hero-section > *:nth-child(3) { animation-delay: 0.34s; }
.hero-section > *:nth-child(4) { animation-delay: 0.46s; }
.hero-section > *:nth-child(5) { animation-delay: 0.58s; }
.hero-section > *:nth-child(6) { animation-delay: 0.70s; }

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* 動きを減らす設定の人には出さない */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-section > * {
        animation: none;
    }
    .card,
    .card:hover {
        transition: none;
        transform: none;
    }
}

/* ============================================
   メイン固定カード（Brain教材）— 朱色で強調
   2026-08-05 追加
   ============================================ */
:root {
    --vermilion: #C0392B;      /* 忍びの朱 */
    --vermilion-600: #A93226;
    --vermilion-50: #FFF6F4;
}

.works-card.works-card-featured {
    border: 2px solid var(--vermilion);
    background: linear-gradient(180deg, var(--vermilion-50) 0%, #FFFFFF 55%);
    box-shadow: 0 10px 28px -14px rgba(192, 57, 43, 0.55);
}

.works-card.works-card-featured:hover {
    border-color: var(--vermilion-600);
    box-shadow: 0 20px 40px -14px rgba(192, 57, 43, 0.55);
}

.works-card-featured .works-tag.works-tag-featured {
    background: var(--vermilion);
    color: #FFFFFF;
}

.works-card-featured h4 {
    color: var(--vermilion-600);
}

.works-card-featured .works-link.works-link-featured {
    color: var(--vermilion);
    font-weight: 700;
}

.works-card-featured .works-link.works-link-featured:hover {
    color: var(--vermilion-600);
}
