:root {
    --pink: #ef6eb3;
    --pink-deep: #df5fa4;
    --pink-soft: #f58dc3;
    --bg: #ececec;
    --ink: #111;
    --white: #fff;
    --max: 1280px;
    --radius: 22px;
}

* { 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 {
    max-width: 100%;
    display: block;
}

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

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

/* 共通ヘッダー */
.hero {
    background: var(--pink);
    padding: 14px 20px 12px;
    overflow: visible;
}

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

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

/* 共通タブ */
.nav-wrap {
    padding: 0;
    background: var(--pink);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 0;
    border-top: 3px solid #fbdac8;
    border-bottom: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 10px;
    background: #ff74b8;
    color: #222;
    border-right: 0.1px solid #fbdac8;
    border-bottom: 0;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.1;
    transition: background .15s ease, color .15s ease;
    cursor: pointer;
    pointer-events: auto;
}

.nav-btn:first-child {
    border-left: 1.75px solid #ff74b8;
}

.nav-btn:hover {
    background: #ffcce5;
    color: #222;
}

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

.nav-toggle {
    width: 100%;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-weight: bold;
    color: #222;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    background: #ff74b8;
    border-top: 1px solid #fbdac8;
}

.has-submenu.is-open .nav-submenu,
.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
    display: block;
}

.nav-submenu-link {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    color: #222;
    background: #ff74b8;
    border-top: 1px solid #fbdac8;
    white-space: nowrap;
}

.nav-submenu-link:hover {
    background: #ffcce5;
    color: #222;
}

@media (max-width: 768px) {
    .nav-submenu {
        left: 0;
        right: 0;
    }

    .nav-submenu-link {
        padding: 9px 6px;
        font-size: .9rem;
        white-space: normal;
    }
}

/* 共通フッター */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--pink);
    padding: 10px 18px 12px;
    color: #222;
    font-weight: bold;
    font-size: clamp(.78rem, 1.05vw, .98rem);
    line-height: 1.3;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

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

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

@media (max-width: 768px) {
    .hero {
        padding: 10px 10px 8px;
    }

    .logo-wrap {
        height: auto;
        min-height: 1px;
        overflow: visible;
        padding: 4px 0;
    }

    .logo-image {
        width: min(74%, 520px);
        transform: none;
    }

    .nav-grid {
        border-top-width: 2px;
        border-bottom-width: 0;
    }

    .nav-btn {
        min-height: 36px;      /* スマホ時も低く */
        padding: 3px 4px;
        font-size: clamp(1rem, 2.8vw, .9rem);
        line-height: 1.05;
        border-right-width: 2px;
    }

    .footer {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 12px 10px;
        font-size: .7rem;
    }

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

    .footer small {
        margin-left: 0;
        text-align: right;
        white-space: normal;
        font-size: .86em;
    }
}