html {
    background-color: #3E95A8;
    overscroll-behavior: none;
}

/* ===== 画面右端のスクロールバー ===== */
::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: #3E95A8;
    border: 4px solid #fff;
    border-radius: 8px;
}

body {
    margin: 0;
    color: #3E95A8;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 18px;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

img {
    width: 100%;
    height: auto;
}

h2 {
    font-size: 20px;
}

.pc-none {
    display: none;
}

.inner {
    margin: 0 auto;
    max-width: 1440px;
    width: 73.6%;
}

.inner__small {
    margin: 0 auto;
    width: 60.6%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    color: #3E95A8;
    z-index: 100;
    transition: background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

.header.is-dark {
    background: #3E95A8;
    color: #fff;
}

.header.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.header.is-dark .header__nav-item,
.header__nav-item {
    color: #3E95A8;
}

.header.is-dark .header__nav-item {
    color: #fff;
}

.header__inner {
    padding: 10px 80px 0 40px;
    display: flex;
    align-items: center;
    background: transparent;
}

.header__logo {
    width: 166px;
    height: 69px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.header__logo a {
    position: relative;
    display: block;
}

.header__logo-img {
    transition: opacity 0.4s ease;
}

.header__logo-img--black {
    opacity: 1;
}

.header__logo-img--white {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.header.is-dark .header__logo-img--black {
    opacity: 0;
}

.header.is-dark .header__logo-img--white {
    opacity: 1;
}

.header__nav {
    font-family: "Zen Kaku Gothic New", sans-serif;
    margin-left: auto;
    padding-right: 60px;
    padding-top: 10px;
    position: relative;
    z-index: 100;
}

.header__nav-list {
    display: flex;
    gap: 50px;
}

.header__nav-item {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 10%;
}

.header__nav-link {
    display: block;
}

.header__sns {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 100;
}

.header__sns a {
    position: relative;
    display: block;
}

.header__sns-img {
    height: 30px;
    width: auto;
    transition: opacity 0.4s ease;
}

.header__sns-img--white {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.header.is-dark .header__sns-img--default {
    opacity: 0;
}

.header.is-dark .header__sns-img--white {
    opacity: 1;
}

.header__wave {
    position: absolute;
    left: 0;
    bottom: -100px;
    width: 100%;
    height: 120px;
    fill: #fff;
    pointer-events: none;
    z-index: 99;
    transition: fill 0.4s ease;
}

.header.is-dark .header__wave {
    fill: #3E95A8;
}

/* ===== メインビジュアルを右から左へゆっくり流す（全ページ共通） ===== */
@keyframes mvSlide {
    from {
        transform: scale(1.15) translateX(6%);
    }

    to {
        transform: scale(1.15) translateX(-6%);
    }
}

/* ===== 下層ページ: メインビジュアル ===== */
.sub-mv {
    position: relative;
    overflow: hidden;
}

.sub-mv__bg {
    animation: mvSlide 8s ease-in-out infinite alternate;
}

.sub-mv__bg img {
    display: block;
    width: 100%;
    height: auto;
}

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

    .sub-mv__bg,
    .mv__bg {
        animation: none;
    }
}

.sub-mv__copy {
    position: absolute;
    display: flex;
    flex-direction: column;
    color: #fff;
    right: 12%;
    bottom: 40%;
    width: 354px;
    height: 100px;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.sub-mv__title {
    font-size: 36px;
    color: #fff;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

/* フッター */
.footer {
    position: relative;
    background: #3E95A8;
    color: #fff;
    padding: 0 40px;
    z-index: 10;
}

.footer__wave {
    position: absolute;
    left: 0;
    top: -90px;
    width: 100%;
    height: 120px;
    fill: #3E95A8;
    pointer-events: none;
}

.footer__contents {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    margin-bottom: 10px;
    padding-top: 20px;
}

.footer__logo {
    position: absolute;
    left: 0;
    padding-left: 70px;
    padding-top: 10px;
    width: 220px;
    height: auto;
}

.footer__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer__nav-list {
    display: flex;
    gap: 40px;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    letter-spacing: 10%;
}

.footer__nav-link {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.footer__copyright {
    text-align: center;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-size: 10px;
    padding-bottom: 20px;
}

.footer__sns {
    display: flex;
    gap: 30px;
    z-index: 100;
    position: absolute;
    right: 100px;
    top: 70%;
    transform: translateY(-50%);
}

.sakura {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.sakura.is-active {
    opacity: 1;
}

.sakura__petal {
    position: absolute;
    top: -8%;
    background: linear-gradient(160deg, #f7c1d3 0%, #ec8fb0 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46 91 C36 88 30 68 30 48 C30 30 36 16 43 18 C47 19 49 20 50 24 C51 20 53 19 57 18 C64 16 70 30 70 48 C70 68 64 88 54 91 C51 93 49 93 46 91 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46 91 C36 88 30 68 30 48 C30 30 36 16 43 18 C47 19 49 20 50 24 C51 20 53 19 57 18 C64 16 70 30 70 48 C70 68 64 88 54 91 C51 93 49 93 46 91 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: drop-shadow(0 1px 1px rgba(214, 120, 150, 0.3));
    will-change: top, transform;
    animation-name: sakura-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes sakura-fall {
    0% {
        top: -8%;
        transform: translateX(0) rotate(0deg);
    }

    100% {
        top: 108%;
        transform: translateX(var(--drift, 40px)) rotate(var(--spin, 360deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sakura {
        display: none;
    }
}

/* ===== SP用の青いヘッダーバー（全ページ共通） ===== */
.header__bar {
    display: contents;
}

.header__bar-logo {
    display: none;
}

/* ===== ハンバーガーメニュー（全ページ共通・SPのみ表示） ===== */

.hamburger__wrapper {
    display: none;
    position: relative;
    width: 35px;
    height: 25px;
    padding-top: 35px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 210;
}

.hamburger__menu {
    display: contents;
}

.hamburger__logo {
    display: none;
}

.hamburger {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hamburger__line,
.hamburger__line::before,
.hamburger__line::after {
    position: absolute;
    left: 0;
    width: 35px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger__line {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger__line::before,
.hamburger__line::after {
    content: "";
}

.hamburger__line::before {
    top: -11.5px;
}

.hamburger__line::after {
    top: 11.5px;
}

.hamburger.is-open .hamburger__line {
    background: transparent;
}

.hamburger.is-open .hamburger__line::before {
    top: 0;
    transform: rotate(45deg);
    background: #fff;
}

.hamburger.is-open .hamburger__line::after {
    top: 0;
    transform: rotate(-45deg);
    background: #fff;
}

@media (max-width: 768px) {

    .pc-none {
        display: inline;
    }

    .sp-none {
        display: none;
    }

    /* ===== SPヘッダーの寸法（全ページ共通） ===== */
    .header {
        height: 65px;
    }

    .header,
    .header.is-dark {
        background: transparent;
        color: #fff;
    }

    .header__logo-img--black {
        opacity: 0;
    }

    .header__logo-img--white {
        opacity: 1;
    }

    .header__inner {
        padding: 0 20px;
    }

    .header__logo {
        width: 140px;
        height: auto;
        padding: 0;
    }

    /* ===== SP: 青いヘッダーバー（背景＋ロゴ＋波を一つの塊としてスライド） ===== */
    .header__bar {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #3E95A8;
        transform: translateY(-160px);
        transition: transform 0.5s ease;
        pointer-events: none;
    }

    .header.is-solid .header__bar {
        transform: translateY(0);
    }

    .header__bar-logo {
        display: block;
        position: absolute;
        top: 10px;
        left: 20px;
        width: 140px;
    }

    .header__bar-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .header__wave {
        display: block;
        opacity: 1;
        fill: #3E95A8;
        height: 8.333vw;
        bottom: -6.944vw;
    }

    .header.is-solid .header__logo {
        opacity: 0;
    }

    .hamburger__wrapper {
        display: block;
        text-align: right;
        transform: translateY(15px);
    }

    .hamburger__menu {
        display: flex;
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        background: #3E95A8;
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .hamburger__menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .hamburger__logo {
        display: block;
        position: absolute;
        top: 10px;
        left: 20px;
        width: 140px;
    }

    .hamburger__logo .header__logo-img--white {
        position: static;
        opacity: 1;
    }

    .header__nav {
        padding: 0;
        margin: 0 auto;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .header__nav-item {
        color: #fff;
        font-size: 20px;
    }

    .header__sns {
        display: none;
    }

    /* ===== フッター（全ページ共通） ===== */

    .footer__wave {
        height: 8.333vw;
        top: -6.25vw;
    }

    .footer__logo {
        position: static;
        padding-left: 0;
    }
}