@charset "utf-8";

.accordion {
    width: 100%;
    overflow: hidden;
}

.accordion h3 {
    position: relative;
    padding: 8px 16px;
    outline: 3px solid #333;
    font-size: 130%;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    box-sizing: border-box;
    max-width: 95%;
    text-align: center;
    margin: 24px;
    margin-inline: auto;
    z-index: 1;
}

.accordion h3::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 98%;
    height: 82%;
    /*background: #ffeff8;*/
    background: #fff;
    z-index: -999;
}

.accordion h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: -6px;
    border-right: solid 3px #333;
    border-bottom: solid 3px #333;
    width: 98%;
    height: 98%;
}

.accordion span {
    font-weight: bold;
}

.accordion span.small {
    font-weight: normal;
    font-size: 80%;
}

.accordion input {
    display: none;
}

.accordion label {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    position: relative;
    margin: 0 0 2em;
    padding: 0;
}

.accordion ul {
    padding: 16px;/**/
    margin: 0 2.4em;
    list-style: none;
    text-align: left;
    /*background: #fff;*/
}

.accordion li {
    max-height: 0;
    overflow-y: hidden;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#accordion_bt_01:checked ~ #accordion_tx_01 li,
#accordion_bt_02:checked ~ #accordion_tx_02 li {
    max-height: 5000px;
    opacity: 1;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#accordion_bt_01:checked ~ #accordion_tx_01 li:last-child,
#accordion_bt_02:checked ~ #accordion_tx_02 li:last-child {
    margin-bottom: 20px;
}

.accordion label:after {
    content: "";
    display: block;
    position: absolute;
    background: url("img/accordion_bt_01_close.png") no-repeat right;
    background-size: contain;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
}

.accordion input[type=checkbox]:checked + label:after {
    content: "";
    display: block;
    position: absolute;
    background: url("img/accordion_bt_02_close.png") no-repeat right;
    background-size: contain;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
}

#narita .accordion a.tx {
    text-decoration: underline;
    color: blue;
}
