@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    color: #382e2c;
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
    /* background-color: #fdfaf1; */
    background-color: white;
}

/* 見出しのフォント */
h1, h2, h3, h4, h5, h6,
.section-title,
.logo,
.price-card h3,
.category-box p {
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* ヘッダー */
header {
    position: fixed; /* ヘッダーを画面上部に固定 */
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.annotation_kome {
    font-size: 6px;
}
.annotation {
    font-size: 6px;
    text-align: right;
    padding-right: 10px;
    color: #727272;
    z-index: 5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #ff3f00;
}

.logo img {
    height: 35px; /* ロゴ画像の高さを調整 */
}

.logo span {
    font-size: 20px;
    color: #ff3f00 !important;
}

.top-logo-link {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #382e2c;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: #ff3f00;
    background-color: #fffaf6;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none; /* デスクトップでは非表示 */
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the nav on mobile */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2.5px;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* コンテンツを縦並びにする */
    text-align: center;
    color: white;
    overflow: hidden; /* 画像拡大時はみ出し防止 */
}

/* PC時はヘッダー固定分の余白を追加 */
@media screen and (min-width: 769px) {
    .hero {
        margin-top: 100px;
    }
}


.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 7s linear; /* フェードと拡大アニメーション */
    z-index: 1;
}

.hero-slider .slide.is-active {
    opacity: 1;
    transform: scale(1.15); /* 拡大率 */
}

/* ヒーロー内のボタンエリア */
.hero-content-buttons {
    position: absolute;
    bottom: 80px; /* 下部に配置 */
    left: 0;
    width: 100%;
    z-index: 5; /* スライダーより手前に表示 */
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero-campaign-text {
    position: relative;
    display: inline-block;
    background-color: #fff; /* 背景色：白 */
    color: #e60012; /* 文字色：目立つ赤 */
    font-weight: bold;
    font-size: 14px;
    padding: 15px 25px;
    border-radius: 50px; /* 丸みを持たせる */
    margin-bottom: 25px;
    /* line-height: 1.8; */
    opacity: 0.95;
    animation: floating 2s ease-in-out infinite;
}

.hero-campaign-text::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-20px);
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
}

.hero-campaign-text::after {
    content: '';
    position: absolute;
    bottom: -24px; /* 本体の下に配置 */
    left: 50%;
    transform: translateX(-5px); /* 中央揃え */
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
}

.hero-btn-profile {
    background-color: rgba(255, 255, 255, 0.95);
    color: #ff3f00;
    border: 2px solid #fff;
}
.hero-btn-profile:hover {
    background-color: #fff;
    color: #e03500;
}

.hero-btn-contact {
    background-color: #ff3f00;
    color: white;
    border: 2px solid #ff3f00;
}


/* ヒーロー画像の上のパターンオーバーレイ */
.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, white 100%); /* 上から下へ、透明から白へのグラデーション */
    z-index: 2; /* スライダー(z-index:1)より手前 */
    pointer-events: none; /* クリックを透過させる */
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 50px;
    background: #ff3f00;
    color: white; /* Changed text color for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* スマホでボタンを横並びにするためのラッパー */
.mobile-button-group {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .mobile-button-group {
        width: 100%;
        gap: 10px;
        justify-content: center;
    }
    .mobile-button-group .cta-button {
        padding: 12px 5px; /* パディングを小さくして横並びに対応 */
        font-size: 0.8rem; /* 文字サイズを調整 */
        flex: 1; /* 幅を均等に */
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* セクション共通 */
section {
    padding: 60px 30px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-title, .mini-section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #ff3f00;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ff3f00;
    border-radius: 2px;
}

/* 目的カテゴリ */
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.category-box {
    background: white;
    border-radius: 15px; /* price-cardと合わせる */
    padding: 35px 20px;
    height: 160px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* 影を少し調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s; /* アニメーションを他のカードと合わせる */
}

.category-box:hover {
    transform: translateY(-8px); /* ホバー時の動きを調整 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* スマホなどでタップした時の反転エフェクト */
.category-box:active {
    background: #ff3f00; /* メインカラーを背景に */
}

.category-box:active i,
.category-box:active p {
    color: white; /* アイコンと文字を白に */
    transition: color 0.1s; /* 色の切り替えを速やかに */
}

.category-box i {
    font-size: 40px;
    color: #ff3f00;
    margin-bottom: 12px;
}

.category-box p {
    font-size: 18px;
    margin: 0;
    /* color: #382e2c; */
    color: #ff3f00;
    text-align: center;
    font-weight: 600;
}

.en-text {
    color: #888; /* 薄めのグレー */
    font-size: 10px; /* 少し小さくして補助的な情報だとわかるように */
    font-weight: 500;
    margin-top: 2px; /* 上のテキストとの間隔を調整 */
    text-align: center;
}

/* レッスンコース */
.courses {
    background-color: #fffaf6; /* 背景色を変更 */
    max-width: none; /* 画面幅いっぱいに背景を表示 */
}

/* コースセクション内のカードコンテナの幅を制限 */
.courses .price-cards {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.9;
}

.course-intro-text {
    text-align: justify;
    text-align-last: center; /* 最終行を中央揃えにする */
    font-size: 12px;
}

/* キャンペーンセクション */
.campaign-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border: 2px solid #ff3f00;
    border-radius: 15px;
}
.campaign-box h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ff3f00;
}
.campaign-highlight {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #fde8e0;
}
.campaign-highlight li {
    list-style: none;
    font-size: 13px;
}
.campaign-highlight-blue {
    color: #ff3f00;
    font-weight: bold;
    font-size: 1.2em;
}
.campaign-highlight-orange {
    color: #ff3f00;
    font-weight: bold;
    font-size: 1.2em;
}
.campaign-box .cta-button {
    margin-top: 30px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.price-card ul {
    list-style: none;
    margin: 20px 0;
}

.price-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-card li:last-child {
    border-bottom: none;
}

.price-card li.plus-separator {
    border-bottom: none;
    text-align: center;
    font-size: 1.5em;
    color: #ff3f00;
    font-weight: bold;
    padding: 0;
}

.price-card li.support-title {
    border-bottom: none;
    text-align: center;
    font-weight: bold;
    color: #ff3f00;
    padding-top: 10px;
    padding-bottom: 5px;
    font-size: 1.1em;
}

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.cta-button-small {
    /* .cta-button のスタイルを継承しつつ、サイズを調整 */
    display: inline-block;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent; /* アウトラインボタンとの高さ合わせ */
    text-align: center;

    /* 小さいボタン用のサイズ */
    padding: 10px 15px;
    font-size: 0.9em;
    flex: 1 1 auto; /* ボタンがスペースに応じて伸縮するように */

    /* 基本の配色 */
    background: #ff3f00;
    color: white;
}

.cta-button-small:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* アウトラインスタイルのボタン */
.cta-button-outline {
    background: transparent;
    color: #ff3f00;
    border: 2px solid #ff3f00;
}

.attention-text {
    color: #e67e22;
}
.price-table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}
.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.price-table th {
    background-color: #fffaf6;
    width: 30%;
}


/* スクロールするラッパー */
.schedule-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-ing: touch; /* iOSでのスムーズなスクロール */
}
#schedule p {
    font-size: 13px; /* スクロールが必要な最小幅を設定 */
}


/* スケジュール */
table.schedule{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
table.schedule th, table.schedule td{
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: middle;
    font-size: 13px;
    text-align: center;
}
table.schedule thead th{
    background: #fffaf6;
    text-align: center;
    font-weight: 600;
}
.time-cell { white-space: nowrap; font-weight:700; text-align:center; font-size:13px; }

/* スケジュールテーブルのヘッダー幅調整 */
.schedule-header-row .day-col { width: 10%; }
.schedule-header-row .time-col-1 { width: 18%; }
.schedule-header-row .time-col-2 { width: 18%; }
.schedule-header-row .time-col-3 { width: 18%; }
.schedule-header-row .time-col-4 { width: 18%; }
.schedule-header-row .individual-col { width: 16%; }

@media (max-width: 768px) {
    /* スマホ表示時のスケジュールヘッダー幅調整 */
    .schedule-header-row .day-col { width: 10%; }
    .schedule-header-row th:not(.day-col) {
        width: 18%; /* day-col以外の列に均等な幅を割り当て */
    }
}


/* color blocks */
.block{
    padding:8px;
    border-radius:6px;
    color: #111;
    font-weight:600;
    margin-bottom:6px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05) inset;
}
.orange { background: #f4b183; }   /* Monday 18:30-20:10 */
.green  { background: #8bd3a6; }   /* Tue 17:25-19:05 */
.cyan   { background: #7fd6e6; }   /* Tue 19:15-20:55 */
.pink   { background: #f0b9e0; }   /* Wed 16:30-17:15 */
.yellow { background: #fff49a; }   /* Wed 17:25-19:05 */
.purple { background: #c9a6ff; }   /* Wed 19:15-20:55 */
.beige  { background: #f0e3c8; }   /* Thu 17:25-19:05 */
.brown  { background: #e6b97a; }   /* Fri 19:15-20:55 */
.small  { font-weight:500; font-size:12px; color:#382e2c; background:transparent; padding:0; box-shadow:none; }
.right-col { text-align:center; color:#d9534f; font-weight:700; } /* 個別レッスン */

/* Responsive: small screens stack */
/* About */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative; /* オーバーレイ配置のため */
    overflow: hidden; /* 画像のはみ出し防止 */
}

/* 画像を枠いっぱいに広げる */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像の上に重ねるオーバーレイ */
.about-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* 白の半透明 */
    backdrop-filter: blur(2px); /* すりガラスのようなぼかし効果 */
}

.about-text {
    line-height: 2;
    font-size: 14px;
}

.about-text h3 {
    color: #ff3f00;
    margin-bottom: 20px;
    font-size: 1.5em;
}
.about-text .text-container {
    max-width: 850px;
    margin: 0 auto; /* Kept existing styling */
}
.about-text .sub-section-title {
    color: #ff3f00;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.5em;
}

.about-text .styled-list li {
    margin-bottom: 0.5em;
    list-style: none;
}
.about-text hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #ddd;
}
.about-reason-list li {
    list-style: none;
}
.text-container {
    max-width: 850px;
    margin: 0 auto;
}
.voice-list {
    list-style: none;
    padding-left: 0;
}
.voice-list li {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #ff3f00;
}
.comment-box {
    border: 1px solid #eee;
    background: #fffaf6;
    padding: 1em;
    margin: 1em 0 2em;
}

/* お知らせセクション */
.info-card-container {
    max-width: 850px;
    margin: 0 auto;
}
.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #ff3f00;
}
.info-card p:not(:last-child) {
    margin-bottom: 1em;
}

/* アクセス */
.access {
    background: transparent;
}

.access-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.map {
    background: #ddd;
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .map {
        height: 300px;
    }
    
}

.info-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #ff3f00;
    margin-bottom: 20px;
    font-size: 16px;
}

.info-box p {
    margin: 15px 0;
}

/* CTA セクション */
.cta-section {
    background: linear-gradient(135deg, #ff3f00, #ff8c66);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2em; /* PC用のフォントサイズを大きく */
    margin-bottom: 30px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* CTAセクションのボタンコンテナ */
.cta-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-phone {
    font-size: 1.3em;
    padding: 20px 55px;
}

.cta-phone i {
    margin-right: 10px;
}

.cta-sub-buttons {
    display: flex;
    gap: 10px;
}

/* CTAセクションのアウトラインボタンの色を白に */
.cta-section .cta-button-outline {
    color: white;
    border-color: white;
}

/* CTAセクション内のハイライトボックス */
.cta-highlight {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* フッター */
footer {
    background-color: #fffaf6;
    color: #382e2c;
    padding: 60px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 15px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2em;
    color: #382e2c;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a, .footer-social a {
    color: #382e2c;
    text-decoration: none;
    font-size: 0.9em; /* 文字サイズを少し小さくする */
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: #ff3f00;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 1; /* 初期状態で表示されるように変更 */
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 24px; /* スマホ用のフォントサイズ */
    }

    .hero h1 {
        font-size: 2em;
    }

    /* スマホ時のヒーローボタン調整 */
    .hero-content-buttons {
        flex-direction: column;
        width: 85%;
        gap: 15px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 40px; /* スマホでの位置調整 */
    }
    .hero-content-buttons .cta-button {
        width: 80%;
        padding: 10px 15px;
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
    }

    /* スマホ時のキャンペーンテキスト調整 */
    .hero-campaign-text {
        font-size: 0.75rem;
        padding: 5px auto;
        line-height: 1.4;
    }

    /* スマホ表示時のロゴサイズ調整 */
    .logo img {
        height: 30px; /* ロゴ画像を少し小さく */
    }

    .logo span {
        font-size: 18px !important; /* ロゴテキストを小さく */
    }

    body.nav-open {
        overflow: hidden;
    }


    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        gap: 50px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block; /* モバイルで表示 */ /* Kept existing styling */
        z-index: 1001; /* ナビゲーションより手前に */
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content,
    .access-info {
        grid-template-columns: 1fr;
    }

    .info-box {
        padding: 30px 20px; /* パディングを調整 */
    }
    .info-box p {
        font-size: 13px;
    }

    section {
        padding: 45px 12px 35px 12px;
    }

    .section-title {
        font-size: 2em;
    }

    /* 目的カテゴリを3列表示にする */
    .category-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px; /* アイテム間の余白 */
    }
    .category-box {
        height: auto; /* 高さを自動調整 */
        padding: 10px 10px;
    }
    .category-box p {
        font-size: 10px; /* 文字サイズを少し小さく調整 */
        line-height: 1.3;
    }

    /* スマホ時のドロップダウンメニュー調整 */
    .nav-links .dropdown-menu {
        position: static; /* 絶対配置を解除 */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        min-width: auto;
        padding: 10px 0 0 20px; /* インデントを追加 */
        
        /* アニメーションのための設定 */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-links .dropdown.open .dropdown-menu {
        max-height: 500px; /* 十分な高さを確保 */
    }

    /* スマホ時のドロップダウンメニュー li のスタイル */
    .nav-links .dropdown-menu li {
        background-color: #fffaf6; /* 背景色を追加 */
        margin-bottom: 5px; /* 各項目の間に余白を追加 */
        border-radius: 5px; /* 角を丸くする */
    }

    .nav-links .dropdown-menu li a {
        padding: 8px 15px;
    }

    


    table.schedule {
        min-width: 800px; /* テーブルの最小幅を指定してスクロールを発生させる */
    }

}

/* --- ドロップダウンメニューのスタイル --- */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    /* アニメーションのための変更 */
    opacity: 0; /* 透明にする */
    visibility: hidden; /* 操作・表示を不可に */
    transform: translateY(10px); /* 少し下に配置 */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; /* アニメーション設定 */
    position: absolute; /* 親要素(.dropdown)に対して絶対配置 */
    top: 100%; /* 親要素のすぐ下に表示 */
    left: 0;
    background-color: #fff; /* 背景色 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 影 */
    z-index: 1000; /* 他の要素より手前に表示 */
    list-style: none; /* リストの点を消す */
    padding: 10px 0; /* 上下のパディング */
    margin: 0;
    min-width: 180px; /* 最小幅 */
    border-radius: 5px;
    border: 1px solid #eee;
}

/* ホバー時にドロップダウンメニューを表示 (PC向け) */
@media (min-width: 769px) {
    .nav-links .dropdown:hover .dropdown-menu {
        opacity: 1; /* 不透明にする */
        visibility: visible; /* 操作・表示を可能に */
        transform: translateY(0); /* 元の位置に戻す */
    }
}

.nav-links .dropdown-menu li a {
    color: #382e2c;
    padding: 12px 20px; /* パディング */
    text-decoration: none;
    display: block; /* ブロック要素にしてクリック範囲を広げる */
    text-align: left;
    white-space: nowrap; /* テキストが折り返さないようにする */
}

.nav-links .dropdown-menu li a:hover {
    background-color: #fffaf6; /* ホバー時の背景色 */
}

/* お問い合わせフォーム (contact_form.php) */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-container > p {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #382e2c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff3f00;
    box-shadow: 0 0 0 3px rgba(255, 63, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-group .error {
    color: #e74c3c;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

.alert.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- プロフィールページ (profile.php) --- */
.profile-image-container {
    padding: 0; /* 背景グラデーションをなくすため、paddingをリセット */
    background: none; /* 背景をなくす */
    overflow: hidden; /* 画像がコンテナからはみ出ないようにする */
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像のアスペクト比を保ったままコンテナ全体を埋める */
    object-position: center; /* 画像の中央を表示 */
}

/* --- プロフィールページ (profile.php) 専用スタイル --- */

/* プロフィールリストのスタイル調整 */
.profile-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px 0;
}

.profile-list li {
    margin-bottom: 12px;
    padding-left: 1em;
    text-indent: -1em; /* 記号分をぶら下げインデント */
    line-height: 1.8;
}

/* プロフィールページ内の見出し調整 */
#profile .about-text h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #ff3f00;
}

/* 最初の見出し（名前）は上マージンを詰め、サイズを大きく */
#profile .about-text h3:first-of-type {
    margin-top: 0;
    font-size: 1.8em;
}

.final-summary-text {
    margin-top: 40px;
    padding: 25px;
    background-color: #fffaf6;
    border-radius: 15px;
    border: 2px solid #fde8e0;
    text-align: center;
    font-weight: bold;
    color: #382e2c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- フッター最下部のスタイル調整 --- */
.footer-bottom {
    text-align: center;
}

.footer-bottom a {
    color: inherit; /* 親要素の文字色を継承 */
    text-decoration: none; /* 下線を削除 */
}

/* 画像の表示位置を中央に調整 */
.hero-slider .slide {
    background-position: center top !important;
}

/* PC時は非表示 */
.top-logo-link {
    display: none;
}
/* スマホ時は表示 */
@media screen and (max-width: 768px) {
    .top-logo-link {
        display: block;
    }
}

/* 合格者速報スクロール */
.passers-section {
    margin-top: 10px;
    padding: 15px 0;
    background-color: #fffaf6;
    overflow: hidden;
}

.passers-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.passers-track {
    display: inline-flex;
    gap: 30px;
    padding: 10px 0;
    will-change: transform; /* パフォーマンス最適化 */
}

.passer-card {
    background: white;
    padding: 2px 15px;
    /* border-radius: 30px; */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #fde8e0;
    flex-shrink: 0;
}

.passer-card .level {
    color: #ff3f00;
    font-weight: bold;
    font-size: 1.1em;
}

.passer-card .name {
    font-weight: bold;
    color: #382e2c;
}

.passer-card .grade {
    font-size: 0.85em;
    color: #666;
}