:root {
    --ui-text: #172033;
    --ui-text-soft: #5f6b7a;
    --ui-line: rgba(15, 23, 42, 0.10);
    --ui-header-bg: rgba(255, 255, 255, 0.94);
    --ui-nav-bg: rgba(255, 255, 255, 0.96);
    --ui-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --ui-nav-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    --ui-grad: linear-gradient(135deg, #0066cc, #06c755);

    --page-bg:
        radial-gradient(circle at top left, rgba(96,165,250,0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(52,211,153,0.16), transparent 26%),
        linear-gradient(180deg, #f8fcff 0%, #eef7ff 52%, #f7fffb 100%);
    --card-bg: rgba(255,255,255,0.95);
    --card-line: rgba(96,165,250,0.14);
    --card-shadow: 0 16px 40px rgba(59,130,246,0.10);
    --title-grad: linear-gradient(135deg, #45a2ff, #2cd173);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--ui-text);
    background: var(--page-bg);
}

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

a {
    color: inherit;
}

/* =========================
   共通ヘッダー
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: var(--ui-header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ui-line);
    box-shadow: var(--ui-shadow);
}

.header-inner {
    max-width: 1180px;
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-weight: 800;
    text-decoration: none;
    color: var(--ui-text);
    font-size: 1.05rem;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    padding: 6px;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    background: var(--ui-nav-bg);
    box-shadow: var(--ui-nav-shadow);
}

.main-nav a {
    margin: 0;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--ui-text);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--ui-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0,102,204,0.24);
    transform: translateY(-1px);
}

/* =========================
   共通floating
========================= */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15,23,42,0.16);
    cursor: pointer;
    z-index: 4000;
    border: 1px solid rgba(255,255,255,0.95);
    transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.floating-contact:hover {
    width: 240px;
    height: auto;
    border-radius: 16px;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15,23,42,0.18);
}

.floating-contact > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-content {
    display: none;
    padding: 12px;
    text-align: center;
    background: #fff;
}

.contact-content p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #172033;
}

.contact-content img {
    width: 140px;
    height: auto;
    display: inline-block;
}

.floating-contact:hover > img {
    display: none;
}

.floating-contact:hover .contact-content {
    display: block;
}

/* =========================
   共通レイアウト
========================= */
.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 22px 90px;
}

.page-shell {
    max-width: 940px;
    margin: 0 auto;
}

.page-title {
    display: inline-block;
    margin: 0 0 24px;
    padding: 13px 22px;
    border-radius: 16px;
    background: var(--title-grad);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(69,162,255,0.20);
}

.page-card {
    background: var(--card-bg);
    border: 1px solid var(--card-line);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    padding: 32px;
}

.page-card p,
.page-card li {
    line-height: 1.85;
}

/* =========================
   schedule専用
========================= */
.lead-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.price-box {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, #edf7ff, #f1fff6);
    border: 1px solid #d4eaff;
    box-shadow: 0 10px 24px rgba(52,152,255,0.08);
}

.price-box .catch {
    margin-bottom: 6px;
    font-weight: 800;
    color: #1277ea;
}

.price-box .main-price {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--ui-text);
    margin-bottom: 4px;
}

.price-box .sub-text {
    color: var(--ui-text-soft);
    font-size: 0.95rem;
}

.intro-text {
    margin: 0 0 18px;
    color: var(--ui-text-soft);
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.schedule-table th {
    background: linear-gradient(135deg, #dff0ff, #e9fff3);
    color: #184468;
    padding: 15px 12px;
    font-size: 0.98rem;
    text-align: center;
    border-bottom: 1px solid #dbeafe;
}

.schedule-table td {
    padding: 15px 12px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #e7eef8;
    text-align: center;
    vertical-align: middle;
    line-height: 1.7;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover td {
    background: #f9fcff;
}

.note-box {
    margin-top: 26px;
    padding: 22px 22px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    border: 1px solid #dcecff;
    box-shadow: 0 10px 22px rgba(52,152,255,0.06);
}

.note-box strong {
    color: #1277ea;
}

.note-box p {
    margin-top: 0;
}

.note-box ol {
    margin: 0;
    padding-left: 1.4rem;
}

.note-box li {
    margin-bottom: 10px;
}

/* =========================
   footer
========================= */
footer {
    background: linear-gradient(135deg, #17324a, #1f4f73);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

footer p {
    margin: 0;
}

/* =========================
   スマホ
========================= */
@media (max-width: 768px) {
    .header-inner {
        align-items: stretch;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav a {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.88rem;
        padding: 10px 11px;
    }

    .page-wrap {
        padding: 36px 16px 90px;
    }

    .page-card {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .page-title {
        font-size: 1.35rem;
        padding: 11px 18px;
    }
}

@media (max-width: 600px) {
    .floating-contact {
        width: 72px;
        height: 72px;
        right: 14px;
        bottom: 14px;
    }

    .floating-contact:hover {
        width: 220px;
    }

    .schedule-table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr {
        display: block;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table {
        box-shadow: none;
        background: transparent;
    }

    .schedule-table tr {
        margin-bottom: 12px;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #dcecff;
        box-shadow: 0 8px 18px rgba(15,23,42,0.05);
    }

    .schedule-table td {
        text-align: left;
        border-bottom: 1px solid #edf3fb;
    }

    .schedule-table td:last-child {
        border-bottom: none;
    }

    .schedule-table td::before {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 800;
        color: var(--ui-text-soft);
    }

    .schedule-table td:nth-child(1)::before { content: "曜日"; }
    .schedule-table td:nth-child(2)::before { content: "時間"; }
    .schedule-table td:nth-child(3)::before { content: "クラス内容・料金"; }
}