:root {
    --primary-color: #1a237e; /* Indigo */
    --accent-color: #c62828; /* Deep Red */
    --text-color: #2c3e50;
    --bg-color: #fcfbf9; /* Washi white */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --font-serif: 'Noto Serif JP', 'Shippori Mincho', serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(26, 35, 126, 0.03) 21%, rgba(26, 35, 126, 0.03) 34%, transparent 35%, transparent),
        radial-gradient(circle at 0% 50%, transparent 20%, rgba(26, 35, 126, 0.03) 21%, rgba(26, 35, 126, 0.03) 34%, transparent 35%, transparent) .1em .1em;
    background-size: 5em 5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Container */
.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.site-title {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.title-sub {
    font-size: 1.8rem;
    font-weight: 500;
    color: #555;
    position: relative;
    padding: 0 20px;
}

.title-sub::before,
.title-sub::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #999;
}

.title-sub::before { left: -15px; }
.title-sub::after { right: -15px; }

.header-img-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.header-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.grid-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.grid-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.grid-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Card Icon */
.card-icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.icon-badge {
    margin-bottom: 5px;
    max-width: 100%;
}

.bullet-point {
    color: var(--primary-color);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Card Content */
.card-text {
    flex: 1;
}

.card-link {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Highlight Card */
.highlight-card {
    background-color: #fffde7;
    border-color: #ffd54f;
}

.highlight-card .card-link {
    color: #bf360c;
}

/* Email Card */
.email-card {
    background-color: #e8eaf6;
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.email-card .card-link {
    margin: 0;
}

/* Ads Section */
.ads-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.4rem;
    }
    
    .grid-card {
        padding: 15px;
    }
}
