/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - 落ち着いたブルー・グリーン */
    --primary-blue: #4A90A4;
    --primary-green: #6B9B84;
    --accent-teal: #5CA9A0;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light-gray: #E8EDEF;
    --medium-gray: #B0BEC5;
    --dark-gray: #546E7A;
    --text-dark: #2C3E50;
    
    /* Special Colors */
    --special-bg: #E8F4F8;
    --special-border: #4A90A4;
    --chat-color: #5CA9A0;
    --article-color: #6B9B84;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--off-white);
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

.beta-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--accent-teal);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.login-button:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #f7f8fb;
    color: var(--text-dark);
    padding: 9rem 0;
}

.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
    z-index: 1;
}

/* ぼかしブロブ */
.hero-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.5;
    filter: blur(70px);
    animation: blobMove 20s ease-in-out infinite;
    z-index: 0;
}

.hero-blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #7ED9D3 0%, #A0E7E5 100%);
    top: -300px;
    left: -200px;
    animation-duration: 25s;
}

.hero-blob-2 {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, #87CEEB 0%, #B0E0E6 100%);
    bottom: -250px;
    right: -250px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.hero-blob-3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #6BCF7F 0%, #98D8C8 100%);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-duration: 35s;
    animation-delay: -20s;
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background-color: var(--off-white);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.6;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
    text-align: center;
}

/* Special Question Card */
.special-question-section {
    margin: 3rem 0;
}

.special-question-card {
    background: linear-gradient(135deg, var(--special-bg) 0%, #D4E9ED 100%);
    border: 3px solid var(--special-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: block;
    text-decoration: none;
    color: inherit;
}

.special-question-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.special-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.special-question-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.subtitle-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-gray);
}

.special-question-card p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Questions Grid */
.questions-section {
    margin-bottom: 4rem;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.question-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* おすすめカード */
.recommended-card {
    border: 2px solid #E8C547 !important;
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%) !important;
}

.recommended-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #F4D03F 0%, #E8B730 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.3);
    z-index: 2;
}

/* ご家族向けバッジ */
.family-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #5CA9A0 0%, #4A90A4 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(92, 169, 160, 0.3);
    z-index: 2;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-type:hover {
    border-color: var(--article-color);
}

.chat-type:hover {
    border-color: var(--chat-color);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-icon {
    background-color: var(--article-color);
}

.chat-icon {
    background-color: var(--chat-color);
}

.question-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.question-card:hover h3 {
    color: var(--primary-blue);
}

.question-card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.card-footer i {
    color: var(--medium-gray);
    font-size: 1.25rem;
}

/* More Button */
.more-section {
    text-align: center;
    margin: 2.5rem 0;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.15);
}

.more-button:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 144, 164, 0.25);
}

.more-button i {
    transition: var(--transition);
}

.more-button.active i {
    transform: rotate(180deg);
}

/* Additional Questions */
.additional-questions {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.additional-questions.show {
    max-height: 5000px;
    transition: max-height 1s ease-in;
}

/* Not Found Section */
.not-found-section {
    margin-top: 3rem;
    text-align: center;
}

.not-found-card-bottom {
    background-color: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-top: 2rem;
}

.not-found-card-bottom i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.not-found-card-bottom h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.not-found-card-bottom p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: var(--accent-teal);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-button.chat-btn {
    background-color: var(--chat-color);
}

.contact-button.chat-btn:hover {
    background-color: var(--primary-blue);
}

/* Stories Section */
.stories-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #F8FAFB 0%, #FFFFFF 100%);
    border-radius: 24px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.story-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #E8EEF2;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 144, 164, 0.15);
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.story-tag {
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.cancer-tag {
    background-color: #FFE8E8;
    color: #D32F2F;
}

.stage-tag {
    background-color: #E3F2FD;
    color: #1976D2;
}

.topic-tag {
    background-color: #E8F5E9;
    color: #388E3C;
}

.story-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.story-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #F0F0F0;
}

.story-author {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.story-footer i {
    color: var(--accent-teal);
    font-size: 1rem;
}

.stories-more-section {
    text-align: center;
    margin-top: 2rem;
}

.stories-more-button {
    background: white;
    border: 2px solid #E5E7EB;
    color: var(--text-gray);
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
}

.stories-more-button i {
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a2a35 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-teal);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 960px) {
    .hero {
        padding: 64px 16px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-blob {
        width: 440px;
        height: 440px;
        filter: blur(65px);
    }
    
    .hero-blob-center {
        left: 10%;
        top: -60px;
    }
    
    .hero-blob-right {
        right: -260px;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6.75rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-blob-1 {
        width: 500px;
        height: 500px;
        top: -150px;
        left: -150px;
    }
    
    .hero-blob-2 {
        width: 450px;
        height: 450px;
        bottom: -100px;
        right: -100px;
    }
    
    .hero-blob-3 {
        width: 400px;
        height: 400px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .special-question-card {
        padding: 2rem 1.5rem;
    }
    
    .special-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .hero-blob-1 {
        width: 350px;
        height: 350px;
        top: -100px;
        left: -100px;
    }
    
    .hero-blob-2 {
        width: 350px;
        height: 350px;
        bottom: -80px;
        right: -80px;
    }
    
    .hero-blob-3 {
        width: 300px;
        height: 300px;
    }
    
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .special-question-card {
        padding: 0 16px;
    }
    
    .special-question-card h3 {
        font-size: 1.25rem;
    }
    
    .question-card h3 {
        font-size: 1rem;
    }
}
