@charset "UTF-8";

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* セクション余白の統一管理用CSS変数 */
:root {
    --section-padding: 4rem 0;
    --section-padding-mobile: 2rem 0;
    --section-padding-large: 5rem 0;
    --section-padding-small: 1rem 0;
}

/* スムーズスクロール（JavaScriptで制御するためコメントアウト） */
/* html {
    scroll-behavior: smooth;
} */

/* 画像の隙間をなくす */
img {
    display: block;
}

/* メディア要素のはみ出し防止 */
img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* 表示切替: PC(タブレット以上) / SP(768px以下) */
.PC { display: block; }
.SP { display: none; }

/* 既存の小文字クラスにも対応（互換用） */
.pc { display: block; }
.sp { display: none; }

@media (max-width: 768px) {
    .PC { display: none !important; }
    .SP { display: block; }
    .pc { display: none !important; }
    .sp { display: block; }
    
    /* モバイル時のセクション余白を統一 */
    section {
        padding: var(--section-padding-mobile);
    }
    
    .section-padding-large {
        padding: var(--section-padding-mobile);
    }
    
    .section-padding-small {
        padding: var(--section-padding-mobile);
    }
}

/* 横スクロールの保険 */
html {
    overflow-x: hidden;
}

/* 基本設定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-width: 320px;
    overflow-x: hidden;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 18px;
    min-width: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.logo .bold {
    font-weight: bold;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    color: #313c61;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2563eb;
}

/* バーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* セクション共通 */
section {
    padding: var(--section-padding);
    margin: 0; /* セクション間の余白を0に設定 */
}

/* セクション間の余白を統一管理 */
section + section {
    margin-top: 0; /* 隣接するセクション間の余白を0に */
}

/* セクション余白のバリエーション */
.section-padding-large {
    padding: var(--section-padding-large);
}

.section-padding-small {
    padding: var(--section-padding-small);
}

/*
 * セクション余白の統一管理について
 * 
 * 使用方法：
 * 1. 通常のセクション: 自動的に var(--section-padding) が適用される
 * 2. 大きな余白が必要: .section-padding-large クラスを追加
 * 3. 小さな余白が必要: .section-padding-small クラスを追加
 * 
 * 余白の変更方法：
 * :root 内のCSS変数を変更することで、全セクションの余白を一括調整可能
 * 
 * レスポンシブ対応：
 * 768px以下で自動的に var(--section-padding-mobile) が適用される
 */

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.section-title img {
    margin: 0 auto;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

/* ハイライト */
.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
}

/* ファーストビューメイン */
.fv-main {
    background-image: url('../img/fv-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 2.5rem 2.5rem;
    margin: 0;
}

/* SP表示時のファーストビューメイン */
@media (max-width: 768px) {
    .fv-main {
        background: none;
        padding: 0;
        margin: 0;
    }
    
    .fv-main .container {
        padding: 0;
        margin: 0;
    }
    
    .fv-main-content {
        padding: 0;
        margin: 0;
    }
}

.fv-main-content {
    text-align: center;
}

.fv-main-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
    position: relative;
    margin-top: 50px;
}

/* ファーストビューバナー */
.fv-banner {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    padding: 30px 0;
    margin: 0;
}

/* スマホ版でのファーストビューバナー */
@media (max-width: 768px) {
    .fv-banner {
        padding: 1rem 0;
    }
}

.fv-banner-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* fv-banner.png画像のボタン機能 */
.fv-banner-content img[src="img/fv-banner.png"] {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    filter: drop-shadow(0px 0px 5px rgba(160, 160, 160, 0.7));
}

.fv-banner-content img[src="img/fv-banner.png"]:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0px 0px 8px rgba(102, 126, 234, 0.8)) brightness(1.05);
}

.fv-banner-content img[src="img/fv-banner.png"]:active {
    transform: translateY(0);
    filter: drop-shadow(0px 0px 6px rgba(102, 126, 234, 0.6)) brightness(1.02);
}

/* 課題セクション */
.problems {
    background-color: #f8f9fa;
    padding: 4rem 0 0;
    position: relative; /* ジョイント画像の配置のため */
}

/* 問題トップセクション */
.problem-top {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 0;
}

.problem-top-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.problem-top-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 0;
}

/* 問題ボトムセクション */
.problem-bottom {
    background-image: url('../img/bg-ai-img2.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 0;
    position: relative;
}

.problem-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* 黒色のオーバーレイ（透明度0.3） */
    z-index: 1;
}

.problem-bottom-content {
    position: relative;
    z-index: 2; /* オーバーレイより前面に表示 */
}

.problem-bottom-content img {
    margin: 0 auto;
}

.problem-bottom-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

.problem-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    text-align: center;
}

/* 吹き出しスタイル（01bmp-business_nayami.htmlから反映） */
.problem-balloons {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom:0;
}

.problem-balloon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    box-sizing: border-box;
    min-height: 350px; /* 最小高さを設定して統一感を出す */
}

.problem-balloon {
    flex: 1;
    box-sizing: border-box;
    margin: 0 auto;
    width: calc(100% - 2rem);
    max-width: 320px;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    text-align: center;
    color: #1d3b51;
    border-radius: 30px;
    box-shadow: 0 12px 32px hsla(196, 5%, 42%, 0.4);
    position: relative;
    min-height: 120px; /* 吹き出しの最小高さを設定 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 吹き出しの三角形 */
.problem-balloon::after {
    bottom: -15px;
    z-index: 1;
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 16.5px 0 16.5px;
    border-color: #fff transparent transparent transparent;
    left: 50%;
    transform: translateX(-50%);
    top: 99.5%;
}

/* 吹き出しのテキスト */
.problem-balloon p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.problem-balloon strong {
    color: #0056b3;
}

/* イラスト部分 */
.problem-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* 固定の高さを設定 */
    align-items: flex-end;
}

.problem-illustration img {
    width: auto;
    height: 180px; /* 固定の高さを設定 */
    max-width: 210px;
    object-fit: contain; /* アスペクト比を保ちながらサイズ調整 */
    margin: 0 auto;
    display: block;
}

.problem-statement {
    margin: 2rem 0;
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 2rem;
    align-items: center;
}

.problem-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.problem-consequences {
    list-style: none;
    margin: 1.5rem 0;
}

.problem-consequences li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.problem-consequences li::before {
    content: "▸";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.problem-conclusion {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.urgency {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin-top: 2rem;
}

.problem-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}



/* 特徴セクション */
.features {
    background-image: url('../img/kaiketu-center-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    min-height: 540px;
    position: relative;
    z-index: 0;
}

/* SP版: featuresセクション */
@media (max-width: 768px) {
    .features {
        background: none;
        padding: 0;
        margin: 0;
    }
    
    .features .container {
        padding: 0;
        margin: 0;
    }
}

/* セクション1: 超実践型 生成AI人材育成講座 なら解決します！ */
.features-section-1 {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0 0 0; /* 上部のパディングを60pxから90pxに増やして+30px追加 */
    margin: 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    z-index: 1;
}

.features-section-1-content {
    padding: 40px;
    text-align: center;
}

.features-section-1-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    top: -40px;
    margin-bottom: 0;
}

/* セクション2: 当講座は、受講したスタッフ様が企業内で生成AIを活用して 売上を伸ばし、組織化することに特化したコースです。 */
.features-section-2 {
    background-image: url('../img/kaiketu-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0 120px;
    margin: 0;
    margin-top: -100px;
}

.features-section-2-content {
    padding: 40px;
    text-align: center;
    position: relative;
    top: 85px; /* margin-top: -100pxの分を相殺 */
}

.features-section-2-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* SP版: 統合されたセクション */
.features-section-sp {
    background: none;
    padding: 0;
    margin: 0;
}

.features-section-sp img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* セクション4: AI導入は、「今だけのブーム」ではありません。現場と経営の両方に枝を伸ばし、長く成果を実らせる"組織資産"になります。 */
.features-section-4 {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 0;
}

.features-section-4-content {
    padding: 40px;
    text-align: center;
}

.features-section-4-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 0;
}

/* position: absoluteを使った固定レイアウト */
.features-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    z-index: 2;
    overflow: visible; /* 画像がはみ出しても表示 */
}

.features-image {
    position: absolute;
    right: -415px; /* テキストの右側に配置 */
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    z-index: 10;
}

.features-image img {
    width: 100%;
    height: auto;
    max-width: none;
}

/* 元のfeatures-contentスタイル（後方互換性のため保持） */
.features-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    box-sizing: border-box;
}

/* SP版: features-content-sp */
.features-content-sp {
    background: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.features-content-sp img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* セクション3の背景とフロント */
.features-section-3-background {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url(../img/kaiketu-center-text-bg.png);
    background-repeat: no-repeat;
}

.features-section-3-front {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.features-section-3-front img {
    max-width: 100%;
    height: auto;
}

.features-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* 選ばれる理由セクション */
.why-chosen {
    background-image: url('../img/reason-bg.png');
    background-position: center top;
    background-repeat: no-repeat;
    padding: 4rem 0;
    padding-top: 125px;
    overflow-x: hidden;
    overflow-y: visible;
}

/* SP版では背景画像とパディングを無効化 */
.why-chosen.SP {
    background-image: none;
    padding: 0;
    padding-top: 0;
}

.why-chosen-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* SP版ではタイトルのマージンを調整 */
.why-chosen.SP .why-chosen-title {
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.why-chosen-title img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* SP版のタイトル画像は画面幅いっぱいに表示 */
.why-chosen.SP .why-chosen-title img.SP {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reason-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: visible; /* hiddenからvisibleに変更してオーバーフローを許可 */
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
}

.reason-item.reverse {
    flex-direction: row-reverse;
}

.reason-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: visible; /* hiddenからvisibleに変更してオーバーフローを許可 */
}

.reason-text {
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
    max-width: 700px;
    flex: 1;
    min-width: 0; /* テキストが縮まないようにする */
}

/* 縦線画像のスタイリング */
.reason-vertical-image {
    position: absolute;
    left: -160px;
    top: 0;
    z-index: 2;
    max-height: 100%;
    width: auto;
}

/* 偶数番目（2つ目、4つ目）の縦線画像を右側に配置 */
.reason-item.reverse .reason-vertical-image {
    left: auto;
    right: -160px;
}

/* 偶数番目（2番目と4番目）のreason-textに位置調整 */
.reason-item.reverse .reason-text {
    right: -45%;
}

/* PC版画像のスタイル */
.reason-vertical-image.pc-only {
    display: block;
}

.reason-title.pc-only {
    display: block;
    margin-bottom: 1.5rem;
}

.reason-title.pc-only img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.reason-image.pc-only {
    display: block;
    flex-shrink: 0;
}

.reason-image.pc-only img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* SP版統合画像のスタイル */
.reason-sp-image.sp-only {
    display: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* 理由2と理由4のSP版統合画像を左に50pxずらす */
.reason-item:nth-child(2) .reason-sp-image.sp-only,
.reason-item:nth-child(4) .reason-sp-image.sp-only {
    margin-left: calc(-50vw + 50% - 50px);
    overflow: hidden;
}

.reason-sp-image.sp-only img {
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .reason-item {
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow: hidden; /* スマホ版ではhiddenを維持 */
    }
    
    .reason-item.reverse {
        flex-direction: column;
    }
    
    .reason-text {
        margin-left: 0;
        margin-bottom: 0;
        right: 0;
    }
    
    .reason-vertical-image.pc-only {
        display: none;
    }
    
    .reason-title.pc-only {
        display: none;
    }
    
    .reason-image.pc-only {
        display: none;
    }
    
    .reason-sp-image.sp-only {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 理由2と理由4のSP版統合画像の調整（768px以下） */
    .reason-item:nth-child(2) .reason-sp-image.sp-only,
    .reason-item:nth-child(4) .reason-sp-image.sp-only {
        margin-left: 0;
        overflow: hidden;
    }
}

/* 小画面での調整 */
@media (max-width: 480px) {
    .reason-sp-image.sp-only {
        margin: 0;
        padding: 0;
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    /* 理由2と理由4のSP版統合画像の調整（480px以下） */
    .reason-item:nth-child(2) .reason-sp-image.sp-only,
    .reason-item:nth-child(4) .reason-sp-image.sp-only {
        margin-left: 0;
        overflow: hidden;
    }
    
    .reason-sp-image.sp-only img {
        max-width: none;
        width: 100%;
    }
}

/* PC版でのオーバーフロー制御 */
@media (min-width: 769px) {
    .reason-item {
        overflow: visible; /* PC版ではオーバーフローを許可 */
    }
    
    .reason-content {
        overflow: visible; /* PC版ではオーバーフローを許可 */
    }
}

.reason-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.reason-title {
    margin-bottom: 1rem;
}

/* 偶数番目（2つ目、4つ目）のreason-titleの位置調整 */
.reason-item.reverse .reason-title {
    position: relative;
    left: -100px;
}

.reason-title img {
    max-width: 100%;
    height: auto;
}

.reason-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.reason-text h4 {
    font-size: 1.2rem;
    color: #667eea;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.reason-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.reason-text li {
    margin: 0.5rem 0;
}

.reason-image {
    max-width: 100%;
    position: absolute;
    right: -32.5rem;
    top: 0;
}

.reason-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 偶数番目（2,4）: 画像を左側に配置 */
.reason-item.reverse .reason-image {
    left: -30rem;
    right: auto;
}

.instructor-profile {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.instructor-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-profile h5 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.instructor-profile h6 {
    font-size: 1rem;
    color: #667eea;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

/* 講師紹介部分のレイアウト */
.instructor-intro {
    position: relative;
    margin-bottom: 1.5rem;
}

.instructor-intro h4 {
    margin: 0;
    display: inline-block;
}

.instructor-profile {
    position: relative;
}

.instructor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.instructor-info {
    flex: 1;
}

.instructor-info h5 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
}

.instructor-info .instructor-title {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.instructor-photo {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    right: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

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

/* コースの特徴 */
.course-features {
    background-image: url('../img/bg-ai-img2.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

.course-features .section-title {
    color: white;
}

.course-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-feature {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* ホバー効果を無効化 */
/* .course-feature:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
} */

.feature-icon img {
    width: 100px;
    height: 100px;
    margin-top: 2rem;
    object-fit: contain;
}

.feature-content {
    text-align: center;
}

.feature-number {
    display: inline-block;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-number img {
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 60px;
}

.main-feature {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.main-feature-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.main-feature-badge img {
    width: 180px;
    height: auto;
    min-width: 180px;
}

.main-feature-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
}

.main-feature-text {
    flex: 1;
    text-align: left;
}

.main-feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.main-feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.main-feature-icon {
    flex-shrink: 0;
}

.main-feature-icon img {
    max-width: 200px;
    height: auto;
}

/* 最大の特徴の特別スタイル */
.main-feature-badge img {
    width: 250px; 
    height: auto;
    min-width: 220px;
}

.main-feature-text p {
    font-size: 1.3rem; /* 1.1remから1.3remに拡大 */
    line-height: 1.6;
    color: #333;
}

.main-feature-text strong {
    font-size: 1.6rem; /* strongタグをさらに大きく */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-feature-text strong {
        font-size: 1.0rem; /* モバイル時は1.0rem */
    }
}

.main-feature-icon img {
    max-width: 240px; /* 200pxから240pxに拡大 */
    height: auto;
}

/* 8大サービス */
.services {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ホバー効果を無効化 */
/* .service-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
} */

.service-icon img {
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.service-content {
    text-align: center;
}

.service-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* セクション全体 -------------------------------------------*/
#services {
    position: relative;
    padding-top: 0; /* 上部のパディングのみ0に設定 */
}

.services-container {
    display: flex;
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 左側背景要素 */
.services-background {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* 画面幅の半分 */
    height: 400px; /* 高さ400px */
    background-color: #e3e3e3; /* 背景色（灰色） */
    z-index: 0;
}

/* 左側タイトル部分 */
.services-left {
    flex: 1; /* 左半分の幅 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative; /* 重なり順を調整 */
    z-index: 1;
}

/* タイトルテキスト */
.services-title {
    font-size: 1.8rem;
    font-weight: bold;
}

/* 右側のコンテンツ部分 */
.services-right {
    flex: 0 0 60%; /* 右半分の幅 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 120px;
}

.services-content {
    border-radius: 10px;
    padding: 60px 20px;
    width: 100%;
    max-width: 1200px;
    height: auto;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* コンテンツアイテム */
#services .service-item {
    flex: 1 1 calc(33.333% - 1rem);
    text-align: center;
    background: #fff;
    box-shadow: none;
    padding: 1rem;
    border: none;
}

#services .service-icon {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 100px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#services .service-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0; /* 円形を解除 */
}

#services .service-item p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.service-badge {
    margin-bottom: 1rem;
}

.service-badge img {
    width: 40px;
    height: 40px;
}

.point-section {
    background-color: #e4eaed; /* 背景色（灰色） */
    padding: var(--section-padding-large);
    display: block;
    position: relative;
    width: 100vw; /* 全幅にする */
    margin-left: calc(-50vw + 50%); /* 中央寄せを維持 */
    margin-right: calc(-50vw + 50%); /* 中央寄せを維持 */
    overflow-x: hidden; /* 水平方向のはみ出し抑止 */
}

.point-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* タイトルテキスト */
.point-section .services-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.point-section .services-content {
    border-radius: 10px;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    box-sizing: border-box;
}

.point-section .service-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-weight: normal;
}

.point-section .service-item {
    flex: 1 1 calc(25% - 1.5rem);
    text-align: center;
    background: transparent;
    box-shadow: none;
    padding: 1rem;
    min-width: 200px;
    border: none;
}

.point-section .service-icon {
    width: auto;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.point-section .service-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0; /* 円形を解除 */
}

.support-flow {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--section-padding);
    margin: 0;
    position: relative;
}

.support-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.support-flow-content {
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.support-flow-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 0;
}

/* 受講保証 学習終了後のサポート */
.hosyo {
    padding: 4rem 0;
}

.hosyo-background {
    background-color: #f2f4f7;
    border-radius: 1rem;
    padding: 40px 80px;
    margin-top: 2rem;
}

.hosyo-flex-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hosyo-flex-item {
    text-align: center;
    flex: 1;
}

.hosyo-flex-item img {
    max-width: 100%;
    height: auto;
}

/* 新しいクラス名に対応するスタイル */
.background {
    background-color: #f2f4f7;
    border-radius: 1rem;
    padding: 40px 80px;
}

.flex-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.flex-item {
    text-align: center;
    flex: 1;
}

/* レスポンシブ対応：768px以下でレイアウト調整 */
@media (max-width: 768px) {
    .hosyo-flex-container,
    .flex-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hosyo-flex-item,
    .flex-item {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    /* 受講保証セクションの特別なレイアウト */
    #hosyo .flex-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
    
    #hosyo .flex-item.svg {
        grid-column: span 1;
        grid-row: 1;
    }
    
    #hosyo .flex-item.hosyo-img {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .hosyo-background,
    .background {
        padding: 20px 40px;
    }
    
    /* 指定セクションの余白を0に設定 */
    #services,
    #hosyo,
    #curriculum,
    .flow-section,
    #faq {
        padding: 0;
    }
}

/* さらに小さい画面（480px以下）での調整 */
@media (max-width: 480px) {
    .hosyo-background,
    .background {
        padding: 15px 20px;
    }
    
    .hosyo-flex-container,
    .flex-container {
        gap: 1rem;
    }
}

/* hosyo-imgクラスの特別なスタイル */
.flex-item.hosyo-img {
    flex: 1.5; /* 他のflex-itemより大きくする */
    max-width: 400px; /* 最大幅を設定 */
}

.flex-item img {
    max-width: 100%;
    height: auto;
}

/* nowrapクラスのスタイル */
.nowrap {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

/* svgクラスのスタイル */
/* .svg クラスは未使用のため削除 */

/* hosyo1.svg画像専用スタイル */
.hosyo-flex-item img[src="img/hosyo1.svg"],
.hosyo-flex-item img[src="img/hosyo2.svg"],
.flex-item img[src="img/hosyo1.svg"],
.flex-item img[src="img/hosyo2.svg"] {
    max-width: 230px;
    margin: 0 auto;
    width: 100%;
    padding: 0.5rem;
}

/* hosyo-img.png画像専用スタイル */
.hosyo-flex-item img[src="img/hosyo-img.png"],
.flex-item img[src="img/hosyo-img.png"] {
    overflow: hidden;
    border-radius: 1rem;
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 330px;
}

/* hosyo-imgクラス内の画像の特別なスタイル */
.flex-item.hosyo-img img {
    max-height: 330px;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* レスポンシブ対応 */
/* 1920px以上 - デスクトップ大画面 */
@media (min-width: 1921px) {
    .container,
    .features-content,
    .services-container,
    .services-content,
    .point-section .services-content,
    .reason-content {
        max-width: 1600px;
    }
}

/* 1200px - 1920px - デスクトップ標準 */
@media (max-width: 1920px) and (min-width: 1201px) {
    .container,
    .features-content,
    .services-content,
    .point-section .services-content,
    .reason-content {
        max-width: 1200px;
    }
    

}

/* 768px - 1200px - タブレット */
@media (max-width: 1200px) and (min-width: 769px) {
    .container,
    .features-content,
    .services-container,
    .services-content,
    .point-section .services-content,
    .reason-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .reason-text {
        margin-left: 6rem;
        margin-bottom: 6rem;
    }
    
    .reason-image {
        width: 80rem;
        right: -25rem;
    }
    
    .reason-item.reverse .reason-image {
        left: -25rem;
        right: auto;
    }
    
    .services-container {
        flex-direction: column;
    }
    
    .services-right {
        flex: none;
        width: 100%;
        margin-top: 0;
    }
    
    .services-background {
        width: 100%;
        height: 200px;
    }
    
    .services-left {
        position: relative;
        z-index: 2;
    }
    
}





/* カリキュラム・受講生の声 */
.curriculum, .testimonials {
    padding: 4rem 0;
    text-align: center;
}

.curriculum-content, .testimonials-content {
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* カリキュラム画像リスト */
.curriculum-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 1200px以下で2カラムに変更 */
@media (max-width: 1200px) {
    .curriculum-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

/* 768px以下 - モバイル対応 */
@media (max-width: 768px) {
    /* ヘッダーのモバイル対応 */
    .header .container {
        padding: 0.4rem 12px;
    }
    
    .logo img {
        height: 28px;
        width: auto;
    }
    
    .logo .bold {
        font-size: 1rem;
    }
    
    .hamburger-menu {
        display: flex;
        justify-content: center;
        width: 24px;
        height: 24px;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-menu span {
        height: 2px;
        margin: 1.5px 0;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding:2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
        
    .problem-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* コースの特徴 - 最大の特徴（モバイルで画像→テキストの順） */
    .main-feature-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main-feature-icon {
        order: -1;
    }
    .main-feature-text {
        text-align: center;
    }
    
    .hosyo-background {
        padding: 20px 40px;
    }
    
    .hosyo-flex-container {
        flex-direction: column;
    }
    
    .hosyo-flex-item.hosyo-img {
        max-height: 200px;
    }
    
    /* steps-containerとaccordionのモバイル対応 */
    .steps-container,
    #accordion {
        padding: 0 15px;
    }
    
    /* カリキュラム画像リスト - モバイル対応 */
    .curriculum-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .curriculum-number {
        font-size: 1.2rem;
    }
    
    .curriculum-title {
        font-size: 0.7rem;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 8大サービス（モバイル2列レイアウト） */
    .point-section .services-content {
        gap: 0.75rem;
        padding: 0;
    }


    
    #services .services-container {
        padding: 0;
    }
    
    #services .container {
        padding: 0;
    }
    
    .point-section {
        padding: 2rem 0;
    }
    
    .point-section .container {
        padding: 0 1rem;
    }
    
    .services-content {
        padding: 1rem;
    }

    #services .point-section .service-item {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 0;
        padding: 0.5rem;
    }

    .point-section .service-icon {
        max-width: 60px;
        max-height: 60px;
        margin: 0 auto 0.5rem;
    }

    .point-section .service-badge img {
        width: 22px;
        height: 22px;
    }

    .point-section .service-item h2 {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* コースの特徴を2カラム化（スマホでも2列表示を維持） */
    .course-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* 7つ目の最大の特徴は目立つように現在のサイズを維持 */
    .course-features-list .course-feature:nth-child(7) {
        grid-column: 1 / -1; /* 全幅で表示 */
        max-width: 100%;
    }

    /* 講師写真の絶対配置を解除してはみ出し防止 */
    .instructor-photo {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin: 1rem auto 0;
    }

    /* 理由セクション内の絶対配置画像の安全策 */
    .reason-image {
        position: static;
        right: auto;
        left: auto;
        max-width: 100%;
        margin: 2rem auto 0;
    }
    
    /* ファーストビュー画像のマージン調整 */
    .fv-main-content img {
        margin-top: 35px;
    }
    
    /* コース特徴の画像調整 */
    .feature-number img {
        width: 30px;
        height: auto;
        max-width: 30px;
    }
    
    .feature-icon img {
        margin-top: 1rem;
    }
}

/* 1200px以下 - タブレット・モバイル（ヘッダー設定は除外） */
@media (max-width: 1200px) {
    .container,
    .features-content,
    .services-container,
    .services-content,
    .point-section .services-content,
    .reason-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-main {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
 
    .problem-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .problem-balloons {
        flex-direction: column;
        gap: 0;
    }
    
    .problem-balloon {
        max-width: 100%;
        width: 100%;
        min-height: 100px;
    }
    
    .problem-illustration {
        height: 150px;
    }
    
    .problem-illustration img {
        height: 130px;
    }
    
    .problem-balloon-item {
        min-height: 280px;
    }
    
    .reason-text {
        margin-left: 2rem;
        margin-bottom: 2rem;
    }
    
    /* モバイルでは縦線画像を非表示 */
    .reason-vertical-image {
        display: none;
    }
    
    .reason-image {
        position: static;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    
    .reason-item.reverse .reason-image {
        left: auto;
        right: auto;
    }

    /* 選ばれる理由（偶数ブロック）の右寄せ補正を解除 */
    .reason-item.reverse .reason-text {
        right: 0;
    }

    .reason-item.reverse .reason-title {
        left: 0;
    }

    .services-content {
        padding: 30px 15px;
    }
    
    .point-section .services-content {
        padding: 20px 15px;
    }
    
    .features-content {
        padding: 2rem;
    }
    
    /* モバイルでは画像を下に配置 */
    .features-image {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    #services .service-icon {
        max-width: 60px;
    }
    
    .point-section .service-icon {
        max-width: 50px;
    }
    
    .service-icon img {
        max-width: 30px;
    }
    
    #accordion {
        width: 95%;
    }
    
    .accordion-q,
    .accordion-a {
        padding: 1rem;
    }
    
    .accordion-q .faq-icon,
    .accordion-a .faq-icon {
        width: 20px;
    }
    
    .ac-arrow {
        width: 8px;
    }
    
    .pricing-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons ul {
        flex-direction: column;
        align-items: center;
    }
    
    .btn_sodan,
    .btn_shiryo {
        padding: 0.8rem 1.5rem;
        min-width: 250px;
        max-width: 300px;
    }
    
    .btn_sodan a,
    .btn_shiryo a {
        font-size: 0.9rem;
    }
}

.curriculum-item {
    text-align: center;
    position: relative;
    aspect-ratio: 16 / 9; /* 固定のアスペクト比を設定 */
    overflow: hidden;
}

.curriculum-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠にフィットさせる */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.curriculum-item img:hover {
    transform: scale(1.05);
}

/* カリキュラムアイテムのホバー・タップ効果 */
.curriculum-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-item:hover {
    transform: translateY(-5px);
}

.curriculum-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* カリキュラムポップアップモーダル */
.curriculum-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.curriculum-modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-image {
    width: 100%;
    height: 100%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* モーダルアニメーション */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* カリキュラムオーバーレイ */
.curriculum-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(1.5px);
    border-radius: 8px;
    z-index: 2;
    padding: 1rem;
}

.curriculum-number {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    z-index: 3;
}

.curriculum-title {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    padding: 0 0.5rem;
}

.curriculum-title-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    padding: 0 0.5rem;
    z-index: 3;
}

/* 受講生の声 - YouTube動画 */
.testimonials-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 料金 */
.pricing {
    background: #e4eaed;
    color: #333;
    text-align: center;
    padding: 4rem 0;
}

.pricing-card {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem auto 3rem;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.price-main {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.price-tax {
    font-size: 1rem;
}

.price-additional {
    font-size: 1.2rem;
    color: #666;
}

.pricing-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 受講の流れ */
.flow-section {
    position: relative;
}

.flow-section .container {
    background-color: #e4eaed;
    padding: 4rem 0;
}

/* ステップ全体のコンテナ */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 1080px;
}

/* ステップアイテム */
.step-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ステップアイテムのスマホ用スタイル */
@media (max-width: 768px) {
    .step-item {
        padding: 1rem;
    }
}

/* STEPアイコン */
.step-icon {
    flex: 0 0 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0056b3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    margin-right: 1.25rem;
}


.step-icon span {
    line-height: 1.2;
}

/* ステップ内容 */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-description {
    color: #666;
    line-height: 1.6;
}

/* .faq 空定義は削除（下の .faq .container が適用対象） */

.faq .container {
    background-color: #e4eaed;
    padding: 4rem 0;
}

/* アコーディオン全体のデザイン */
#accordion {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 0 20px;
    box-sizing: border-box;
}

#accordion h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#accordion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* アコーディオン項目 */
.accordion-item {
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}

/* 質問部分 */
.accordion-q {
    padding: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    gap: 10px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.accordion-q:hover {
    background: #f8f9fa;
}

/* Qアイコン */
.accordion-q .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* テキスト */
.accordion-q .faq-text {
    flex-grow: 1;
    overflow-wrap: break-word;
}

/* 矢印 */
.accordion-q .ac-arrow {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(135deg);
    transition: transform 0.3s ease;
    margin-left: auto;
}

/* 開いた時の矢印 */
.accordion-q.active .ac-arrow {
    transform: rotate(-45deg);
}

/* 回答部分 */
.accordion-a {
    padding: 15px;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    background: #f8f9fa;
}

.accordion-a .faq-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.accordion-a .faq-text {
    flex-grow: 1;
}

/* CTA */
.cta {
    background-image: url('../img/bg-ai-img.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.cta-buttons li {
    margin: 0;
}

.btn_sodan,
.btn_shiryo {
    display: inline-block;
    border-radius: 50px;
    padding: 1rem 2rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 280px;
    width: 380px;
    max-width: 100%;
}

.btn_sodan {
    background: #fd7229;
    border: 2px solid #fd7229;
}

.btn_shiryo {
    background: #0b92d7;
    border: 2px solid #0b92d7;
}

.btn_sodan:hover {
    background: #e65a1f;
    border-color: #e65a1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 114, 41, 0.3);
}

.btn_shiryo:hover {
    background: #0a7bb8;
    border-color: #0a7bb8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 146, 215, 0.3);
}

.btn_sodan a,
.btn_shiryo a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn_sodan a span,
.btn_shiryo a span {
    flex: 1;
    text-align: center;
    margin: 0 1rem;
}

.btn_sodan:hover .btn-icon.right-icon,
.btn_shiryo:hover .btn-icon.right-icon {
    transform: translateX(3px);
}

/* フローティングCTA */
.floating-cta {
    position: fixed;
    z-index: 999998;
    transition: all 0.3s ease;
}

.cta-button {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #3f51b5 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(156, 39, 176, 0.6);
}

.cta-text {
    display: block;
}

/* PC・タブレット版（右下右隅配置） */
@media (min-width: 769px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* スマホ版（画面下配置） */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        left: 1%;
        right: 1%;
        width: 98%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }
    
    .floating-cta.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    .cta-button {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
    }
}

/* フッター */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}



/* 480px以下 - 小型モバイル */
@media (max-width: 480px) {
    .container,
    .features-content,
    .services-container,
    .services-content,
    .point-section .services-content,
    .reason-content {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-main {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    .btn_sodan,
    .btn_shiryo {
        min-width: 220px;
        max-width: 280px;
    }
    
    .course-feature, .service-item {
        padding: 1.5rem 1rem;
    }
    
    /* 480px以下でもコースの特徴は2列表示を維持 */
    .course-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* 7つ目の最大の特徴は目立つように全幅表示 */
    .course-features-list .course-feature:nth-child(7) {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .price-main {
        font-size: 2.5rem;
    }
    
    .features-content {
        padding: 1.5rem;
    }
    
    .features-image {
        max-width: 250px;
    }
    
    .reason-text {
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    
    .reason-image {
        max-width: 250px;
    }
    
    /* モバイルでの講師紹介レイアウト調整 */
    .instructor-intro {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .instructor-photo {
        width: 70px;
        height: 70px;
    }
    
    .services-content {
        padding: 20px 10px;
    }
    
    .point-section .services-content {
        padding: 15px 10px;
    }
    
    /* steps-containerとaccordionの小型モバイル対応 */
    .steps-container,
    #accordion {
        padding: 0 10px;
        gap: 1rem;
    }
    
    /* カリキュラム画像リスト - 超小画面対応 */
    .curriculum-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .curriculum-number {
        font-size: 0.9rem;
    }
    
    .curriculum-title {
        font-size: 0.85rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ジョイント画像のスタイリング */
.joint {
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 99999;
}

.joint-yellow {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    z-index: 99999;
    width: auto;
    max-width: 100%;
}

.joint-yellow img {
    width: 100%;
    height: auto;
    display: block;
}

/* レスポンシブ設定：jointクラスのマックス幅を12pxに設定 */
@media (max-width: 768px) {
    .joint-yellow {
        max-width: 10px;
        top: -30px;
    }
    
    .joint-yellow img {
        max-width: 10px;
        top: -30px;
    }
}

/* 偶数番目（2番目と4番目）のreason-textに位置調整 */

/* パララックス背景画像セクション */
.parallax-section {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    margin-top: -25px;
}

/* SP版: パララックス背景画像セクション */
@media (max-width: 768px) {
    .parallax-section {
        width: 100%;
        height: 80px;
        overflow: hidden;
        position: relative;
        margin-top: -25px;
    }
}

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

/* セクション4: AI導入は、「今だけのブーム」ではありません。現場と経営の両方に枝を伸ばし、長く成果を実らせる"組織資産"になります。 */

/* ポップアップのオーバーレイ */
.popup-overlay {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ポップアップ画像 */
.popup-image {
    width: auto; /* 横幅は自動調整 */
    height: auto; /* 縦幅は自動調整 */
    max-width: 80%; /* 画面幅の80%まで */
    max-height: 80%; /* 画面高さの80%まで */
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    object-fit: contain; /* 画像をコンテナ内に収める */
}

/* 表示時のアニメーション */
.popup-overlay.show {
    display: flex; /* フレックスで中央寄せ */
    animation: fadeIn 0.3s ease;
}

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

/* カリキュラムアイテムのホバー・タップ効果 */
.curriculum-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-item:hover {
    transform: translateY(-5px);
}

.curriculum-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* カリキュラム画像のホバー効果 */
.curriculum-item img:hover {
    transform: scale(1.05);
}

/* 料金表のスタイル */
.pricing-container {
    background: #fff;
    padding: 2em;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.pricing-table {
    margin: 0 auto 1rm;
}

.pricing-table > * {
    margin: 1em 0;
}
/* 
.pricing-table > *:last-child,
.pricing-table > *:first-child {
    margin: 0;
} */

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.table-col {
    flex: 1;
    background-color: #fff;
    border: solid 1px #ccc;
    border-radius: 2px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.course-name, .price, .weekly-price, .comparison-text {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-name {
    font-size: 1.2rem;
    font-weight: bold;
    background: #0d3180;
    color: #fff;
    line-height: 1.3;
    padding: 1rem 0.5rem;
}

.pay-contents {
    background-color: #959595;
    padding: 1em;
    position: relative;
    color: #fff;
    text-align: center;
}

.pay-contents h3 {
    margin: 0;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    color: #0d3180;
    /* border-bottom: solid 1px #cecece; */
    padding: 1rem 0.5rem 1rem;
    display: block;
}

.weekly-price {
    font-size: 1.8rem;
    display: block;
    line-height: 1.3;
    color: #0d3180;
    padding: 1rem 0.5rem 0;
}

.comparison-text {
    font-size: 0.9rem;
    color: #4e4e4e;
    min-height: 80px;
    padding: 0.5rem 0.5rem 0;
    line-height: 1.5;
}

.pricing-table span {
    font-weight: normal;
    font-size: 1rem;
}

.fs60 {
    font-size: 0.6em;
}

.gray {
    color: #666;
}

/* 料金下段 */
.price-installment {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
}

.payment-info ul, .installment-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.payment-info, .installment-info {
    display: flex;
    flex-direction: column;
}

.payment-info li, .installment-info li {
    padding: 10px;
    color: #4e4e4e;
}

.payment-info li:nth-child(odd), .installment-info li:nth-child(odd) {
    background-color: #f0f0f0;
}

.payment-info li:nth-child(even), .installment-info li:nth-child(even) {
    background-color: #fff;
}

.payment-info li:first-child, .installment-info li:first-child {
    background: #959595;
    font-weight: bold;
    color: #fff;
}

.credit-card-logo {
    max-width: 200px;
    margin: 0 auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .table-row {
        flex-direction: column;
    }
    
    .comparison-text {
        min-height: auto;
    }
    
    .pricing-container {
        padding: 2em 1em;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .weekly-price {
        font-size: 1.5rem;
    }
    
    .course-name {
        font-size: 1rem;
    }
}

/* 支払い方法のスタイル */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    min-height: 80px;
    width: 100%;}

.payment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-item img {
    width: auto;
    height: auto;
    display: block;
}

/* SVG画像用の特別なサイズ設定 */
.payment-item img[src*=".svg"] {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .payment-item {
        min-height: 60px;
    }
    
    .payment-item img {
        max-width: 100px;
    }
    
    .payment-item img[src*=".svg"] {
        width: 100px;
        height: 50px;
    }
}

/* 見出しの nowrap をモバイルで解除してはみ出し防止 */
@media (max-width: 768px) {
    .section-title.nowrap {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .payment-item img {
        max-width: 80px;
    }
    
    .payment-item img[src*=".svg"] {
        width: 80px;
        height: 40px;
    }
}

/* 受講生の声セクションのスタイル */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.testimonial-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    overflow: hidden;
}

.testimonial-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.testimonial-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* 偶数番目のtestimonial-itemで動画とテキストの配置を逆にする（PC版のみ） */
@media (min-width: 769px) {
    .testimonial-item:nth-child(even) .testimonial-content-wrapper {
        flex-direction: row-reverse;
    }
}

.testimonial-video {
    flex: 1;
    max-width: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.testimonial-header {
    padding: 1rem 0;
}

.testimonial-header strong {
    color: #1f2937;
    font-size: 1.1rem;
}

.testimonial-section {
    margin-bottom: 1.5rem;
}

.testimonial-section h4 {
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.testimonial-section ul {
    list-style: none;
    padding-left: 0;
}

.testimonial-section li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.testimonial-section li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .testimonials {
        padding: 2rem 0;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .testimonial-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .testimonial-text,
    .testimonial-video {
        max-width: 100%;
        width: 100%;
    }
    
    .testimonial-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-header {
        padding: 0.8rem 0;
    }
    
    .testimonial-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        padding: 1.5rem;
        border: solid 2px #3b82f6;
        border-radius: 4px;
    }
    
    .testimonials-content {
        gap: 1.5rem;
    }
    
    /* CTAセクション内のタイトルのみ特殊サイズ */
    .cta .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-content-wrapper {
        gap: 1.5rem;
    }
    
    .testimonial-header {
        padding: 0.7rem 0;
    }
    
    .testimonial-section h4 {
        font-size: 0.9rem;
    }
    
    .testimonial-section p,
    .testimonial-section li {
        font-size: 0.9rem;
    }
    
    /* 受講保証セクションのコンテナ調整 */
    #hosyo .container {
        padding-top: 1rem;
    }
    
    /* FAQセクションのコンテナ調整 */
    .faq .container {
        padding-top: 2rem;
    }
}

/* 受講生の声：PC版のレイアウト調整 */
@media (min-width: 769px) {
    .testimonial-item {
        padding: 2.5rem;
    }
    
    .testimonial-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    
    .testimonial-content-wrapper {
        gap: 4rem;
    }
    
    .testimonial-header {
        padding: 1.2rem 0;
    }
    
    .testimonial-section h4 {
        font-size: 1.1rem;
    }
}

/* 念のため：動画の可視性を強制 */
.testimonials .testimonial-video,
.testimonials .video-wrapper,
.testimonials .video-wrapper iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}



/* テスト用の可視性強化（想定外のdisplay:none等を無効化） */
.testimonials .testimonial-video {
    display: block !important;
}
.testimonials iframe {
    min-height: 200px;
}





/* 768px以降でのtestimonial-itemの表示問題を修正 */
@media (min-width: 769px) {
    .testimonial-item {
        padding: 2.5rem;
    }
    
    .testimonial-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    
    .testimonial-content-wrapper {
        gap: 4rem;
    }
    
    .testimonial-header {
        padding: 1.2rem 0;
    }
    
    .testimonial-section h4 {
        font-size: 1.1rem;
    }
}

/* support-flowのSP用スタイル */
@media (max-width: 768px) {
    .support-flow.sp {
        padding: 0;
    }
    
    .support-flow.sp .support-flow-content {
        padding: 0;
    }
    
    .support-flow.sp img {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* フローティングCTAのスタイル */
.floating-cta {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cta .cta-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 50rem;
    font-size: 14px;
    width: 350px;
    max-width: 100%;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-cta .cta-button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-cta .cta-text {
    font-size: 14px;
}

/* スマホ版でのフローティングCTA */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
        pointer-events: none;
        width: 95%;
        max-width: 95%;
    }
    
    .floating-cta.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    
    .floating-cta .cta-button {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
        max-width: 100%;
    }
}

/* PC版でのフェードアウト効果 */
@media (min-width: 769px) {
    .floating-cta {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
    
    .floating-cta.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .floating-cta.fade-out {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
}

/* 講師セクションのスマホ版スタイル */
@media (max-width: 768px) {
    .instructor-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .instructor-info h5 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .instructor-info .instructor-title {
        font-size: 0.9rem;
    }
    
    .instructor-photo {
        width: 50px;
        height: 50px;
    }
}

/* コース特徴とサービスコンテンツのスマホ版テキストサイズ調整 */
@media (max-width: 768px) {
    .course-feature p {
        font-size: 14px;
    }
    
    .services-content p {
        font-size: 14px;
    }
    
    .point-section .services-content p {
        font-size: 14px;
    }
    
    /* コース特徴のスマホ版でテキストを左揃えに */
    .course-feature {
        text-align: left;
    }
    
    .feature-content {
        text-align: left;
    }
}

/* 768px以下での見出しマージン調整（優先度を高くするため最後に配置） */
@media (max-width: 768px) {
    /* 受講保証 学習終了後のサポート */
    #hosyo .section-title.nowrap {
        margin-bottom: 2rem;
        margin-top: 3rem;
    }
    
    /* 8大サービス＆サポート */
    .point-section .services-title {
        margin-bottom: 2rem;
        margin-top: 3rem;
    }
    
    /* カリキュラム内容 */
    .curriculum .section-title {
        margin-bottom: 2rem;
        margin-top: 3rem;
    }
    
    /* 受講生の声 */
    .testimonials .section-title {
        margin-bottom: 2rem;
        margin-top: 3rem;
    }
}

/* mobile-onlyクラス：768px以下の時だけ表示 */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    /* nav内のCTAボタンのスタイル調整 */
    .nav .cta-button.mobile-only {
        margin-top: 2rem;
        width: 80%;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
        background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #3f51b5 100%);
        border: none;
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav .cta-button.mobile-only:hover {
        transform: translateY(-2px);
    }
}





footer {
    width: 100%;
    padding: 0;
    text-align: center;
  }
  
  .footer-top{
    padding: 1rem 0;
    background: #313c61;
    color: #fff;
  }
  .footer-top a {
    color: #fff;
  }
  .footer-bottom{
    padding: 0.5rem 0;
    background: #2d354e;
    color: #fff;
  }
  .footer-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 2rem;
  }
  @media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 0.25rem;
  }
  }

/* BMP Intro Section Styles */
.bmp-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.bmp-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.bmp-section .bmp-title {
    color: #e74c3c;
    text-decoration: underline;
    text-decoration-color: #e74c3c;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.bmp-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.bmp-section .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.bmp-section .content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.bmp-section .highlight-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bmp-section .stat-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-left: 5px solid #e74c3c;
}

.bmp-section .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 8px;
    display: block;
}

.bmp-section .stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.bmp-section .partnerships {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.bmp-section .partnerships-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.bmp-section .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.bmp-section .logo-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.bmp-section .logo-item:hover {
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.bmp-section .logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
}

.bmp-section .achievement-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0 4px 8px 0;
}

.bmp-section .curriculum-highlight {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.bmp-section .curriculum-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
}

.bmp-section .curriculum-hours {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
}

@media (max-width: 768px) {
    .bmp-section .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bmp-section .section-title {
        font-size: 2.2rem;
    }
    
    .bmp-section .partnerships {
        padding: 30px 20px;
    }
    
    .bmp-section .logo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bmp-section .stat-number {
        font-size: 2.5rem;
    }
}

/* BMP Intro Section for Index.html */
.bmp-intro-section {
    padding: 80px 0;
    margin: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.bmp-intro-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../img/bg-ai-img2.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

.bmp-intro-inner {
    background: white;
    border-radius: 8px;
    padding: 60px;
    margin: 0 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.bmp-intro-image {
    width: 100%;
}

.bmp-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    aspect-ratio: 16 / 9;
}

.bmp-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.bmp-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmp-photo-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin: 1rem 0;
}

.bmp-photo-grid .photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
}

.bmp-photo-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.bmp-intro-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.bmp-intro-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../img/bmp-intro-header-img.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: -1;
}

.bmp-intro-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.bmp-intro-header h2 {
    position: relative;
    z-index: 1;
    color: white;
}

.bmp-intro-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
    letter-spacing: 0.05em;
}

.bmp-intro-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.bmp-intro-content {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1rem;
}

/* 共通のBMPテキストスタイル */
.bmp-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    position: relative;
}

.bmp-intro-text p {
    position: relative;
    margin-bottom: 1.5rem;
}

/* 独立したBMPテキスト（上部）- ボーダー装飾 */
.bmp-intro-inner > .bmp-intro-text {
    margin-bottom: 1rem;
}

/* ロゴとテキストの横並びレイアウト */
.bmp-intro-left {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    align-items: start;
}

.bmp-intro-logo {
    width: 100%;
    max-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmp-intro-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bmp-intro-text-content {
    padding-left: 2rem;
}

.bmp-intro-text-content p {
    font-size: 1.15rem;
    border-left: 1px solid #0b92d7;
    padding-left: 1.5rem;
    margin-left: -2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: left;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    color: #333;
}

/* 横並びレイアウト内のBMPテキスト - 三角装飾 */
.bmp-intro-content .bmp-intro-text {
    padding-left: 2rem;
}

.bmp-intro-content .bmp-intro-text p::before {
    content: '▶';
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    color: #0b92d7;
    font-size: 0.8rem;
    font-weight: bold;
}

.bmp-intro-text strong {
    background: linear-gradient(135deg, #0b92d7 0%, #0a7bb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.bmp-intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.bmp-intro-stats .stat-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.bmp-intro-stats .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #3f51b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    display: block;
}

.bmp-intro-stats .stat-label {
    background: #636363;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.bmp-intro-section .partnerships {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.bmp-intro-section .partnerships-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.bmp-intro-section .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.bmp-intro-section .logo-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.bmp-intro-section .logo-item:hover {
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.bmp-intro-section .logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
}

.bmp-intro-section .achievement-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0 4px 8px 0;
}

.bmp-intro-section .curriculum-highlight {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.bmp-intro-section .curriculum-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
}

.bmp-intro-section .curriculum-hours {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
}

@media (max-width: 768px) {
    .bmp-intro-content {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .bmp-intro-left {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .bmp-intro-logo {
        max-width: 150px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .bmp-intro-title {
        font-size: 1.6rem;
    }
    
    .bmp-intro-section .partnerships {
        padding: 30px 20px;
    }
    
    .bmp-intro-section .logo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bmp-intro-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bmp-intro-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .bmp-intro-inner {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .bmp-photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* 詳細ボタンセクション */
.details-button-section {
    padding: 40px 0 0;
    text-align: center;
}

/* 詳細はこちらボタンのスタイル */
.btn_arrow {
    display: inline-block;
    position: relative;
    padding: 1em 2.5em;
    min-width: 300px;
    border: 1px solid #999999;
    background-color: transparent;
    color: #999999;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.5s ease;
    border-radius: 3px;
    cursor: pointer;
}

.btn_arrow::after {
    position: absolute;
    top: 50%;
    right: 1em;
    width: 0.5em;
    height: 0.5em;
    transform: translateY(-50%) rotate(45deg);
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    content: "";
    transition: all 0.5s ease;
}

.btn_arrow:hover {
    border: 1px solid #2c3e50;
    background-color: #2c3e50;
    color: #fff;
}

.btn_arrow:hover::after {
    animation: anime_arrow 1s ease 0s infinite;
}

@keyframes anime_arrow {
    0% {
        right: 1em;
    }
    50% {
        right: 0.5em;
    }
    100% {
        right: 1em;
    }
}

@media (max-width: 768px) {
    .btn_arrow {
        font-size: 10.5px;
    }
    .details-button-section {
        padding: 10px 0 0;
        text-align: center;
    }
}  
  
