html {
    font-size: 16px;
}


body {
    margin: 0;
    font-family: "Noto Sans JP", serif;
}

/* loading */
#loading {
    background-color: #FFF569;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#loading img.loading-logo {
    height: 100%;
    object-fit: cover;
}

#loading img.loading-illust {
    position: absolute;
    bottom: 0;
    height:30%;
}


/*pcメニュー（サイドバー）*/
nav.menu-pc {
    position: fixed;
    top:20%;
    left: 5%;
}

nav.menu-pc li {
    padding: 10px;
    color:#fff;
    opacity: 0.5;
    font-weight: normal;
    cursor: pointer;
}

nav.menu-pc li.active {
    opacity: 1;
    font-weight: bold;
}


/* ハンバーガーメニュー */
.menu-btn {
    position: fixed;
    top: 5%;
    right: 5%;
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
}

.menu-btn span {
    display: block;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 12px);
    background-color: #FF0404;
    opacity: 0.6;
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -12px);
    background-color: #FF0404;
    opacity: 0.6;
}

/* spメニュー */
.menu-sp {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FFF569ee;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.menu-sp ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-sp li {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    color: #FF0404;
    opacity: 0.6;
    font-weight: bold;
}

.menu-sp li:hover {
    opacity: 1;
    font-weight: bold;
}

.menu-sp.open {
    opacity: 1;
    visibility: visible;
}

/*矢印*/
.arrow {
    position: absolute;
    top: calc(50% - 40px);
    right: 5%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arrow p {
    display: inline-block;
    width: fit-content;
    color: #fff;
    text-shadow: 1px 1px 5px #000000;
}

.arrow svg {
    width: 20px;
    fill: #fff;
    filter:drop-shadow(1px 1px 2px #000000aa);
}

.arrow-icon {
    display: block;
    margin-right: 10px;
    animation: moveArrow 1.5s ease-in-out infinite;
}

@keyframes moveArrow {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

/*メインエリア*/
#wrapper {
    display: flex;
    width: auto;
    height: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

@media screen and (max-width:768px) {
    #wrapper {
        width: 100%;
    }
}

.panel {
    flex-shrink: 0;
    width: 100%;
    height: calc(100% - 80px); /*CTAボタンの高さで減算する*/

}

.panel::before {
    opacity: 0;
    content: '';
    position: fixed;
    z-index: -2;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
}

.panel.active::before {
    opacity: 1;
}

.panel::after {
    opacity: 0;
    content: '';
    position: fixed;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.6);
    top:0;
    left:0;
    width: 100%;
    height: 100%;
}

.panel.active::after {
    opacity: 1;
}

.container {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panel.type01 div.container img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width:768px) {
    .panel.type01 div.container img {
        height: auto;
    }
}

.panel.type01 .white-bg-container {
    width: 80%;
    background-color: #ffffffcc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px 0;
    border-radius: 5px;
}

.panel.type01 .white-bg-container img {
    width: 80%;
}

/*トップ*/
.panel.top div.container {
    background: url(../img/house_01_bg.jpg);
}

.panel.top div.container img.logo {
    height: 35%;
    object-fit: contain;
}

.panel.top div.container img.footer-illust {
    position: absolute;
    bottom: 0;
    width: 70%;
}

.panel.top::before {
    background: url(../img/house_01_bg.jpg);
}


/*こんなお悩みありませんか？*/
.panel.problem div.container {
    background: url(../img/house_02_bg.jpg);
}

.panel.panel.problem::before {
    background: url(../img/house_02_bg.jpg);
}

.panel.problem div.container .white-bg-container {
    gap: 20px;
    padding: 30px 0;
}

.panel.problem div.container img.footer-illust {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: auto;
}

/*事業内容*/
.panel.contents div.container img {
    width: 100%;
    height: 33.3%;
    object-fit: cover;
}

.panel.contents::before {
    background: url(../img/kawara_01.jpg);
}


/*雨樋工事*/
.panel.amadoi div.container {
    background: url(../img/amadoi_01.jpg);
}

.panel.amadoi::before {
    background: url(../img/amadoi_01_bg.jpg);
}



/*屋根工事*/
.panel.kawara div.container {
    background: url(../img/kawara_01_bg.jpg);
}

.panel.kawara::before {
    background: url(../img/kawara_01_bg.jpg);
}


/*外壁塗装*/
.panel.wall div.container {
    background: url(../img/wall_sp.jpg);
}

.panel.wall::before {
    background: url(../img/wall_01.jpg);
}


/*料金比較*/
.panel.comparison div.container {
    background: url(../img/house_02_bg.jpg);
}

.panel.comparison::before {
    background: url(../img/house_02_bg.jpg);
}

.comparison-table {
    width: 85%;
}

.panel.comparison div.container img.footer-illust {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 25%;
}


/*採用情報*/
.panel.type01.recruit .white-bg-container {
    width: 80%;
    padding: 10px 0;
}

.panel.recruit div.container {
    gap: 10px;
    background: url(../img/house_03_bg.jpg);
}

.panel.recruit::before {
    background: url(../img/house_03_bg.jpg);
}

.panel.recruit div.container p {
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0px 0px 5px #000000;
}

.panel.recruit div.container img.footer-illust {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
}

/*会社概要*/
.panel.company div.container {
    gap: 10px;
    background: url(../img/house_03_bg.jpg);
}

.panel.company::before {
    background: url(../img/house_03_bg.jpg);
}

.panel.company .white-bg-container {
    width: 80%;
}

.panel.company .white-bg-container>div {
    display: flex;
    flex-direction: column;
    gap:0;
    justify-content: center;
    align-items: center;
}

/* CTAメニュー */
.cta-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: row;
}

.cta-btn a {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cta-btn a.cta-tel {
    background: #FFF569;
    color: #333;
}

.cta-btn a.cta-line {
    background: #fff;
    color: #06c755;
}

.cta-btn a p {
    font-weight: bold;
}

.cta-btn a svg {
    width: 1.2rem;
    fill:#333;
}

.cta-btn a img {
    width: 40px;
}