/* General Styles */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

nav a {
    font-weight: 500;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('images/hero-elderly-care.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Introduction Section */
.introduction {
    padding: 100px 0;
    background: white;
    position: relative;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
}

.introduction .container {
    position: relative;
    z-index: 1;
}

.introduction h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.introduction p {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: justify;
    line-height: 1.8;
    color: #4a5568;
}

/* News Section */
.news {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.news h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-item .date {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-item p {
    margin: 0;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
}

.news-item p strong {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

/* Content Section */
.content {
    padding: 80px 0;
    background: white;
    position: relative;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 90%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
}

.content .container {
    position: relative;
    z-index: 1;
}

.content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    border-bottom: 3px solid transparent;
    background-clip: padding-box, border-box;
    position: relative;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #4a5568;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content p {
    font-size: 17px;
    margin-bottom: 24px;
    text-align: justify;
    line-height: 1.8;
    color: #4a5568;
}

.content ul, .content ol {
    font-size: 17px;
    margin-bottom: 24px;
    padding-left: 32px;
    color: #4a5568;
}

.content ul li, .content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Image Container */
.image-container {
    text-align: center;
    margin: 48px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.image-container .caption {
    font-size: 14px;
    color: #718096;
    margin-top: 16px;
    font-style: italic;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.content th, .content td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.content th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.content td {
    color: #4a5568;
    font-size: 15px;
}

.content tr:hover td {
    background-color: #f7fafc;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="25" cy="5" r="0.3" fill="white" opacity="0.1"/><circle cx="5" cy="35" r="0.3" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
}

footer p {
    margin: 0;
    font-size: 16px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .introduction h2, .news h2 {
        font-size: 32px;
    }
    
    .content h2 {
        font-size: 28px;
    }
    
    .content h3 {
        font-size: 24px;
    }
    
    .news-item {
        padding: 24px;
    }
    
    .content, .introduction, .news {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .page-header {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .introduction h2, .news h2 {
        font-size: 28px;
    }
    
    .content h2 {
        font-size: 24px;
    }
    
    .news-item {
        padding: 20px;
    }
}
</style>
