@charset "UTF-8";
html {
    scroll-behavior: smooth;
}

body.besseki {
    font-size: 15px;
    line-height: 1.8;
}

.landing-page .content-wrap {
    text-align: justify;
}

.besseki_menu:after,
.besseki_menu:before {
    display: none;
}

.besseki_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.besseki_menu > li {
    float: none;
    display: block;
    width: calc((100% - 60px) / 7);
    min-width: 130px;
    margin: 0;
    padding: 0;
    height: 50px;
    background: #fff no-repeat;
    border: solid 1px #aaa;
    position: relative;
}

.besseki_menu > li > a {
    font-size: 1.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.besseki_menu > li:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background: #971d0e;
    transform: rotate(45deg);
    position: absolute;
    bottom: -5px;
    left: 50%;
    translate: -50%;
    z-index: -1;
}

.landing-page h2 {
    font-size: 1.36em;
    padding: 20px 1em;
    text-indent: inherit;
}

.landing-page h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.28em;
}

.besseki_image.besseki_image--right {
    width: 28%;
    float: right;
    margin: 0 40px 15px;
    margin-right: 0;
}

.besseki_image img {
    display: block;
}

.kakomi_maru {
    max-width: 620px;
}

.besseki_hakobu_row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 0 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.besseki_hakobu_table {
    width: 220px;
}

.besseki_hakobu_text {
    width: calc(100% - 270px);
}

.besseki_hakobu_text > *:first-child {
    margin-top: 0;
}

.besseki_hakobikata > li {
    padding-left: 2em;
    text-indent: -2em;
    text-align: justify;
}

.besseki_hakobikata > li:before {
    content: "一、";
}

div#sekisu > *:first-child {
    margin-top: 0;
}

.besseki table th, .besseki table td {
    padding: 7px 5px;
}

table caption {
    font-size: 0.92em;
}

.column2 {
    column-count: 2;
    margin-top: 15px;
    column-gap: 40px;
}

.column-block {
    break-inside: avoid;
}

.besseki table {
    font-size: 0.88em;
}

@media all and (max-width: 640px){
    .landing-page .topphoto {
        width: 40%;
        margin-top: -50px;
        margin-left: 20px;
    }

    .besseki_image.besseki_image--right {
        width: 40%;
        margin: 0 20px 15px;
        margin-right: 0;
    }

    .besseki_menu > li {
        min-width: 140px;
    }

    .besseki_hakobu_table {
        width: 180px;
    }

    .besseki_hakobu_row {
        gap: 0 20px;
        margin-top: 20px;
    }

    .besseki_hakobu_text {
        width: calc(100% - 200px);
    }

    .column2 {
        column-count: auto;
    }

    .column-block {
        margin: 0px auto 30px;
    }
}

@media all and (max-width: 480px){
    .landing-page #content {
        background-color: unset;
    }

    .besseki_menu > li {
        min-width: 100px;
        font-size: 0.88em;
        width: calc((100% - 30px) / 3);
    }

    .besseki_hakobu_row {
        display: block;
    }

    .besseki_hakobu_table {
        width: 200px;
        margin: 20px auto;
    }

    .besseki_hakobu_text {
        width: 100%;
    }
    .landing-page h2 {
        height: 4em;
        padding: 0 1em;
        line-height: 1.35;
        font-size: 1.28em;
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        background-size: auto 100%;
    }
}

@media print{
    body.landing-page {
        background: none;
    }

    .besseki_hakobu_table img {
        display: block;
        max-width: 100%;
        height: auto;
    }
    
    .landing_box {
        page-break-after: inherit;
        page-break-before: inherit;
    }
    
    .column2 {
        column-count: auto;
    }
}
