@charset "utf-8";

html {
    scroll-behavior: smooth;
}
/*　↓ ボックスサイジング */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* デフォルトのmarginを削除 */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  color: #333;
}
/* a,ul,ol,li設定 */
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}
a:hover {
    opacity: .8;
}
ul,
ol {
  padding: 0;
}
li {
    list-style: none;
}
/* ↑a,ul,ol,li設定 */

/* body:全体設定 */
body {
    font-family: 'Shippori Mincho', serif;
    line-height: 1.5;
    background-image: url(../images/background.jpg);
    min-height:100vh;
    background-attachment:fixed;
    background-size:cover;
    background-position:center;
    z-index: -100;
}
/* フォント：ゴシック指定用クラス */
body .Gothic {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}
/* >　アイコンcssにて作成クラス */
.arrow_r {
    position: relative;
    display: inline-block;
  }
  .arrow_r:before {
    content: '';
    width: 12px;
    height: 12px;
    border: 0;
    border-top: solid 1px ;
    border-right: solid 1px ;
    position: absolute;
    transform: rotate(45deg);
    margin-top: 8px;
  }
/* ↑body:全体設定 */

/* container:グリッド設定 */
#container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr 400px 50px; 
}

/* ↓nav設定 */
header {
    grid-area: 1 / 1 / 2 / 3; 
    padding-left: 50px;
    padding-top: 50px;
    z-index: 4;
    background-image: url(../images/background_ele.svg);
    background-repeat: no-repeat;
    background-position: top 5px left -100px;
}
nav {
    grid-area: 1 / 1 / 2 / 3; 
    padding-top: 50px;
    padding-right: 5%;
    z-index: 5;
    width: 50%;
    justify-self: end;
}
nav ul {
    display: flex;
    flex-direction: row-reverse;
    padding-right: 30px;
}
nav ul li  {
    padding-right: 25px;
    writing-mode: vertical-rl;
    text-align: left;
}
nav ul li .nav_now {
    color: #004b88;
    font-weight: 600;
}
nav ul li a:hover {
    color: #004b88;
}
/* ↑nav設定 */
.side_l {
    position: absolute;
    top: 50vh;
    left: 50px;
    z-index: 10;
}
main {
    grid-area: 2 / 1 / 3 / 3;
    margin: 0 100px;
}
footer {
    grid-area: 3 / 1 / 4 / 3;
    background-color: #d1d1d1;
    padding:30px 50px;
    height: 400px;
}
.foot_nav {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    border-bottom: #333 1px solid;
}
.parentmenu {
    width: 25%;
    font-weight: 500;
    letter-spacing: .1rem;
    margin-bottom: 30px;
}
.childmenu {
    display: flex;
    flex-flow: column;
    font-weight: 300;
    font-size: .95rem;
    letter-spacing: normal;
    margin-top: 5px;
}
.childmenu li {
    padding-top: 5px ;
}
.footer_map {
    border-bottom: #333 1px solid;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05rem;
}
.copyright {
    grid-area: 4 / 1 / 5 / 2;
    font-size: .85em;
    align-self: center;
    text-align: center;
    font-size: .8rem;;
    letter-spacing: .05rem;
}
.sp,
.sp_nav_address,
.sp_nav_logo,
.page-btn,
.page-btn-close {
    display: none;
}
.page_top {
    width: 50px;
    height: 50px;
    /* background-color: #231815; */
    position: fixed;
    right: 30px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}
.page_top a {
    background-color: #004b88;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}
.page_top a:hover{
    opacity: 1;
}
.fa-chevron-up {
    color: white;
    text-align: inherit;
}
.privacy_link {
    text-decoration: underline;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: .9rem;
    text-align: right;
}
.privacy_link:hover{
    opacity: .8;
}
/* スマホ設定↓ */
@media(max-width:767px){
    #container {
        grid-template-rows: 150px 1fr 400px 50px; 
    }
    /* spクラスはスマホのみ表示 */
    .sp {
        display:inline-block;
    }
    header {
        padding-left: 8%;
        padding-top: 50px;
        background-image:none;
    }
    header .logo {
        margin-top: -25px;
        margin-left: -10px;
    }
    nav{
        display: none;
    }
    nav ul li .nav_now {
        font-weight: normal;
    }
    .side_l {
        display: none;
    }
    main {
        margin: 0 8%;
    }
    .open nav {
        display: block;
        grid-row: 1 / -1;
        justify-self: end;
        background-color: #4E4E4E;
        z-index: 10;
        width: 75%;
    }
    .open nav ul {
        display: grid;
        margin: 10%;
        padding-bottom: 30px;
        border-bottom: 1px solid white;
    }
    .open nav ul li {
        writing-mode:horizontal-tb;
        color: white;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
    }
    .open nav ul li a {
        width: 100%;
        color: white;
        font-size: 1.1rem;
        letter-spacing: .1rem;
    }
    .open .sp_nav_logo {
        display: block;
        padding-left: 10%;
    }
    .open .sp_nav_address {
        display: block;
        padding: 20px 10%;
        font-size: .9rem;
    }
    .sp_nav_address a {
        color: white;
        border-bottom: white 1px solid;
    }
    .sp_nav_address a:visited {
        color: white;
        border-bottom: white 1px solid;
    }
    .sp_nav_address p{
        color:white;
    }
    .sp_nav_address .tel_fax{
        font-size: 1.1rem;
        letter-spacing: .1rem;
        margin-top: 20px;
    }
    .page-btn,
    .page-btn-close {
        display: block;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: flex-start;
        padding: 30px 40px;
        border: none;
        background-color: transparent;
        color: #333;
        font-size: 28px;
        cursor: pointer;
        z-index: 20;
    }
    .page-btn-close {
        display: none;
        color: white;
    }
    .open .page-btn {
        display: none;
    }
    .open .page-btn-close {
        display: block;
    }
    .parentmenu {
        width: 50%;
        text-align: center;
    }
    .childmenu{
        display: none;
    }
    footer {
        display: grid;
        grid-template-rows: auto auto auto auto;
    }
    .foot_logo {
        text-align: center;
        grid-row: 1;
        margin-bottom: 20px;
    }
    footer address {
        grid-row: 2;
    }
    footer .tel_fax {
        grid-row: 3;
    }
    .foot_nav{
        grid-row: 4;
        border-bottom: none;
        border-top: #A1A1A1 1px solid;
        margin: 30px 0 0;
        padding-top: 30px;
    } 
    .copyright {
        background-color: white;
        padding: 20px 0;
        font-size: .7rem;
    }
    .privacy_link {
        text-align: center;
    }
}
@media(max-width:374px){
    header .logo a img {
        width: 70%;
    }
    footer {
        grid-area: 3 / 1 / 4 / 3;
        background-color: #d1d1d1;
        padding: 10vw;
        height: 400px;
    }
    .copyright {
        background-color: white;
        padding: 20px 0;
        font-size: .65rem;
      }
}