@charset "utf-8";
/* ↓ウェブフォント */
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin&family=New+Tegomin&family=Yuji+Mai&family=Zen+Antique+Soft&display=swap');

/* 共通 */

.inner{
    width: 100%;
    max-width: 1000px;
}
/* メインのイメージ */
#imagearea{
    width: 100%;
}
#imagearea img{
    width: 100%;
}

/* 複数列article */
main .multiple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

/* 複数列article 画像に説明がつくやつ */
.imagebox {
    display: grid;
    grid-template-areas:
        "imgboximg imgboxdt"
        "imgboximg imgboxt1"
        "imgboximg imgboxt2";
    grid-template-rows: 30px minmax(30px, auto) 30px;
    grid-template-columns: 50% 50%;
}

.imagebox dt {
    grid-area: imgboxdt;
}

.imageboxt1 {
    grid-area: imgboxt1;
    overflow-wrap: break-word;
}

.imageboxt2 {
    grid-area: imgboxt2;
}

.imageboximg {
    grid-area: imgboximg;
}

.imageboximg img {
    width: 100%;
    object-fit: contain;
}

/* 画像に説明がつくやつ */
.singleimagebox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.singlet1 {
    overflow-wrap: break-word;
    /* padding-right: 15px; */
}

.singleimg img {
    width: 100%;
    object-fit: contain;
}

/* カード */
.kard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.kardimg {
    display: grid;
    place-items: center;
}

.kardboxt1 {
    overflow-wrap: break-word;
    padding: 20px;
}
.kardimg img{
    max-width: 100%;
    max-width: 100vh;
}
/* 全体配置 */
body {
    display: grid;
    width: 100%;
    height: 100%;
    /* min-height: 100vh; */
    grid-template-areas:
        "headerarea"
        "mainarea"
        "footerarea";
    grid-template-rows: 70px auto 400px;
    position: relative;
}

header {
    grid-area: headerarea;
}

nav {
    grid-area: navarea;
    position: absolute;
    top: 5px;
    right: 5px;
}

main {
    grid-area: mainarea;
    display: grid;
    place-items: center;
    padding-top: 30px;
}

main .inner {
    /* max-width: 1000px;
    min-width: 330px; */
    padding: 0px 5px;
}

footer {
    grid-area: footerarea;
}

/* ハンバーガー */
#menu-btn {
    height: 45px;
    width: 45px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    background-color: #4A86E8;
    display: flex;
    position: fixed;
    top: 10px;
    right: 10px;
}

#menu-btn span,
#menu-btn span:before,
#menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #fff;
    position: absolute;
    transition: all 0.5s;
}

#menu-btn span:before {
    bottom: 8px;
}

#menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked~#menu-btn span {
    background-color: rgba(255, 255, 255, 0);
}

#menu-btn-check:checked~#menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
    transition: all 0.5s;
}

#menu-btn-check:checked~#menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    transition: all 0.5s;
}

#menu-btn-check {
    display: none;
}

/* メニュー */
#menu {
    padding-top: 20px;
    line-height: 30px;
    width: 100%;
    max-width: 520px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -100%;
    /*rightの値を変更してメニューを画面外へ*/
    z-index: 1000;
    background-color: rgba(26, 181, 253, 0.938);
    transition: all 0.5s;
}

#menu li a {
    margin-left: 30px;
    position: relative;
    display: inline-block;
    transition: .3s;
    color: #fff;
}

#menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: .3s;
}

#menu li a:hover::after {
    width: 100%;
}

#menu-btn-check:checked~#menu {
    right: 0%;
    /*メニューを画面内へ*/
}

#menu_c {
    margin-left: 20px;
}

/***トップへ戻るボタン***/

#page-top {
    position: fixed;
    bottom: 50px;
    right: 10px;
    font-size: 77%;
    z-index: 999;
}

#page-top a {
    background: #4A86E8;
    text-decoration: none;
    color: #fff;
    width: 100px;
    padding: 30px 0;
    text-align: center;
    display: block;
    border-radius: 5px;
}

#page-top a:hover {
    text-decoration: none;
    background: #2679ff;
}

/* ヘッダー */
h1 a {
    display: block;
    height: 45px;
    width: 240px;
    text-indent: -9999px;
    background: url(/common/image/logo/dx.png);
    background-repeat: no-repeat;
    position: absolute;
    top: 5px;
    left: 5px;
}

/* フッター */
footer{
    margin-top: 30px;
    padding:0px 5px;
    background-color: rgb(136, 157, 172);
    height: 480px;
}
#upperfooter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); 
    margin-top: 20px;
    
}
#upperfooter div{
    margin-top: 40px;
    color: #fff;
}
#footermenu li a {
    position: relative;
    display: inline-block;
    transition: .3s;
    color: #fff;
}

#footermenu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: .3s;
}

#footermenu li a:hover::after {
    width: 100%;
}
#copy{
    text-align: center;
    
}
address{
    color: #fff;
}
/* 会社概要 */
#aboutdl{
    margin-bottom: 50px;
}
#about #aboutdl dl{
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    line-height: 40px;
    width: 100%;
}
#about #aboutdl dt{
    width: 150px;
}
#about #aboutdl dd{
    max-width: 850px;
}

#accessdl dd img{
    width: 100%;
    object-fit: cover;
}

/* 404 */
#notfound .inner{
    display: grid;
    place-items: center;
    min-height: calc( 70vh - 70px);
}
#notfound .inner > *{
    line-height: 50px;
}

/* ↓PCサイト用------------------------------------------------------ */
@media (min-width: 990px) {
    /* ----------------------------------------------------------------- */

    /* ↓ナビゲーション関連とフッターのコントロール */
    body {
        grid-template-areas:
            "headerarea"
            "navarea"
            "mainarea"
            "footerarea";
        grid-template-rows: 70px 70px auto 260px;
    }
    footer{
        height: 260px;
    }
    nav {
        position: static;
    }

    #menu {
        right: 0%;
        height: 70px;
        max-width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
        padding-top: 0px;
        border-top: 1px solid #eee;
    }

    #menu li {
        border-bottom: 1px solid #eee;
    }

    #menu li a {
        display: block;
        line-height: 70px;
        text-align: center;
        color: #000;
        background-color: #fff;
        margin-left: 0px;
    }

    #menu li a:hover {
        background-color: rgba(26, 181, 253, 0.938);
        color: #fff;
    }

    #menu li a:hover::after {
        width: 0%;
    }

    /* ハンバーガー */
    #menu-btn {
        display: none;
    }

    /* ↑ナビゲーション関連のコントロール */

    /* ----------------------------------------------------------------- */
}

/* ↑PCサイト用------------------------------------------------------ */
/* ----------------------------------------------------------------- */