/* ======== 基本スタイル ======== */
:root {
    --primary-color: #2E8B57; /* ロゴの緑に近い色 */
    --secondary-color: #FFA500; /* ロゴのオレンジに近い色 */
    --text-color: #333333;
    --bg-light-color: #F8F8F8;
    --border-color: #D3D3D3;
}

body {
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: auto;
    line-break: strict;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover { opacity: 0.8; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section { padding: 4rem 0; }
.bg-light { background-color: var(--bg-light-color); }

h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}


.section-lead {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.page-introduction {
    max-width: 800px;
    margin: -1.5rem auto 2.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}
.page-introduction p {
    margin-top: 0;
    margin-bottom: 1em;
}
.page-introduction p:last-child {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}
.mt-4 {
    margin-top: 2rem;
}

/* ======== ヘッダー ======== */
header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}
.logo { 
    font-size: 1.1rem;
    font-weight: bold; 
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo img {
    height: 35px;
    margin-right: 0.75rem;
}
header nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1rem; }
header nav a { color: var(--text-color); font-weight: 500; font-size: 0.9rem; }
.hamburger-menu { display: none; }

/* ======== スライドショー ======== */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #333;
}
.slide { display: none; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.fade { animation: fade 1.5s; }
@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}
.slideshow-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    width: 90%;
}
.slideshow-text h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.slideshow-text p { font-size: 1.2rem; }


/* ======== 緊急時情報セクション ======== */
.emergency-section {
    padding: 2rem 0;
    background-color: #FFFBEB;
    border-top: 1px solid #FDE68A;
    border-bottom: 1px solid #FDE68A;
}
.emergency-box {
    border: 2px solid #FBBF24;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: center;
}
.emergency-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.emergency-icon {
    font-size: 1.5rem;
}
.emergency-box h3 {
    margin: 0;
    color: #92400E;
}
.emergency-box p {
    margin: 0 0 1.5rem 0;
    max-width: 650px;
    display: inline-block;
    text-align: left;
}
.btn-emergency {
    background-color: #D97706;
    color: white;
}
.btn-emergency:hover {
    background-color: #B45309;
    color: white;
}


/* ======== 店舗マップ ======== */
#store-map h2 { margin-bottom: 1rem; }
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
}
.map-description {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 8px;
}
.map-description ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}
.map-description li {
    margin-bottom: 0.5rem;
}
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.btn:hover { color: white; opacity: 0.9; }


/* ======== 信用組合について ======== */
#about-shinkumi {
    padding-bottom: 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.about-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.about-item h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}
.about-item-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}
.info-box {
    background-color: var(--bg-light-color);
    padding: 1rem;
    border-radius: 5px;
    margin-top: auto;
    text-align: left;
    border: 1px solid var(--border-color);
}
.info-box hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 0;
}
.info-box p {
    margin: 0;
    font-size: 0.9rem;
}
.info-box strong {
    font-size: 1.1rem;
}

/* ======== ピーターパンカード ======== */
#peterpan-card {
    background-color: var(--bg-light-color);
}
.peterpan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}
.peterpan-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.peterpan-item h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}
.peterpan-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.peterpan-logo-img {
    flex: 1;
    max-width: 250px;
    height: auto;
}
.peterpan-illust-img {
    height: 100px;
    width: auto;
}
.peterpan-flowchart-img {
    box-sizing: border-box; /* この行を追加 */
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    margin-top: auto;
}
.small-text {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    margin-top: 1rem;
}
.recipient-list-wrapper {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}
.recipient-list {
    padding-left: 1.5em;
    column-count: 2;
    column-gap: 2.5rem;
    font-size: 0.9rem;
    margin: 1rem 0 0 0;
}
.recipient-list li {
    margin-bottom: 0.75rem;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}


/* ======== 全国組織へのリンク ======== */
#links {
    padding-top: 0;
    background-color: var(--bg-light-color);
}
#links h2 { margin-bottom: 2.5rem; }
.link-list {
    list-style: none;
    padding: 0;
    text-align: center;
}
.link-list li {
    margin-bottom: 1rem;
}
.link-list a {
    font-size: 1.1rem;
    font-weight: bold;
}


/* ======== タブとテーブルのスタイル ======== */
.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-button {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #888;
    position: relative;
    bottom: -2px;
}
.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.table-wrapper {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    white-space: nowrap;
}
.data-table thead th {
    background-color: var(--bg-light-color);
    font-weight: bold;
}
.data-table tbody tr:nth-child(even) {
    background-color: var(--bg-light-color);
}


/* ======== フッター ======== */
footer {
    background-color: var(--primary-color); [cite_start]/* [cite: 111] */
    color: white; [cite_start]/* [cite: 111] */
    padding: 2.5rem 0; /* 上下の余白を広げてバランスを調整 */
    font-size: 0.9rem; [cite_start]/* [cite: 111] */
    text-align: center; [cite_start]/* [cite: 111] */
}

.footer-info {
    margin-bottom: 1.5rem; /* 住所情報とコピーライトの間に余白を設定 */
    line-height: 1.8; /* 行間を調整して読みやすくする */
}

.footer-info p {
    margin: 0;
    color: white; /* この行を追加 */
}

.copyright {
    margin: 0;
    opacity: 0.9;
    color: white; /* この行を追加 */
}

/* ======== レスポンシブ (スマホ) 対応 ======== */
@media (max-width: 900px) {
    h2 { font-size: 1.8rem; }

    header nav { display: none; }
    .hamburger-menu {
        display: block; cursor: pointer; background: none; border: none; padding: 0;
        width: 30px; height: 21px; position: relative; z-index: 110;
    }
    .hamburger-menu span {
        display: block; width: 100%; height: 3px; background-color: var(--primary-color);
        position: absolute; transition: all 0.3s;
    }
    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 9px; }
    .hamburger-menu span:nth-child(3) { top: 18px; }
    
    .hamburger-menu.is-open span { background-color: white; }
    .hamburger-menu.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
    .hamburger-menu.is-open span:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
    
    header nav.is-open {
        display: block; position: fixed; top: 0; left: 0;
        width: 100%; height: 100vh;
        background-color: rgba(46, 139, 87, 0.98);
    }
    header nav ul {
        flex-direction: column; align-items: center; justify-content: center;
        height: 100%; gap: 2rem;
    }
    header nav a { color: white; font-size: 1.2rem; }

    .slideshow-container { height: 300px; }
    .slideshow-text h1 { font-size: 1.8rem; }
    .slideshow-text p { font-size: 1rem; }

    .about-grid, .peterpan-grid {
        grid-template-columns: 1fr;
    }
    .recipient-list {
        column-count: 1;
    }
}
.tsurushinkumi-link {
    color: navy;
    font-weight: bold;
}
.kenminshinkumi-link {
    color: deepskyblue;
    font-weight: bold;
}