@charset "UTF-8";
/* ===================================================================
CSS information
 file name  :  etsjapaneducators.css
 style info :  英語教員支援事業ページ用のCSS
=================================================================== */

/* ヒーローセクション */
.educators-hero {
    background: linear-gradient(135deg, #343579 0%, #4a4d9e 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.educators-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="300" cy="200" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="500" cy="150" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="700" cy="250" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="900" cy="180" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="1100" cy="300" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.educators-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.educators-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.educators-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.educators-hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background: #ffffff;
    color: #343579;
}

.hero-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* お知らせバナー */
.announcement-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px 24px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 4px;
}

.announcement-banner strong {
    color: #856404;
    margin-right: 8px;
}

/* サービスカードセクション */
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343579;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #343579 0%, #4a4d9e 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #343579 0%, #4a4d9e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 2rem;
}

.service-category {
    display: inline-block;
    width: auto;
    background: transparent;
    color: #343579;
    border: 2px solid #343579;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #343579;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    color: #343579;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .service-link:hover {
    color: #4a4d9e;
    gap: 8px;
}

.service-card .service-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card .service-link:hover::after {
    transform: translateX(4px);
}

/* 統計セクション */
.stats-section {
    background: linear-gradient(135deg, #343579 0%, #4a4d9e 100%);
    color: #ffffff;
    padding: 60px 20px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* クイックナビゲーション */
.quick-nav {
    background: #ffffff;
    padding: 40px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.quick-nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.quick-nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #343579;
    margin-bottom: 20px;
    text-align: center;
}

.quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.quick-nav-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #343579;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-nav-link:hover {
    background: #343579;
    color: #ffffff;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .educators-hero h1 {
        font-size: 2.5rem;
    }
    
    .educators-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .educators-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .educators-hero {
        padding: 60px 15px;
    }
    
    .educators-hero h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

/* 固定ヘッダー分の余白をbodyから削除（main-visual-carouselがヘッダーの直下に配置される） */
body:has(.main-visual-carousel):has(.custom-header) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* カスタムヘッダーがあり、main-visual-carouselがないページの最初のコンテンツにパディング追加 */
body:has(.custom-header):not(:has(.main-visual-carousel)) > .inner:first-of-type,
body:has(.custom-header):not(:has(.main-visual-carousel)) > #pagetitle {
    padding-top: 130px;
}

/* ページタイトルの下の余白を調整 */
body:has(.custom-header) > #pagetitle {
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* ページタイトルの直後のセクションの上の余白を調整 */
body:has(.custom-header) > #pagetitle + .three-cards-section {
    padding-top: 20px;
}

@media only screen and (max-width: 979px) {
    body:has(.main-visual-carousel):has(.custom-header) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body:has(.custom-header):not(:has(.main-visual-carousel)) > .inner:first-of-type,
    body:has(.custom-header):not(:has(.main-visual-carousel)) > #pagetitle {
        padding-top: 80px;
    }
}

@media only screen and (max-width: 690px) {
    body:has(.main-visual-carousel):has(.custom-header) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body:has(.custom-header):not(:has(.main-visual-carousel)) > .inner:first-of-type,
    body:has(.custom-header):not(:has(.main-visual-carousel)) > #pagetitle {
        padding-top: 70px;
    }
}

/* メインビジュアルカルーセル（Bootstrap Carousel） */
.main-visual-carousel {
    width: 100% !important;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 100px !important; /* PC用ヘッダー高さ分 */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    clear: both;
    box-sizing: border-box;
    background: #9196FF; /* Periwinkle - ヘッダー下の背景色 */
}

/* タブレット用（979px以下） */
@media only screen and (max-width: 979px) {
    .main-visual-carousel {
        padding-top: 50px !important; /* タブレット用ヘッダー高さ分 */
    }
}

/* モバイル用（690px以下） */
@media only screen and (max-width: 690px) {
    .main-visual-carousel {
        padding-top: 40px !important; /* モバイル用ヘッダー高さ分 */
    }
}

.main-visual-carousel .carousel {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

.main-visual-carousel .carousel-inner {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

.main-visual-carousel .carousel-item {
    position: relative;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100% !important;
    width: 100% !important;
    min-height: 500px;
}

.main-visual-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 53, 121, 0.6);
    z-index: 1;
}

.main-visual-carousel .carousel-item.no-overlay::before {
    display: none;
}

.main-visual-carousel .carousel-item.no-overlay {
    background-color: #9196FF;
    background-size: contain;
    background-position: center center;
}

.main-visual-carousel .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 20px 25px;
    max-width: 33.33%; /* スライドの三分の一 */
    width: 33.33%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    direction: ltr; /* テキストは左から右に表示 */
    /* 半透明グレー角丸背景 */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: auto;
}

.main-visual-carousel .slide-content.slide-content-left-bottom {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 30px 40px;
    gap: 0.8rem;
    margin: 0;
    margin-left: 60px;
    margin-bottom: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.main-visual-carousel .slide-content.slide-content-left-bottom h2,
.main-visual-carousel .slide-content.slide-content-left-bottom p,
.main-visual-carousel .slide-content.slide-content-left-bottom .slide-btn {
    align-self: flex-start;
    margin-left: 0;
}

.main-visual-carousel .slide-content.slide-content-left-bottom h2,
.main-visual-carousel .slide-content.slide-content-left-bottom p {
    padding-left: 0;
}

.main-visual-carousel .slide-content.slide-content-left-bottom h2,
.main-visual-carousel .slide-content.slide-content-left-bottom p {
    max-width: 100%; /* 親要素の幅に合わせる */
}

.main-visual-carousel .slide-content h2 {
    font-size: 1.5rem; /* 元の半分 */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-visual-carousel .slide-content p {
    font-size: 1rem; /* 小さめに調整 */
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.main-visual-carousel .slide-content .center-indicator {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.main-visual-carousel .swiper-slide-active .center-indicator {
    display: block !important;
}

.main-visual-carousel .slide-content .slide-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #343579;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.main-visual-carousel .slide-content .slide-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Bootstrapカルーセルコントロール */
.main-visual-carousel .carousel-control-prev,
.main-visual-carousel .carousel-control-next {
    position: absolute !important;
    width: 50px !important;
    height: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    opacity: 0.8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.main-visual-carousel .carousel-control-prev {
    left: 20px !important;
}

.main-visual-carousel .carousel-control-next {
    right: 20px !important;
}

.main-visual-carousel .carousel-control-prev:hover,
.main-visual-carousel .carousel-control-next:hover {
    opacity: 1;
}

.main-visual-carousel .carousel-control-prev-icon,
.main-visual-carousel .carousel-control-next-icon {
    width: 30px !important;
    height: 30px !important;
    background-size: 100% 100% !important;
    display: block !important;
}

/* Bootstrapカルーセルインジケーター */
.main-visual-carousel .carousel-indicators {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important; /* 左からの配置を解除 */
    z-index: 10 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-end !important; /* 右寄せ */
}

/* スライド下のコメントバー */
.carousel-caption-bar {
    background: #fff;
    padding: 20px 40px;
    width: 100%;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.carousel-caption-bar .caption-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-caption-bar .caption-content h2 {
    color: #333;
    font-size: 1.95rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.carousel-caption-bar .caption-content p {
    color: #333;
    font-size: 1.425rem;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.carousel-caption-bar .caption-content .slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #343579;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.17rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.carousel-caption-bar .caption-content .slide-btn:hover {
    background: #9196FF;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .carousel-caption-bar {
        padding: 15px 20px;
    }
    
    .carousel-caption-bar .caption-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .carousel-caption-bar .caption-content h2 {
        font-size: 1.65rem;
    }
    
    .carousel-caption-bar .caption-content p {
        font-size: 1.275rem;
    }
}

.main-visual-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.5;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    text-indent: -9999px; /* 数字を画面外に */
    overflow: hidden;
}

.main-visual-carousel .carousel-indicators li.active {
    opacity: 1;
}

.main-visual-carousel .carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    margin: 0 5px !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.main-visual-carousel .carousel-indicators button.active {
    opacity: 1 !important;
}

/* カスタムインジケーター（Bootstrap外で管理） */
div.main-visual-carousel div.custom-indicators {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    list-style: none !important;
    background: transparent !important;
}

div.main-visual-carousel div.custom-indicators button.custom-indicator {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

div.main-visual-carousel div.custom-indicators button.custom-indicator.active {
    background-color: #fff !important;
}

div.main-visual-carousel div.custom-indicators button.custom-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

@media screen and (max-width: 768px) {
    .main-visual-carousel {
        height: 300px;
    }
    
    .main-visual-carousel .carousel-inner {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .main-visual-carousel .carousel-item {
        background-position: center center;
        background-size: contain;
        min-height: 300px;
        height: 100%;
    }
    
    .main-visual-carousel .carousel-item.no-overlay {
        background-size: contain;
        background-position: center center;
    }
    
    .main-visual-carousel .slide-content {
        max-width: 80%;
        width: 80%;
        padding: 15px 20px;
        margin: auto;
    }
    
    .main-visual-carousel .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .main-visual-carousel .slide-content p {
        font-size: 0.95rem;
    }

    .main-visual-carousel .slide-content.slide-content-left-bottom {
        position: relative;
        margin: auto;
        margin-left: auto;
        margin-bottom: auto;
        padding: 20px 25px;
        align-items: center;
        text-align: center;
    }

    .main-visual-carousel .slide-content.slide-content-left-bottom h2,
    .main-visual-carousel .slide-content.slide-content-left-bottom p {
        max-width: 100%;
    }

    .main-visual-carousel .slide-content.slide-content-left-bottom h2,
    .main-visual-carousel .slide-content.slide-content-left-bottom p,
    .main-visual-carousel .slide-content.slide-content-left-bottom .slide-btn {
        align-self: center;
    }
}

@media screen and (max-width: 480px) {
    .main-visual-carousel {
        height: 250px;
    }
    
    .main-visual-carousel .carousel-inner {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .main-visual-carousel .carousel-item {
        min-height: 250px;
        height: 100%;
        background-position: center center;
        background-size: contain;
    }
    
    .main-visual-carousel .carousel-item.no-overlay {
        background-size: contain;
        background-position: center center;
    }
    
    .main-visual-carousel .slide-content {
        max-width: 90%;
        width: 90%;
        padding: 12px 15px;
        border-radius: 12px;
    }
    
    .main-visual-carousel .slide-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .main-visual-carousel .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .main-visual-carousel .slide-content .slide-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .main-visual-carousel .carousel-control-prev,
    .main-visual-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .main-visual-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .main-visual-carousel .carousel-control-next {
        right: 10px;
    }
}

/*-----------------------------------------------------------------

3カードセクション

-----------------------------------------------------------------*/
.three-cards-section {
    padding: 60px 20px;
    background: #ffffff;
}

/* カードの高さを揃える */
.three-cards-section .row {
    display: flex;
    flex-wrap: wrap;
}

.three-cards-section .col-md-4 {
    display: flex;
    flex-direction: column;
}

.three-cards-section a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.info-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 アスペクト比 (9/16 = 0.5625) */
    overflow: hidden;
}

.info-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card-content {
    padding: 24px;
    flex-grow: 1; /* カードの高さを揃えるため、残りスペースを埋める */
    display: flex;
    flex-direction: column;
}

.info-card-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.info-card-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/*-----------------------------------------------------------------

スライダー下のニュースバナー

-----------------------------------------------------------------*/
.news-banner-slider .announcement-banner {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: inline;
}

.news-banner-slider .announcement-banner strong {
    display: none;
}

.news-banner-slider .announcement-banner a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.news-banner-slider .announcement-banner a:hover {
    color: #343579;
    text-decoration: underline;
}

/* メインビジュアルカルーセルをヘッダーの直下に配置 */
.main-visual-carousel {
    margin-top: 100px !important; /* PC用ヘッダー高さ分 */
    padding-top: 0 !important;
    height: 500px !important;
}

/* タブレット用（690px-979px）: ナビゲーション高さ約70px */
@media only screen and (max-width: 979px) {
    .main-visual-carousel {
        margin-top: 60px !important;
        padding-top: 0 !important;
        height: 500px !important;
    }
}

/* モバイル用（690px以下）: ナビゲーション高さ約40px */
@media only screen and (max-width: 690px) {
    .main-visual-carousel {
        margin-top: 50px !important;
        padding-top: 0 !important;
        height: 350px !important;
    }
}

/*-----------------------------------------------------------------

TOEFL テスト紹介ブロック

-----------------------------------------------------------------*/
.toefl-test-blocks {
    padding: 60px 20px;
    background: #f8f9fa;
}

.toefl-block-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* ボタンエリア */
.toefl-block-card ul {
    flex-grow: 1; /* リストが残りスペースを埋めて、ボタンを下に押し下げる */
}

/* ボタンコンテナ - 横1列 */
.toefl-block-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: auto; /* 下に配置 */
}

.toefl-block-card .toefl-block-btn {
    margin-right: 0;
    margin-bottom: 0;
    white-space: nowrap; /* 文字を折り返さない */
}

/* TOEFLブロックヘッダー（ロゴ＋画像） */
.toefl-block-header {
    display: flex;
    align-items: stretch;
    margin: -40px -40px 20px -40px; /* カードのpaddingを打ち消して端まで広げる */
    position: relative;
    min-height: 97px; /* 84px × 1.15 ≈ 97px（15%増） */
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* カードの角丸に合わせる */
}

.toefl-block-icon {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    flex-shrink: 0;
    z-index: 2;
    background: #ffffff;
    width: 45%; /* ロゴエリアは45% */
    box-sizing: border-box;
}

.toefl-block-icon img {
    max-width: 200px;
    height: auto;
}

/* 右側の画像エリア */
.toefl-block-image {
    width: 55%; /* カード幅の55% */
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.toefl-block-image img {
    width: 100%;
    height: auto; /* 縦横比を維持 */
    object-fit: cover;
    object-position: right center;
}

/* 左側の白グラデーション */
.toefl-block-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.toefl-block-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.toefl-block-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.toefl-block-card ul li {
    padding: 8px 0;
    color: #666;
    font-size: 18px;
}

.toefl-block-card ul li i {
    margin-right: 10px;
}

/* TOEFL iBT用チェックマーク色 */
.toefl-block-card.toefl-ibt ul li i {
    color: #0066cc;
}

/* TOEFL ITP用チェックマーク色 */
.toefl-block-card.toefl-itp ul li i {
    color: #cc6600;
}

.toefl-block-btn {
    display: inline-block;
    padding: 12px 30px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.toefl-block-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.toefl-block-btn.btn-primary-ibt {
    background: #343579;
}

.toefl-block-btn.btn-primary-itp {
    background: #343579;
}

.toefl-block-btn.btn-secondary {
    background: #FF8F60;
    color: #000000;
}

/*-----------------------------------------------------------------

ニュースバナー（スライダー下）

-----------------------------------------------------------------*/
.news-banner-slider {
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
}

.news-banner-slider .news-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* 中央配置 */
    gap: 12px;
}

.news-banner-slider .news-label {
    background: #343579;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.news-banner-slider .news-content {
    /* 中央配置のためflex: 1を削除 */
}

.news-banner-slider .news-content a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.news-banner-slider .news-content a:hover {
    color: #343579;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/*-----------------------------------------------------------------

ニュースレター登録セクション

-----------------------------------------------------------------*/
.newsletter-section {
    background: #343579; /* Duskwinkle */
    padding: 60px 20px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: #FFFFFF; /* White on Duskwinkle - WCAG AAA */
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.newsletter-text p {
    color: #FFFFFF; /* White on Duskwinkle - WCAG AAA */
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.newsletter-cta {
    flex-shrink: 0;
}

.newsletter-btn {
    display: inline-block;
    background: #F0FF96; /* Highlighter Yellow */
    color: #343579; /* Duskwinkle on Highlighter Yellow - WCAG AAA */
    font-size: 1.2rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.newsletter-btn:hover {
    background: #FFFFFF;
    color: #343579;
}

/* ニュースレターセクション レスポンシブ */
@media screen and (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
    
    .newsletter-btn {
        font-size: 1.1rem;
        padding: 14px 32px;
    }
}

@media screen and (max-width: 480px) {
    .newsletter-section {
        padding: 40px 16px;
    }
    
    .newsletter-text h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-text p {
        font-size: 0.95rem;
    }
    
    .newsletter-btn {
        font-size: 1rem;
        padding: 12px 28px;
        width: 100%;
        text-align: center;
    }
}

/*-----------------------------------------------------------------

お問い合わせセクション

-----------------------------------------------------------------*/
.contact-section {
    background: #ffffff;
    padding: 60px 20px;
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-section .section-header h2 {
    font-size: 3.5rem;
}

.contact-section .section-header p {
    font-size: 2.4rem;
}

.contact-section .btn-container {
    text-align: center;
}

.contact-section .hero-btn {
    font-size: 1.8rem;
    padding: 20px 48px;
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    border-radius: 50px;
}

.contact-section .hero-btn:hover {
    background: #000000;
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .toefl-block-card {
        padding: 30px 20px;
    }
    
    /* TOEFLブロックヘッダー レスポンシブ */
    .toefl-block-header {
        margin: -30px -20px 20px -20px; /* タブレット用のpadding調整 */
        min-height: 70px; /* 100px × 0.7 = 70px */
    }
    
    .toefl-block-icon {
        padding: 12px 15px;
        width: 45%;
    }
    
    .toefl-block-icon img {
        max-width: 140px;
    }
    
    .toefl-block-image {
        width: 55%;
    }
    
    .toefl-block-card ul li {
        font-size: 16px;
    }
    
    .toefl-block-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toefl-block-btn {
        padding: 10px 16px;
        font-size: 15.6px;
    }
}

@media screen and (max-width: 480px) {
    /* TOEFLブロックヘッダー モバイル */
    .toefl-block-header {
        min-height: 56px; /* 80px × 0.7 = 56px */
    }
    
    .toefl-block-icon {
        padding: 8px 10px;
        width: 50%; /* モバイルではロゴを広めに */
    }
    
    .toefl-block-icon img {
        max-width: 100px;
    }
    
    .toefl-block-image {
        width: 50%;
    }
    
    .toefl-block-image::before {
        width: 40px;
    }
}

/* ハンバーガーメニューアイコン（Font Awesome不使用） */
.header_navi ul li.nav04.btn_menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3本線アイコン */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.menu-icon::before {
    box-shadow: 0 6px 0 #fff; /* 中央の線 */
}
