body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fdfdfd;
}

/* layout */
.wrapper {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-top: 100px;
}

section:last-child {
    margin-bottom: 100px;
}

/* hero section */
.hero {
    background: linear-gradient(to bottom right, rgba(0, 122, 204, 0.8), rgba(0, 204, 204, 0.6)),
        url('img/hero_main.png') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: 1.5px;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.cta .btn {
    font-size: 1.1rem;
    padding: 14px 32px;
    margin: 10px;
    transition: all 0.4s ease;
}

.cta .btn.primary:hover {
    background: linear-gradient(270deg, #00cccc, #007acc);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    transform: scale(1.1);
}

@keyframes bgfade {
    from {
        background-size: 100%;
    }

    to {
        background-size: 110%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    background-color: rgba(0, 122, 204, 0.9);
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
    backdrop-filter: blur(5px);
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* 以前は20px → 間隔拡大 */
    padding: 10px 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    /* レスポンシブ対応 */
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    /* 通常：16px → 約17.6pxにUP */
    font-weight: 600;
    padding: 8px 12px;
    transition: color .3s ease, background-color .3s ease;
    border-radius: 6px;
}

.navbar a:hover {
    color: #ffe066;
}

.menu-toggle {
    display: none;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px;
    cursor: pointer;
    background-color: #007acc;
    width: 100%;
}

/* movie */
.movie {
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
    text-align: center;
    margin-top: 80px;
}

.movie iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* セクション名 */
.section-title {
    width: fit-content;
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 40px;
    padding: 8px 12px;
    color: #222;
    border-bottom: 6px solid;
    /* border-image-slice: 1; */
    border-image: linear-gradient(90deg, #00cccc, #007acc) 1;
}

.section-title span.en {
    position: absolute;
    top: -1rem;
    left: 0;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #007acc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
}

.company-table th,
.company-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    background-color: #007acc;
    color: #fff;
    width: 30%;
    white-space: nowrap;
}

.company-table td {
    background-color: #f9f9f9;
    color: #333;
}

.company-table tr:nth-child(even) td {
    background-color: #f0f8ff;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 2%;
    margin: 0 auto;
}

/* カードデザイン */
.card {
    flex: 1 1 calc(20% - 30px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
}

.card p {
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #007acc;
    letter-spacing: 1px;
    text-transform: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    padding-top: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover p {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/* 共通ボックスデザイン */
.info-box {
    background-color: #ffffff;

    border-left: 6px solid #00cccc;
    padding: 24px;
    margin-bottom: 30px;
    /* border-radius: 10px; */
    box-shadow: 0 4px 10px rgba(0, 122, 204, 0.1);
}

.info-box h3 {
    font-size: 1.4rem;
    color: #007acc;
    margin-bottom: 12px;
}

.info-box p,
.info-box li {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* 新しい特徴セクション内の文章ブロック */
.feature-message {
    margin: 40px auto;
    max-width: 1200px;
    padding: 24px 24px 80px 24px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.08);
    border-radius: 12px;
}

/* メイン見出し */
.feature-message h3 {
    font-size: 1.8rem;
    color: #007acc;
    line-height: 1.5;
    font-weight: 800;
    border-bottom: 3px solid #00cccc;
    padding: 0 1rem 6px 1rem;
    padding-bottom: 6px;

}

/* 各小見出し */
.feature-message h4 {
    font-size: 1.375rem;
    color: #00cccc;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
    margin:4rem 0 0 0;
    padding: 0;
    line-height: 1.5;
    font-weight: 700;
    position: relative;
}

/* 段落テキスト */
.feature-message p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    padding: 0 18px;
    margin: 0 auto;
}

.feature-message_contents {
    max-width: 960px;
    margin: 0 auto;
}


.feature-message_contents p {
    margin-top: 1rem;
}

/* サポートセクション調整 */
.support-section {
    padding: 40px 20px;
    margin-top: 80px;
}

.support-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.support-overview p {
    line-height: 1.7;
    color: #333;
    max-width: 800px;
}

.support-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.support-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 122, 204, 0.08);
    padding: 24px;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
}

.support-item h3 {
    font-size: 1.3rem;
    color: #007acc;
    margin-top: 12px;
}

.support-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.support-item img.icon {
    width: 80px;
    height: auto;
    margin-bottom: 12px;
}

.curriculum-list {
    /* background-color: #aaecec; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    /* PCでは3列固定 */
    gap: 30px;
    padding: 20px 20px;
    /* 上下左右に余白を設定 */
    list-style: none;
    margin: 0;
}

@media (max-width: 1024px) {
    .curriculum-list {
        grid-template-columns: repeat(2, 1fr);
        /* タブレットでは2列 */
    }
}

@media (max-width: 640px) {
    .curriculum-list {
        grid-template-columns: 1fr;
        /* スマホでは1列 */
    }
}

.curriculum-list li {
    display: flex;
}

.curriculum-list a {
    display: block;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #00cccc;
    border-left: 6px solid #00cccc;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.08);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.curriculum-list a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 122, 204, 0.15);
}

.curriculum-list h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #007acc;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.pdf_link {
    /* text-decoration: underline; */
}

.curriculum-heading {
    font-size: 1.5rem;
    padding: 0 2%;
}

.curriculum-list p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.curriculum-list p small {
    display: block;
    margin-bottom: 8px;
}

.tuition-box-inside {
    background-color: #f9f9f9;
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 122, 204, 0.06);
    text-align: center;
}

.tuition-box-inside .highlight {
    font-size: 1.4rem;
    color: #cc0000;
}

.tuition-box-inside .note {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
}

/* subsidy section */
/* サポートのimgにも使用 */
.flow_img {
    display: block;
    width: 96%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
} 

.ex-img {
    display: block;
    width: 80%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
}

.subsidy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
}

.subsidy-table th,
.subsidy-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.subsidy-table th {
    background-color: #f0f8ff;
    font-weight: bold;
    color: #007acc;
}

.subsidy-table tr:last-child th {
    background-color: #e6f9f9;
    color: #007acc;
    font-weight: bold;
    text-align: center;
}

.bold-text {
    font-weight: bold;
}

.red-text {
    color: red;
}

/* ボタン */
.btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn.primary {
    background: linear-gradient(to right, #007acc, #00cccc);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.5);
}

.btn.secondary {
    background: white;
    color: #007acc;
    border: 2px solid #007acc;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* コンタクト */

.contact-cta {
    text-align: center;
    margin: 150px auto;
}

.big-btn {
    font-size: 1.4rem;
    padding: 20px 48px;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 122, 204, 0.3);
}

.big-btn .material-icons {
    font-size: 1.6rem;
}

/* フッター */
footer {
    background: #007acc;
    color: white;
    padding: 20px 0;
    text-align: center;
}


/*  */
.scroll-anime {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.scroll-anime.active {
    opacity: 1;
    transform: translateY(0);
}

/* TOPボタン */
#top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007acc, #00cccc);
    color: #fff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

#top-btn.visible {
    opacity: 1;
    transform: scale(1);
}

#top-btn:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .cta .btn {
        font-size: 1rem;
        padding: 12px 28px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 80%;
    }

    .hero {
        height: auto;
        padding: 80px 20px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        text-align: center;
        animation: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cta .btn {
        width: 80%;
        max-width: 300px;
        padding: 12px 20px;
    }

    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 0;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        font-size: 1rem;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        background-color: #007acc;
        position: absolute;
        width: 100%;
        top: 30px;
        left: 0;
        gap: 15px;
        padding: 20px 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        transform: translateX(100%);
        opacity: 0;
    }
    
    .navbar ul.active {
        display: flex;
        transform: translateX(0);
            opacity: 1;
        }
    
    .navbar a {
        font-size: .75rem;
        padding: 10px 14px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }

    .section-title span.en {
        top: -.7rem;
        font-size: .7rem;
    }

    .grid {
        gap: 12px;
    }

    .card {
        flex: 1 1 calc(46% - 20px);
        /* 常に2列 */
        max-width: calc(46% - 20px);
        background: white;
        border-radius: 15px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 12px;
        transition: transform 0.4s ease;
    }

    .company-table {
        width: 90%;
    }

    .company-table th,
    .company-table td {
        display: block;
        padding: 8px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .company-table th {
        background-color: #007acc;
        color: #fff;
        border-top: 1px solid #e0e0e0;
    }

    .company-table td {
        background-color: #f9f9f9;
        padding: 12px 20px;
    }

}