#readingcont-body b {
    font-weight: bolder;
}

#readingcont-body h3 {
    color: #FFF;
    background-color: #05615a;
}

#readingcont-body h4 {
    font-weight: bold !important;
}

#readingcont-body .about-heading-anchor-link-image-list {
    display: flex;
    flex-wrap: wrap;
}

#readingcont-body .about-heading-anchor-link-image-list > a {
    width: calc(15% - 18px);
    margin: 1px;
    padding: 4px;
}

.teen-volunteer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.teen-volunteer-top-container {
    display: flex;
    flex-direction: row; /* 横並びにする */
    align-items: flex-start;
    margin-bottom: 20px;
}

.teen-img-box {
    flex: 1; /* 1:2の比率を保つ */
    margin-right: 20px;
}

.teen-text-box {
    flex: 2; /* 1:2の比率を保つ */
}

#readingcont-body .teen-info-table-main {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: collapse;
}

#readingcont-body .teen-info-table-main th {
    padding: 10px 5px 10px 5px !important;
    width: 200px !important;
    text-align: left !important;
    border: none !important;
    background-color: #fff !important; /* 背景色を白に統一 */
}

#readingcont-body .teen-info-table-main td {
    padding: 10px 5px 10px 5px !important;
    width: auto !important;
    text-align: left !important;
    border: none !important;
    background-color: #fff !important; /* 背景色を白に統一 */
}

.teen-accordion {
    width: 100%;
}

.teen-accordion .button {
    position: relative;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    line-height: 1.5;
    cursor: pointer;
    background-color: #d9edec;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 100%;
}

.teen-accordion .button:focus {
    z-index: 100;
}

.teen-button {
    text-align: center;
    margin-top: 10px;
}

.teen-accordion .content {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
}

.teen-accordion .button:after {
    content: "＋";
    color: #053657;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 150%;
}

.teen-accordion .button.open:after {
    content: "ー";
}

.teen-volunteer-bottom-container {
    display: flex;
    flex-direction: row; /* 横並びにする */
    align-items: flex-start;
    margin-bottom: 20px;
}

.teen-details-box {
    flex: 1;
}

.teen-info-table-details {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: collapse;
}

#readingcont-body .teen-info-table-details th {
    width: 140px;
    padding: 20px 10px;
    text-align: left !important;
    border: none !important;
    vertical-align: middle;
}

#readingcont-body .teen-info-table-details td {
    width: auto !important;
    padding: 20px 60px 20px 10px;
    text-align: left !important;
    border: none !important;
}

/* 奇数行に白の背景色を設定 */
#readingcont-body .teen-info-table-details tr:nth-child(even) th,
#readingcont-body .teen-info-table-details tr:nth-child(even) td {
    background-color: #ffffff;
}

/* 偶数行にグレーの背景色を設定 */
#readingcont-body .teen-info-table-details tr:nth-child(odd) th,
#readingcont-body .teen-info-table-details tr:nth-child(odd) td {
    background-color: #eeeeee;
}

.teen-subtitle {
    margin-bottom: 5px !important;
    font-weight: bold;
    font-size: 120%;
}

.teen-text {
    margin-bottom: 0 !important;
}

.img-box {
    text-align: center;
    margin-bottom: 20px;
}

.img-box img {
    max-width: 100%;
    height: auto;
}

.info-icon {
    vertical-align: middle;
    margin-right: 10px;
    width: 28px;
}

/* モーダルのスタイル */
.teen-details-trigger {
    width: 100%;
}

.teen-details-trigger .button {
    position: relative;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    line-height: 1.5;
    cursor: pointer;
    background-color: #d9edec;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 100%;
}

.modal {
    display: none; /* デフォルトで非表示 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 10px 60px 20px;
    border: 1px solid #888;
    width: 90%;
    font-size: 100%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-btn {
    display: block;
    text-align: center;
    margin-top: 30px;
}

.return-btn {
    position: relative;
    display: inline-block;
    color: #000000;
    background-color: #eee;
    padding: 20px 70px;
    border-radius: 30px;
    font-size: 87.5%;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    border: none;
    text-decoration: none !important;
}

.return-btn:after {
    position: absolute;
    content: "〉";
    transform: rotate(-90deg);
    top: 26%;
    right: 20px;
}

.table-of-contents-cat {
    display: none;
}

@media screen and (max-width: 768px) {
    .teen-volunteer-top-container, .teen-volunteer-bottom-container {
        flex-direction: column;
    }

    .teen-img-box, .teen-text-box, .teen-details-box {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .teen-volunteer-top-container {
        margin-bottom: 0 !important;
    }

    .teen-text-box {
        margin-bottom: 0 !important;
    }

    .teen-volunteer-container > div.teen-volunteer-top-container > div.teen-img-box {
        text-align: center;
    }

    #readingcont-body .teen-info-table-main th,
    #readingcont-body .teen-info-table-main td {
        display: block;
    }

    #readingcont-body .teen-info-table-details th,
    #readingcont-body .teen-info-table-details td {
        display: block;
    }

    #readingcont-body .teen-info-table-details tr th {
        background-color: #eeeeee !important;
        width: 100%;
        padding: 10px;
    }

    #readingcont-body .teen-info-table-details tr td {
        background-color: #ffffff !important;
        padding: 10px;
    }

    #readingcont-body h4 {
        margin-top: 0;
    }

    #readingcont-body .about-heading-anchor-link-image-list > a {
        width: calc(25% - 10px);
        margin: 1px;
        padding: 4px;
    }

    .table-of-contents-cat {
        display: block;
        position: relative;
    }

    .table-of-contents-cat img {
        width: 50px;
        position: absolute;
        right: 10px;
        bottom: 20px;
    }
}
