/* =========================================
   Integrated UI Essentials
   ========================================= */
.search-hero {
    text-align: center;
    /* background-color: #1a3050; */
    /* background:linear-gradient(160deg, #2563c0 0%, #3278d8 40%, #4090e8 100%); */
    background:#0f5fb1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    height: auto;
    min-height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

/* Hero Deco SVGs book */ 
@keyframes deco-tick-a { 
    0%   { transform: rotate(-2deg); }
    5%   { transform: rotate(2deg); }
    50%  { transform: rotate(2deg); }
    55%  { transform: rotate(-2deg); }
    100% { transform: rotate(-2deg); }
}
/* Hero Deco SVGs school */
@keyframes deco-tick-b {
    0%   { transform: rotate(2deg); }
    5%   { transform: rotate(-2deg); }
    50%  { transform: rotate(-2deg); }
    55%  { transform: rotate(2deg); }
    100% { transform: rotate(2deg); }
}
/* Hero Deco SVGs tree */
@keyframes deco-tick-c {
    0%   { transform: rotate(2deg); }
    5%   { transform: rotate(-2deg); }
    50%  { transform: rotate(-2deg); }
    55%  { transform: rotate(2deg); }
    100% { transform: rotate(2deg); }
}
/* Hero Deco SVGs desk */
@keyframes deco-tick-d {
    0%   { transform: rotate(-2deg); }
    5%   { transform: rotate(2deg); }
    50%  { transform: rotate(2deg); }
    55%  { transform: rotate(-2deg); }
    100% { transform: rotate(-2deg); }
}

.hero-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* 左上: book */
.hero-deco--book {
    left: 14%;
    top: 14%;
    width: clamp(110px, 13vw, 200px);
    animation: deco-tick-a 3s ease-in-out infinite;
    animation-delay: 0s;
}

/* 左下: school */
.hero-deco--school {
    left: 8%;
    top: 37%;
    width: clamp(120px, 15vw, 220px);
    animation: deco-tick-b 3s ease-in-out infinite;
    animation-delay: 0.45s;
}

/* 右上: tree */
.hero-deco--tree {
    right: 10%;
    top: 18%;
    width: clamp(100px, 12vw, 190px);
    animation: deco-tick-c 3s ease-in-out infinite;
    animation-delay: 0.9s;
}

/* 右下: desk */
.hero-deco--desk {
    right: 6%;
    top: 34%;
    width: clamp(130px, 16vw, 240px);
    animation: deco-tick-d 3s ease-in-out infinite;
    animation-delay: 1.35s;
}

@media (max-width: 768px) {
    .hero-deco {
        /* display: none; */
    }
}

.search-hero::before {
    /* content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 60, 130, 0.55);
    mix-blend-mode: multiply;
    z-index: 0; */
}

.search-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.search-hero > *:not(.hero-deco):not(.curtain--left):not(.curtain--right) {
    position: relative;
    z-index: 1;
}

/* スクロールインジケーター */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    animation: hero-scroll-fade 2s ease-in-out infinite;
}

.hero-scroll-indicator__arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: hero-scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes hero-scroll-fade {
    0%, 100% { opacity: 0.8; }
    50%       { opacity: 0.4; }
}

/* ===================================================
   カーテンリビール：フロントページ
   左右カーテンがスライドアウトしてコンテンツを露出する
   =================================================== */
.front-page-main {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* search-hero 内のカーテン：左右からスライドアウトしてコンテンツを露出する */
.reveal-intro {
    overflow: hidden;
    background: transparent; /* 白背景は __inner 側に持たせる */
}

/* カーテン：グロナビより上に固定配置で全画面を覆う */
.curtain--left,
.curtain--right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #0f5fb1; /* search-heroと同色でシームレスに開く */
    z-index: 1100; /* ヘッダー sticky(1000) より上 */
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.curtain--left  { left: 0;  transform: translateX(0); }
.curtain--right { right: 0; transform: translateX(0); }

.curtain--left.is-open  {
    transform: translateX(-100%);
    transition-delay: 0.05s;
}
.curtain--right.is-open {
    transform: translateX(100%);
    transition-delay: 0.05s;
}

.reveal-intro__inner {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

/* 左：写真（50%・padding なし・edge-to-edge） */
.reveal-intro__image {
    flex: 0 0 50%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右：テキストエリア */
.reveal-intro__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

/* アニメーション発火クラス */
.reveal-intro.is-revealed .reveal-intro__image {
    opacity: 1;
    transform: translateY(0);
}
.reveal-intro.is-revealed .reveal-intro__text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .reveal-intro__inner {
        flex-direction: column;
        height: auto;
        clip-path: none;
        animation: none !important;
    }
    .reveal-intro__image {
        flex: none;
        width: 100%;
        height: 240px;
    }
    .reveal-intro__text {
        padding: 32px 24px;
    }
    /* SP：threshold が取りにくい場合でも確実に表示 */
    .reveal-intro__image img,
    .reveal-intro__text {
        transition-duration: 0.7s;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 150px 20px 40px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title-bubble {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    animation: bubble-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both,
               bubble-poyon 5s ease-in-out 3s infinite;
}
@keyframes bubble-bounce {
    0%   { opacity: 0; transform: scale(0.3); }
    40%  { opacity: 1; transform: scale(1.15); }
    55%  { transform: scale(0.92); }
    70%  { transform: scale(1.06); }
    85%  { transform: scale(0.98); }
    100% { transform: scale(1); }
}
@keyframes bubble-poyon {
    0%, 100% { transform: scale(1); }
    6%       { transform: scale(1.08); }
    10%      { transform: scale(0.96); }
    14%      { transform: scale(1.03); }
    18%      { transform: scale(1); }
}
.hero-title {
    background: #fff;
    color: #0f5fb1;
    padding: 24px 48px;
    border-radius: 16px;
    font-size: 3.2rem;
    margin: 0;
    line-height: 1.3;
}
/* 吹き出し三角（中央下） */
.hero-title-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 24px solid transparent;
    border-top: 24px solid #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    /* text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); */
}

.search-bar {
    width: min(700px, calc(100% - 40px));
    margin: 30px auto;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.search-bar input {
    min-width: 0;
    flex: 1 1 auto;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    line-height: 1.4;
    color: #17324d;
    background: transparent;
    border-radius: 999px;
    outline: none;
    font-family: var(--font-main);
}

.search-bar input::placeholder {
    color: #6b7b8c;
}

.search-bar button {
    flex: 0 0 auto;
    min-height: 56px;
    border: none;
    padding: 0 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: var(--font-main);
}

.search-bar button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .search-hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    .hero-inner {
        padding: 90px 0 0;
    }
    .hero-title {
        font-size: 1.4rem;
        padding: 16px 24px;
        border-radius: 12px;
    }
    .hero-title-bubble {
        width: 79%;
        margin-bottom: 24px;
    }
    .hero-title-bubble::after {
        bottom: -14px;
        border-left: 8px solid transparent;
        border-right: 16px solid transparent;
        border-top: 16px solid #fff;
    }
    .hero-deco--book {
        left: 9%;
        top: 20%;
        width: clamp(80px, 13vw, 200px);
    }
    .hero-deco--tree {
        right: 12%;
        top: 21%;
        width: clamp(60px, 12vw, 190px);
    }
    .hero-deco--school {
        left: 5%;
        top: 44%;
        width: clamp(90px, 15vw, 220px);
    }
    .hero-deco--desk {
        right: 3%;
        top: 32%;
        width: clamp(100px, 16vw, 240px);
    }
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        margin-top: 40px;
        background:#0f5fb1;
        padding:10px;
    }
    .search-bar {
        align-items: stretch;
        gap: 6px;
        margin: 20px auto;
        width: min(84%, 520px);
        padding: 8px;
        border-radius: 999px;
    }
    .search-bar input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .search-bar button {
        min-height: 46px;
        padding: 0 18px;
        font-size: 0.95rem;
    }
    .hero-cta-wrap {
        margin-top: 12px;
    }
    .hero-deco {
        /* display: none; */
    }
}

@media (max-width: 560px) {
    .search-bar {
        width: min(84%, 420px);
        padding: 6px;
    }
    .search-bar input {
        padding: 11px 14px;
        font-size: 0.85rem;
    }
    .search-bar button {
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.85rem;
    }
}


/* ヒーロー内 新着プログラムストリップ */
.hero-programs-strip {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(63, 142, 237, 0.15);
    padding: 16px 0 20px;
    backdrop-filter: blur(4px);
}

.hero-programs-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto 12px;
    padding: 0 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-programs-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.hero-programs-more:hover {
    opacity: 1;
}


/* =========================================
   Category Section
   ========================================= */
.fp-category {
    padding: 72px 40px 100px;
    background: linear-gradient(160deg, #eef4ff 0%, #f8f0ff 50%, #fff8f0 100%);
    position: relative;
    overflow: hidden;
}

.fp-category::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,99,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.fp-category__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.fp-category__head {
    margin-bottom: 40px;
}

.fp-category__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 8px;
}

.fp-category__lead {
    color: var(--text-muted);
    font-size: 1rem;
}

.fp-category__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.fp-category__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 10px;
    align-items: stretch;
}

.fp-category__row--centered {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: calc((100% - 100px) * 5 / 6 + 80px);
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .fp-category {
        padding: 48px 16px 60px;
    }
    .fp-category__head {
        margin-bottom: 24px;
    }
    .fp-category__lead {
        font-size: 0.85rem;
    }
    .fp-category__row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .fp-category__row--centered {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        width: 100%;
    }
    .fp-category__card {
        min-height: 72px;
        padding: 10px 6px;
        font-size: 0.78rem;
    }
    .fp-category__icon {
        font-size: 1.4rem;
    }
    .fp-category__label {
        font-size: 0.75rem;
    }
}

.fp-category__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    min-height: 88px;
    box-sizing: border-box;
    transition: transform 0.25s, box-shadow 0.25s, color 0.25s;
}

.fp-category__icon {
    font-size: 2rem;
    color: var(--primary);
}

.fp-category__label {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
}

.featured-section {
    /* background: #fff; */
}

/* =========================================
   Logo Gallery (Partner Logos)
   ========================================= */
.logo-gallery-section {
    padding: 60px 24px;
    background: #fff;
    overflow: hidden;
}

.logo-gallery-track-wrapper {
    position: relative;
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-gallery-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
}

.logo-gallery-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    text-decoration: none;
}

a.logo-gallery-item {
    transition: opacity 0.2s;
}

a.logo-gallery-item:hover {
    opacity: 0.7;
}

.logo-gallery-item img {
    max-height: 72px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.logo-gallery-empty {
    text-align: center;
    color: #999;
}

/* =========================================
   News
   ========================================= */
.news-fp-section {
    background: #f8f9fb;
    padding: 80px 24px;
}

.news-fp-section .news-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sec-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    display: block;
    text-align: center;
}

.bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.bubble {
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.bubble:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
}

.bubble i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffb7b2;
}

.bubble span {
    font-size: 0.9rem;
    font-weight: bold;
}

.h-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 40px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 280px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    position: relative;
    z-index: 0;
}

.card:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.card.is-featured {
    transform: scale(1.14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    z-index: 10;
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

.card-thumb::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img,
.card.is-featured .card-img {
    transform: scale(1.08);
}

.card-body {
    padding: 16px 20px 20px;
}

.card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-weight: 700;
}

.card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.55;
}

.news-tag-red {
    background: #ff6b6b;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.qa-section {
    margin-top: 20px;
}

.qa-a {
    margin-left: 30px;
    color: #555;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.entry-header {
    margin-bottom: 12px;
}

.entry-content {
    line-height: 1.8;
}

/* =========================================
   Service Card (front-page)
   ========================================= */
.service-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}


/* =========================================
   3 Steps Section (front-page)
   ========================================= */
.steps-section {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.step-item {
    position: relative;
    flex: 1 1 240px;
    max-width: 300px;
    background: #fff;
    border-radius: 20px;
    padding: 44px 32px 40px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    box-sizing: border-box;
}

.step-item::before {
    content: attr(data-num);
    position: absolute;
    right: -8px;
    bottom: -24px;
    font-size: 9rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.07;
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
}

.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(37, 99, 192, 0.08);
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 18px;
}

.step-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.step-item p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.step-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
}

.step-arrow::before,
.step-arrow::after {
    content: '';
    position: absolute;
    background: #c8d8ee;
}

.step-arrow::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.step-arrow::after {
    top: 50%;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid #c8d8ee;
    border-right: 2px solid #c8d8ee;
    background: transparent;
    transform: translateY(-50%) rotate(45deg);
    margin-right: -1px;
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .step-item {
        max-width: 100%;
        width: 100%;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 8px auto;
    }
}

.steps-cta {
    margin-top: 50px;
}


/* =========================================
   Banner Section (front-page)
   ========================================= */
.banner-section {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
}

.banner-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
    width: 100%;
}

.banner-link {
    display: block;
    text-align: center;
}

.banner-card {
    width: 300px;
    height: 90px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

.banner-card:hover {
    opacity: 0.9;
}

.banner-card i {
    margin-right: 10px;
}

.banner-card--purple {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.banner-card--pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}


/* =========================================
   CTA Split Section
   ========================================= */
.cta-split-section {
    display: flex;
    width: 100%;
}

.cta-split-panel {
    flex: 1;
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 80px 40px;
    transition: filter 0.25s;
    position: relative;
    overflow: hidden;
}

.cta-split-panel:hover {
    filter: brightness(1.07);
}

.cta-split-panel--purple {
    background: #0f558e;
    color: #fff;
}

.cta-split-panel--pink {
    background: #0f558e;
    color: #fff;
}

.cta-split-panel__inner {
    max-width: 360px;
    margin: 0 auto;
}

.cta-split-panel__icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.9;
}

.cta-split-panel__en {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 0 0 8px;
    opacity: 0.75;
}

.cta-split-panel__title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
}

.cta-split-panel__desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 28px;
    opacity: 0.9;
}

.cta-split-panel__btn {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
}

.cta-split-panel:hover .cta-split-panel__btn {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 640px) {
    .cta-split-section {
        flex-direction: column;
    }
    .cta-split-panel {
        padding: 56px 24px;
    }
    .cta-split-panel__title {
        font-size: 1.4rem;
    }
}


/* =========================================
   Hero CTA (front-page)
   ========================================= */
.hero-cta-wrap {
    margin-top: 25px;
    font-size: 1rem;
}


/* =========================================
   Page: Front Page – Animations & Reason Cards
   (front-page.php の <style> ブロックから移植)
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }
    50%       { box-shadow: 0 8px 40px rgba(102, 126, 234, 0.6); }
}

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

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

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

/* ===== Three Reasons – リニューアル ===== */
.three-reasons-section {
    padding: 120px 40px 100px;
    background: linear-gradient(160deg, #2563c0 0%, #3278d8 40%, #4090e8 100%);
}

.three-reasons-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 見出しブロック */
.three-reasons-heading {
    text-align: center;
    margin-bottom: 80px;
}

.three-reasons-en {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-bottom: 14px;
}

.three-reasons-en::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 14px auto 16px;
}

.three-reasons-ja {
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

/* 3カラムグリッド */
.three-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

@keyframes pata-in {
    0%   { opacity: 0;   transform: perspective(2400px) rotateY(-40deg) translateX(-16px); }
    100% { opacity: 1;   transform: perspective(2400px) rotateY(0deg)   translateX(0px); }
}

/* 奇数カラム: やや濃い */
.reason-col:nth-child(odd) {
    background: rgba(0, 0, 0, 0.12);
}

/* 偶数カラム: やや薄い */
.reason-col:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.reason-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 48px 64px;
    transition: background 0.3s;
    transform-origin: left center;
    opacity: 0;
    transform: perspective(1200px) rotateY(-90deg);
}

.reason-col.pata-visible {
    animation: pata-in 0.9s ease-out forwards;
}

.reason-col.pata-visible:nth-child(1) { animation-delay: 0s; }
.reason-col.pata-visible:nth-child(2) { animation-delay: 0.22s; }
.reason-col.pata-visible:nth-child(3) { animation-delay: 0.44s; }

/* 円形 */
.reason-circle {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    flex-shrink: 0;
}

.reason-num {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.reason-num strong {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.reason-unit-small {
    font-size: 1.2rem;
    font-weight: 700;
}

.reason-unit {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.reason-col-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 20px;
}

.reason-col-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 2;
}

@media (max-width: 900px) {
    .three-reasons-section {
        padding: 80px 20px 100px;
    }
    .three-reasons-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .reason-col {
        padding: 56px 32px;
    }
    /* SP時は上から交互 */
    .reason-col:nth-child(odd) {
        background: rgba(0, 0, 0, 0.12);
    }
    .reason-col:nth-child(even) {
        background: rgba(0, 0, 0, 0.04);
    }
}

/* PC/モバイル切り替え */
.featured-mobile {
    display: none;
}

@media (min-width: 769px) {
    #featured-swiper.featured-mobile {
        display: none !important;
    }
    .featured-desktop {
        display: block;
    }
}

@media (max-width: 768px) {
    .featured-desktop {
        display: none;
    }
    #featured-swiper.featured-mobile {
        display: block;
        padding: 20px 0 40px;
    }
    .featured-mobile .card {
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .featured-mobile .card-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .featured-mobile .card-body {
        padding: 12px 14px;
    }
    .featured-mobile .card-body h3 {
        font-size: 0.95rem;
        margin: 4px 0;
    }
    .featured-mobile .card-body p {
        font-size: 0.8rem;
        color: #666;
    }
    .featured-pagination {
        text-align: center;
        margin-top: 10px;
    }
    .featured-pagination .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
    .featured-pagination .swiper-pagination-bullet-active {
        background: #fff;
    }
}

/* Marquee (already partially defined – consolidate here) */
.marquee-wrapper {
    overflow-x: clip;
    overflow-y: visible;
    padding: 30px 0;
}

.marquee-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    will-change: transform;
}

.marquee-track .card {
    flex: 0 0 330px;
    min-width: 330px;
    margin-right: 40px;
    border-radius: 10px;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.program-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   Front Page: Service Intro
   ========================================= */
.service-intro-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .service-intro-title {
        font-size: 1.5rem;
    }
}

.service-intro-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 20px;
}

.service-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1em;
}

.service-intro-text strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.container--mb {
    margin-bottom: 60px;
}

.container--my {
    margin: 60px auto;
}

.reason-title-main {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.reason-title-sub {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.reason-body-main {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.reason-body-main strong {
    color: var(--primary);
}

.reason-body-main .text-lg {
    font-size: 1.3rem;
}

.reason-body-sub {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.reason-body-sub strong {
    color: var(--primary);
}

.text-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
}

.text-primary-bold {
    color: var(--primary);
    font-weight: bold;
}

.news-section-more {
    text-align: center;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .news-fp-section {
        padding: 40px 16px;
    }
    .sec-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }
}
