:root {
    --pink: #ff74b8;
    --pink-deep: #cc5c92;
    --pink-soft: #ffcce5;
    --bg: #fbdac8;
    --ink: #222;
    --white: #fff;
    --max: 1280px;
    --radius: 25px;
    --nav-border-w: 2.5px;
    --nav-border-w-sp: 2px;
    --nav-line: rgba(255, 255, 255, .55);
    --nav-line-soft: rgba(255, 255, 255, .38);
    --submenu-font-size: 15px;
    --nav-menu-size: 30px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(100%, var(--max));
    max-width: var(--max);
    margin: 0 auto;
    overflow-x: visible;
}

/* header */
.hero {
    background: var(--pink);
    padding: 7.5px 150px;
    overflow: visible;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1px;
    padding: 5px 0;
    overflow: visible;
}

.logo-image {
    display: block;
    width: min(78%, 860px);
    height: auto;
    object-fit: contain;
    transform: none;
}

/* nav */
.nav-wrap {
    position: relative;
    z-index: 100;
    padding: 0;
    background: var(--pink);
    overflow: visible;
}

.nav-grid {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: var(--nav-menu-size) repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--nav-line);
    background: var(--pink);
    overflow: visible;
}

.nav-item {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 3.5px 10px;
    background: var(--pink);
    color: var(--white);
    border: 0;
    border-right: 1px solid var(--nav-line-soft);
    border-radius: 0;
    font: inherit;
    font-weight: bold;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
    transition: none;
}

.nav-text {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    line-height: 1.05;
    transform-origin: center center;
}

/* activeでも通常状態のまま固定 */
.nav-btn,
.nav-btn:visited,
.nav-btn.is-active,
.nav-item > .nav-btn,
.nav-item.is-active > .nav-btn {
    background: var(--pink);
    color: var(--white);
}

.nav-grid > .nav-btn:last-child {
    border-right: 0;
}

/* その他ボタン */
.nav-menu-item {
    position: relative;
    display: block;
    width: var(--nav-menu-size);
    min-width: var(--nav-menu-size);
    max-width: var(--nav-menu-size);
    background: var(--pink);
    overflow: visible;
    z-index: 200;
}

.nav-toggle {
    width: 100%;
    text-align: center;
    letter-spacing: 0;
}

.nav-menu-button {
    position: relative;
    width: var(--nav-menu-size);
    min-width: var(--nav-menu-size);
    max-width: var(--nav-menu-size);
    height: 100%;
    min-height: 32px;
    aspect-ratio: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink);
    color: var(--white);
    font-size: 0;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* 疑似要素は使わない。SVGだけを表示 */
.nav-menu-button::before {
    content: none;
    display: none;
}

.nav-menu-svg {
    display: block;
    width: 17.5px;
    height: 17.5px;
    flex: 0 0 17.5px;
    color: currentColor;
    pointer-events: none;
}

.nav-menu-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 旧classが残っていても二重表示しない */
.nav-menu-mark,
.nav-menu-icon {
    display: none;
}

.nav-menu-item.is-open > .nav-menu-button {
    background: var(--pink);
    color: var(--white);
}

/* submenu */
.nav-submenu {
    position: absolute;
    top: calc(100% + 2.5px);
    left: 0;
    z-index: 300;
    display: none;
    min-width: 200px;
    padding: 5px;
    background: var(--pink);
    border-radius: 0 0 12.5px 12.5px;
    overflow: hidden;
}

.has-submenu.is-open .nav-submenu {
    display: block;
}

.nav-submenu-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    color: var(--white);
    border-radius: 10px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    overflow: hidden;
}

.nav-submenu-text {
    position: relative;
    display: inline-block;
    font-size: var(--submenu-font-size);
    line-height: 1.2;
    white-space: nowrap;
    transform-origin: center center;
    will-change: transform;
}

/* footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7.5px 15px 10px;
    background: var(--pink);
    color: var(--ink);
    font-size: clamp(.75rem, 1.05vw, 1rem);
    font-weight: bold;
    line-height: 1.25;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 2.5px;
    margin-bottom: 2.5px;
    padding: 1.5px 0;
    background: var(--pink-soft);
    text-align: center;
}

.footer-contact-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7.5px 5px;
    color: var(--ink);
    font-size: 0.95em;
    font-weight: bold;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.5px 10px;
    background: var(--pink);
    color: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-weight: bold;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.footer-contact-link:hover {
    background: var(--pink-soft);
    color: var(--pink-deep);
    transform: translateY(-1px);
}

.footer-contact-link:active {
    transform: translateY(0);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer-bottom > div {
    text-align: left;
}

.footer-bottom small {
    display: block;
    margin-left: auto;
    text-align: right;
    font-size: .75em;
    white-space: nowrap;
}

/* Page top button */
.page-top-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: var(--shadow);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7.5px);
    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease,
        background .15s ease;
}

.page-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top-button:hover {
    background: var(--pink-hover);
    transform: translateY(-2.5px);
}

.page-top-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .page-top-button {
        right: 12.5px;
        bottom: 12.5px;
        width: 40px;
        height: 40px;
        font-size: 17.5px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .nav-btn:hover,
    .nav-item:hover > .nav-btn,
    .nav-submenu-link:hover {
        background: var(--pink-soft);
        color: var(--ink);
    }
}

/* smartphone: minimum only */
@media (max-width: 768px) {
    :root {
        --nav-menu-size: 35px;
        --nav-sp-height: 35px;
    }

    .hero {
        padding: 7.5px 17.5px;
    }

    .logo-wrap {
        padding: 5px 0;
    }

    .logo-image {
        width: min(97.5%, 720px);
    }

    .nav-grid {
        grid-template-columns: var(--nav-menu-size) repeat(4, minmax(0, 1fr));
        grid-auto-rows: var(--nav-sp-height);
        min-height: var(--nav-sp-height);
        align-items: stretch;
    }

    .nav-item,
    .nav-menu-item {
        display: block;
        height: var(--nav-sp-height);
        min-height: var(--nav-sp-height);
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }

    .nav-menu-item {
        grid-column: 1;
        width: var(--nav-menu-size);
        min-width: var(--nav-menu-size);
        max-width: var(--nav-menu-size);
    }

    .nav-btn,
    .nav-grid > .nav-btn,
    .nav-menu-button {
        height: var(--nav-sp-height);
        min-height: var(--nav-sp-height);
        max-height: var(--nav-sp-height);
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-grid > .nav-btn {
        min-width: 0;
        padding-left: 1.5px;
        padding-right: 1.5px;
        font-size: 12.5px;
        line-height: 1.15;
        letter-spacing: -0.05em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .nav-menu-button {
        width: var(--nav-menu-size);
        min-width: var(--nav-menu-size);
        max-width: var(--nav-menu-size);
        padding-left: 0;
        padding-right: 0;
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }

    .nav-menu-svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .nav-grid > .nav-btn:last-child {
        border-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
    }

    .footer-bottom > div {
        width: 100%;
        min-width: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        font-size: clamp(10px, 2.5vw, 12.5px);
    }

    .footer-bottom small {
        width: 100%;
        margin-left: 0;
        text-align: right;
        white-space: nowrap;
        font-size: clamp(7.5px, 2.5vw, 10px);
    }
}