:root{
    --yellow: #d2b177;
    --blue: #3b68b0;
    --rightblue: #63b3db;
    --waterblue: #e8f7fe;
}

html{
    width: 100%;
    margin: 0 auto;
    font-family: "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
    color: var(--blue);
    line-height: 180%;
    font-size: 100%;
    text-align: center;
}

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

h2 {
    font-family: "mode-mincho-b-large-std", "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
    font-style: normal;
    font-size: 400%;
    letter-spacing: 10px;
    background: linear-gradient(270deg,var(--rightblue),var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 4% 0;
    display: inline-block;
}

h3 {
    font-size: 150%;
    font-weight: bold;
    color: var(--yellow);
    letter-spacing: 3px;
    margin: 1% auto 8% auto;
}

.blue-title {
    font-size: 120%;
    font-weight: bold;
    letter-spacing: 3px;
}

.box {
    padding: 10% 0;
}

.area {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.sp {
    display: none;
}

/*========================= loading ========================== */
.loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: hidden;
    background: #fff;
}

/* .loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/cloud.png) no-repeat top center;
    background-size: 180%;
    background-position: center top;
    z-index: 0;
} */

.loading img {
    position: relative;
    z-index: 1;
}

.loading.open {
    animation: slideUp 1s ease-in-out forwards;
}

.loading.open::before {
    animation: panBg 1s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

@keyframes panBg {
    from {
        background-position: center top;
    }
    to {
        background-position: center bottom;
    }
}

.loading img {
    width: 30%;
}

.loading img.imgnone {
    animation: imgnone 2.5s ease 0s 1 forwards;
}

@keyframes imgnone {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/*========================= header ========================== */
.header-menu {
    position: fixed;
    width: 100vw;
    padding: 1%;
    background: #fff;
    /* background: rgba(255,255,255,0.85); */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 900;
}

.header-menu .logo {
    width: 15%;
    margin-bottom: 0.5%;
}

.header-menu ul {
    display: flex;
    gap: 40px;
}

.tel-btn {
    color: #fff;
    background: var(--blue);
    padding: 15px 2%;
}

.contact-btn {
    color: #fff;
    background: var(--yellow);
    padding: 15px 2%;
}

.header-slider {
    position: relative;
    width: 100vw;
    height: 42vw;
    overflow: hidden;
    z-index: 1;
}

.header-slider div {
    position: absolute;
    top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 10;
	opacity: 0;
	animation-name: slide-fade;
	animation-duration: 15s;
	animation-iteration-count: infinite;
}

@keyframes slide-fade {
	0%{
		opacity: 0;
	}
	20%{
		opacity: 1;
	}
	80%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}
.header-slider div:first-of-type {
	background: url(../img/00_1_pc.jpg) no-repeat top / cover;
}
.header-slider div:nth-of-type(2) {
	background: url(../img/00_2_pc.jpg) no-repeat top / cover;
	animation-delay: 5s;
}
.header-slider div:last-of-type {
	background: url(../img/00_3_pc.jpg) no-repeat top / cover;
	animation-delay: 10s;
}

.header-mov {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    opacity: 0.5;
    z-index: 2;
    overflow: hidden;
}

.header-image {
    position: relative;
}

.header-image h1 {
    position: absolute;
    top: 50%;
    left: 8%;
    font-size: 200%;
    background: rgba(255, 255, 255, 0.85);
    padding: 1%;
    display: inline-block;
    z-index: 5;
    opacity: 0;
    transition: all 3s;
}

.blue-btn {
    background: var(--blue);
    color: #fff;
    padding: 2% 8%;
    display: inline-block;
    margin-top: 8%;
    position: relative;
}

.blue-btn:after {
    font-family: "FontAwesome";
    content: "\f105";
    position: absolute;
    right: 50px;
    transition: all 1s;
}

.blue-btn:hover:after {
    right: 30px;
}

.blue-btn:hover {
    background: linear-gradient(270deg,var(--rightblue),var(--blue));
}

.header-menu-sp {
    display: none;
    position: fixed;
    background: rgba(255,255,255,0.85);
    width: 100%;
    height: 100vh!important;
    padding: 10% 0;
    top: 0;
    left: 0;
    z-index: 999;
    padding-top: 25%;
}

.header-menu-sp.open {
    display: block;
}

.header-menu-sp li a{
    padding: 8px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.header-bar-sp {
    background: #fff;
    padding: 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 2000;
}

.header-bar-sp a {
    display: block;
    width: 50%;
}

.hamburger {
    position: absolute;
    top: 18px;
    right: 35px;
    cursor: pointer;
    width: 32px;
    height: 24px;
    z-index: 999;
}

.hamburger span {
    transition: all .3s;
    position: absolute;
    height: 2px;
    background-color: var(--blue);
    width:100%;
    z-index: 10;
}

.hamburger span:nth-of-type(1) {
    top: 4px;
}

.hamburger span:nth-of-type(2) {
    top: 12px;
}

.hamburger span:nth-of-type(3) {
    top: 20px;
}

.hamburger.open span:nth-of-type(1) {
    top: 10px;
    transform: translateY(6px) rotate(-33deg);
}

.hamburger.open span:nth-of-type(2) {
    opacity: 0;
}
.hamburger.open span:nth-of-type(3) {
    top: 22px;
    transform: translateY(-6px) rotate(33deg);
}

/*========================= about ========================== */
.about {
    background: url(../img/01back.png) no-repeat center / contain;
}

.about-box {
    position: relative;
    z-index: 100;
}

/*========================= service ========================== */
.service {
    position: relative;
    background: url(../img/02back.jpg) no-repeat center / cover;
    background-size: 100% 100%;
}

.service-box h3 {
    color: #fff;
}

.service:before {
    position: absolute;
    content: '';
    background: url(../img/02_backR.png) no-repeat center / contain;
    top: 0;
    right: 3%;
    width: 30%;
    height: 30%;
    z-index: 500;
}

.service:after {
    position: absolute;
    content: '';
    background: url(../img/02_backL.png) no-repeat center / contain;
    bottom: -10%;
    left: 3%;
    width: 30%;
    height: 30%;
    z-index: 500;
}

.service-box ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-box ul > li {
    background: #fff;
    width: 24%;
    max-height: 130px;
    position: relative;
    margin-bottom: 1.5%;
}

.service-box ul > li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.service-box ul > li a:after {
    font-family: "FontAwesome";
    content: "\f105";
    position: absolute;
    right: 6%;
}

.service-box ul > li img {
    height: 60%;
    margin-right: 5%;
    padding-left: 6%;
}

.service-box ul > li:hover {
    background: rgba(59,104,176,0.6);
    transition: all 1s;
    color: #fff;
}

/*========================= flow ========================== */
.flow-box ul {
    display: flex;
    justify-content: space-around;
}

.flow-box ul > li {
    background: #fff;
    padding: 2%;
    width: 30%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.flow-box ul > li .blue-title {
    background: url(../img/03_line.png) no-repeat bottom / contain;
    padding-bottom: 5%;
    text-align: center;
}

/*========================= news ========================== */
.news {
    background: var(--waterblue);
    text-align: left;
}

.news-box {
    background: #fff;
    padding: 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-box h2 {
    padding: 8% 0;
    margin-bottom: 10%;
}

.news-box ul {
    width: 70%;
    border-left: 2px solid var(--blue);
    padding-left: 3%;
    text-align: left;
}

.news-day {
    background: var(--blue);
    color: #fff;
    padding: 0.5% 2%;
    margin-bottom: 1%;
}

.news-box ul > li a:hover {
    text-decoration: underline;
    opacity: 0.8;
    transition: all 0.5s;
}

/*========================= office ========================== */
.office {
    background: url(../img/05back.jpg) no-repeat top / cover;
}

.office-box {
    /* background: rgba(255,255,255,0.8); */
    padding: 5% 2%;
}

.office dl > dt {
    background: var(--blue);
    color: #fff;
    padding: 1%;
}

.office dl > dd {
    color: var(--blue);
    font-weight: bold;
    padding: 2%;
}

/*========================= cta ========================== */
.cta {
    background: url(../img/cta_back.jpg) no-repeat center / cover;
    padding: 8% 0;
}

.cta-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cta-box .tel-btn {
    min-width: 30%;
    padding: 2% 5%;
    background: #fff;
    color: var(--blue);
}

.cta-box .contact-btn {
    min-width: 30%;
    padding: 2% 5%;
}

/*========================= footer ========================== */
.footer-logo {
    width: 50%;
}

.footer-menu-box {
    margin: 5% auto;
}

.footer-media {
    margin-top: 5%;
}

.footer-menu-box a:hover {
    opacity: 0.8;
}

.footer-menu-box ul {
    display: flex;
    margin: 5% auto 0;
    width: 62%;
    justify-content: space-between;
}

footer {
    background: var(--blue);
    color: #fff;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    text-decoration: underline;
    padding-top: 3%;
}

footer p {
    padding: 3% 0;
}