.main.law-contents {
    width: 100%;
    padding: 0 0 0 0;
}

.law-contents {
    display: flex;
}

@media (max-width: 768px) {
    .law-contents {
        display: block;
    }
}

.law-info {
    padding: 30px 20px 80px 20px;
    margin-top: 69px;
    height: 100%;
    overflow: auto;
    overflow-y: scroll;
    display: none;
    box-sizing: border-box;
}

.law-body {
    height: 100%;
    margin-top: 55px;
    overflow: auto;
    margin-left: 300px;
}

@media (max-width: 768px) {
    .law-body {
        margin-left: 0;
        padding-bottom: 30px;
    }
}

@media (min-width: 768px) {
    .law-contents {
        flex-direction: row;
    }
    .law-info {
        position: fixed;
        display: block;
        width: 300px;
        flex-shrink: 0;
        background: var(--extra-light-gray);
        box-shadow: 0 0 10px 1px rgba(0,0,0,0.4);;
    }
    .law-body {
        display: block;
    }
}

.main-contents {
    width: 100%;
    position: relative;
    margin: 0 auto 0 auto;
    border-top: 1px solid var(--light-gray);
    z-index: 1;
}

.law-info .title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.3;
    font-feature-settings: "palt";
}

.tab {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 30px 0 0 0;
    width: 100%;
}

#tocTab {border-radius: 18px 0 0 18px}
#historyTab {border-radius: 0 18px 18px 0}

.tab-item {
    text-align: center;
    flex-grow: 1;
    padding: 0.5em;
    box-sizing: border-box;
    background: var(--gray-btn-bg);
    color: var(--mid-tx);
    text-align: center;
    cursor: pointer;
    
}

.tab-item.active {
    background: rgb(68,138,255);
    background: linear-gradient(0deg, rgba(41,98,255,1) 0%, rgba(68,138,255,1) 100%);
    color: var(--white);
    cursor: auto;
}

.tab-item:last-of-type {
    margin-right: 0;
}

.info-area {
    margin: 0 -20px;
    padding: 15px;
    box-sizing: border-box;
}

.info-area-item {
    display: none;
}

.info-area-item.active {
    display: block;
}

.law-info > .last-version:nth-of-type(3) {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #bdbdbd;
    position: relative;
}

.law-info > .last-version:nth-of-type(3)::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    position: absolute;
    top: 0;
}

.last-version .label {
    color: var(--sub-tx);
}

ul.history {
    margin: 0;
    padding: 0;
}

.history li {
    list-style: none;
}

.history > li {
    margin-bottom: 1em;
}

.footer-tab {
    display: flex;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: var(--white);
}

.footer-tab-item {
    padding-top: 5px;
    width: 50%;
    height: 40px;
    text-align: center;
    display: inline;
    vertical-align: middle;
    font-size: 20px;
    border: 1px solid rgb(68,138,255);
    color: var(--blue);
    cursor: pointer;
    box-sizing: border-box;
}

.footer-tab-item.active {
    background: rgb(68,138,255);
    background: linear-gradient(0deg, rgba(41,98,255,1) 0%, rgba(68,138,255,1) 100%);
    color: var(--white);
}

@media (min-width: 768px) {
    .footer-tab {
        display: none;
    }
}

.main.law-contents + footer {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    padding-left: 300px;
}

@media (max-width: 768px) {
    .main.law-contents + footer {
        padding-left: 0;
        z-index: 100;
    }
}

.main.law-contents + footer .copyright {
    padding: 0;
}

.Laws *[id^="ja"], 
.Laws *[id^="en"] {
    display: block;
    padding-top: 70px !important;
    margin-top: -70px !important;
}

.anchor {
    display: block;
    padding-top: 70px !important;
    margin-top: -70px !important;
}

.check-all {
    text-align: right;
}

.check-all a {
    margin-left: 1em;
}

.title-only-message {
    margin: 2em 2em 5em 2em;
}

.title-only-message div {
    margin: 1em;
}

span.icon-memo-set {
    margin-left: 1em;
}

span.material-icons.memo {
    display: inline-block !important;
    line-height: 1em;
    vertical-align: middle;
    color: var(--yellow);
}

.repeal-label {
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 1.2em;
    text-align: center;
    padding: 5px;
    background-color: var(--red);
    color: var(--white);
}

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