
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@900&family=Noto+Serif+JP:wght@900&display=swap');

/* --- 基本設定 --- */
:root {
    --main-navy: #1a2a44;
    --accent-red: #d32f2f;
    --white: #ffffff;
    --bg-light: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ヘッダー */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ロゴのフォント変更 --- */
.logo {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--main-navy);
    margin-right: 30px;
}

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-navy);
}

.logo-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--accent-red);
}

.logo-name {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 5px;
}

.logo-name rt {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

/* --- Hamburger Menu Icon --- */
.hamburger-btn {
    display: none;
    background: var(--main-navy);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
}

.hamburger-btn span:nth-child(1) { top: 14px; }
.hamburger-btn span:nth-child(2) { top: 22px; }
.hamburger-btn span:nth-child(3) { top: 30px; }

.hamburger-btn::after {
    content: 'メニュー';
    position: absolute;
    color: var(--white);
    font-size: 0.55rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    bottom: 8px;
    left: 0;
    letter-spacing: 0.5px;
}

.hamburger-btn.active span:nth-child(1) {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
}

.hamburger-btn.active::after {
    content: '閉じる';
}

nav a {
    text-decoration: none;
    color: var(--main-navy);
    font-weight: 700;
    font-size: 15px; /* changed from 0.95rem to fixed px to prevent scaling differences */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.nav-donate-btn {
    background-color: transparent;
    border: 1px solid var(--main-navy);
    color: var(--main-navy);
    padding: 6px 16px;
    border-radius: 25px;
    transition: 0.3s;
}

.nav-donate-btn:hover {
    background-color: var(--main-navy);
    color: var(--white);
}

/* --- Heroセクション --- */
.hero {
    height: 90vh;
    min-height: 500px;
    background-color: var(--main-navy);
    background-image:
        linear-gradient(to right, rgba(26, 42, 68, 1) 0%, rgba(26, 42, 68, 0.95) 40%, rgba(26, 42, 68, 0) 75%),
        url('hero-bg.jpg');
    background-position: right top;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    width: 100%;
}

.hero-inner-text {
    max-width: 600px;
    padding-left: 20px;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero h2 {
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--accent-red);
    color: var(--white);
}

.btn-outline-white {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--main-navy);
}

/* 新着情報プレビュー (News List) */
.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 15px;
}

.news-list li:first-child {
    border-top: 1px solid #ddd;
}

.news-date {
    font-weight: bold;
    color: #666;
    width: 130px;
    flex-shrink: 0;
}

.news-category {
    background: var(--main-navy);
    color: var(--white);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-list a {
    color: var(--main-navy);
    text-decoration: none;
    flex-grow: 1;
    font-weight: bold;
}

.news-list a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* 活動報告 */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--main-navy);
    margin: 80px 0 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-red);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.activity-subsection-title {
    font-size: 1.5rem;
    color: var(--main-navy);
    margin-bottom: 5px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 5px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* プロフィール */
.profile {
    background: var(--bg-light);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 10px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
}

.history-table th,
.history-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.history-table th {
    width: 25%;
    background: #f0f2f5;
    color: var(--main-navy);
}

/* 理念と政策 (Policy) */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.policy-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.policy-item h4 {
    color: var(--main-navy);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 後援会案内 (Supporters) */
.supporters-box {
    background: linear-gradient(135deg, var(--main-navy), #263e66);
    color: var(--white);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.supporters-box h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.supporters-box p {
    margin-bottom: 30px;
}

.btn-supporters {
    background: var(--white);
    color: var(--main-navy);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-supporters:hover {
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

/* お問い合わせ (Contact) */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.contact-desc {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--main-navy);
}

.required {
    background: #e74c3c;
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 確認画面用スタイル */
.confirm-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.confirm-group {
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.confirm-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirm-label {
    font-weight: bold;
    color: var(--main-navy);
    display: block;
    margin-bottom: 5px;
}

.confirm-text {
    color: #333;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary {
    background: #95a5a6;
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-3px);
}

/* フッター */
footer {
    background: #333333;
    color: var(--white);
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #555;
    padding-bottom: 30px;
    align-items: flex-start;
}

.footer-office h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-office p {
    line-height: 1.8;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* --- レスポンシブ対応 (スマートフォン表示) --- */
@media (max-width: 768px) {
    /* ヘッダー周り */
    header {
        background: var(--main-navy);
        box-shadow: 0 4px 15px rgba(26, 42, 68, 0.3);
        position: relative;
    }
    
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        color: var(--white);
        margin-right: 0;
        padding-right: 40px;
        line-height: 1.2;
    }
    
    .logo-title {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 2px;
    }
    
    .logo-name {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .hamburger-btn {
        display: block;
    }

    nav#nav-menu {
        display: none;
        width: 100%;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }

    nav#nav-menu.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 15px;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    nav a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    nav a:hover {
        color: var(--white);
    }

    .nav-donate-btn {
        border: 1px solid rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 0.85);
    }
    
    .nav-donate-btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--white);
    }

    /* ヒーローセクション */
    .hero {
        height: calc(100vh - 65px); /* ヘッダー分を引いて画面いっぱいに */
        min-height: 500px;
        background-color: #fff;
        background-position: center top; /* 顔が真ん中に来るように修正 */
        background-size: cover;
        background-repeat: no-repeat;
        align-items: flex-end;
        padding-bottom: 40px;
        background-image:
            linear-gradient(to top, rgba(26, 42, 68, 0.95) 0%, rgba(26, 42, 68, 0.6) 30%, rgba(26, 42, 68, 0) 60%),
            url('hero-bg.jpg');
    }

    .hero-inner-text {
        padding-left: 0;
        text-align: center;
        width: 100%;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    /* ボタンサイズ調整 */
    .btn-primary,
    .btn-outline-white {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 1.8rem;
        margin: 50px 0 30px;
    }

    /* ニュースリスト */
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* メディアリスト */
    .media-grid {
        grid-template-columns: 1fr;
    }
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* フォーム周り */
    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .confirm-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .confirm-actions button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: left;
    }
}