@charset "utf-8";

/* =========================================================================
   Reset & Base Layout
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: "MFW-PA1MinchoStdN-Medium";
    background-image: url("../images/common/bg-pc.webp");
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
}

li {
    list-style: none;
}

a {
    overflow-wrap: break-word;
    word-break: break-word;
    outline: none;
}

a:link,
a:visited {
    color: #000000;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* =========================================================================
   Utility Classes (Common)
   ========================================================================= */
.pcbr {
    display: inline;
}

.tabbr {
    display: none;
}

.spbr {
    display: none;
}

.deco-pc {
    display: block;
}

.deco-sp {
    display: none;
}

.container {
    width: 75%;
    max-width: 1000px;
    margin-inline: auto;
    box-sizing: border-box;
}

.fadein {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fadein.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.hero-logo {
    position: absolute;
    top: 40px;
    left: 50px;
    max-width: 190px;
}

/* =========================================================================
   Decor Section (Common Parts)
   ========================================================================= */
.decor-section {
    position: relative;
    margin-bottom: 80px;
    min-height: 40vh;
    overflow-x: visible;
}

:where(.decor-section p) {
    z-index: 2;
    margin: 0;
}

.c-heading {
    z-index: 2;
    margin: 0;
    font-size: 35px;
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.c-heading span {
    font-size: clamp(11px, 3vw, 16px);
}

.c-heading .c-heading__en {
    font-size: 24px;
}

.hline {
    display: inline-block;
    width: 3rem;
    height: 0.8px;
    background-color: #000;
}

.deco-img {
    position: absolute;
    max-width: none;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    background: linear-gradient(to right, #C6F1FF, #9EDFF5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-inline: 50px;
    height: 110px;
}

footer img {
    height: 60px;
}

footer small {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: clamp(8px, 1.2vw, 12px);
}

/* =========================================================================
   Media Queries
   ========================================================================= */

/* tablet portrait only */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .tabbr {
        display: inline;
    }

    .hline {
        width: 2rem;
    }

    .decor-section {
        min-height: 30vh;
    }
}

/* large screen */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1060px;
    }
}

/* SP */
@media screen and (max-width: 768px) {
    body {
        background-image: url("../images/common/bg-sp.webp");
    }

    .pcbr {
        display: none;
    }

    .tabbr {
        display: inline;
    }

    .spbr {
        display: inline;
    }

    .deco-sp {
        display: block;
        position: absolute;
        transform: translateY(-50%);
        max-width: none;
        z-index: 0;
        pointer-events: none;
        object-fit: cover;
    }

    .deco-pc {
        display: none;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px 20px 0;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        padding-inline: 0;
    }

    .hero-logo {
        position: static;
        max-width: 130px;
    }

    .decor-section {
        margin-bottom: 50px;
        min-height: 45vh;
    }

    .decor-section .fadein {
        display: flex;
        flex-direction: column;
    }

    .c-heading {
        margin-bottom: 16px;
        font-size: clamp(20px, 6vw, 24px);
        flex-wrap: wrap;
        gap: 10px;
    }

    .c-heading .c-heading__en {
        font-size: clamp(16px, 5vw, 20px);
    }

    section:not(:first-child) {
        width: 85%;
        margin-inline: auto;
        position: relative;
        overflow: visible;
    }

    footer {
        height: 60px;
    }

    footer img {
        max-height: 35px;
    }

    footer small {
        right: 10px;
    }

    .sp-hamburger {
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
    }

    .sp-hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        right: 0;
        transition: all 0.3s;
    }

    .sp-hamburger span:nth-child(1) {
        top: 0;
        width: 100%;
    }

    .sp-hamburger span:nth-child(2) {
        top: 9px;
        width: 80%;
    }

    .sp-hamburger span:nth-child(3) {
        top: 18px;
        width: 60%;
    }

    .sp-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url("../images/common/bg-sp.webp");
        background-size: 100% 700vh;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: #fff;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
    }

    .sp-drawer.is-active {
        opacity: 1;
        visibility: visible;
    }

    .sp-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px 20px 0;
        box-sizing: border-box;
    }

    .sp-drawer-logo {
        position: static;
        max-width: 150px;
    }

    .sp-drawer-close {
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .sp-drawer-close span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        top: 9px;
        border-radius: 2px;
    }

    .sp-drawer-close span:nth-child(1) {
        transform: rotate(45deg);
    }

    .sp-drawer-close span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .sp-drawer-nav {
        padding: 0 30px;
        margin-top: 20px;
    }

    .sp-drawer-nav ul li:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    }

    .sp-drawer-nav ul li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        color: #000;
        font-size: 20px;
    }

    .sp-drawer-nav ul li a::after {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        border-top: 1.5px solid #fff;
        border-right: 1.5px solid #fff;
        transform: rotate(45deg);
        margin-right: 5px;
    }
}

/* PC */
@media screen and (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}