/* =========================================
   Header
========================================= */

.site-header {
    height: 80px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 60px;
    width: auto;
}

.global-nav ul {
    display: flex;
    gap: 40px;
}

.global-nav a {
    display: block;
    padding: 8px 0;
    transition: opacity .2s ease;
        font-weight:500;
}

@media (min-width:769px){
    .global-nav a{
        font-size:1.2rem;
        font-weight:500;
    }
}

.global-nav a:hover {
    opacity: .6;
}

/* ハンバーガー */

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    width:28px;
    height:2px;
    margin:6px auto;
    background:#222;
    transition:.3s;
}

.menu-toggle.is-active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

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

.menu-toggle.is-active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}


/* =========================================
   Hero
========================================= */

.hero{
    padding:0;
}

.hero__content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:48px;
    min-height:520px;
}

.hero__text{
    flex:0 0 34%;
    min-width:0;
}

.hero__image{
    flex:0 0 66%;
    position:relative;
    overflow:hidden;
}

.hero__image img{
    display:block;
    width:100%;
    height:auto;
}

.hero__image::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

    background:
        linear-gradient(to right,#fff 0%,transparent 20%),
        linear-gradient(to left,#fff 0%,transparent 10%),
        linear-gradient(to top,#fff 0%,transparent 14%);
}

.hero__title{
    margin:0;
    line-height:.88;
}

.hero__title-top{
    display:block;
    font-family:"Times New Roman",serif;
    font-size:3rem;
    font-weight:400;
}

.hero__title-bottom{
    display:block;
    font-family:"Times New Roman",serif;
    font-size:4.5rem;
    font-weight:500;
    letter-spacing:-.03em;
}

.hero__description{
    margin-top:26px;
    font-size:1.05rem;
    line-height:1.5;
    color:#555;
    font-weight:400;
}

.hero__slider{
    position:relative;
    width:100%;
    aspect-ratio:3 / 2;
    overflow:hidden;
}

.hero__slider img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.8s ease;
}

.hero__slider img:first-child{
    position:relative;
}

.hero__slider img.active{
    opacity:1;
}

.hero__controls{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:10px 0 12px;
    border-top:1px solid #e5e5e5;
    background:#fff;
}

.hero__dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex:1;
}

.hero__control,
.hero__dot{
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border:0;
    background:transparent;
    color:#666;
    cursor:pointer;
}

.hero__control{
    width:32px;
    height:32px;
    padding:0;
    font-family:"Times New Roman",serif;
    font-size:1.5rem;
    font-weight:400;
    line-height:1;
}

.hero__dot{
    width:8px;
    height:8px;
    padding:0;
    border:1px solid #888;
    border-radius:50%;
}

.hero__dot::before{
    content:none;
}

.hero__dot.active{
    background:#666;
}

.hero__control:hover,
.hero__control:focus-visible{
    background:transparent;
    color:#222;
}

.hero__dot:hover,
.hero__dot:focus-visible{
    border-color:#333;
}

.hero__control:active,
.hero__dot:active{
    transform:translateY(1px);
}

.hero__control:focus-visible,
.hero__dot:focus-visible{
    outline:2px solid #777;
    outline-offset:4px;
}

@media (prefers-reduced-motion: reduce){

    .hero__slider img{
        transition-duration:.15s;
    }
}


/* =========================================
   Footer
========================================= */

.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 0;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

.site-footer__copyright a{
    text-decoration:underline;
    text-underline-offset:0.2em;
    transition:opacity .2s ease;
}

.site-footer__copyright a:hover{
    opacity:.6;
}

.sp-only{
    display:none;
}


/* =========================================
   Responsive
========================================= */

@media (min-width:769px) and (max-width:1024px){

    .hero__content{
        display:block;
        min-height:auto;
    }

    .hero__text{
        margin-bottom:28px;
    }

    .hero__image{
        width:calc(100% + 80px);
        margin-left:-40px;
    }
}

@media (min-width:1025px){

    .hero__content{
        position:relative;
        display:block;
        min-height:0;
    }

    .hero__text{
        position:absolute;
        top:50%;
        left:0;
        z-index:1;
        width:34%;
        transform:translateY(-50%);
    }

    .hero__image{
        width:min(79.2%, 1108.8px);
        margin-left:auto;
    }

    .hero__title-bottom{
        font-size:clamp(2.75rem, 4.4vw, 4.5rem);
    }
}

@media (max-width:768px){

    /* =========================================
       Header
    ========================================= */

    .site-header{
        height:72px;
    }

    .logo img{
        height:50px;
    }

    .menu-toggle{
        display:block;
    }

    .global-nav{

        position:absolute;
        top:72px;
        left:0;

        width:100%;

        background:#fff;
        border-bottom:1px solid #e5e5e5;

        max-height:0;
        overflow:hidden;
        opacity:0;

        transition:
            max-height .3s ease,
            opacity .3s ease;
    }

    .global-nav.is-open{
        max-height:400px;
        opacity:1;
    }

    .global-nav ul{
        display:flex;
        flex-direction:column;
        gap:0;
    }

    .global-nav li{
        border-top:1px solid #eee;
    }

    .global-nav a{
        padding:18px 24px;
    }


    /* =========================================
       Hero
    ========================================= */

    .hero{
        padding-top:28px;
    }

    .hero .container{
        width:calc(100% - 40px);
    }

    .hero__title{
        margin:0;
    }

    .hero__content{
        display:block;
        min-height:auto;
    }

    .hero__text{
        width:100%;
        margin-bottom:20px;
    }

    .hero__image{
        width:calc(100% + 40px);
        margin-left:-20px;
        overflow:hidden;
    }

    .hero__image::after{
        background:
            linear-gradient(to right,#fff 0%,transparent 8%),
            linear-gradient(to left,#fff 0%,transparent 6%),
            linear-gradient(to top,#fff 0%,transparent 10%);
    }

    .hero__slider{
        width:100%;
        aspect-ratio:4 / 3;
    }

    .hero__slider img{
        position:absolute;
        inset:0;

        width:100%;
        height:100%;

        object-fit:cover;

        opacity:0;
        transition:opacity 1.8s ease;
    }

    .hero__slider img:first-child{
        position:relative;
    }

    .hero__slider img.active{
        opacity:1;
    }


    .hero__title-top{
        font-size:clamp(1.9rem,9.2vw,2.15rem);
    }

    .hero__title-bottom{
        font-size:clamp(2.15rem,11.5vw,2.7rem);
        letter-spacing:-0.04em;
    }

    .hero__description{
        margin-top:18px;
        font-size:0.875rem;
        line-height:1.5;
    }




    /* =========================================
       Footer
    ========================================= */

    .site-footer{
        padding:20px 0;
    }

    .site-footer__copyright{
        font-size:0.8rem;
        line-height:1.6;
    }

    .sp-only{
        display:block;
    }

}
