html {
    scroll-behavior: smooth;
    height: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
div,
span,
ul,
li,
dl,
dd,
dt,
table {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.5;
}

body {
    font-size: 1em;
    font-family: sans-serif;
    margin: 0;
    color: #1D4E55;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.container {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}


@media screen and (max-width: 800px) {}

@media screen and (max-width: 430px) {
    html {
        line-height: 1.6em;
    }
}


/* ーーーーーーーーーーーーヘッダーーーーーーーーーーーーー */
#header {
    position: fixed;
    z-index: 10000;
    /* left: 50%;
    transform: translateX(-50%); */
    width: 100%;
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    /* padding: 0 30px 0 0; */
    box-shadow: 1px 1px 3px rgb(0, 0, 0, 0.6);
}

.header-logo img {
    width: 90%;
    vertical-align: middle;
}

.header-logo:hover {
    opacity: calc(0.7);
}

.menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    align-items: center;
    flex: 1 1 100%;
    margin: 0;
}

.menu li {
    width: 17%;
    text-align: center;
    margin: 0 10px;
    white-space: nowrap;
}

.menu li:hover {
    color: #F7B244;
}

.menu li .header-contact:hover {
    color: #ffff;
}

.menu li a {
    color: inherit;
    text-decoration: none;
    font-size: calc(16px + 0.05vw);
}

.menu li a.active {
    color: #F7B244;
    font-weight: bold;
}

.header-contact {
    height: 100%;
    background: linear-gradient(to right, #EACB1F, #F7B244);
    color: inherit;
    text-decoration: none;
    padding: 7px 20px;
}

.header-contact:hover {
    box-shadow: 2px 2px 1px rgba(165, 100, 3, 0.802);
}

span .contact {
    word-break: keep-all;
}

/* ーーーーーーーーslickーーーーーーーー */
/* #header.UpMove{
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
	transform: translateY(0);
  }
  to {
    opacity: 0;
	transform: translateY(-100px);
  }
} */

/*　ーーーーーーーー下に下がる動きーーーーーーーー　*/

/* #header.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(-100px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
} */

@media screen and (max-width: 800px) {
    html {
        font-size: 16px;
    }

    .header-box {
        background: rgba(255, 255, 255, 1.0);
        padding: 0px;
        margin: 0;
        width: 100%;
        box-shadow: 0px 1px 3px rgb(0, 0, 0, 0.6);
    }

    .header-logo img {
        width: 70%;
    }

    .menu-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 40px;
        z-index: 12;
        box-sizing: border-box;
        cursor: pointer;
        -webkit-transition: all 400ms;
        transition: all 400ms;
        display: block;
    }

    .menu-btn span {
        position: absolute;
        width: 70%;
        height: 4px;
        background: #1D4E55;
        border-radius: 10px;
        -webkit-transition: all 400ms;
        transition: all 400ms;
    }

    .bar1 {
        top: 0;
    }

    .bar2 {
        top: 10px;
    }

    .bar3 {
        top: 20px;
    }

    .bar1.open {
        top: 6px;
        transform: rotate(45deg);
        width: 50%;
        background: #ffff;
    }

    .bar2.open {
        opacity: 0;
    }

    .bar3.open {
        top: 6px;
        transform: rotate(-45deg);
        width: 50%;
        background: #ffff;
    }

    /* ハンバーガー開いた時の見た目 */
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        background-color: rgba(22, 22, 22, 0.9);
        box-sizing: border-box;
        z-index: 1;
        -webkit-transition: .7s;
        transition: .3s;
        padding: 50px 0 50px 0;
        display: -webkit-box;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .menu.open {
        right: 0;
        z-index: 4;
        margin-top: 0;
    }

    .menu li {
        width: 86%;
        border-bottom: #525252 1px solid;
    }

    .menu li a {
        color: #ffff;
        font-weight: bold;
        display: block;
        padding: 15px;
        font-size: 1em;
    }

    .menu li .header-contact {
        color: #1D4E55;
    }

    /* .sp-li {
        display: block;
        border-bottom: none !important;
    }

    .sp-li .list-small {
        font-size: 0.7em;
        padding: 5px;
    } */

    /* .a-contact {
    color: #1D4E55 !important;
    background: linear-gradient(to right, #EACB1F,#eaad1f 80%, #F7B244);
    color: inherit;
    margin-bottom: 20px;
    } */

    /* .menu li .header-contact {
        display: none;
    } */

}

@media screen and (max-width: 430px) {
    .header-logo img {
        width: 70%;
    }
}


/* ーーーーーーーーセカンドページ共通部分ーーーーーーーー */
.hero {
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: min(800 / 1200* 40vw, 800px);
    position: relative;
    margin: 0 auto;
}

#hero-b .hero {
    background-image: url(../business/img/top-img_business.jpg);
}

#hero-i .hero {
    background-image: url(../introduction/img/top-img_introduction.jpg);
}

#hero-n .hero {
    background-image: url(../news/img/top-img_news.jpg);
}

#hero-p .hero {
    background-image: url(../privacy/img/top-img_privacy.jpg);
}

#hero-u .hero {
    background-image: url(../usecase/img/top-img_usecase.jpg);
}

#hero-a .hero {
    background-image: url(../about/img/top-img_about.jpg);
}

#hero-c .hero {
    background-image: url(../contact/img/top-img_contact.jpg);
}

.hero h1 {
    position: absolute;
    top: 30%;
    right: 5%;
    font-size: min(100 / 1000* 90vw, 100px);
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

.hero h2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: min(30 / 1000* 90vw, 30px);
    color: #ffff;
}

@media screen and (max-width: 800px) {
    .hero {
        margin-top: 60px;
    }

    .hero h1 {
        top: 15%;
    }

    .hero h2 {
        bottom: 13%;
    }
}

@media screen and (max-width: 430px) {
    .header-logo img {
        width: 70%;
    }

    .hero {
        background-size: cover;
        background-position: center center;
        height: calc(400 / 100* 10vw);
    }

    .hero h1 {
        top: 12%;
        font-size: min(13vw, 4em);
        color: rgba(255, 255, 255, 0.5);
    }

    .hero h2 {
        font-size: min(6vw, 2em);
    }
}

/* ーーーーーーーーーーーー固定問い合わせボタンーーーーーーーーーーーー */
.float-contact {
    top: 10%;
    right: 0%;
    position: fixed;
    text-decoration: none;
    color: #1D4E55;
    font-weight: bold;
    font-size: 1em;
    background: linear-gradient(to right, #F7B244, #EACB1F);
    padding: 20px 10px;
    line-height: normal;
    transition: all .1s;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.float-contact:hover {
    opacity: calc(0.7);
}

.sp-float-contact img {
    display: none;
}

@media screen and (max-width: 800px) {
    .float-contact {
        display: none;
    }

    .sp-float-contact img {
        display: block;
        top: 83%;
        right: 2%;
        position: fixed;
        transition: all .1s;
        width: 15%;
        scroll-behavior: smooth;
    }

    .sp-float-contact img:hover {
        opacity: calc(0.7);
    }
}

@media screen and (max-width: 430px) {
    .sp-float-contact img {
        display: block;
        top: 85%;
        right: 2%;
        position: fixed;
        transition: all .1s;
        width: 25%;
        z-index: 1000;
    }
}

/* ーーーーーーーーーーーーーーフッターーーーーーーーーーーーーー */

footer {
    background-image: url(../img/footer-background.png);
    padding: 20px 0;
}

.footer-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    width: 100%;
    font-size: calc(0.7em + 0.2vw);
    padding: 0;
}

.footer-menu li {
    width: 40%;
    text-align: center;
}

.footer-menu li a {
    color: #ffff;
    text-decoration: none;
}

.footer-menu li a:hover {
    color: #F7B244;
}

.footer-menu li .outside-link::after {
    content: url(../img/icon-link.svg);
    display: inline-block;
    width: 10px;
    height: 13px;
    margin-left: 10px;
}

.footer-menu li .footer-contact {
    text-decoration: none;
    color: #1D4E55;
    font-weight: bold;
    font-size: 1em;
    background: linear-gradient(to right, #F7B244, #EACB1F);
    border-radius: 50px;
    border: none;
    margin: 10px 0;
    padding: 10px 20px;
    line-height: normal;
    transition: all .1s;
}

.footer-menu li .footer-contact:hover {
    top: -3px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: calc(0.8);
}

footer p {
    color: #ffff;
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 10px;
}

@media screen and (max-width: 800px) {
    footer {
        background-color: #1D4E55;
        background-image: none;
    }

    .footer-menu {
        flex-direction: column;
        justify-content: center;
    }

    .footer-menu li {
        width: 100%;
        margin: 10px 0;
    }

    footer p {
        margin: 20px 0 10px 0;
    }
}

@media screen and (max-width: 430px) {
    .footer-menu li {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.7em;
    }
}