/*
Theme Name: pg-maishima-original
*/
@charset "utf-8";
:root{
    /* 色の設定 */
    --white: #ffffff;
    --black: #333333;
    --orange: #f46e45;
    --orangeOff: #ea8a59;   /* 背景がグレーの場合など */
    --navy: #2a315b;
    --gray: #717070;    /* テキスト黒と背景 */
    --gray-b3: #b3b3b3;
    --warm-gray: #e1d8d1;
    --cream: #fdf5e8;

    /* フォントの設定 */
    /* Google Fonts */
    /* ▼ Adobe Caslon Proの代替え */
    --Caslon: 'Libre Caslon Text', serif;
    --ZenKakuGothicNew: "Zen Kaku Gothic New","Yu Gothic","Meiryo","Hiragino Kaku Gothic ProN","Hiragino Sans",sans-serif;
    /* ▼ DNP 秀英角ゴシック銀 Stdの代替え */
    --NotoSansJP: "Noto Sans JP","Yu Gothic","Meiryo","Hiragino Kaku Gothic ProN","Hiragino Sans",sans-serif;
}
html{
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}
*,*::before,*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    width: min(1920px,100%);
    margin: 0 auto;
    height: auto;
    background: var(--gray);
    color: var(--gray);
    font-family: var(--NotoSansJP);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05rem;
    text-align: left;
    overflow-x: hidden;
}
section{
    overflow: hidden;
}

a{
    font-size: 1rem;
    text-decoration: none;
    color: var(--blackOff);
    transition: transform 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button{
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button:focus{
    outline: none;
}
@media (hover: hover){
    a:hover,
    button:hover{
        cursor: pointer;
        opacity: 0.6;
    }
}
a.is-pressing,
button.is-pressing{
    opacity: 0.6;
}
a:focus,
a:focus-visible,
button:focus,
button:focus-visible{
    opacity: 1;
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* h1 */
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
h2{
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}
h3{
    font-size: 1.17rem;
    font-weight: normal;
}
h4{
    font-size: 1.5rem;
    font-weight: normal;
}
p{
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
}
small{
    font-size: 0.875rem;
}
/* メニューなどにある縦線 */
.border{
    width: 1px;
    height: 80%;
    background: var(--black);
    justify-self: center;
}
.wave-line-white{
    width: 100%;
    height: 8px;
    margin: 2rem 0;
    border: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 Q15 8 20 4' stroke='%23ffffff' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 20px 8px;
}
.wave-line-gray{
    width: 100%;
    height: 8px;
    border: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 Q15 8 20 4' stroke='%23717070' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 20px 8px;
}
.frame-top{
    display: block;
    width: 1920px;
    height: auto;
    aspect-ratio: 1920/210;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: none;
}
.frame-bottom{
    display: block;
    width: 1920px;
    height: auto;
    aspect-ratio: 1920/210;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: none;
    z-index: 10;
}
.frame-sp{
    display: none;
}

.btn-more{
    width: 104px;
    height: 56px;
    margin: 0 auto;
    border-bottom: 2px solid var(--gray);
    transition: transform 0.3s ease;

    a{
        width: 100%;
        height: 100%;
        font-size: 1.17rem;
        font-family: var(--Caslon);
        font-weight: normal;
        color: var(--gray);
        line-height: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;

        span{
            position: absolute;
            top: 16px;
            right: 36%;
        }

        img{
            width: 12px;
            height: auto;
            aspect-ratio: 180/297;
            position: absolute;
            top: 24.5px;
            right: 12%;
            transition: right 0.25s ease;
        }
    }

    a:hover{
        opacity: 1;
        img{
            right: 8%;
        }
    }
}

.btn-white{
    border-bottom: 2px solid var(--white);
    a{
        color: var(--white);
    }
}

.border-btn{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    a{
        width: fit-content;
        min-width: 220px;
        padding: 1rem 4rem;
        text-align: center;
        border: 1px solid var(--black);
        white-space: nowrap;
        margin: 0 2rem 2rem;
    }
    a:hover{
        opacity: 0.6;
    }
}

@media screen and (max-width:540px){
    .frame-pc{
        display: none;
    }
    .frame-sp{
        display: block;
    }
    .frame-top,
    .frame-bottom{
        width: 101%;
        height: auto;
        aspect-ratio: 540/66;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ローディング */
#loading{
    width: 100%;
    height: 100dvh;
    background: #fff;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#loading img{
    display: block;
    width: max(288px,20%);
    max-width: 80vw;
    height: auto;
    opacity: 0;
    transform: scale(0.96);
    animation: logoFadeInOut 2.2s ease forwards;
    margin-top: -1.5rem;
}
@keyframes logoFadeInOut{
    0%{
        opacity: 0;
        transform: scale(0.96);
    }
    20%{
        opacity: 1;
        transform: scale(1);
    }
    65%{
        opacity: 1;
        transform: scale(1);
    }
    100%{
        opacity: 0;
        transform: scale(1.02);
    }
}
#header,
#mainvisual,
main,
footer{
    opacity: 0;
    transition: opacity 0.8s ease;
}
body.is-loaded #header,
body.is-loaded #mainvisual,
body.is-loaded main,
body.is-loaded footer{
    opacity: 1;
}