/* style.css - CHARTORY (Focus A Icon Version) */

:root {
    --primary-bg: #1a252f;
    --accent-gold: #f1c40f;
    --text-color: #333;
    --bg-light: #f4f6f8;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- ヘッダー --- */
.site-header {
    background-color: var(--primary-bg);
    color: #fff;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴスタイル (New CHARTORY Style) */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ロゴアイコン調整 */
.logo-link svg {
    display: block;
    /* SVGのwidth/height属性でサイズ制御するためCSSでは基本サイズを指定 */
    width: 44px;
    height: 44px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main {
    /* Montserratを優先、太字でモダンに */
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-sub-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.logo-caption {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-transform: uppercase; /* 英字小文字を大文字にして整える */
}

/* ヘッダーナビ */
.header-nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.header-nav a:hover {
    color: #fff;
}

/* --- ヒーローエリア --- */
.hero-section {
    background-color: var(--primary-bg);
    color: #fff;
    padding: 60px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.03) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e0;
    line-height: 1.8;
}

/* --- メインコンテナ --- */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    top: -50px;
    z-index: 20;
}

/* 特徴セクション */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item {
    text-align: center;
    padding: 10px;
}

/* SVGアイコン用のスタイル */
.feature-icon-svg {
    color: var(--primary-bg); /* アイコンの色 */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}
.feature-icon-svg svg {
    width: 48px;
    height: 48px;
}

.feature-item h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--primary-bg);
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* データベース一覧セクション */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-bg);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* カードデザイン */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.politician-bg { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.m1-bg { background: linear-gradient(135deg, #f1c40f, #e67e22); }

/* カード内SVGアイコン用のスタイル */
.card-icon-svg {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    width: 64px;
    height: 64px;
}

.project-card:hover .card-icon-svg {
    transform: scale(1.1) rotate(-5deg);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header { margin-bottom: 10px; }

.category-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    color: #888;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-content h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-bg);
    font-weight: 700;
}

.card-content p {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.link-text {
    font-weight: 700;
    color: #3498db;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.project-card:hover .link-text { color: #2980b9; }
.project-card:hover .arrow { transform: translateX(5px); transition: transform 0.2s; }

/* フッター */
.portal-footer {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.8rem;
    margin-top: 40px;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-content h1 { font-size: 2rem; }
}