@charset "utf-8";
/* 中国帰国者2世支援 特設ページ用スタイル */

#p-kikokusya {
    background-color: #fcfcfc;
    color: #333;
    font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* ヒーローセクション */
.kikokusya-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
}

.kikokusya-hero img {
    max-width: 25%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 文章の左揃え（見出し等は除く） */
#kikokusya-content p,
#kikokusya-content .honbun-font-s16-w300,
#kikokusya-content .kikokusya-voice-text,
#kikokusya-content .kikokusya-balloon,
#kikokusya-content .timeline-content {
    text-align: left;
}

/* ドロップキャップ適用クラス */
.kikokusya-dropcap::first-letter,
#sec-preamble p.honbun-font-s16-w300:first-of-type::first-letter {
    color: #07B5A6;
    font-size: 2.5em;
    float: left;
    margin-right: 8px;
    line-height: 1;
    font-weight: bold;
}

.kikokusya-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #0056b3;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* 目次（TOC） - サイドフロート化と本文の配置 */
#kikokusya-content {
    max-width: 800px; /* 本文の最大幅を制限して読みやすく */
    margin: 0 auto; /* 基本は中央寄せ */
}

@media (min-width: 1250px) {
    #kikokusya-content {
        /* 目次スペースを確保しつつ、不自然に左に寄りすぎないよう調整 */
        margin-left: max(20px, calc(50% - 560px)); 
        margin-right: 320px; 
    }
    .kikokusya-toc-sp {
        display: none; /* SP用は非表示 */
    }
    .kikokusya-toc-pc {
        display: block;
        position: fixed;
        right: max(20px, calc(50% - 700px)); /* 画面右側に配置、広がりすぎないよう制限 */
        top: 150px;
        width: 280px; /* 少し幅を縮めて重なりを防止 */
        background-color: rgba(255, 255, 255, 0.95);
        border-top: 4px solid #0056b3;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        font-size: 13px;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    .kikokusya-toc-pc:hover {
        opacity: 1;
    }
}
@media (min-width: 1450px) {
    #kikokusya-content {
        margin: 0 auto; /* 画面が十分に広ければ完全な中央寄せに戻す */
    }
}
@media (max-width: 1249px) {
    .kikokusya-toc-pc {
        display: none; /* PC用は非表示 */
    }
    .kikokusya-toc-sp {
        display: block;
        background-color: #fff;
        border-top: 4px solid #0056b3;
        border-radius: 8px;
        padding: 20px 30px;
        margin: 0 auto 40px;
        max-width: 800px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
}

.kikokusya-toc-sp h3, .kikokusya-toc-pc h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.kikokusya-toc-sp ul, .kikokusya-toc-pc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kikokusya-toc-sp li, .kikokusya-toc-pc li {
    margin-bottom: 8px;
}

.kikokusya-toc-sp a, .kikokusya-toc-pc a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.kikokusya-toc-sp a:hover, .kikokusya-toc-pc a:hover {
    background-color: #e6f2ff;
    border-left-color: #0056b3;
    color: #0056b3;
    padding-left: 15px;
}

/* セクション見出し */
.kikokusya-section-title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding-left: 15px;
    margin-top: 60px;
    margin-bottom: 30px;
    border-left: 5px solid #0056b3;
}

/* 比較ブロック（1世 vs 2世） */
.kikokusya-comparison {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.kikokusya-comparison-box {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #ccc;
    position: relative;
}

.kikokusya-comparison-box.box-1sei {
    border-top-color: #28a745;
}
.kikokusya-comparison-box.box-2sei {
    border-top-color: #dc3545;
}

.kikokusya-comparison-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.kikokusya-comparison-box.box-1sei h4 { color: #28a745; }
.kikokusya-comparison-box.box-2sei h4 { color: #dc3545; }

/* カードレイアウト（当事者の声） */
.kikokusya-voices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kikokusya-voice-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #ff9933;
    transition: transform 0.3s ease;
}

.kikokusya-voice-card:hover {
    transform: translateY(-5px);
}

.kikokusya-voice-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ff9933;
    margin-bottom: 10px;
}

.kikokusya-voice-name {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.kikokusya-voice-text {
    font-size: 15px;
    line-height: 1.6;
}

/* 吹き出し（市民の応援） */
.kikokusya-messages {
    background-color: #f0f7f4;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.kikokusya-message-intro {
    text-align: center;
    font-weight: 700;
    color: #07B5A6;
    margin-bottom: 25px;
}

.kikokusya-message-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.kikokusya-balloon {
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
}

.kikokusya-balloon::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* コラム枠（解説） */
.kikokusya-column {
    background-color: #fffaf0;
    border: 2px solid #e6ccaa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.kikokusya-column-author {
    font-weight: 700;
    color: #8b5a2b;
    margin-bottom: 20px;
    text-align: right;
}

.kikokusya-column p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* アンケート画像コンテナ */
.kikokusya-enquete {
    text-align: center;
    margin-bottom: 40px;
}
.kikokusya-enquete img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* タイムライン（年表） */
.kikokusya-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    padding-left: 30px;
}

.kikokusya-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background-color: #0056b3;
}

.timeline-era {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background-color: #0056b3;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-left: -30px;
    margin-bottom: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0056b3;
}

.timeline-date {
    font-weight: 700;
    color: #0056b3;
    width: 120px; /* 日付が長くなったので幅を広げる */
    display: inline-block;
    vertical-align: top;
}

.timeline-content {
    display: inline-block;
    width: calc(100% - 130px); /* 120px + 10pxの余白 */
    vertical-align: top;
    margin: 0;
}

/* 行動喚起CTA */
.kikokusya-cta {
    background-color: #fffae6;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

/* 行動喚起CTA */
.kikokusya-cta {
    background-color: #fffae6;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.kikokusya-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0056b3 !important; /* 色を変更（青系） */
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.kikokusya-btn-download:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
    color: #fff;
    text-decoration: none;
}

.kikokusya-btn-download i {
    margin-right: 10px;
    font-size: 22px;
}

/* 募金アコーディオン */
.kikokusya-bokin-details {
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
    background: #fff;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#kikokusya-content .kikokusya-bokin-details summary {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    color: #d35400;
    padding-top: 5px;
    padding-bottom: 5px;
    list-style: none !important; /* デフォルトの矢印を非表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: none !important; /* 予期せぬ背景画像をリセット */
}

/* あらゆる手段で追加された疑似要素やマーカー（青い四角、古い矢印など）を強制消去 */
#kikokusya-content .kikokusya-bokin-details summary::-webkit-details-marker,
#kikokusya-content .kikokusya-bokin-details summary::marker,
#kikokusya-content .kikokusya-bokin-details summary::before,
#kikokusya-content .kikokusya-bokin-details summary::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* HTMLに直接配置した矢印アイコンのスタイル */
.kikokusya-summary-icon {
    margin-left: 10px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

#kikokusya-content .kikokusya-bokin-details[open] summary .kikokusya-summary-icon {
    transform: rotate(180deg);
}

.kikokusya-bokin-content {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.kikokusya-contact {
    margin-top: 30px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    text-align: center !important; /* 中央揃えを強制 */
}

.kikokusya-contact p {
    margin-bottom: 5px;
    text-align: center !important; /* 中央揃えを強制 */
}

/* 残された課題のカードレイアウト */
.kikokusya-kadai-box {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.kikokusya-kadai-box ul {
    text-align: left;
}

.kikokusya-kadai-box.alert-red {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.kikokusya-kadai-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.kikokusya-kadai-title i {
    margin-right: 8px;
}

/* SPレスポンシブ */
@media (max-width: 768px) {
    .kikokusya-comparison-box { flex: 1 1 100%; }
    .kikokusya-balloon { flex: 1 1 100%; }
    .timeline-date { display: block; width: 100%; margin-bottom: 5px; }
    .timeline-content { display: block; width: 100%; }
    .kikokusya-hero img { max-width: 60%; }
}
