/* === トップ一面 === */
.hero {
    height: calc(100vh - 12rem);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

/* === 紹介文 === */
.introduction .img {
    width: calc(100% / 2);
    margin: 0 auto;

}

.introduction .img img {
    width: 100%;
}

.introduction .text {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    margin: 2rem auto;
    text-align: center;
}


/* === news === */
.news-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 1rem 2rem;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: center;
    border-bottom: 1px dotted;
    padding: 1rem 0;
    gap: 1em;
}

.news-item:last-child {
    border: none;
}

.stamp {
    display: flex;
    gap: 1em;
    align-items: center;
}

.label {
    /* 中身の幅に合わせる */
    flex: none;
    border: 1px solid;
    padding: 0.2em;
}

.badge {
    border: 1px solid;
    padding: 0.2em;
    min-width: 3.5em;
    text-align: center;
    flex: none;
}

.badge:empty {
    border: none;
}

time {
    text-align: center;
    flex: none;
}

.news-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.news-text a {
    text-decoration: underline;
}

/* === 団体紹介 === */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #0C0F17;
    border: 1px solid #E0E1E0;
}

.table caption {
    caption-side: top;
    padding: 0.5rem;
    font-weight: bold;
}

.table th,
.table td {
    border: 1px solid #E0E1E0;
    text-align: left;
    padding: 0.8rem 1rem;
    vertical-align: top;
}

.table th {
    background-color: #0C0F17;
    width: 25%;
    vertical-align: middle;
}

.table td {
    line-height: 1.6;
}

/* === 代表挨拶 === */
.profile-section .text-img {
    display: flex;
    gap: 1.5rem;
}

.profile {
    width: 30%;
    text-align: center;
    margin: auto;
}

.profile img {
    width: 100%;
}

.greeting-text {
    width: 70%;
    margin: auto;
}

/* === 関連サービズ === */
.related-service {
    width: 100%;
}

.related-service .overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(16, 19, 28, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-service .overlay span {
    font-size: 1.8em;
}

.related-service .img {
    position: relative;
}

.related-service .img {
    width: calc(100% / 2);
    margin: auto;
}

.related-service .img img {
    width: 100%;
}

/* === footer === */
.footer-sns {
    display: none;
}




/* == about.html == */

.ours p {
    text-align: center;
}

.tabs {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
}

/* === タブラベル === */
.tab-labels {
    display: flex;
}

.tab-labels label {
    flex: 1;
    padding: 0.7em 1em 0.5em;
    background: #0C0F17;
    color: #E0E1E0;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.tab-labels label:hover {
    color: #5474AD;
    border-bottom-color: #E0E1E0;
}

/* === 共通：非表示 === */
.tabs input {
    display: none;
}

.tab-content {
    display: none;
    padding: 2em 1.5em;
    /* 内側余白を少し広めに */
    background: #0C0F17;
    border-top: 1px solid #E0E1E0;
    line-height: 1.8;
    /* 読みやすい行間 */
    font-size: 1rem;
    color: #E0E1E0;
}

/* 見出しっぽい強調 */
.tab-content strong {
    color: #5474AD;
    font-weight: bold;
}

/* 段落間を広めに */
.tab-content p {
    margin: 1em 0;
}

/* リストを整理 */
.tab-content ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

.tab-content li {
    margin-bottom: 1em;
}

.tab-content .value-desc {
    display: block;
    margin-top: 0.3em;
    font-size: 0.9rem;
    color: #B0B2B4;
    /* 補足説明は少し淡く */
}


/* === 選択中のタブ === */
.tabs input:checked+.tab-labels label,
.tabs input:checked~.tab-labels label[for]:hover {
    cursor: default;
}

/* 各タブごとに色変更 & コンテンツ表示 */
#tab1:checked~.tab-labels label[for="tab1"],
#tab2:checked~.tab-labels label[for="tab2"],
#tab3:checked~.tab-labels label[for="tab3"],
#tab4:checked~.tab-labels label[for="tab4"] {
    color: #5474AD;
    border-bottom-color: #E0E1E0;
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3,
#tab4:checked~#content4 {
    display: block;
}

.activity p {
    text-align: center;
}

.connect p {
    text-align: center;
}


.connect ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 1rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 50%;

}

.connect ul li a {
    padding: 1rem;
    display: block;
    text-align: center;
    border: 1px solid #202530;
    border-radius: 30px;
}

.form-disabled span {
    cursor: not-allowed;
    opacity: 0.6;
    padding: 1rem;
    display: block;
    text-align: center;
    background-color: rgba(11, 13, 20, 0.8);
    border: 1px solid #202530;
    border-radius: 30px;
}


@media (max-width: 768px) {

    .hero {
        height: calc(100vh - 7rem);
        font-size: 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
    }

    .introduction .text {
        font-size: 1em;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
    }

    .news-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .news-list a {
        white-space: normal;
    }

    time {
        font-weight: bold;
        flex-shrink: 0;
        margin: 0;
    }

    .profile-section .text-img {
        flex-direction: column;
    }

    .profile-section .profile {
        width: 100%;
    }

    .profile-section .greeting-text {
        width: 100%;
    }


    /* 団体概要 */
    .table th,
    .table td {
        display: block;
        width: 100%;
    }

    .table th {
        padding-top: 1rem;
    }

    .table td {
        padding-bottom: 1rem;
    }


    .tabs {
        width: 95%;
        /* モバイルでは余白を広く */
    }

    .tab-labels {
        flex-direction: column;
        /* 縦並びに切り替え */
    }

    .tab-labels label {
        flex: none;
        width: 100%;
        text-align: left;
        /* 左寄せにしてスマホっぽく */
        border-bottom: 1px solid #ddd;
        /* 境界を追加 */
    }

    .tab-labels label:hover {
        background: #f7f7f7;
    }
}