@charset 'UTF-8';

html{
    margin: 0;
    padding: 0;
    font-size: 100%;
}

body{
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-family:  Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

p {
    text-align: center;
    white-space: normal; /* 自動改行を有効にする */
    word-wrap: break-word; /* 長い単語があれば適切に改行 */
    overflow-wrap: break-word; /* モダンブラウザ向けの改行処理 */
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

li {
    list-style: none;
  }

a {
    text-decoration: none;
    color: #000000;
    transition: all 0.3 ease-in;
}

a:hover {
    text-decoration:underline;
    font-weight: 600;
    color: rgb(0, 50, 100);
}

iframe {
    vertical-align: bottom;
}

main {
    padding-top: 80px;
}

/*---header---*/
.header{
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    padding: 0 0px;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #ffffff;
}

.header .logo{
    height: 100%;
}

.header .logo a{
    display: block;

}

.header .logo .logo-img{
    height: 60px;
    width: auto;
    margin: 6px 10px 12px 10px;
}


.header .navi .menu{
    display: flex;
    align-items: center;
    font-size: 18px;
    padding: 0 30px;
}

.header .navi .menu li{
    margin-left: 50px;
    font-weight: 400;
}

.header .to-contact {
    display: block;
    padding: 8px 30px;
    background-color: rgb(0, 50, 100);
    color: #ffffff;
    border-radius: 30px;
}



@media screen and (min-width: 768px){
    /*----footer----*/
    .footer {
        margin: 0;
        padding: 0;
        display: block;
        padding-top: 20px;
        width: 100%;
        height: auto;
        background-color: rgb(0, 50, 100);
        color: #ffffff;
        margin-bottom: -200px;
    }

    .footer .footer1 {
        width: 80%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-content: center;
        margin-bottom: 50px;
    }

    .footer .footer1 .company-info{
        width: 60%;
        margin: 0 auto;
        margin-top: 20px;
        text-align: left;
    }

    .footer .footer1 .company-info img{
        width: auto;
        height: 60px;
        margin: 0 auto;
        margin-top: 20px;
    }

    .footer .footer1 .company-info p{
        margin-top: 0px;
        margin-bottom: 20px;
        font-size: 28px;
        text-align: left;
    }

    .footer .footer1 .company-info ul{
        margin-top: 0px;
    }

    .footer .footer1 .menu{
        width: 40%;
        margin: 0 auto;
    }

    .footer .footer1 .menu .menu-ul{
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .footer1 .menu .menu-ul .menu-li{
        margin-top: 30px;
    }

    .footer .footer1 .menu .menu-ul .menu-li a{
        color: #ffffff;
        font-size: 20px;
    }

    .footer .footer-under {
        width: 100%;
    }

    .footer .footer-under hr{
        padding: 0;
        margin: 0px;
        color: #ffffff;
    }

    .footer .footer-under .copy-right{
        text-align: center;
        opacity: 0.7s;
        padding: 30px;
        margin: 0px;
    }
}


@media screen and (max-width: 767px) {
    main {
    padding-top: 80px;
    width: 100%;
    overflow: hidden;
    }   
    /* hamburger icon */
    .header .hamburger {
        width: 50px;
        height: 50px;
        cursor: pointer;
        position: fixed;
        top: 8px;
        right: 20px;
        z-index: 15;
    }

    .header .hamburger span {
        width: 30px;
        height: 2px;
        background-color: black;
        border-radius: 10px;
        display: inline-block;
        position: absolute;
        left: 10px;
        height: 3px;
        transition: all 0.3s;
    }

    .header .hamburger span:nth-of-type(1){
        top: 15px;
    }
    .header .hamburger span:nth-of-type(2){
        top: 25px;
    }
    .header .hamburger span:nth-of-type(3){
        top: 35px;
    }

    .header .hamburger.active span:nth-of-type(1){
        top: 25px;
        transform: rotate(45deg);
    }
    .header .hamburger.active span:nth-of-type(2){
        opacity: 0;
    }
    .header .hamburger.active span:nth-of-type(3){
        top: 25px;
        transform: rotate(-45deg);
    }

    .header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .header .logo{
        height: 100%;
    }
    
    .header .logo a{
        display: block;
    
    }
    
    .header .logo .logo-img{
        height: 50px;
        width: auto;
        margin: 0 auto;
    }


    .header .navi{
        width: 100%;
        height: 100vh;
        position: fixed;
        background-color: white;
        top: 0;
        left: 0;
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s;
    }
    .header .navi.active{
        opacity: 1;
        visibility: visible;
        transition: all 0.5s;
    }

    .header .navi .menu {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    .header .navi .menu li {
        margin: 10px 0;
    }

    .header .to-contact {
        display: block;
        padding: 8px 30px;
        background-color: rgb(0, 50, 100);
        color: #ffffff;
        border-radius: 30px;
    }

    .footer {
        margin: 0 auto;
        padding: 0;
        display: block;
        padding-top: 20px;
        width: 100%;
        height: auto;
        background-color: rgb(0, 50, 100);
        color: #ffffff;
        margin-bottom: -200px;
    }

    .footer .footer1 {
        max-width: 100%;
        margin: 0 auto;
        margin-bottom: 50px;

    }

    .footer .footer1 .company-info{
        max-width: 100%;
        margin: 0 auto;
        margin-top: 20px;
        text-align: center;
    }

    .footer .footer1 .company-info img{
        max-width: auto;
        height: 60px;
        margin: 0 auto;
        margin-top: 20px;
    }

    .footer .footer1 .company-info p{
        margin-top: 0px;
        margin-bottom: 20px;
        font-weight: 700;
        font-size: 28px;
        text-align: center;
    }

    .footer .footer1 .company-info ul {
        padding: 0;
        margin: 0 auto;
        list-style: none;
    }

    .footer .footer1 .company-info ul li {
        display: flex;
        justify-content: center;   /* テキストを中央に配置（横方向） */
        align-items: center;       /* テキストを中央に配置（縦方向） */ 
        color: white;              /* 白文字 */
        padding: 5px 0;           /* 上下に余白をつける */
        max-width: 100%;               /* 親要素に合わせて幅を広げる */
        box-sizing: border-box;
        opacity: 0.7;
        font-size: 14px;
    }


    .footer .footer1 .menu{
        padding-top: 50px;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer .footer1 .menu .menu-ul {
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        list-style: none;
        padding: 0;
    }

    .footer .footer1 .menu .menu-ul .menu-li {
        display: flex;
        justify-content: center;  
        align-items: center;      
        max-width: 100%;
        padding: 15px 0;
        box-sizing: border-box;
    }

    .footer .footer1 .menu .menu-ul .menu-li a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
        text-align: center;
    }

    .footer .footer-under {
        width: 100%;
    }

    .footer .footer-under hr{
        padding: 0;
        margin: 0px;
        color: #ffffff;
    }

    .footer .footer-under .copy-right{
        text-align: center;
        opacity: 0.7s;
        padding: 30px;
        margin: 0px;
    }

}