/* ==============================
   基本設定
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ==============================
   ヘッダー
============================== */

.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: bold;
}

.nav a:hover {
    opacity: 0.6;
}


/* ==============================
   メインビジュアル
============================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 20px;
    background:
        linear-gradient(135deg,
            #fff3a8 0%,
            #ffd84d 48%,
            #ffbd32 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    top: -250px;
    right: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    bottom: -200px;
    left: -100px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-label {
    display: inline-block;
    padding: 7px 16px;
    margin-bottom: 15px;
    border-radius: 999px;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.hero-subtitle {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 17px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 58px;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.hero h1 span {
    color: #167a35;
}

.hero-text {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
}

.hero-message {
    margin-bottom: 30px;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* 右側ビジュアル */

.hero-visual {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    overflow: hidden;
    border: 7px solid #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    right: -15px;
    bottom: -25px;

    width: 145px;
    height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    transform: rotate(-6deg);
}

.hero-badge span {
    font-size: 17px;
    font-weight: bold;
}

.hero-badge strong {
    color: #e95a1c;
    font-size: 23px;
}


/* ==============================
   ボタン
============================== */

.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 9px;
    font-weight: bold;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-main {
    background-color: #167a35;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(22, 122, 53, 0.3);
}

.button-main:hover {
    background-color: #11622b;
}

.button-sub {
    color: #333333;
    background-color: #ffffff;
    border: 2px solid #333333;
}

.button-sub:hover {
    background-color: #f7f7f7;
}

/* ==============================
   共通セクション
============================== */

.section {
    padding: 100px 20px;
}

.section-gray {
    background-color: #f7f7f7;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.section-inner>p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* ==============================
   プログラミング教室について
============================== */

.about-section {
    overflow: hidden;
}

.about-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
}

.about-character {
    flex: 0 1 360px;
    text-align: center;
}

.about-character img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
}

.about-content {
    flex: 1;
    max-width: 620px;
}

.section-label {
    margin-bottom: 8px;
    color: #167a35;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.about-content h2 {
    margin-bottom: 30px;
    text-align: left;
    font-size: 38px;
    line-height: 1.5;
}

.about-content h2 span {
    color: #167a35;
}

.about-content>p:not(.section-label) {
    margin-bottom: 18px;
}

/* ==============================
   教室の特徴
============================== */

.feature-list {
    display: flex;
    gap: 30px;
}

.feature-item {
    flex: 1;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.feature-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-image img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
}

.feature-number {
    margin-bottom: 5px;
    color: #167a35;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 23px;
}

.feature-item>p:last-child {
    text-align: left;
}


/* ==============================
   授業内容
============================== */

.course-list {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.course-item {
    flex: 1;
    overflow: hidden;
    background-color: #ffffff;
    border: 2px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.course-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.course-content {
    padding: 25px;
}

.course-number {
    margin-bottom: 5px;
    color: #167a35;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.course-item h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.course-item p {
    line-height: 1.8;
}

/* ==============================
   身につく力
============================== */

.section-label-center {
    text-align: center;
}

.skill-lead {
    max-width: 700px;
    margin: -25px auto 45px;
    text-align: center;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    position: relative;
    padding: 30px 25px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.skill-number {
    margin-bottom: 12px;
    color: #167a35;
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.35;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.5;
}

.skill-card p:last-child {
    font-size: 15px;
}

/* ==============================
   対象・コース
============================== */

.target-section {
    background-color: #ffffff;
}

.target-lead {
    max-width: 700px;
    margin: -25px auto 45px;
    text-align: center;
}

.target-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #fff8d9;
    border-radius: 20px;
}

.target-character {
    flex: 0 0 250px;
    text-align: center;
}

.target-character img {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
}

.target-content {
    flex: 1;
}

.target-label {
    margin-bottom: 5px;
    color: #167a35;
    font-size: 15px;
    font-weight: bold;
}

.target-grade {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: bold;
}

.target-list {
    margin-bottom: 20px;
}

.target-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px;
}

.target-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #167a35;
    font-weight: bold;
}

.target-note {
    font-size: 13px;
    color: #666666;
}

/* ==============================
   授業時間・料金
============================== */

.price-section {
    background-color: #f7f7f7;
}

.price-lead {
    max-width: 700px;
    margin: -25px auto 35px;
    text-align: center;
}

/* 入学金 */

.admission-fee {
    max-width: 500px;
    margin: 0 auto 50px;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background-color: #fff8d9;
    border: 2px solid #ffd84d;
    border-radius: 16px;
}

.admission-fee span {
    font-size: 18px;
    font-weight: bold;
}

.admission-fee strong {
    color: #e95a1c;
    font-size: 38px;
    line-height: 1;
}

/* 料金グループ */

.price-group {
    max-width: 900px;
    margin: 0 auto 45px;
}

.price-group-title {
    margin-bottom: 18px;
    text-align: center;
    font-size: 24px;
}

.price-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.price-item {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.price-course {
    margin-bottom: 5px;
    color: #167a35;
    font-size: 21px;
    font-weight: bold;
}

.price-time {
    margin-bottom: 20px;
    font-size: 16px;
}

.price-main {
    margin-bottom: 5px;
    font-size: 17px;
}

.price-main strong {
    font-size: 32px;
}

.price-tax {
    color: #666666;
    font-size: 14px;
}

/* 塾生料金 */

.student-price {
    padding: 30px;
    background-color: #e9f6eb;
    border-radius: 20px;
}

.student-title {
    margin-bottom: 22px;
    text-align: center;
}

.student-title span {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.student-title strong {
    color: #167a35;
    font-size: 26px;
}

/* PCレンタル */

.rental-fee {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.rental-title {
    font-size: 19px;
    font-weight: bold;
}

.rental-text {
    color: #666666;
    font-size: 14px;
}

.rental-note {
    margin-top: 8px;
    color: #167a35;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.rental-price {
    white-space: nowrap;
}

.rental-price strong {
    font-size: 25px;
}

.rental-price span {
    font-size: 14px;
}

.price-note {
    max-width: 700px;
    margin: 15px auto 0;
    color: #666666;
    font-size: 13px;
    text-align: right;
}

.price-contact {
    max-width: 750px;
    margin: 45px auto 0;
    text-align: center;
}

.price-contact p {
    margin-bottom: 20px;
}
/* ==============================
   FAQ
============================== */

.faq-section {
    background-color: #ffffff;
}

.faq-lead {
    max-width: 700px;
    margin: -25px auto 45px;
    text-align: center;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 60px 22px 25px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "＋";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #167a35;
    font-size: 26px;
    font-weight: normal;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-q,
.faq-a {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.faq-q {
    background-color: #167a35;
    color: #ffffff;
}

.faq-answer {
    display: flex;
    gap: 15px;
    padding: 0 25px 25px;
}

.faq-a {
    background-color: #ffd84d;
    color: #333333;
}

.faq-answer p {
    flex: 1;
    padding-top: 5px;
}

/* ==============================
   アクセス
============================== */

.access-section {
    background-color: #ffffff;
}

.access-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 50px;
    background-color: #f7f7f7;
    border-radius: 20px;
}

.access-school {
    margin-bottom: 30px;
    color: #167a35;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.access-row {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-top: 1px solid #dddddd;
}

.access-row:last-child {
    border-bottom: 1px solid #dddddd;
}

.access-title {
    flex: 0 0 90px;
    font-weight: bold;
}

.access-row p {
    flex: 1;
}

/* Googleマップ */

.access-map {
    max-width: 900px;
    margin: 35px auto 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.access-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ==============================
   体験授業・お問い合わせ
============================== */

.contact-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #fff8d9 0%,
        #fff0a8 100%
    );
}

.contact-lead {
    max-width: 700px;
    margin: -25px auto 40px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
}

.contact-box {
    max-width: 950px;
    margin: 0 auto;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* キャラクター */

.contact-character {
    flex: 0 0 230px;
    text-align: center;
}

.contact-character img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    margin: 0 auto;
}

/* 問い合わせ内容 */

.contact-content {
    flex: 1;
}

.contact-message {
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

/* ボタン */

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 25px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

.contact-button-label {
    margin-bottom: 3px;
    font-size: 13px;
}

/* 電話 */

.contact-phone {
    background-color: #167a35;
    color: #ffffff;
}

.contact-phone strong {
    font-size: 27px;
    letter-spacing: 0.03em;
}

/* メール */

.contact-mail {
    background-color: #ffd84d;
    color: #333333;
}

.contact-mail strong {
    font-size: 21px;
}

.contact-school {
    margin-top: 20px;
    color: #666666;
    font-size: 14px;
    text-align: center;
}

/* ==============================
   プライバシーポリシー
============================== */

.privacy-section {
    background-color: #f7f7f7;
}

.privacy-box {
    max-width: 850px;
    margin: 0 auto;
    padding: 45px 50px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.privacy-box > p {
    margin-bottom: 30px;
}

.privacy-box h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #167a35;
    font-size: 19px;
}

.privacy-contact {
    margin-top: 25px;
    padding: 20px 25px;
    background-color: #f7f7f7;
    border-radius: 12px;
}

.privacy-contact p {
    margin: 4px 0;
}

.privacy-contact a {
    text-decoration: underline;
}

/* ==============================
   フッター
============================== */

.footer {
    background-color: #222222;
    color: #ffffff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 20px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 50px;
}

.footer-school {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.footer-info p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    transition: opacity 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 0.7;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid #444444;
    text-align: center;
    font-size: 13px;
    color: #cccccc;
}

/* ==============================
   スマートフォン
============================== */

@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .hero {
        padding: 60px 20px 80px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 45px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 430px;
    }

    .hero-badge {
        width: 120px;
        height: 120px;
        right: -5px;
        bottom: -35px;
    }

    .hero-badge span {
        font-size: 14px;
    }

    .hero-badge strong {
        font-size: 19px;
    }

    .section {
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .feature-list,
    .course-list {
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-layout {
        flex-direction: column;
        gap: 30px;
    }

    .about-character {
        flex: none;
        width: 100%;
    }

    .about-character img {
        max-width: 220px;
    }

    .about-content {
        width: 100%;
    }

    .about-content h2 {
        text-align: center;
        font-size: 28px;
    }

    .section-label {
        text-align: center;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-card {
        padding: 24px 20px;
    }

    .skill-card h3 {
        font-size: 18px;
    }

    .skill-lead {
        margin-top: -15px;
        margin-bottom: 35px;
    }

    .target-lead {
        margin-top: -15px;
        margin-bottom: 35px;
    }

    .target-box {
        padding: 30px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .target-character {
        flex: none;
        width: 100%;
    }

    .target-character img {
        max-width: 180px;
    }

    .target-content {
        width: 100%;
    }

    .target-label,
    .target-grade {
        text-align: center;
    }

    .target-grade {
        font-size: 25px;
    }

    /* 授業時間・料金 */

    .price-lead {
        margin-top: -15px;
        margin-bottom: 30px;
    }

    .admission-fee {
        margin-bottom: 40px;
        padding: 18px 20px;
        gap: 20px;
    }

    .admission-fee strong {
        font-size: 32px;
    }

    .price-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .price-item {
        padding: 25px 20px;
    }

    .price-main strong {
        font-size: 29px;
    }

    .student-price {
        padding: 25px 15px;
    }

    .rental-fee {
        margin-top: 35px;
        padding: 25px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .price-note {
        text-align: center;
    }

    .rental-note {
        white-space: normal;
        font-size: 12px;
    }

        .faq-lead {
        margin-top: -15px;
        margin-bottom: 35px;
    }

    .faq-item summary {
        padding: 18px 50px 18px 18px;
        gap: 10px;
        font-size: 15px;
    }

    .faq-item summary::after {
        right: 18px;
    }

    .faq-q,
    .faq-a {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .faq-answer {
        padding: 0 18px 20px;
        gap: 10px;
        font-size: 14px;
    }

    /* アクセス */

    .access-box {
        padding: 30px 20px;
    }

    .access-school {
        font-size: 21px;
    }

    .access-row {
        flex-direction: column;
        gap: 5px;
    }

    .access-title {
        flex: none;
        color: #167a35;
    }

    .access-map iframe {
        height: 300px;
    }
    
    /* 体験授業・お問い合わせ */

    .contact-lead {
        margin-top: -15px;
        margin-bottom: 30px;
        font-size: 15px;
    }

    .contact-box {
        padding: 30px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .contact-character {
        flex: none;
        width: 100%;
    }

    .contact-character img {
        max-width: 160px;
    }

    .contact-content {
        width: 100%;
    }

    .contact-message {
        font-size: 15px;
    }

    .contact-phone strong {
        font-size: 23px;
    }

    .contact-mail strong {
        font-size: 19px;
    }

        /* プライバシーポリシー */

    .privacy-box {
        padding: 30px 20px;
    }

    .privacy-box h3 {
        font-size: 17px;
    }

    .privacy-contact {
        padding: 18px 15px;
        font-size: 14px;
        word-break: break-all;
    }

        /* フッター */

    .footer-inner {
        padding: 40px 20px 30px;
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        word-break: break-all;
    }

    .contact-lead,
    .about-text {
        font-size: 16px;
        line-height: 1.8;
    }

        .sp-only {
        display: none;
    }

    @media (max-width: 768px) {
        .sp-only {
            display: inline;
        }
    }
}

/* ==================================================
   デザインリニューアル
   白 × 深緑 × 淡いクリーム
================================================== */

:root {
    --green: #0f6b3a;
    --green-dark: #094d2a;
    --green-light: #eaf5ee;

    --cream: #fffaf0;
    --cream-dark: #f7efdc;

    --yellow: #f5cf55;

    --text: #242724;
    --text-light: #626862;

    --border: #e5e8e5;
    --white: #ffffff;

    --radius: 16px;
    --shadow: 0 12px 35px rgba(25, 45, 32, 0.08);
}


/* ==============================
   全体
============================== */

body {
    color: var(--text);
    background: var(--white);
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;
    line-height: 1.9;
}

.section {
    padding: 110px 24px;
}

.section-inner {
    max-width: 1080px;
}

.section-gray {
    background: #f7f9f7;
}

.section h2 {
    margin-bottom: 55px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.section-label {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
}


/* ==============================
   ヘッダー
============================== */

.header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1120px;
    padding: 18px 24px;
}

.logo {
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.nav ul {
    gap: 28px;
}

.nav a {
    position: relative;
    color: #3c403c;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.25s;
}

.nav a:hover {
    color: var(--green);
    opacity: 1;
}

.nav a:hover::after {
    width: 100%;
}


/* ==============================
   メインビジュアル
============================== */

.hero {
    padding: 95px 24px 105px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(245, 207, 85, 0.18) 0,
            rgba(245, 207, 85, 0.18) 180px,
            transparent 181px
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffdf8 55%,
            #fff8e8 100%
        );
}

.hero::before,
.hero::after {
    display: none;
}

.hero-inner {
    max-width: 1120px;
    gap: 75px;
}

.hero-content {
    max-width: 550px;
}

.hero-label {
    margin-bottom: 22px;
    padding: 8px 16px;
    color: var(--green-dark);
    background: var(--green-light);
    border: 1px solid #d7eadf;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.hero-subtitle {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 15px;
}

.hero h1 {
    margin-bottom: 27px;
    color: #202320;
    font-size: clamp(46px, 5.2vw, 66px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--green);
}

.hero-text {
    margin-bottom: 22px;
    color: #343934;
    font-size: 19px;
    line-height: 1.8;
}

.hero-message {
    margin-bottom: 35px;
    color: var(--text-light);
    font-size: 15px;
}

.hero-buttons {
    gap: 12px;
}


/* メイン画像 */

.hero-visual {
    max-width: 500px;
}

.hero-image {
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-image img {
    border-radius: 12px;
}

.hero-badge {
    right: -20px;
    bottom: -25px;
    width: 130px;
    height: 130px;
    background: var(--green);
    border: 5px solid var(--white);
    box-shadow: 0 12px 30px rgba(15, 107, 58, 0.18);
    transform: rotate(-4deg);
}

.hero-badge span {
    color: var(--white);
    font-size: 14px;
}

.hero-badge strong {
    color: #ffe279;
    font-size: 20px;
}


/* ==============================
   ボタン
============================== */

.button {
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.button-main {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 7px 20px rgba(15, 107, 58, 0.18);
}

.button-main:hover {
    background: var(--green-dark);
    box-shadow: 0 9px 24px rgba(15, 107, 58, 0.23);
}

.button-sub {
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid #bfc9c1;
}

.button-sub:hover {
    background: #f7faf8;
}


/* ==============================
   ABOUT
============================== */

.about-section {
    background: var(--white);
}

.about-layout {
    gap: 90px;
}

.about-character {
    position: relative;
}

.about-character::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 290px;
    height: 290px;
    background: var(--cream);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.about-character img {
    max-width: 260px;
}

.about-content {
    max-width: 590px;
}

.about-content h2 {
    margin-bottom: 32px;
    text-align: left;
    font-size: clamp(32px, 4vw, 43px);
}

.about-content h2 span {
    color: var(--green);
}

.about-content p {
    color: #4d524d;
    font-size: 16px;
    line-height: 2;
}

.about-content p + p {
    margin-top: 18px;
}


/* ==============================
   教室の特徴
============================== */

#feature {
    background: #f6f8f6;
}

.feature-list {
    gap: 24px;
}

.feature-item {
    padding: 35px 30px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-image {
    margin-bottom: 22px;
}

.feature-image img {
    max-height: 135px;
}

.feature-number {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.feature-item h3 {
    margin-bottom: 14px;
    color: #222622;
    font-size: 22px;
}

.feature-item > p:last-child {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.9;
}


/* ==============================
   授業内容
============================== */

#course {
    background: var(--white);
}

.course-list {
    gap: 26px;
}

.course-item {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
}

.course-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.course-content {
    padding: 27px 28px 30px;
}

.course-number {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 12px;
    letter-spacing: 0.13em;
}

.course-item h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.course-item p {
    color: var(--text-light);
}


/* ==============================
   身につく力
============================== */

#skill {
    background: var(--green-dark);
}

#skill .section-label {
    color: #a9d7bb;
}

#skill h2 {
    color: var(--white);
}

.skill-lead {
    color: #d7e5dc;
}

.skill-grid {
    gap: 18px;
}

.skill-card {
    padding: 31px 25px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: none;
}

.skill-number {
    color: #9cd5b2;
    opacity: 1;
    font-size: 27px;
}

.skill-card h3 {
    color: var(--white);
    font-size: 18px;
}

.skill-card p:last-child {
    color: #d3dfd7;
    font-size: 14px;
}


/* ==============================
   対象学年
============================== */

.target-section {
    background: var(--white);
}

.target-box {
    max-width: 900px;
    padding: 50px 60px;
    gap: 60px;
    background: var(--cream);
    border: 1px solid #eee5ce;
    border-radius: 16px;
}

.target-character img {
    max-width: 200px;
}

.target-label {
    color: var(--green);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.target-grade {
    color: #222622;
    font-size: 32px;
}

.target-list li {
    margin-bottom: 13px;
    color: #424742;
}

.target-list li::before {
    color: var(--green);
}


/* ==============================
   料金
============================== */

.price-section {
    background: #f6f8f6;
}

.admission-fee {
    background: var(--green-dark);
    color: var(--white);
    border-radius: 12px;
    box-shadow: none;
}

.admission-fee strong {
    color: #ffe07a;
}

.price-group {
    background: var(--white);
}

.price-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
}

.price-course {
    color: var(--green);
    font-weight: 800;
}

.price-main strong {
    color: var(--green-dark);
}

.student-price {
    background: #f0f7f2;
    border: 1px solid #d7e8dc;
    border-radius: 14px;
}

.student-title strong {
    color: var(--green);
}

.rental-fee {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
}

.rental-price strong {
    color: var(--green-dark);
}


/* ==============================
   FAQ
============================== */

.faq-section {
    background: var(--white);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
}

.faq-item summary {
    transition: background 0.2s;
}

.faq-item summary:hover {
    background: #f7faf8;
}

.faq-q {
    background: var(--green);
    color: var(--white);
}

.faq-a {
    background: var(--green-light);
    color: var(--green-dark);
}


/* ==============================
   お問い合わせ
============================== */

.contact-section {
    background:
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #fff7df 100%
        );
}

.contact-box {
    max-width: 900px;
    padding: 50px 55px;
    gap: 55px;
    background: var(--white);
    border: 1px solid #ece8dc;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-character {
    flex-basis: 190px;
}

.contact-character img {
    max-width: 170px;
}

.contact-message {
    color: #393e39;
}

.contact-button {
    border-radius: 9px;
}

.contact-phone {
    background: var(--green);
}

.contact-phone:hover {
    background: var(--green-dark);
}

.contact-mail {
    background: #f8d75f;
}


/* ==============================
   アクセス
============================== */

.access-section {
    background: var(--white);
}

.access-box {
    max-width: 900px;
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
}

.access-school {
    color: var(--green-dark);
}

.access-map {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
}


/* ==============================
   プライバシーポリシー
============================== */

.privacy-section {
    background: #f6f8f6;
}

.privacy-box {
    padding: 45px 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
}

.privacy-box h3 {
    color: var(--green-dark);
}

.privacy-contact {
    background: #f7f9f7;
}


/* ==============================
   フッター
============================== */

.footer {
    background: #173324;
}

.footer-inner {
    max-width: 1080px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b9c8bf;
}


/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 768px) {

    .section {
        padding: 75px 20px;
    }

    .section h2 {
        margin-bottom: 38px;
        font-size: 29px;
    }


    /* ヘッダー */

    .header-inner {
        padding: 15px 18px;
    }

    .logo {
        font-size: 17px;
    }

    .nav ul {
        gap: 8px 15px;
    }

    .nav a {
        font-size: 12px;
    }


    /* ヒーロー */

    .hero {
        padding: 60px 20px 80px;
    }

    .hero-inner {
        gap: 45px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        margin-bottom: 22px;
        font-size: 43px;
        line-height: 1.25;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-message {
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        padding: 6px;
        border-radius: 16px;
    }

    .hero-image img {
        border-radius: 10px;
    }

    .hero-badge {
        right: -4px;
        bottom: -35px;
        width: 105px;
        height: 105px;
        border-width: 4px;
    }

    .hero-badge span {
        font-size: 12px;
    }

    .hero-badge strong {
        font-size: 17px;
    }


    /* ABOUT */

    .about-layout {
        gap: 35px;
    }

    .about-character::before {
        width: 220px;
        height: 220px;
    }

    .about-character img {
        max-width: 190px;
    }

    .about-content h2 {
        text-align: center;
        font-size: 30px;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.9;
    }


    /* 特徴 */

    .feature-list {
        gap: 16px;
    }

    .feature-item {
        padding: 30px 24px;
    }


    /* 授業内容 */

    .course-list {
        gap: 18px;
    }

    .course-content {
        padding: 24px 22px 27px;
    }


    /* 身につく力 */

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skill-card {
        padding: 26px 23px;
    }


    /* 対象 */

    .target-box {
        padding: 35px 23px;
        gap: 25px;
    }

    .target-character img {
        max-width: 155px;
    }

    .target-grade {
        font-size: 27px;
    }


    /* 料金 */

    .price-box {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .price-item {
        padding: 25px 20px;
    }


    /* 問い合わせ */

    .contact-box {
        padding: 35px 22px;
        gap: 25px;
        border-radius: 14px;
    }

    .contact-character {
        flex: none;
        width: 100%;
    }

    .contact-character img {
        max-width: 130px;
    }

    .contact-phone strong {
        font-size: 24px;
    }


    /* プライバシー */

    .privacy-box {
        padding: 30px 22px;
    }
}

/* ==================================================
   ヒーローをもう少し印象的に
================================================== */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 88% 16%,
            rgba(245, 207, 85, 0.34) 0,
            rgba(245, 207, 85, 0.34) 190px,
            transparent 191px
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffdf5 50%,
            #fff2c9 100%
        );
}

.hero-inner {
    width: 100%;
    max-width: 1180px;
    gap: 55px;
}

.hero-content {
    flex: 0 0 47%;
}

.hero-visual {
    flex: 0 0 53%;
    max-width: 560px;
}

.hero h1 {
    position: relative;
    margin-bottom: 28px;

    font-size: clamp(52px, 5.6vw, 76px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero h1 span {
    position: relative;
    display: inline-block;
    color: #0b7138;
}

.hero h1 span::after {
    content: "";
    position: absolute;
    z-index: -1;

    left: -6px;
    right: -6px;
    bottom: 5px;

    height: 16px;

    background: rgba(245, 207, 85, 0.55);
    border-radius: 4px;
}

.hero-text {
    font-size: 20px;
    font-weight: 700;
}

.hero-message {
    padding-left: 16px;
    border-left: 3px solid #0f6b3a;

    color: #4d544f;
}

.hero-image {
    transform: rotate(1.2deg);

    border: 1px solid #dedfd9;
    box-shadow:
        0 22px 55px rgba(22, 48, 31, 0.16),
        0 4px 12px rgba(22, 48, 31, 0.08);
}

.hero-image img {
    aspect-ratio: 4 / 3;
}

.hero-badge {
    width: 138px;
    height: 138px;

    right: -28px;
    bottom: -32px;

    box-shadow:
        0 14px 28px rgba(15, 107, 58, 0.25);
}

.hero-label {
    box-shadow: 0 4px 14px rgba(15, 107, 58, 0.08);
}

/* 左下に小さな装飾 */
.hero-content::after {
    content: "MINECRAFT × PROGRAMMING";

    display: block;
    margin-top: 30px;

    color: #78917f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}


/* スマホ */
@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 65px 20px 90px;
    }

    .hero-inner {
        gap: 42px;
    }

    .hero-content,
    .hero-visual {
        flex: none;
        width: 100%;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero h1 span::after {
        bottom: 3px;
        height: 11px;
    }

    .hero-message {
        display: inline-block;
        padding-left: 12px;
        text-align: left;
    }

    .hero-image {
        transform: rotate(0.6deg);
    }

    .hero-badge {
        width: 110px;
        height: 110px;
        right: -3px;
        bottom: -35px;
    }

    .hero-content::after {
        margin-top: 24px;
        font-size: 9px;
    }
}

/* ==================================================
   PC版：文字・画像を一回り大きく
================================================== */

@media (min-width: 769px) {

    /* サイト全体の表示幅 */
    .header-inner,
    .hero-inner,
    .section-inner {
        max-width: 1280px;
    }

    /* ヒーロー左側 */
    .hero-content {
        flex: 0 0 48%;
        max-width: 620px;
    }

    .hero-label {
        font-size: 15px;
        padding: 9px 18px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero h1 {
        font-size: clamp(62px, 5vw, 82px);
    }

    .hero-text {
        font-size: 22px;
    }

    .hero-message {
        font-size: 17px;
    }

    .button {
        padding: 16px 30px;
        font-size: 16px;
    }

    /* トップの画像 */
    .hero-visual {
        flex: 0 0 52%;
        max-width: 640px;
    }

    /* 各セクションのタイトル */
    .section h2 {
        font-size: 44px;
    }

    .section-label {
        font-size: 14px;
    }

    /* ABOUT */
    .about-character {
        flex-basis: 400px;
    }

    .about-character img {
        max-width: 310px;
    }

    .about-content {
        max-width: 650px;
    }

    .about-content p {
        font-size: 18px;
    }

    /* 教室の特徴 */
    .feature-image img {
        max-height: 165px;
    }

    .feature-item h3 {
        font-size: 24px;
    }

    .feature-item > p:last-child {
        font-size: 16px;
    }

    /* 授業内容 */
    .course-item h3 {
        font-size: 23px;
    }

    .course-item p {
        font-size: 16px;
    }

    /* 身につく力 */
    .skill-card h3 {
        font-size: 20px;
    }

    .skill-card p:last-child {
        font-size: 15px;
    }

    /* 対象学年のキャラクター */
    .target-character {
        flex-basis: 280px;
    }

    .target-character img {
        max-width: 240px;
    }

    .target-grade {
        font-size: 36px;
    }

    .target-list {
        font-size: 17px;
    }

    /* お問い合わせキャラクター */
    .contact-character {
        flex-basis: 230px;
    }

    .contact-character img {
        max-width: 210px;
    }
}
/* ==============================
   体験授業バッジを画像の外へ
============================== */

.hero-visual {
    position: relative;
    padding-bottom: 55px;
    padding-right: 55px;
}

.hero-badge {
    right: -10px;
    bottom: 0;

    width: 145px;
    height: 145px;

    background: #0f6b3a;
    border: 6px solid #ffffff;

    box-shadow:
        0 16px 32px rgba(15, 107, 58, 0.25);

    transform: rotate(-3deg);
    z-index: 5;
}

.hero-badge::before,
.hero-badge::after {
    content: "";
    position: absolute;

    width: 7px;
    height: 34px;

    background: #f5b916;
    border-radius: 10px;

    top: -47px;
}

.hero-badge::before {
    right: 36px;
    transform: rotate(26deg);
}

.hero-badge::after {
    right: 5px;
    top: -36px;
    transform: rotate(48deg);
}

.hero-badge span {
    font-size: 15px;
    font-weight: 700;
}

.hero-badge strong {
    margin-top: 3px;
    color: #ffd84d;
    font-size: 23px;
    font-weight: 900;
}


/* スマホ */
@media (max-width: 768px) {

    .hero-visual {
        padding-right: 20px;
        padding-bottom: 48px;
    }

    .hero-badge {
        right: -2px;
        bottom: 0;

        width: 108px;
        height: 108px;
        border-width: 4px;
    }

    .hero-badge span {
        font-size: 11px;
    }

    .hero-badge strong {
        font-size: 17px;
    }

    .hero-badge::before,
    .hero-badge::after {
        width: 5px;
        height: 24px;
        top: -33px;
    }

    .hero-badge::before {
        right: 27px;
    }

    .hero-badge::after {
        right: 4px;
        top: -26px;
    }
}
/* ==============================
   ヘッダーを少し強調
============================== */

@media (min-width: 769px) {

    .header-inner {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logo {
        font-size: 21px;
        font-weight: 900;
    }

    .nav ul li:last-child a {
        padding: 10px 18px;

        background: #0f6b3a;
        color: #ffffff;

        border-radius: 7px;
    }

    .nav ul li:last-child a::after {
        display: none;
    }

    .nav ul li:last-child a:hover {
        background: #094d2a;
        color: #ffffff;
    }
}

/* ==============================
   ヒーロー背景のブロック装飾
============================== */

.hero::before {
    content: "";
    display: block;

    position: absolute;
    z-index: 1;

    width: 24px;
    height: 24px;

    top: 120px;
    left: 47%;

    background: rgba(15, 107, 58, 0.13);

    box-shadow:
        32px -32px 0 rgba(15, 107, 58, 0.10),
        64px -64px 0 rgba(15, 107, 58, 0.07),
        -32px 32px 0 rgba(15, 107, 58, 0.07);
}

.hero::after {
    content: "";
    display: block;

    position: absolute;
    z-index: 1;

    width: 20px;
    height: 20px;

    right: 65px;
    bottom: 150px;

    background: rgba(15, 107, 58, 0.12);

    box-shadow:
        28px -28px 0 rgba(15, 107, 58, 0.09),
        56px -56px 0 rgba(15, 107, 58, 0.06);
}

.hero-inner {
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {

    .hero::before {
        top: 110px;
        left: auto;
        right: 25px;

        width: 18px;
        height: 18px;

        box-shadow:
            24px -24px 0 rgba(15, 107, 58, 0.08);
    }

    .hero::after {
        display: none;
    }
}

@media (max-width: 768px) {

    .hero::before {
        width: 16px;
        height: 16px;

        top: 100px;
        left: auto;
        right: 25px;

        box-shadow:
            22px -22px 0 rgba(15, 107, 58, 0.08);
    }

    .hero::after {
        display: none;
    }
}

/* ==============================
   メインCTAを強調
============================== */

.hero .button-main {
    position: relative;

    padding: 17px 54px 17px 28px;

    background: linear-gradient(
        135deg,
        #118447 0%,
        #087038 100%
    );

    border: 1px solid #087038;
    border-radius: 10px;

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(15, 107, 58, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* 右側の矢印 */
.hero .button-main::after {
    content: "→";

    position: absolute;
    top: 50%;
    right: 22px;

    font-size: 21px;
    font-weight: 700;

    transform: translateY(-52%);
    transition: transform 0.2s ease;
}


/* マウスを乗せたとき */
.hero .button-main:hover {
    background: linear-gradient(
        135deg,
        #0d793f 0%,
        #075e30 100%
    );

    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(15, 107, 58, 0.28);
}

.hero .button-main:hover::after {
    transform: translate(4px, -52%);
}


/* サブボタン */
.hero .button-sub {
    padding: 17px 28px;

    border: 1px solid #b8c5bc;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.8);
}


/* スマホ */
@media (max-width: 768px) {

    .hero .button-main,
    .hero .button-sub {
        width: 100%;
        max-width: 330px;
    }

    .hero .button-main {
        padding: 16px 50px 16px 22px;
        font-size: 15px;
    }

    .hero .button-main::after {
        right: 20px;
    }
}

/* ==============================
   ABOUTを印象的に
============================== */

.about-section {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdfb 100%
        );
}

.about-layout {
    align-items: center;
}

.about-character {
    position: relative;

    padding: 45px 35px;

    background: #fff9e8;
    border: 1px solid #eee4c8;
    border-radius: 24px;

    box-shadow:
        0 18px 45px rgba(22, 48, 31, 0.08);
}

.about-character::before {
    width: 250px;
    height: 250px;

    background: rgba(245, 207, 85, 0.25);
}

.about-character::after {
    content: "";

    position: absolute;
    top: 25px;
    right: 25px;

    width: 16px;
    height: 16px;

    background: rgba(15, 107, 58, 0.14);

    box-shadow:
        -24px 24px 0 rgba(15, 107, 58, 0.10),
        -48px 48px 0 rgba(15, 107, 58, 0.07);
}

.about-character img {
    position: relative;
    z-index: 2;

    max-width: 300px;
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    position: relative;

    margin-bottom: 35px;
}

.about-content h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 4px;

    margin-top: 22px;

    background: #f5cf55;
    border-radius: 999px;
}

.about-content p {
    color: #4d534e;
}

.about-content p:first-of-type {
    color: #303630;
    font-weight: 600;
}

@media (max-width: 768px) {

    .about-character {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .about-character img {
        max-width: 180px;
    }

    .about-content .section-label {
        text-align: center;
    }

    .about-content h2::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==============================
   教室の特徴を洗練
============================== */

#feature {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f7f9f7 0%,
            #f3f7f4 100%
        );
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-item {
    position: relative;
    overflow: hidden;

    padding: 34px 30px 32px;

    background: #ffffff;
    border: 1px solid #e1e8e3;
    border-radius: 16px;

    box-shadow:
        0 12px 30px rgba(20, 55, 34, 0.06);
}

.feature-item::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #0f6b3a;
}

.feature-image {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 170px;

    margin-bottom: 24px;
}

.feature-image img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
}

.feature-number {
    margin-bottom: 10px;

    color: #0f6b3a;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.feature-item h3 {
    margin-bottom: 14px;

    color: #202620;

    font-size: 24px;
    line-height: 1.5;
}

.feature-item > p:last-child {
    color: #606760;

    font-size: 15px;
    line-height: 1.9;
}

.feature-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 38px rgba(20, 55, 34, 0.10);
}


/* POINT番号を背景装飾にも使う */
.feature-item:nth-child(1)::after {
    content: "01";
}

.feature-item:nth-child(2)::after {
    content: "02";
}

.feature-item:nth-child(3)::after {
    content: "03";
}

.feature-item::after {
    position: absolute;
    top: 12px;
    right: 18px;

    color: rgba(15, 107, 58, 0.06);

    font-size: 70px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 768px) {

    .feature-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-item {
        padding: 28px 22px 26px;
    }

    .feature-image {
        height: 140px;
    }

    .feature-image img {
        max-height: 125px;
    }

    .feature-item h3 {
        font-size: 22px;
    }

    .feature-item::after {
        font-size: 55px;
    }
}

/* ==============================
   授業内容をステップ型に
============================== */

#course {
    position: relative;
    overflow: hidden;
}

.course-list {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* カードをつなぐライン */
.course-list::before {
    content: "";

    position: absolute;
    top: 52%;
    left: 12%;
    right: 12%;

    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(15, 107, 58, 0.15),
        rgba(15, 107, 58, 0.45),
        rgba(15, 107, 58, 0.15)
    );

    z-index: 0;
}

.course-item {
    position: relative;
    z-index: 1;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dfe7e1;
    border-radius: 18px;

    box-shadow:
        0 14px 34px rgba(20, 55, 34, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.course-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 42px rgba(20, 55, 34, 0.12);
}

.course-image {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.course-content {
    position: relative;

    padding: 34px 28px 32px;
}

/* STEP表示 */
.course-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 86px;
    height: 32px;

    margin-bottom: 18px;

    color: #ffffff;
    background: #0f6b3a;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.course-item h3 {
    margin-bottom: 14px;

    font-size: 24px;
    line-height: 1.5;
}

.course-item p {
    color: #606760;

    font-size: 15px;
    line-height: 1.9;
}

@media (max-width: 768px) {

    .course-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-list::before {
        display: none;
    }

    .course-item {
        border-radius: 15px;
    }

    .course-content {
        padding: 26px 22px 28px;
    }

    .course-number {
        margin-bottom: 14px;
    }

    .course-item h3 {
        font-size: 22px;
    }
}
/* STEPの文字を白に固定 */
.course-number {
    color: #ffffff !important;
    background-color: #0f6b3a;
    opacity: 1;
}

/* ==============================
   身につく力をブラッシュアップ
============================== */

#skill {
    position: relative;
    overflow: hidden;
}

/* 背景に薄い光 */
#skill::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    top: -280px;
    right: -150px;

    background: rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

#skill .section-inner {
    position: relative;
    z-index: 2;
}

.skill-grid {
    gap: 20px;
}

.skill-card {
    position: relative;
    overflow: hidden;

    min-height: 250px;
    padding: 34px 28px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);

    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 01〜04 */
.skill-number {
    margin-bottom: 25px;

    color: #f5cf55;

    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* 黄色い短いライン */
.skill-number::after {
    content: "";

    display: block;

    width: 30px;
    height: 3px;

    margin-top: 15px;

    background: #f5cf55;
    border-radius: 999px;
}

.skill-card h3 {
    margin-bottom: 15px;

    color: #ffffff;

    font-size: 21px;
    line-height: 1.5;
}

.skill-card p:last-child {
    color: rgba(255, 255, 255, 0.76);

    font-size: 15px;
    line-height: 1.9;
}

/* ==============================
   身につく力の背景を少し明るく
============================== */

#skill {
    background: linear-gradient(
        135deg,
        #176f43 0%,
        #21804f 100%
    );
}

/* ==============================
   対象学年セクション
============================== */

#target {
    background: linear-gradient(
        180deg,
        #fffdf7 0%,
        #fff8e8 100%
    );
}

.target-box {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;

    max-width: 1000px;
    margin: 0 auto;

    padding: 45px 55px;

    background: #ffffff;
    border: 1px solid #eee5cf;
    border-radius: 20px;

    box-shadow:
        0 16px 40px rgba(45, 55, 47, 0.07);
}

/* 右上のブロック装飾 */
.target-box::after {
    content: "";

    position: absolute;
    top: 22px;
    right: 25px;

    width: 16px;
    height: 16px;

    background: rgba(15, 107, 58, 0.12);

    box-shadow:
        -24px 24px 0 rgba(15, 107, 58, 0.08),
        -48px 48px 0 rgba(15, 107, 58, 0.05);
}

.target-character {
    position: relative;
    z-index: 2;
}

.target-character img {
    max-width: 250px;
}

.target-content {
    position: relative;
    z-index: 2;
}

.target-grade {
    margin-bottom: 22px;

    color: #0f6b3a;

    font-size: 38px;
    font-weight: 900;
    line-height: 1.4;
}

.target-grade::after {
    content: "";

    display: block;

    width: 55px;
    height: 4px;

    margin-top: 16px;

    background: #f5cf55;
    border-radius: 999px;
}

.target-list {
    color: #505650;

    font-size: 17px;
    line-height: 2;
}

@media (max-width: 768px) {

    .target-box {
        flex-direction: column;

        gap: 20px;

        padding: 32px 22px;

        text-align: center;
    }

    .target-character img {
        max-width: 170px;
    }

    .target-grade {
        font-size: 28px;
    }

    .target-grade::after {
        margin-left: auto;
        margin-right: auto;
    }

    .target-list {
        font-size: 15px;
        line-height: 1.9;
    }
}

/* ==============================
   授業時間・料金セクション
============================== */

#price {
    background: #ffffff;
}

/* 入会金0円 */
.admission-fee {
    max-width: 760px;
    margin: 0 auto 38px;

    padding: 24px 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    background: linear-gradient(
        135deg,
        #fff9e7 0%,
        #fff3c7 100%
    );

    border: 1px solid #f0dfaa;
    border-radius: 16px;
}

.admission-fee span {
    color: #565b56;

    font-size: 17px;
    font-weight: 700;
}

.admission-fee strong {
    color: #0f6b3a;

    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}


/* 通常料金カード */
.price-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;

    max-width: 980px;
    margin: 0 auto 30px;
}

.price-item {
    position: relative;

    padding: 32px 28px;

    background: #ffffff;

    border: 1px solid #dfe6e1;
    border-radius: 16px;

    box-shadow:
        0 12px 30px rgba(20, 55, 34, 0.06);

    text-align: center;
}

.price-item::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #0f6b3a;

    border-radius: 16px 16px 0 0;
}

.price-item h3 {
    margin-bottom: 20px;

    color: #252a25;

    font-size: 21px;
}

.price-main {
    margin-bottom: 12px;

    color: #515751;
}

.price-main strong {
    color: #0f6b3a;

    font-size: 38px;
    font-weight: 900;
}

.price-main small {
    font-size: 14px;
}


/* 塾生料金 */
.student-price {
    max-width: 980px;
    margin: 30px auto 0;

    padding: 30px;

    background: #eef7f1;

    border: 1px solid #cfe2d5;
    border-radius: 16px;

    text-align: center;
}

.student-price h3 {
    margin-bottom: 12px;

    color: #0f6b3a;

    font-size: 21px;
}

.student-price strong {
    color: #0f6b3a;

    font-size: 32px;
    font-weight: 900;
}


/* PCレンタル */
.rental-fee {
    max-width: 980px;
    margin: 24px auto 0;

    padding: 24px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f8f9f8;

    border: 1px solid #e2e6e3;
    border-radius: 14px;
}

.rental-fee strong {
    color: #0f6b3a;

    font-size: 25px;
}

.rental-note {
    color: #747974;
}

@media (max-width: 768px) {

    .admission-fee {
        flex-direction: column;
        gap: 8px;

        padding: 22px 18px;
    }

    .admission-fee strong {
        font-size: 36px;
    }

    .price-box {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .price-item {
        padding: 28px 20px;
    }

    .price-main strong {
        font-size: 32px;
    }

    .student-price {
        padding: 25px 18px;
    }

    .student-price strong {
        font-size: 28px;
    }

    .rental-fee {
        flex-direction: column;
        gap: 8px;

        padding: 22px 18px;

        text-align: center;
    }
}

/* ==============================
   FAQを見やすく
============================== */

#faq {
    background: #f8faf8;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 14px;

    background: #ffffff;

    border: 1px solid #dfe6e1;
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 24px rgba(20, 55, 34, 0.05);
}

.faq-item summary {
    position: relative;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 22px 60px 22px 22px;

    cursor: pointer;

    color: #2b302c;

    font-size: 16px;
    font-weight: 700;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Q */
.faq-q {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    background: #0f6b3a;
    color: #ffffff;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
}

/* 右側の＋ */
.faq-item summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 24px;

    color: #0f6b3a;

    font-size: 28px;
    font-weight: 400;

    transform: translateY(-52%);

    transition: transform 0.2s ease;
}

/* 開いたら×っぽく回転 */
.faq-item[open] summary::after {
    transform: translateY(-52%) rotate(45deg);
}

/* 開いたときの質問部分 */
.faq-item[open] summary {
    background: #f3f8f5;
}

/* 回答 */
.faq-answer {
    display: flex;
    gap: 16px;

    padding: 22px;

    border-top: 1px solid #e5ebe7;

    background: #ffffff;
}

/* A */
.faq-a {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    background: #f5cf55;
    color: #26432f;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
}

.faq-answer p {
    margin: 3px 0 0;

    color: #59605a;

    font-size: 15px;
    line-height: 1.9;
}

@media (max-width: 768px) {

    .faq-item summary {
        gap: 12px;

        padding: 18px 48px 18px 16px;

        font-size: 15px;
        line-height: 1.6;
    }

    .faq-q,
    .faq-a {
        width: 30px;
        height: 30px;

        font-size: 13px;
    }

    .faq-item summary::after {
        right: 17px;
        font-size: 25px;
    }

    .faq-answer {
        gap: 12px;

        padding: 18px 16px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* ==============================
   無料体験・お問い合わせCTA
============================== */

#contact {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(245, 207, 85, 0.35) 0,
            rgba(245, 207, 85, 0.35) 150px,
            transparent 151px
        ),
        linear-gradient(
            135deg,
            #0f6b3a 0%,
            #197b48 100%
        );
}

#contact .section-inner {
    position: relative;
    z-index: 2;
}

#contact .section-label,
#contact h2 {
    color: #ffffff;
}

#contact .section-label {
    opacity: 0.75;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 50px;

    max-width: 1050px;
    margin: 0 auto;

    padding: 48px 55px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.14);
}

.contact-character {
    flex-shrink: 0;
}

.contact-character img {
    max-width: 220px;
}

.contact-content {
    flex: 1;
}

.contact-lead {
    margin-bottom: 28px;

    color: #3c433e;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.9;
}

/* 電話・メールなど */
.contact-info {
    margin-bottom: 25px;
}

.contact-info a {
    color: #0f6b3a;
    font-weight: 800;
}

/* 体験ボタン */
#contact .button-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 17px 30px;

    background: #0f6b3a;
    color: #ffffff;

    border-radius: 10px;

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(15, 107, 58, 0.22);
}

#contact .button-main::after {
    content: "→";

    font-size: 20px;

    transition: transform 0.2s ease;
}

#contact .button-main:hover {
    background: #094d2a;
}

#contact .button-main:hover::after {
    transform: translateX(4px);
}

@media (max-width: 768px) {

    #contact {
        background:
            linear-gradient(
                135deg,
                #0f6b3a 0%,
                #197b48 100%
            );
    }

    .contact-box {
        flex-direction: column;

        gap: 20px;

        padding: 32px 22px;

        text-align: center;
    }

    .contact-character img {
        max-width: 160px;
    }

    .contact-lead {
        font-size: 15px;
    }

    #contact .button-main {
        width: 100%;
        max-width: 330px;

        font-size: 15px;
    }
}

/* お問い合わせの導入文を白文字に */
#contact .contact-lead {
    color: #ffffff !important;
}

/* ==============================
   アクセスセクション
============================== */

#access {
    background: #f7f9f7;
}

.access-box {
    max-width: 1050px;
    margin: 0 auto;

    padding: 40px;

    background: #ffffff;

    border: 1px solid #e1e7e2;
    border-radius: 18px;

    box-shadow:
        0 14px 38px rgba(20, 55, 34, 0.07);
}

/* 教室名 */
.access-box h3 {
    margin-bottom: 18px;

    color: #0f6b3a;

    font-size: 24px;
    font-weight: 800;
}

/* 住所など */
.access-info {
    margin-bottom: 28px;

    color: #303630;

    font-size: 16px;
    line-height: 2;
}

.access-info p {
    color: #303630;
}

/* Googleマップ */
.map {
    overflow: hidden;

    margin-top: 28px;

    border: 1px solid #dce3de;
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(20, 55, 34, 0.06);
}

.map iframe {
    display: block;

    width: 100%;
    height: 400px;

    border: 0;
}

@media (max-width: 768px) {

    .access-box {
        padding: 26px 18px;

        border-radius: 14px;
    }

    .access-box h3 {
        font-size: 21px;
    }

    .access-info {
        font-size: 14px;
        line-height: 1.9;
    }

    .map {
        margin-top: 22px;
        border-radius: 10px;
    }

    .map iframe {
        height: 300px;
    }
}

/* ==============================
   フッター
============================== */

footer {
    background: #0b4f2c;
    color: #ffffff;

    padding: 32px 20px;
}

footer .footer-inner {
    max-width: 1180px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

footer .footer-logo {
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

footer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {

    footer {
        padding: 28px 18px;
    }

    footer .footer-inner {
        flex-direction: column;

        gap: 12px;

        text-align: center;
    }

    footer .footer-logo {
        font-size: 16px;
    }

    footer p {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* ==============================
   授業内容の導入文
============================== */

.course-lead {
    max-width: 760px;
    margin: 0 auto 38px;

    padding: 18px 24px;

    background: #f2f8f4;
    border-left: 5px solid #0f6b3a;
    border-radius: 8px;

    color: #2f3831;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;

    text-align: left;
}

@media (max-width: 768px) {

    .course-lead {
        margin-bottom: 28px;

        padding: 15px 17px;

        font-size: 15px;
        line-height: 1.8;
    }
}

/* ==============================
   セクション見出しを統一
============================== */

.section-label {
    display: block;

    margin-bottom: 10px;

    color: #0f6b3a;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section h2 {
    position: relative;

    margin-bottom: 45px;

    color: #242724;

    font-weight: 900;
    letter-spacing: -0.02em;
}

/* 見出し下の黄色ライン */
.section h2::after {
    content: "";

    display: block;

    width: 46px;
    height: 4px;

    margin: 17px auto 0;

    background: #f5cf55;

    border-radius: 999px;
}

/* 緑背景セクション */
#skill .section-label,
#skill h2,
#contact .section-label,
#contact h2 {
    color: #ffffff;
}

#skill h2::after,
#contact h2::after {
    background: #f5cf55;
}

/* ==============================
   ページ全体の余白を最終調整
============================== */

/* 各セクションの基本余白 */
.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* 見出しと中身の距離 */
.section h2 {
    margin-bottom: 48px;
}

/* セクション内の最大幅を統一 */
.section-inner {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-inner {
        width: calc(100% - 32px);
    }

    .section h2 {
        margin-bottom: 32px;
    }
}

#about h2 {
    margin-bottom: 35px;
}

/* ==============================
   スマホ版ヒーロー最終調整
============================== */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .hero-inner {
        gap: 35px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-label {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .hero-subtitle {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .hero h1 {
        margin-bottom: 22px;

        font-size: 42px;
        line-height: 1.2;
        letter-spacing: -0.035em;
    }

    .hero h1 span::after {
        bottom: 3px;
        height: 10px;
    }

    .hero-text {
        font-size: 17px;
        line-height: 1.8;
    }

    .hero-message {
        margin-top: 20px;

        padding-left: 13px;

        font-size: 14px;
        line-height: 1.8;
    }

    .hero-buttons {
        margin-top: 26px;
        gap: 12px;
    }

    .hero-visual {
        width: 100%;
        max-width: 420px;

        margin: 0 auto;

        padding-right: 14px;
        padding-bottom: 45px;
    }

    .hero-image {
        transform: rotate(0.7deg);
    }

    .hero-content::after {
        margin-top: 24px;

        font-size: 9px;
        letter-spacing: 0.15em;
    }
}

/* ==============================
   スマホ版 料金セクション最終調整
============================== */

@media (max-width: 768px) {

    /* 入会金 */
    .admission-fee {
        margin-bottom: 28px;
        padding: 20px 16px;
    }

    .admission-fee span {
        font-size: 15px;
    }

    .admission-fee strong {
        font-size: 36px;
    }


    /* 月謝カード */
    .price-box {
        gap: 14px;
    }

    .price-item {
        padding: 26px 18px;
    }

    .price-item h3 {
        margin-bottom: 15px;

        font-size: 18px;
        line-height: 1.5;
    }

    .price-main {
        margin-bottom: 8px;
    }

    .price-main strong {
        display: inline-block;

        color: #0f6b3a;

        font-size: 34px;
        line-height: 1.2;
    }

    .price-main small {
        font-size: 12px;
    }


    /* 関塾生料金 */
    .student-price {
        margin-top: 22px;
        padding: 24px 18px;
    }

    .student-price h3 {
        font-size: 18px;
    }

    .student-price strong {
        font-size: 30px;
    }


    /* PCレンタル */
    .rental-fee {
        margin-top: 18px;

        padding: 22px 16px;
    }

    .rental-fee strong {
        font-size: 23px;
    }

    .rental-note {
        margin-top: 4px;

        font-size: 12px;
        line-height: 1.7;
    }
}

/* ==============================
   スマホ版ヘッダー調整
============================== */

@media (max-width: 768px) {

    .header-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo {
        font-size: 16px;
        line-height: 1.4;
    }

    .nav ul {
        gap: 10px;
    }

    .nav a {
        font-size: 13px;
    }

    .nav ul li:last-child a {
        padding: 8px 12px;

        background: #0f6b3a;
        color: #ffffff;

        border-radius: 7px;
    }
}

/* ==============================
   スマホ版 授業内容カード調整
============================== */

@media (max-width: 768px) {

    .course-list {
        gap: 18px;
    }

    .course-item {
        overflow: hidden;

        border: 1px solid #dfe7e1;
        border-radius: 14px;

        box-shadow:
            0 10px 26px rgba(20, 55, 34, 0.06);
    }

    .course-image {
        aspect-ratio: 16 / 9;
    }

    .course-content {
        padding: 22px 18px 24px;
    }

    .course-number {
        min-width: 82px;
        height: 30px;

        margin-bottom: 14px;

        color: #ffffff !important;
        background: #0f6b3a;

        font-size: 12px;
        font-weight: 800;
    }

    .course-item h3 {
        margin-bottom: 10px;

        font-size: 20px;
        line-height: 1.5;
    }

    .course-item p {
        font-size: 14px;
        line-height: 1.8;
    }

    .course-lead {
        margin-bottom: 24px;
    }
}

/* ==================================================
   スマホ版 全体最終調整
   ================================================== */

@media (max-width: 768px) {

    /* --------------------------------
       全体
    -------------------------------- */

    body {
        overflow-x: hidden;
    }

    .section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .section-inner {
        width: calc(100% - 32px);
    }

    .section-label {
        margin-bottom: 8px;

        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .section h2 {
        margin-bottom: 30px;

        font-size: 29px;
        line-height: 1.35;
    }

    .section h2::after {
        width: 42px;
        height: 4px;

        margin-top: 13px;
    }


    /* --------------------------------
       ヘッダー
    -------------------------------- */

    .header-inner {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .logo {
        font-size: 15px;
        line-height: 1.4;
    }

    .nav ul {
        gap: 8px;
    }

    .nav a {
        font-size: 12px;
    }

    .nav ul li:last-child a {
        padding: 7px 10px;

        background: #0f6b3a;
        color: #ffffff;

        border-radius: 7px;
    }


    /* --------------------------------
       ヒーロー
    -------------------------------- */

    .hero {
        min-height: auto;

        padding-top: 42px;
        padding-bottom: 55px;
    }

    .hero-inner {
        gap: 32px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-label {
        margin-bottom: 13px;

        font-size: 12px;
    }

    .hero-subtitle {
        margin-bottom: 10px;

        font-size: 14px;
    }

    .hero h1 {
        margin-bottom: 20px;

        font-size: 40px;
        line-height: 1.2;

        letter-spacing: -0.035em;
    }

    .hero h1 span::after {
        bottom: 3px;

        height: 10px;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-message {
        margin-top: 19px;

        padding-left: 12px;

        font-size: 14px;
        line-height: 1.8;
    }

    .hero-buttons {
        margin-top: 24px;

        gap: 11px;
    }

    .hero .button-main,
    .hero .button-sub {
        width: 100%;
        max-width: 330px;
    }

    .hero .button-main {
        padding: 16px 50px 16px 22px;

        font-size: 15px;
    }

    .hero-visual {
        width: 100%;
        max-width: 420px;

        margin: 0 auto;

        padding-right: 14px;
        padding-bottom: 45px;
    }

    .hero-image {
        transform: rotate(0.7deg);
    }

    .hero-badge {
        right: -2px;
        bottom: 0;

        width: 108px;
        height: 108px;
    }

    .hero-content::after {
        margin-top: 22px;

        font-size: 9px;
        letter-spacing: 0.15em;
    }


    /* --------------------------------
       ABOUT
    -------------------------------- */

    .about-layout {
        gap: 28px;
    }

    .about-character {
        padding: 28px 20px;

        border-radius: 18px;
    }

    .about-character img {
        max-width: 180px;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-label {
        text-align: center;
    }

    #about h2 {
        margin-bottom: 25px;
    }

    .about-content h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.9;
    }


    /* --------------------------------
       教室の特徴
    -------------------------------- */

    .feature-list {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .feature-item {
        padding: 26px 20px 25px;

        border-radius: 14px;
    }

    .feature-image {
        height: 135px;

        margin-bottom: 18px;
    }

    .feature-image img {
        max-height: 120px;
    }

    .feature-number {
        margin-bottom: 8px;

        font-size: 11px;
    }

    .feature-item h3 {
        margin-bottom: 10px;

        font-size: 20px;
    }

    .feature-item > p:last-child {
        font-size: 14px;
        line-height: 1.8;
    }

    .feature-item::after {
        font-size: 52px;
    }


    /* --------------------------------
       授業内容
    -------------------------------- */

    .course-lead {
        margin-bottom: 25px;

        padding: 15px 17px;

        font-size: 15px;
        line-height: 1.8;
    }

    .course-list {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .course-list::before {
        display: none;
    }

    .course-item {
        border-radius: 14px;
    }

    .course-image {
        aspect-ratio: 16 / 9;
    }

    .course-content {
        padding: 22px 18px 24px;
    }

    .course-number {
        min-width: 82px;
        height: 30px;

        margin-bottom: 13px;

        color: #ffffff !important;
        background: #0f6b3a;

        font-size: 12px;
    }

    .course-item h3 {
        margin-bottom: 10px;

        font-size: 20px;
    }

    .course-item p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* --------------------------------
       プログラミングで身につく力
    -------------------------------- */

    #skill {
        background: linear-gradient(
            135deg,
            #176f43 0%,
            #21804f 100%
        );
    }

    #skill .section-label,
    #skill h2 {
        color: #ffffff;
    }

    .skill-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .skill-card {
        min-height: auto;

        padding: 24px 22px;

        border-radius: 13px;
    }

    .skill-number {
        margin-bottom: 14px;

        font-size: 32px;
    }

    .skill-number::after {
        width: 26px;

        margin-top: 9px;
    }

    .skill-card h3 {
        margin-bottom: 8px;

        font-size: 19px;
    }

    .skill-card p:last-child {
        font-size: 14px;
        line-height: 1.75;
    }


    /* --------------------------------
       対象学年
    -------------------------------- */

    .target-box {
        flex-direction: column;

        gap: 18px;

        padding: 30px 20px;

        text-align: center;

        border-radius: 16px;
    }

    .target-character img {
        max-width: 165px;
    }

    .target-grade {
        margin-bottom: 17px;

        font-size: 27px;
    }

    .target-grade::after {
        margin-top: 11px;
        margin-left: auto;
        margin-right: auto;
    }

    .target-list {
        font-size: 15px;
        line-height: 1.9;
    }


    /* --------------------------------
       料金
    -------------------------------- */

    .price-lead {
        margin-bottom: 25px;
    }

    .admission-fee {
        flex-direction: column;

        gap: 7px;

        margin-bottom: 27px;

        padding: 20px 16px;
    }

    .admission-fee span {
        font-size: 15px;
    }

    .admission-fee strong {
        font-size: 36px;
    }

    .price-box {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .price-item {
        padding: 25px 18px;

        border-radius: 14px;
    }

    .price-item h3 {
        margin-bottom: 14px;

        font-size: 18px;
    }

    .price-main strong {
        font-size: 34px;
    }

    .price-main small {
        font-size: 12px;
    }

    .student-price {
        margin-top: 21px;

        padding: 23px 17px;

        border-radius: 14px;
    }

    .student-price h3 {
        font-size: 18px;
    }

    .student-price strong {
        font-size: 29px;
    }

    .rental-fee {
        flex-direction: column;

        gap: 8px;

        margin-top: 17px;

        padding: 21px 16px;

        text-align: center;
    }

    .rental-fee strong {
        font-size: 22px;
    }

    .rental-note {
        white-space: normal;

        font-size: 12px;
        line-height: 1.7;
    }


    /* --------------------------------
       FAQ
    -------------------------------- */

    .faq-list {
        width: 100%;
    }

    .faq-item {
        margin-bottom: 11px;

        border-radius: 12px;
    }

    .faq-item summary {
        gap: 11px;

        padding: 17px 46px 17px 15px;

        font-size: 14px;
        line-height: 1.6;
    }

    .faq-q,
    .faq-a {
        width: 30px;
        height: 30px;

        font-size: 13px;
    }

    .faq-item summary::after {
        right: 16px;

        font-size: 24px;
    }

    .faq-answer {
        gap: 11px;

        padding: 17px 15px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* --------------------------------
       無料体験・お問い合わせ
    -------------------------------- */

    #contact {
        background: linear-gradient(
            135deg,
            #0f6b3a 0%,
            #197b48 100%
        );
    }

    #contact .section-label,
    #contact h2 {
        color: #ffffff;
    }

    .contact-box {
        flex-direction: column;

        gap: 18px;

        padding: 29px 20px;

        border-radius: 16px;

        text-align: center;
    }

    .contact-character img {
        max-width: 150px;
    }

    #contact .contact-lead {
        margin-bottom: 22px;

        color: #ffffff !important;

        font-size: 15px;
        line-height: 1.8;
    }

    #contact .contact-content p:not(.contact-lead) {
        font-size: 14px;
    }

    #contact .button-main {
        width: 100%;
        max-width: 330px;

        padding: 16px 22px;

        color: #ffffff !important;

        font-size: 15px;
    }


    /* --------------------------------
       アクセス
    -------------------------------- */

    .access-box {
        padding: 24px 17px;

        border-radius: 14px;
    }

    .access-box h3 {
        margin-bottom: 14px;

        font-size: 20px;
    }

    .access-info {
        margin-bottom: 20px;

        font-size: 14px;
        line-height: 1.85;
    }

    .map {
        margin-top: 20px;

        border-radius: 10px;
    }

    .map iframe {
        height: 290px;
    }


    /* --------------------------------
       プライバシーポリシー
    -------------------------------- */

    #privacy {
        font-size: 14px;
        line-height: 1.85;
    }


    /* --------------------------------
       フッター
    -------------------------------- */

    footer {
        padding: 27px 18px;
    }

    footer .footer-inner {
        flex-direction: column;

        gap: 11px;

        text-align: center;
    }

    footer .footer-logo {
        font-size: 16px;
    }

    footer p {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* ==================================================
   PC版 文字サイズを全体的に大きく
================================================== */

@media (min-width: 769px) {

    /* 基本文字 */
    body {
        font-size: 17px;
    }


    /* =========================
       ヘッダー
    ========================= */

    .logo {
        font-size: 23px;
    }

    .nav a {
        font-size: 16px;
    }


    /* =========================
       各セクション共通
    ========================= */

    .section-label {
        font-size: 15px;
    }

    .section h2 {
        font-size: 48px;
        line-height: 1.3;
    }


    /* =========================
       トップ
    ========================= */

    .hero-label {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero h1 {
        font-size: clamp(68px, 5.3vw, 88px);
    }

    .hero-text {
        font-size: 23px;
        line-height: 1.7;
    }

    .hero-message {
        font-size: 18px;
        line-height: 1.8;
    }

    .hero .button {
        font-size: 17px;
    }


    /* =========================
       ABOUT
    ========================= */

    .about-content p {
        font-size: 19px;
        line-height: 2;
    }


    /* =========================
       教室の特徴
    ========================= */

    .feature-number {
        font-size: 14px;
    }

    .feature-item h3 {
        font-size: 26px;
    }

    .feature-item > p:last-child {
        font-size: 17px;
        line-height: 1.9;
    }


    /* =========================
       授業内容
    ========================= */

    .course-lead {
        max-width: 850px;

        font-size: 19px;
        line-height: 1.9;
    }

    .course-number {
        font-size: 14px;
    }

    .course-item h3 {
        font-size: 26px;
    }

    .course-item p {
        font-size: 17px;
        line-height: 1.9;
    }


    /* =========================
       身につく力
    ========================= */

    .skill-number {
        font-size: 46px;
    }

    .skill-card h3 {
        font-size: 23px;
    }

    .skill-card p:last-child {
        font-size: 17px;
        line-height: 1.85;
    }


    /* =========================
       対象学年
    ========================= */

    .target-grade {
        font-size: 40px;
    }

    .target-list {
        font-size: 19px;
        line-height: 2;
    }


    /* =========================
       料金
    ========================= */

    .price-lead {
        font-size: 18px;
    }

    .admission-fee span {
        font-size: 19px;
    }

    .admission-fee strong {
        font-size: 46px;
    }

    .price-item h3 {
        font-size: 23px;
    }

    .price-main {
        font-size: 18px;
    }

    .price-main strong {
        font-size: 42px;
    }

    .price-main small {
        font-size: 15px;
    }

    .student-price h3 {
        font-size: 23px;
    }

    .student-price {
        font-size: 17px;
    }

    .student-price strong {
        font-size: 36px;
    }

    .rental-fee {
        font-size: 17px;
    }

    .rental-fee strong {
        font-size: 28px;
    }

    .rental-note {
        font-size: 14px;
    }


    /* =========================
       FAQ
    ========================= */

    .faq-item summary {
        font-size: 18px;
    }

    .faq-q,
    .faq-a {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 17px;
        line-height: 1.9;
    }


    /* =========================
       無料体験・お問い合わせ
    ========================= */

    #contact .contact-lead {
        font-size: 19px;
        line-height: 1.9;
    }

    #contact .contact-content p {
        font-size: 17px;
        line-height: 1.9;
    }

    #contact .button-main {
        font-size: 17px;
    }


    /* =========================
       アクセス
    ========================= */

    .access-box h3 {
        font-size: 27px;
    }

    .access-info,
    .access-info p {
        font-size: 18px;
        line-height: 2;
    }


    /* =========================
       プライバシーポリシー
    ========================= */

    #privacy {
        font-size: 16px;
        line-height: 1.9;
    }


    /* =========================
       フッター
    ========================= */

    footer .footer-logo {
        font-size: 20px;
    }

    footer p {
        font-size: 14px;
    }
}