        /* ===== CSSカスタム変数（色や余白はここで調整） ===== */
        :root {
            --bg: #ffffff;
            --text: #000000;
            --muted: #475569;
            --brand: #F85757;
            /* アクセントカラー */
            --brand-ink: #0c4a6e;
            /* 見出しの濃い色 */
            --surface: #f1f5f9;
            /* ボックス背景 */
            --border: #e2e8f0;
            --radius: 16px;
            --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
            --container: 800px;
            --space: clamp(16px, 2vw, 24px);
            --space-lg: clamp(28px, 4vw, 56px);
            --header-h: 64px;
            /* スマホ時のヘッダー高さ */
        }

        /* ===== Header ===== */
        header.site-header {
            position: sticky;
            top: 0;
            inset-inline: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: saturate(1.5) blur(8px);
            border-bottom: 1px solid var(--border);
        }

        .header-inner {
            height: var(--header-h);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .brand {
            width: clamp(100px, 10vw, 200px);
        }

        .brand img {
            background-size: cover;
            width: 100%;
        }

        nav.primary-nav ul {
            display: flex;
            gap: 20px;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        nav.primary-nav a {
            font-weight: 600;
            padding: 8px 10px;
            border-radius: 10px;
        }

        nav.primary-nav a:focus-visible {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

        /* Hamburger */
        .hamburger {
            display: none;
            position: relative;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #fff;
            cursor: pointer;
        }

        .hamburger:focus-visible {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

        .hamburger span,
        .hamburger span::before,
        .hamburger span::after {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 22px;
            height: 2px;
            background: var(--text);
            content: "";
            transition: transform .25s ease, opacity .2s ease;
            border-radius: 999px;
        }

        .hamburger span {
            top: 50%;
        }

        .hamburger span::before {
            top: -7px;
        }

        .hamburger span::after {
            top: 7px;
        }

        .hamburger[aria-expanded="true"] span {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] span::before {
            transform: translateX(-50%) rotate(45deg);
            top: 0;
            opacity: 1;
        }

        .hamburger[aria-expanded="true"] span::after {
            transform: translateX(-50%) rotate(-45deg);
            top: 0;
            opacity: 1;
        }

        /* Mobile Nav */
        .mobile-drawer {
            position: fixed;
            inset: 0;
            z-index: 40;
            display: grid;
            grid-template-rows: 1fr;
            visibility: hidden;
            opacity: 0;
            transition: opacity .2s ease, visibility .2s ease;
        }

        .mobile-drawer[aria-hidden="false"] {
            visibility: visible;
            opacity: 1;
        }

        .mobile-backdrop {
            background: rgba(2, 6, 23, .32);
        }

        .mobile-panel {
            align-self: start;
            margin-top: var(--header-h);
            background: #fff;
            border-bottom: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .mobile-panel ul {
            list-style: none;
            margin: 0;
            padding: 8px;
        }

        .mobile-panel a {
            display: block;
            padding: 14px 12px;
            font-weight: 700;
            border-radius: 12px;
        }

        .mobile-panel a:hover {
            background: var(--surface);
            text-decoration: none;
        }

        /* ===== Hero / First View ===== */
        .hero {
            position: relative;
            background: linear-gradient(180deg, rgba(14, 165, 233, .08), rgba(14, 165, 233, 0) 60%), var(--surface);
            padding: 0;
            /* border-bottom: 1px solid var(--border); */
            /* background-image: url(/image/bacgroundsity.jpg);
            background-repeat: no-repeat;
            background-size: cover; */
        }

        .hero-inner {
            display: grid;
            grid-template-columns: 1.7fr 1.3fr;
            gap: var(--space-lg);
            align-items: end;
            /* padding: clamp(28px, 6vw, 80px) 0; */
        }

        .hero-text {
            align-self: start;
        }


        .hero h1 {
            /* font-size: clamp(28px, 5vw, 48px); */
            line-height: 1.2;
            margin: 0 0 10px;
            color: var(--brand-ink);
        }

        .hero p {
            margin: 0 0 18px;
            color: var(--muted);
            font-size: clamp(14px, 1.8vw, 18px);
        }

        .hero-visual {
            display: grid;
            place-items: center;
            font-weight: 700;
            color: var(--muted);
            align-self: end;
        }

        .hero-visual img {
            background-size: cover;

        }

        .hero-btn {
            /* display: inline-flex;
            align-items: center;
            justify-content: center; */
            color: #fff;
            font-weight: 800;
            border-radius: 5vw;
            cursor: pointer;
            white-space: nowrap;
        }

        .hero-btn:hover {
            filter: brightness(0.98);
        }

        .mt-t {
            position: fixed;
            bottom: 40px;
            right: 40px;
            z-index: 100;
        }

        .shine {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 140px;
            height: 140px;
            background: #111;
            color: #fff;
            text-decoration: none;
            border-radius: 50%;
            overflow: hidden;
            z-index: 1;
            text-align: center;
            line-height: 1.4;
            font-size: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* 光の反射 */
        .shine::before {
            content: "";
            position: absolute;
            top: -20%;
            left: -120%;
            width: 100px;
            height: 140%;
            background: linear-gradient(120deg,
                    rgba(255, 255, 255, 0) 0%,
                    rgba(255, 255, 255, 0.15) 30%,
                    rgba(255, 255, 255, 0.55) 50%,
                    rgba(255, 255, 255, 0.15) 70%,
                    rgba(255, 255, 255, 0) 100%);
            transform: skewX(-25deg);
            animation: shineMove 2.5s linear infinite;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .hero-inner {
                grid-template-columns: 1fr;
            }

            .hero-text {
                margin-bottom: -0px;
            }

            .hero-visual {
                margin-top: -70px;
            }

            .hero-btn {
                font-size: 20px;
                display: block;
                /* ← 横幅効かせるため */
                width: 100%;
                /* ← 画面いっぱい */
                text-align: center;
                /* ← 文字中央 */
            }

            .mt-t {
                position: absolute;
                bottom: -60px;
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                padding: 0 16px;
                z-index: 10;
            }

            .shine {
                display: inline-block;
                width: 100%;
                height: auto;
                padding: 14px 0;
                border-radius: 999px;
                font-size: 20px;
            }

            .shine br {
                display: none;
            }
        }

        /* ===== Section Base ===== */
        section {
            padding: var(--space-lg) 0;
            background-image: url(/image/background.jpg);
        }

        .section-h {
            margin: 0 0 14px;
            font-size: clamp(22px, 3.4vw, 32px);
            color: var(--brand-ink);
        }

        .section-lead {
            margin: 0 0 22px;
            color: var(--muted);
        }

        /* ===== 先生紹介 ===== */
        #sensei {
            background:
                linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
                url("/image/bacgroundsity.jpg") center/cover no-repeat;
        }

        .sensei {
            display: grid;
            gap: var(--space);
            grid-template-columns: 1.6fr .7fr;
        }


        .sensei-card {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

        .sensei-card .img {
            display: grid;
            place-items: center;
            color: #64748b;
            font-weight: 700;
            padding: 1.5 vw;
        }

        .sensei-card .img img {
            background-size: cover;
            width: 100%;

        }

        .sensei-body {
            background: #fff;
            border: 1px solid var(--border);
            padding: 16px;
            box-shadow: var(--shadow);
            border-radius: var(--radius);
        }

        .sensei-body h3 {
            margin: 0 0 6px;
            font-size: 18px;
        }

        .sensei-img img {
            border-radius: var(--radius);
        }

        /* ===== 教室紹介（2カラムフレックス） ===== */
        .classrooms {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space);
        }

        .class-card {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .class-card .img {
            aspect-ratio: 16/9;
            background: #e2e8f0;
            display: grid;
            place-items: center;
            color: #64748b;
            font-weight: 700;
        }

        .class-body {
            padding: 16px;
            /* background-color: #fff; */
        }

        .class-body h3 {
            margin: 0 0 8px;
        }

        .class-body a {
            display: block;
            /* ← これ追加 */
            width: fit-content;
            /* ボタン幅を中身に合わせる */
            margin: 0 auto;
            background: var(--brand);
            color: #fff;
            padding: 5px 40px;
            border-radius: 5vw;
            cursor: pointer;
            font-weight: 600;
            text-align: center;
        }

        /* ===== お知らせ ===== */
        .news-list {
            list-style: none;
            padding: 0;
            margin: 0;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            background: #fff;
        }

        .news-item {
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }

        .news-item:last-child {
            border-bottom: none;
        }

        .news-date {
            color: var(--muted);
            font-variant-numeric: tabular-nums;
        }

        /* ===== お問い合わせ ===== */
        .contact-grid {
            display: grid;
            grid-template-columns: 1.1fr .9fr;
            gap: var(--space);
        }

        form.contact {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px;
        }

        .field {
            display: grid;
            gap: 6px;
            margin-bottom: 14px;
        }

        label {
            font-weight: 700;
        }

        input[type="text"],
        input[type="email"],
        textarea {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            font: inherit;
            /* width: 100%; */
        }

        textarea {
            min-height: 140px;
            resize: vertical;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            background-color: #F85757;
            font-weight: 800;
            border-radius: 5vw;
            cursor: pointer;
            white-space: nowrap;
            padding: 12px 30px;
            border: 0px;
        }

        .btn:hover {
            filter: brightness(0.98);
        }

        .contact-info {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 20px;
        }

        .contact-line {
            background-color: hsl(138, 100%, 40%);
            border-radius: var(--radius);
            padding: 16px;
            color: #fff;
        }

        .contact-line img {
            margin: 0 auto;
        }


        /* ===== Footer ===== */
        footer {
            border-top: 1px solid var(--border);
            padding: 18px 0;
            color: var(--muted);
            font-size: 14px;
        }

        /* ===== Responsive ===== */
        @media (max-width: 960px) {
            .hero {
                height: auto;
                padding: 0;
            }


            .hero-text {
                margin-top: 1rem;
            }


            .classrooms {
                grid-template-columns: 1fr;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .sensei-card {
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            nav.primary-nav {
                display: none;
            }

            .sensei {
                grid-template-columns: 1fr;
                grid-template-rows: 1.6fr;
            }

            .sensei-img {
                width: 80%;
                margin-bottom: -70px;
                justify-self: center;
                z-index: 1;
            }

            .hamburger {
                display: inline-block;
                cursor: pointer;
            }

            .news-item {
                grid-template-columns: 1fr;
                gap: 4px;
            }
        }

        /* Utility */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0
        }



        .mt-s {
            margin-top: var(--space);
        }

        .mt-l {
            margin-top: var(--space-lg);
        }

        .center {
            text-align: center;
        }



        @keyframes shineMove {
            0% {
                left: -120%;
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            45% {
                left: 120%;
                opacity: 1;
            }

            100% {
                left: 120%;
                opacity: 0;
            }
        }

        .works-h {
            margin: 0 0 14px;
            font-size: clamp(22px, 3.4vw, 32px);
            color: var(--brand-ink);
        }

        .works__list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2vw;
        }

        .works-card {
            /* background: #fff; */
            /* border-radius: 16px; */
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            padding: 1vw;
        }

        .works-card__image img {
            display: block;
            width: 100%;
            height: 300px;
            object-fit: cover;
        }

        .works-card__body {
            padding: 1vw;
        }

        .works-card__category {
            margin: 0 0 8px;
            font-size: 0.85rem;
            color: #8b7d6b;
        }

        .works-card__title {
            margin: 0 0 12px;
            font-size: 1.4rem;
            color: #222;
        }

        .works-card__description {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.8;
            color: #555;
        }

        .slider img {
            height: 300px;
            object-fit: contain;
        }

        @media screen and (max-width: 900px) {}

        @media screen and (max-width: 768px) {
            #works {
                padding-top: 80px;
            }

            .works {
                padding: 80px 16px;
            }

            .works__title {
                font-size: 1.8rem;
            }

            .works__text {
                font-size: 0.95rem;
            }


            .works-card__image img {
                height: 260px;
            }
        }

        .calendar {
            display: grid;
            grid-template-columns: 150px repeat(7, 1fr);
            border: 1px solid #ccc;
        }

        .celendar-h {
            margin: 0 0 14px;
            font-size: clamp(22px, 3.4vw, 32px);
            color: var(--brand-ink);
        }

        .calendar .day {
            background: #333;
            color: #fff;
            text-align: center;
            padding: 10px;
            border: 1px solid #ccc;
        }

        .calendar .label {
            background: #f5f5f5;
            padding: 10px;
            font-weight: bold;
            border: 1px solid #ccc;
        }

        .calendar>div {
            min-height: 60px;
            border: 1px solid #ccc;
            padding: 5px;
            font-size: 12px;
        }

        /* 授業あるとこ */
        .calendar .active {
            background: #e3f2fd;
            font-weight: bold;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.3;
        }

        .u-mobile {
            display: none;
        }

        @media (max-width: 768px) {
            .calendar {
                grid-template-columns: 50px repeat(7, 1fr);
                font-size: 10px;
            }

            .u-mobile {
                display: block;
            }

            .calendar .label {
                padding: 10px 5px;
                text-align: center;
                line-height: 1.2;
            }

            .calendar>div {
                min-height: 50px;
                padding: 5px 2px;
            }
        }

        /* 最新のCSS */

        /* ===== お知らせ：クリック可能カード ===== */
        .news-item--link {
            border-bottom: 1px solid var(--border);
            transition: background 0.18s ease;
        }

        .news-item--link:last-child {
            border-bottom: none;
        }

        .news-item--link:hover {
            background: #fafafa;
        }

        .news-item__inner {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 16px;
            padding: 16px;
            text-decoration: none;
            color: inherit;
        }

        .news-item__img {
            width: 80px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .news-item__img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .news-item__body {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .news-item__text {
            font-size: 0.95rem;
            color: var(--text);
            line-height: 1.6;

            /* 長い場合は1行で省略 */
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 500px;
        }

        .news-item__arrow {
            color: var(--muted);
            font-size: 1.4rem;
            line-height: 1;
            transition: transform 0.18s ease;
        }

        .news-item--link:hover .news-item__arrow {
            transform: translateX(4px);
        }

        /* 画像なしの場合は2カラムに */
        .news-item__inner:not(:has(.news-item__img)) {
            grid-template-columns: 1fr auto;
        }

        /* ローディング & エラー */
        .news-loading,
        .news-empty {
            padding: 24px 16px;
            text-align: center;
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .news-spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid var(--border);
            border-top-color: var(--brand);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            flex-shrink: 0;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 768px) {
            .news-item__inner {
                grid-template-columns: 1fr auto;
                gap: 10px;
                padding: 12px 14px;
            }

            .news-item__img {
                display: none;
            }

            .news-item__text {
                max-width: calc(100vw - 100px);
            }
        }

        /* ===== お知らせ詳細ページ ===== */
        .news-detail-page {
            padding: var(--space-lg) 0 calc(var(--space-lg) * 2);
            min-height: calc(100vh - var(--header-h) - 60px);
            background-image: url(/image/background.jpg);
        }

        .news-detail__back {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--muted);
            font-size: 0.9rem;
            text-decoration: none;
            margin-bottom: var(--space);
            transition: color 0.18s ease;
        }

        .news-detail__back:hover {
            color: var(--brand);
        }

        .news-detail {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            padding: clamp(20px, 4vw, 48px);
        }

        .news-detail__loading {
            padding: 40px;
            text-align: center;
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .news-detail__header {
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .news-detail__date {
            color: var(--muted);
            font-size: 0.9rem;
            font-variant-numeric: tabular-nums;
        }

        .news-detail__image {
            margin-bottom: 28px;
            border-radius: 12px;
            overflow: hidden;
        }

        .news-detail__image img {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            display: block;
        }

        /* ===== 無料体験モーダル ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1000;
            display: grid;
            place-items: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay[aria-hidden="false"] {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: #fff;
            width: 100%;
            max-width: 800px;
            border-radius: 24px;
            position: relative;
            padding: clamp(24px, 5vw, 48px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .modal-overlay[aria-hidden="false"] .modal-content {
            transform: translateY(0);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--surface);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 24px;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .modal-close:hover {
            background: var(--border);
        }

        .modal-title {
            text-align: center;
            font-size: clamp(20px, 4vw, 28px);
            margin-bottom: 8px;
            color: var(--brand-ink);
        }

        .modal-lead {
            text-align: center;
            color: var(--muted);
            margin-bottom: 32px;
            font-size: 0.95rem;
        }

        .modal-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 40px;
        }

        .modal-form {
            display: flex;
            flex-direction: column;
        }

        .modal-line {
            background: #f0fdf4;
            border: 1px solid #dcfce7;
            border-radius: 20px;
            padding: 24px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .line-qr-wrap {
            background: #fff;
            padding: 12px;
            border-radius: 12px;
            width: 140px;
            margin: 16px auto;
        }

        .line-qr-wrap img {
            width: 100%;
            height: auto;
            display: block;
        }

        .line-note {
            font-size: 0.8rem;
            color: #166534;
        }

        @media (max-width: 768px) {
            .modal-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .modal-content {
                padding: 32px 20px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .modal-close {
                top: 10px;
                right: 10px;
            }
        }


        .news-detail__content {
            font-size: 1rem;
            line-height: 1.9;
            color: var(--text);
        }

        .news-detail__content p {
            margin-bottom: 1rem;
        }

        .news-detail__error {
            color: var(--muted);
            text-align: center;
            padding: 40px 0;
        }

        .news-detail__error a {
            color: var(--brand);
            text-decoration: underline;
        }