/* ===================================
   リセット & 基本設定
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    /* 1rem = 10px */
}

body {
    font-family: '游ゴシック体', 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    color: #002D54;
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 1.6rem;
    /* 16px */
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.sp {
    display: none;
}

/* ===================================
   アニメーション定義
   =================================== */
/* フェードイン（初期表示用） */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* スクロール時のふわっとフェードイン */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   ボタンスタイル
   =================================== */
.btn {
    display: inline-block;
    padding: 1.5rem 6rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* 左から右への色変化アニメーション */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* プライマリーボタン（黄色） */
.btn-primary {
    background-color: #FFE566;
    color: #002D54;
    padding: 3rem 7rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
}

.btn-primary::before {
    background-color: #ffd700;
}


/* ヘッダーボタン */
.btn-header {
    background-color: #FFE566;
    color: #002D54;
    height: 14rem;
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header::before {
    background-color: #ffd700;
}

/* コンタクトボタン */
.btn-contact {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin: 1rem 0;
}

.btn-contact::before {
    background-color: rgba(255, 255, 255, 0.2);
}


/* ===================================
   ヘッダー
   =================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    font-size: 2.4rem;
    font-weight: bold;
    color: #002D54;
    margin-left: 3rem;
    margin-top: 30px;
}

.wrapper-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem;

}

.nav-list {
    display: flex;
    gap: 4rem;
    margin-top: 40px;
}

.nav-list a {
    transition: color 0.3s ease;
    font-weight: bold;
    text-align: center;
}

.nav-list a:hover {
    color: #005AAA;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: #002D54;
    transition: all 0.3s ease;
}

/* ハンバーガーメニューが開いているときのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.7rem, 0.7rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* ===================================
   メインビジュアル
   =================================== */
.hero {
    background: #005AAA;
    color: #ffffff;
    position: relative;
    background-image: url('img/bg-mainvisual.png');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 24rem auto, 24rem auto;
    /* サイズ調整 */
    display: flex;
    justify-content: flex-end;
    height: 660px;
}

.hero .container {
    position: relative;
    height: 660px;
    max-width: 1200px;

}

.wrapper-hero-content {
    /* 
    border: 1px solid red; */
    width: 95%;
}

.hero-content {
    flex: 1;
    position: relative;
    top: 100px;
    z-index: 100;
}

.hero-title {
    font-size: 9rem;
    font-weight: bold;
    line-height: 1.1;
}

.hero-title-large {
    font-size: 9rem;

    display: inline-block;
    background-color: #005AAA;
    padding: 1rem;
}

.pale-blue {
    color: #A8DBF4;
}

.hero-text {
    font-size: 2.4rem;
    line-height: 1.6;
    margin: 1.4rem 0 2.6rem;
    display: inline-block;
    background-color: #005AAA;
    padding: 1rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
}

.hero-image {
    width: 65%;
    position: absolute;
    top: 3rem;
    right: 0;
    max-height: 660px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
}

/* ===================================
   検定について
   =================================== */
.about {
    padding: 10rem 0;
    background-color: #ffffff;
}

.wrapper-about {
    display: flex;
    justify-content: space-between;
}

.box-about-img {
    width: 60%;
}

.box-about-img img {
    width: 100%;
}


.box-about-txt {
    padding: 4rem;
}

.wrapper-box-about-txt {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 4rem;
    font-weight: bold;
    color: #005AAA;
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    max-width: 500px;
    margin: 0 auto 6rem;
}

.cards-wrapper {
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 4rem;
    position: relative;
    top: -120px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.card {
    padding-right: 4rem;
    text-align: center;
    border-right: 1px solid #ccc;
}

.card:nth-child(3) {
    padding-right: 0;
    border-right: none;
}

.card-icon {
    margin-bottom: 2rem;
}

.card-icon img {
    margin: 0 auto;
    width: 40%
}

.card-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #005AAA;
    margin-bottom: 1.5rem;
}

/* ===================================
   検定レベル
   =================================== */
.levels {
    padding: 10rem 0;
    background-image: url("img/bg-level.png");
    background-size: cover;
    margin-top: -250px;
}

.levels .container {
    max-width: 1200px;
    padding-top: 5rem;
}

.wrapper-level-txt {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    margin-bottom: 3rem;
}

.section-lead {
    text-align: center;
    font-weight: bold;
    padding-bottom: 2rem;
}

.box-level {
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;

}

.hd-box-level {
    display: inline-block;
    background-color: #002D54;
    color: #FFF;
    border: 1px solid #002D54;
    padding: 1rem 3rem;
    font-weight: bold;
}

.hd-box-level-txt {
    display: inline-block;
    border: 1px solid #002D54;
    padding: 1rem 3rem;
    font-weight: bold;
}



.section-sublead {
    text-align: center;
    font-weight: bold;

}

.level-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.level-card.beginner {
    background-color: #DDEAF5;
}

.level-card.standard {
    background-color: #A8DBF4;
}

.level-card.advanced {
    background-color: #005AAA;
}

.advanced .level-title {
    color: #fff;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;

}

.advanced .level-subtitle {
    color: #fff;
}

.advanced .price-amount,
.advanced .price-level {
    color: #fff;
}

.level-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
}

.level-card-featured {
    color: #ffffff;
}

.box-contents {
    padding: 0 2rem 2rem 2rem;
}

.hd-list {
    display: inline-block;
    position: relative;
    top: -17px;
    left: 50%;
    /* 左端から50% */
    transform: translateX(-50%);
    /* 自分の幅の半分左へ */
    background-color: #fff;
    color: #005AAA;
    font-weight: bold;
    padding: 0 2rem;
    border: 2px solid #005AAA;
    border-radius: 10rem;
    text-align: center;

}

.level-hd-txt {
    color: #005AAA;
    font-weight: bold;
    margin: 0 0 1rem;
}

.level-badge {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    position: relative;
    top: -50px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: -50px;
}

.level-badge-featured {
    color: #fff;
}

.level-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #005AAA;
    margin-bottom: 1rem;
    text-align: center;
    border-top: 1px solid #005AAA;
    border-bottom: 1px solid #005AAA;
    padding: 1rem 0;
}


.level-card-featured .level-title {
    color: #ffffff;
}

.level-subtitle {
    color: #005AAA;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.level-card-featured .level-subtitle {
    color: #ffffff;
}


.level-contents {
    position: relative;
    background-color: #fff;
    padding: 0 3rem 2rem;
}

.level-card-featured .level-features li::before {
    color: #FFE566;
}

.level-details {
    width: 100%;
    border-collapse: collapse;
}

.level-details th,
.level-details td {
    padding: 1.2rem 0;
    text-align: left;
    border-top: 1px solid #ccc;
}

.level-details td {
    text-align: right;
}

.level-card-featured .level-details th,
.level-card-featured .level-details td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.level-details th {
    font-weight: normal
}

.level-card-featured .level-details th {
    font-weight: 100;
    color: #ffffff;
}


.level-price {
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}




.price-label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
}

.level-card-featured .price-label {
    color: #ffffff;
}


.advanced .price-label {
    color: #fff;
}

.price-amount {
    font-size: 4.2rem;
    font-weight: bold;
    color: #005AAA;
}

.level-card-featured .price-amount {
    color: #FFE566;
}

.price-unit {
    font-size: 2rem;
}

/* ===================================
   歯科技工士は『デジタル医療の担い手』へ
   =================================== */
.dentist-info {
    padding: 10rem 0;
    background-image:
        url('img/bg-ninaite01.png'),
        url('img/bg-ninaite02.png');
    background-position:
        left top,
        right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 20rem auto, 20rem auto;
    /* サイズ調整 */
}

.dentist-info .container {
    width: 1200px;
}

.section-title.ninaite {
    font-size: 4rem;
    color: #000;
    margin-bottom: 3rem;
}

.highlight {
    color: #005AAA;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 6rem;
}

.image-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.image-card img {
    width: 100%;
    margin-bottom: 1.5rem;
}

.image-caption {
    color: #002D54;
    text-align: center;
    font-weight: bold;
}

.cta-section {
    text-align: center;
}

/* ===================================
   お問い合わせ
   =================================== */
.contact {
    padding: 8rem 0;
    background-color: #002D54;
    color: #ffffff;
}

.contact .section-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    text-align: center;
}

.contact-org {
    font-size: 2.4rem;
    font-weight: bold;
}

.contact-details {
    margin-top: 4rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.schoolname {
    font-weight: bold;
    font-size: 1.8rem;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: #002D54;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}


.footer-text {
    font-size: 1.2rem;
}

/* ===================================
   レスポンシブ対応
   =================================== */
@media (max-width: 768px) {

    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    /* ヘッダー */
    .header .container {
        position: relative;
        height: 60px;
    }

    .logo {
        font-size: 1.8rem;
        margin-top: 0;
    }

    /* ハンバーガーメニューボタンを表示 */
    .hamburger {
        display: flex;
        padding-right: 2rem;
    }

    .hamburger.active span {
        background-color: #fff;

    }

    /* ナビゲーションをモバイル用に調整 */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #002D54;
        color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 8rem;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 0 2rem;
    }

    /* .nav-list li {
        border-bottom: 1px solid #e0e0e0;
    } */

    .nav-list a {
        display: block;
        padding: 2rem 5rem;
    }

    /* ヘッダーボタンをハンバーガーメニュー内に移動 */
    .btn-header {
        display: none;
    }

    /* メインビジュアル */
    .hero-image {
        width: 95%;
        /* max-height: 660px; */

    }

    .hero {
        padding: 4rem 0 20rem;
    }

    .hero .container {
        height: auto;
        width: 100%;
        flex-direction: column;
        gap: 3rem;
    }

    .wrapper-hero-content {
        width: 100%;
    }

    .hero-content {
        width: 90%;
        margin: 0 auto;
        position: relative;
        top: 240px;
    }

    .hero-text {
        font-size: 1.8rem;
        line-height: 1.6;
        margin: 1rem 0 2rem;
        display: inline-block;
        background-color: #005AAA;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-title-large {
        font-size: 4.6rem;
    }

    .btn-primary {
        padding: 2rem 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* セクション */

    .levels,
    .dentist-info,
    .contact {
        padding: 6rem 0;
    }

    .about {
        padding: 0;
        margin-top: 100px;
    }

    .section-title {
        font-size: 3rem;
    }

    /* 検定について */
    .wrapper-about {
        flex-direction: column;
    }

    .wrapper-box-about-txt {
        width: 100%;
    }


    .box-about-img {
        width: 100%;
    }

    .section-description {
        width: 90%;
        margin: 0 auto 1rem;
    }

    /* カード */
    .cards-wrapper {
        width: 70%;
        position: static;
        top: 0;
    }



    .cards {
        grid-template-columns: 1fr;
        gap: 3rem;

    }

    .card {
        padding-right: 0;
        padding-bottom: 4rem;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }


    .card:nth-child(3) {
        padding-bottom: 0;
        border-bottom: none;
    }


    .card-title {
        font-size: 2rem;
    }

    .card-icon img {
        width: 30%
    }

    /* 検定レベル */
    .hd-box-level {
        display: block;
    }

    .hd-box-level-txt {
        display: block;
    }

    .levels {
        margin-top: 50px;
    }

    .level-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 4rem;
    }


    .price-amount {
        font-size: 3rem;
    }

    /* 歯科技工士は『デジタル医療の担い手』へ */


    .dentist-info {
        background-size: 7rem auto, 7rem auto;
        /* サイズ調整 */

    }

    .section-title.ninaite {
        font-size: 2.8rem;
    }

    .btn-primary {
        width: 60%;
    }

    /* 画像グリッド */
    .image-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .image-grid {
        gap: 2rem;
        padding: 0 4rem;
    }


    /* お問い合わせ */
    .contact-org {
        font-size: 2rem;
    }
}