@charset "utf-8";

:root {
    --line: 1px solid red;
    --mainColor: #8c3c00;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
img {
    width: 100%;
    vertical-align: bottom;
    height: auto;
}
body, html {
    width: 100vw;
    height: 100%;
    font-size: 62.5%; /* font-size:10px */
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", san-serif;
    color: #3c3c3c;
    -webkit-text-size-adjust: 100%; /* Safari, Chrome, Android */
    -ms-text-size-adjust: 100%;     /* IE */
    text-size-adjust: 100%;       /* Standard syntax */
    font-feature-settings: "palt";
}
a {
    text-decoration: none;
    color: #3c3c3c;
}
a:hover, .sub-nav a:hover {
    opacity: 0.5;
}
nav ul > li a:hover {
    opacity: 1;
}
nav ul ul a:hover {
    color: #f00;
    font-weight: 700;
    font-size: 1.7rem;
    opacity: 1;
}
ul,li {
    list-style-type: none;
    font-size: 1.5rem;
}
p {
    font-size: 1.5rem;
    line-height: 1.8;
}
.margin-right {
    margin-right: 5px;
}
header {
    width: 100%;
    height: auto;
}
.bunkacho-logo {
    width: 80px;
    height: auto;
}
nav {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    z-index: 200;
}
nav > ul {
    width: 100%;
    height: auto;

    display: none;
}
nav ul ul {
    padding: 20px 0;
    background-color: #fff;
}
nav ul ul a {
    display: block;
    text-align: center;
    line-height: 2.5;
}
.phone-header {
    width: 100%;
    height: auto;

    margin: auto;
    position: relative;
    padding: 15px;
    background-color: #ddd;
}
.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100px;
    height: auto;

    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    background-color: #fff;
}
.menu img {
    width: 13px;
    height: 13px;
    margin-left: 5px;
}
.rotate {
    transform: rotate(180deg);
    transition: all .2s;
}
.takumi {
    position: absolute;
    top: 8px;
    right: 15px;
    width: 80px;
    height: auto;
    display: flex;
    justify-content: end;
    align-items: center;
}
.takumi img {
    width: 46px;
    height: 46px;
}
.trigger {
    background-color: #eee;
    border-bottom: 1px solid #bbb;
}
.trigger > a {
    display: block;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}
.trigger:nth-child(2) > a {
    color: var(--mainColor);
    font-weight: 700;
}
.trigger ul {
    display: none;
}
.trigger li {
    background-color: #fff;
}
.sub-nav {
    text-align: center;
    display: none;
    padding: 30px 0 80px;
}
.sub-nav li {
    margin-bottom: 15px;
    line-height: 1.4;
}
.sub-nav li:nth-child(3){
    margin-bottom: 25px;
}
.sub-nav br {
    display: none;
}
.sub-nav a {
    display: block;
}
.sub-nav li:last-child {
    width: 220px;
    height: auto;

    margin: auto;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 12px 0;
    background-image: linear-gradient(rgb(255, 255, 255), rgb(204, 204, 204));
}
footer {
    position: fixed;
    width: 100%;
    height: auto;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    background-color: #eee;
    padding: 15px 0 10px;
    z-index: 300;
}
footer img {
    width: 140px;
    height: auto;

}
footer p{
    font-size: 1.3rem;
}
.topBack {
    width: calc(100% - 60px);
    max-width: 1120px;
    left: 50%;
    transform: translate(-50%);
    position: fixed;
    bottom: 80px;
    text-align: right;
    display: none;
}
.topBack img {
    width: 40px;
    height: 40px;
    opacity: 0.85;
}


@media screen and (min-width: 1024px) {
    main {
        display: block !important;
    }

    header {
        background-color: #fff;
        border-bottom: 1px solid #bbb;
    }
    .menu {
        display: none;
    }
    nav {
        display: flex;
        justify-content: space-between;
        width: calc(100% - 40px);
    }
    .phone-header {
        width: 80px;
        height: auto;
        margin: 0;
        padding-left: 0;
        background-color: #fff;
    }
    .takumi {
        position: static;
    }
    nav > ul {
        width: calc(100% - 220px);
        max-width: 1004px;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 100;
        border-left: 1px solid #bbb;
        border-right: 1px solid #bbb;
        background-color: #eee;
    }
    nav ul ul {
        width: 32rem;
        position: absolute;
        top: 63px;
        border-right: 1px solid #bbb;
        border-bottom: 1px solid #bbb;
        border-left: 1px solid #bbb;
        padding: 15px 0 15px 15px;
    }
    nav li:last-child ul {
        width: 28rem;
    }
    nav ul ul li a {
        line-height: 2;
        text-align: left;
    }
    .trigger {
        border-bottom: 0;
    }
    .trigger > a {
        padding: 0 10px;
    }
    .sub-nav {
        width: 170px;
        height: 100%;
        position: absolute;
        text-align: justify;
        display: block !important;
    }
    .sub-nav br {
        display: block;
    }
    .sub-nav li {
        margin-bottom: 10px;
        border-top: 1px solid #bbb;
        padding-top: 10px;
    }
    .sub-nav li:first-child {
        border-top: 2px solid #bbb;
    }
    .sub-nav li:nth-child(3){
        margin-bottom: 20px;
    }
    .sub-nav li:last-child {
        width: 170px;
        text-align: center;
    }
    .sub-nav li a {
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 1366px) {

    nav ul ul a {
        font-size: 1.6rem;
    }

    nav ul ul a:hover {
        font-size: 1.7rem;
    }
    ul,li {
        list-style-type: none;
        font-size: 1.7rem;
    }

    p {
        font-size: 1.8rem;
    }
    .sub-nav {
        width: 186px;
    }

    .sub-nav li:last-child {
        width: 186px;
    }
    .sub-nav li a {
        font-size: 1.5rem;
    }
    .trigger > a {
        padding: 0 15px;
    }

}