/* listing-area */
#content.listing {
    background-color: var(--bg-light);
}
#content.listing .inner {
    width: 1000px;
}

.listing-area {
    padding: 0 0 50px;
}

/* カテゴリータブ分け */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    margin-bottom: 50px;
}
.category-tabs a {
    padding: 5px 15px;
    border-radius: 50px;
    color:#fff;
    font-size: 1.6rem;
    transition: 0.3s;

    opacity: 0.4;
}
.category-tabs a:hover {
    opacity: 0.7;
}
.category-tabs a.category-0 { 
    background:#fff; 
    color: #333; 
}
.category-tabs a.category-1 { 
    background:#3b82f6; 
}
.category-tabs a.category-2 { 
    background:#ef4444; 
}
.category-tabs a.category-3 { 
    background:#10b981; 
}
.category-tabs a.category-4 { 
    background:#8b5cf6; }
.category-tabs a.category-5 { 
    background:#f59e0b; 
}
.category-tabs a.category-6 { 
    background:#06b6d4; 
}
.category-tabs a.category-7 { 
    background:#6b7280; 
}

/* jsでクラス追加 */
.category-tabs a.selected {
    opacity: 1;
    box-shadow: var(--shadow);
}

/* アコーディオンエリア */
.accordion-box {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    background-color: #fff;
}
.accordion-box summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 30px 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.accordion-box summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 15px;
    height: 15px;
    margin-left: 10px;
    border-bottom: 3px solid #333;
    border-right: 3px solid #333;
    content: '';
    transition: transform 0.3s;
}
.accordion-box[open] summary::after {
    transform: rotate(225deg);
}

/* アコーディオン内 */
.accordion-box .txt-inner {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    background-color: var(--bg-yellow);
    border-radius: 0px 0px 10px 10px;
    padding-bottom: 50px;
    transition: 0.3s;
}
.accordion-box[open] .txt-inner {
    transform: none;
    opacity: 1;
}
.accordion-box[open] .txt-inner .txt-box {
    padding: 30px 20px;
    border-top: solid 1px #ccc;
}
.accordion-box[open] .txt-inner .txt-box.first {
    border-top: none;
}
.accordion-box[open] .txt-inner .txt-box p {
    font-weight: bold;
    padding-bottom: 10px;
}

.accordion-box .txt-inner .txt-box .txt-flex {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.accordion-box .txt-inner .txt-box .txt-flex img {
    width: 30px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.accordion-box .txt-inner .txt-box .txt-flex p {
    font-size: 2rem;
    font-weight: bold;
    padding: 0 0 0;
}
.accordion-box .txt-inner .txt-box .txt02 {
    font-size: 2rem;
    font-weight: bold;
    padding-left: 40px;
}
.accordion-box .txt-inner .txt-box a.txt02 {
    text-decoration: underline;
}

/* 編集モーダル 編集するボタン */
.modal-2__wrap input[type="radio"] {
    display: none;
}
.modal-2__open-label,
.modal-2__close-label {
    cursor: pointer;
}
.modal-2__open-label {
    position: absolute;
    right: 20px;
    bottom: 30px;
}

/* 編集モーダル内 */
.modal-2 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}
.modal-2__open-input:checked + label + input + .modal-2 {
    display: block;
    animation: modal-2-animation .6s;
}
.modal-2__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: var(--bg-yellow);
    z-index: 2;
    border-radius: 5px;
}
.modal-2__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.8rem;
}
.modal-2__content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px 30px 50px;
}

/* モーダル内の入力欄 */
.modal-2__content input[type="text"],
.modal-2__content textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* textareaの高さ調整 */
.modal-2__content textarea {
    min-height: 120px;
    resize: vertical; /* 縦だけ伸ばせる */
}

/* モーダル背景 */
.modal-2__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes modal-2-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 削除・保存ボタン */
.modal-2 .flex-box {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
}
.modal-2 .com-btn {
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    #content.listing .inner {
        width: 100%;
    }

    .listing-area {
        padding: 0 0 50px;
    }

    /* アコーディオンエリア */
    .accordion-box {
        margin-bottom: 20px;
    }
    .accordion-box summary {
        padding: 20px 20px;
        font-size: 1.8rem;
    }
    .accordion-box summary::after {
        width: 10px;
        height: 10px;
    }

    /* アコーディオン内 */
    .accordion-box .txt-inner {
        padding-bottom: 80px;
    }
    .accordion-box[open] .txt-inner .txt-box {
        padding: 20px 20px;
    }
    
    .accordion-box .txt-inner .txt-box .txt-flex img {
        width: 25px;
    }
    .accordion-box .txt-inner .txt-box .txt-flex p {
        font-size: 1.8rem;
    }
    .accordion-box .txt-inner .txt-box .txt02 {
        font-size: 1.8rem;
        padding: 0 0 0;
    }

    /* 編集モーダル */
    .modal-2__open-label {
        bottom: 20px;
    }
    .modal-2__close-label {
        top: -17px;
        right: -4%;
    }
    .modal-2__content-wrap {
        width: 90vw;
    }
    .modal-2__content {
        padding: 20px 0;
        width: 100%;
        padding: 20px 30px 50px;
    }

}

/* 単語の登録がない場合 */
.listing-area .no-data p.txt {
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.8;
    font-weight: bold;
}
.listing-area .no-data p.txt a {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .listing-area .no-data p {
        font-size: 1.6rem;
    }
}