/* === カラーパレット === */
:root {
    --primary-color: #00796B; /* 青緑系 (メイン) */
    --accent-color1: #FFA000; /* やや濃いオレンジ */
    --accent-color2: #1976D2; /* やや濃い青 */
    --accent-teal: #00796B; /* 青緑系 (ボタン、アクセント) */
    --light-bg: #f8f9fa;      /* 明るい背景色 */
    --dark-blue: #000;      /* 見出しなどを黒に変更 */
    --light-text: #000;       /* 薄いテキスト色 */
    --border-color: #dee2e6;  /* 枠線色 */
    --base-bg: #fff;
    --dark-text: #333;
}

/* === 基本設定 === */
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--dark-text);
    background-color: var(--base-bg);
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}
section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
main > section:last-of-type {
    border-bottom: none;
}
.bg-light {
    background-color: var(--light-bg);
}
.section-gradient-bg {
    background: linear-gradient(97deg, #f6fbe9, #caf7db, #cde3f4, #ddd8fd);
}
.section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px;
    color: var(--light-text);
}
h1, h2, h3 {
    color: var(--dark-blue);
    line-height: 1.5;
    font-weight: 700;
}

/* === H2 タイトルデザイン === */
h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 25px;
    font-weight: 500;
    overflow: hidden;
}
h2::after { display: none; }

.title-en {
    display: block;
    font-family: serif;
    font-size: 40px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--accent-color1) 0%, var(--accent-color2) 50%, var(--accent-teal) 100%);
    background-size: 200% auto;
    background-position: 200% 0;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    transform: translateY(100%);
    animation-fill-mode: forwards;
}
h2.is-visible .title-en {
    animation: slideUpAndColorChange 2.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    color: #000;
    -webkit-text-fill-color: #000;
}

.h2-divider {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #bdc3c7;
    margin: 0 auto 15px;
    border-radius: 1px;
    opacity: 0;
    transform: translateY(100%);
    animation-fill-mode: forwards;
}
h2.is-visible .h2-divider {
    animation: slideUpSimple 1.0s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.title-ja {
    display: block;
    font-size: 16px;
    color: var(--light-text);
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    animation-fill-mode: forwards;
}
h2.is-visible .title-ja {
    animation: slideUpSimple 1.0s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

/* Contactセクションのタイトル色調整 */
.contact h2 .title-en,
.contact h2 .title-ja {
    color: #fff;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.contact h2.is-visible .title-en {
    animation-name: slideUpAndColorChangeWhite;
}
.contact h2 .h2-divider {
    background-color: #fff;
    opacity: 0;
}
.contact h2 .title-ja {
    opacity: 0;
}
.contact h2.is-visible .h2-divider {
    opacity: 0.8;
}
.contact h2.is-visible .title-ja {
    opacity: 0.9;
}


h3 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}
h3::after { display: none; }

p {
    margin-bottom: 1.2em;
    font-size: 16px;
    color: var(--light-text);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: var(--accent-teal);
    font-weight: 500;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--dark-blue);
}
.highlight {
    color: var(--accent-teal);
    font-weight: 700;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* === CTAボタン === */
.cta-button {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.primary-cta {
    background: linear-gradient(135deg, var(--accent-color2) 0%, var(--accent-teal) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 121, 107, 0.3);
}
.primary-cta:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.secondary-cta {
    background: #fff;
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.secondary-cta:hover {
    background: var(--accent-teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 121, 107, 0.25);
}
.large-cta {
    font-size: 20px;
    padding: 20px 60px;
    min-width: 320px;
}

/* === ヘッダー === */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.header-logo a { display: block; }
.header-logo img {
    height: 40px;
    width: auto;
    margin-right: 0;
    border-radius: 0;
    box-shadow: none;
}
.header-tagline {
    font-size: 12px;
    color: var(--light-text);
    margin: 2px 0 0 0;
    font-weight: 400;
}
.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}
.header-nav li {
    margin-bottom: 0;
}
.header-nav a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}
.header-nav a:hover {
    color: var(--accent-teal);
}
.header-nav .nav-cta {
    background: linear-gradient(135deg, var(--accent-color2) 0%, var(--accent-teal) 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}
.header-nav .nav-cta:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1010;
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* === 1. Hero (ファーストビュー) === */
.hero {
    padding: 0;
    text-align: center;
    background-color: #fcfcfc;
    box-shadow: none;
    border-bottom: none;
    overflow: hidden;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    max-width: none;
}
.hero-image-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}
.hero-image-desktop {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}
.hero-image-mobile {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}
.hero-cta-group {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    width: 100%;
    max-width: max-content;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    flex-wrap: nowrap;
}
.hero-cta-group p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: #fff;
    text-align: left;
}
.hero-cta-group-buttons {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

/* === 1.5. Strength Intro === */
.strength-intro-wrapper {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px;
    color: var(--light-text);
    line-height: 1.8;
}
.strength-intro-wrapper p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 1.5em;
}
.strength-intro-wrapper p:last-child {
    margin-bottom: 0;
}
.strength-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
}
.strength-feature-item {
    position: relative;
    padding: 65px 20px 20px 20px;
    background-color: #fff;
    border: 1px solid var(--accent-teal);
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.feature-number {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-teal);
    opacity: 0.8;
    font-family: serif;
}
.feature-text-content { margin-bottom: 20px; }
.strength-feature-item h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
}
.strength-feature-item p {
    font-size: 15px;
    color: var(--light-text);
    text-align: left;
    margin-bottom: 0;
    line-height: 1.7;
}
.strength-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: none;
    object-fit: contain;
}
.sp-only { display: none; }


/* === 2. Problem & Solution === */
.problem-solution { text-align: center; }
.problem-solution h2.section-divider { margin-top: 70px; font-size: 26px; color: var(--accent-teal); padding-bottom: 0; }
.problem-solution h2.section-divider::after { background-color: var(--accent-teal); width: 60px; height: 3px; margin-top: 15px; box-shadow: none; }
.problem-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}
.problem-list li {
    background-color: #f3f7f0;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    color: var(--light-text);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: span 2;
}
.problem-list li::before { display: none; }
.problem-icon { width: 100px; height: 100px; margin-bottom: 10px; box-shadow: none; object-fit: cover;}
.problem-list li strong { display: block; font-size: 20px; font-weight: 700; color: #00796B ; margin-bottom: 12px; text-shadow: none; text-align: center; }
.problem-list li p { margin: 0; font-size: 15px; line-height: 1.7; text-align: left; }
.problem-list li:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
.problem-list li:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; }
.problem-outro { text-align: center; max-width: 750px; margin: 0 auto; font-size: 17px; line-height: 1.8; font-weight: 400; color: var(--light-text); }


/* === 4. Learning Environment === */
.learning-environment ol.support-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px;
    counter-reset: support-counter;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}
.learning-environment ol.support-list li {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0 55px;
    margin-bottom: 0;
    position: relative;
    box-shadow: none;
    transition: none;
}
.learning-environment ol.support-list li:hover {
    transform: none;
    box-shadow: none;
}
.learning-environment ol.support-list li::before {
    counter-increment: support-counter;
    content: counter(support-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--accent-color1);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(255,160,0,0.4);
}
.learning-environment ol.support-list h3 {
    text-align: left;
    font-size: 20px;
    color: #d40e00;
    margin: 0 0 10px 0;
    text-shadow: none;
}
.learning-environment ol.support-list p {
    font-size: 15px;
    margin: 0;
}
.support-strong-message {
    text-align: center;
    max-width: 1000px;
    margin: 60px auto 0;
}
.support-strong-message .support-message-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    margin: 0 auto 40px;
    border-radius: 16px;
}
.support-strong-message .highlight-message {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    color: #d40e00;
    display: inline-block;
    margin: 0 auto;
}

/* === 5. Curriculum === */
.curriculum h2::after { display: none; }
.curriculum-list { max-width: 800px; margin: 0 auto; }
.lecture-block {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}
.lecture-block.format-online { border-left: 5px solid var(--accent-color2); }
.lecture-block.format-real-online { border-left: 5px solid var(--accent-color1); }

.lecture-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 25px; color: #fff; position: relative; overflow: hidden; }
.lecture-block.format-online .lecture-header { background-color: #c7edfc; }
.lecture-block.format-real-online .lecture-header { background-color: #ffefcd; }

.lecture-header::before { display: none; }
.lecture-header h3 { font-size: 19px; color: #333; text-shadow: none; margin: 0; }
.lecture-type { font-size: 13px; padding: 3px 12px; font-weight: 700; text-shadow: none; border-radius: 4px; text-align: center; min-width: 100px; box-sizing: border-box; }
.online-only { background-color: #7d7ddb; color: #fff; }
.real-online { background-color: #f06973; color: #fff; }

.lecture-block ul { background-color: #fff; list-style: none; padding: 20px 25px 20px 50px; margin: 0; font-size: 15px; color: var(--light-text); line-height: 1.7; }
.lecture-block ul li { position: relative; margin-bottom: 8px; padding-left: 10px; }
.lecture-block ul li::before { content: ''; position: absolute; left: -15px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent-teal); opacity: 0.8; }
.lecture-note { font-size: 13px; color: var(--light-text); padding: 15px 25px; border-top: 1px solid var(--border-color); background-color: #fdfdfd; }
.curriculum-details { text-align: center; }
.curriculum-details .cta-button { margin-top: 50px; }


/* === 6. Voice (受講者の声：シンプル版＆スクロール対応) === */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 30px;
    margin-top: 50px;
}

.voice-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    
    /* フレックスボックスで配置制御 */
    display: flex;
    flex-direction: column;
    
    /* カードの高さを420pxに固定 */
    height: 420px; 
}

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

.voice-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    flex-shrink: 0; /* ヘッダー固定 */
}

.voice-profile {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.voice-profile strong {
    font-size: 1.0rem;
    color: #666;
    margin-bottom: 0;
}

.voice-title {
    font-size: 1.25rem;
    color: #00796B;
    margin-bottom: 15px;
    line-height: 1.5;
    background: none;
    padding-left: 0;
    text-align: left;
    font-weight: 700;
    flex-shrink: 0; /* タイトル固定 */
}

/* 装飾の引用符 */
.voice-item::before {
    content: "“";
    font-family: serif;
    font-size: 5rem;
    color: #f4f4f4;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}
.voice-item * {
    position: relative;
    z-index: 1;
}

/* テキストエリア設定（長文スクロール） */
.voice-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 0;
    
    flex-grow: 1; /* 残りの高さを埋める */
    overflow-y: auto; /* あふれたらスクロール */
    padding-right: 10px; /* スクロールバーとの被り防止 */
}

/* スクロールバーのデザイン */
.voice-text::-webkit-scrollbar {
    width: 6px;
}
.voice-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.voice-text::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.voice-text::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


/* === 7. Flow (カミナシ風フロー図) === */
.flow { background: var(--light-bg); }
.flow h2 { margin-bottom: 30px; }
.flow .section-intro { margin-bottom: 50px; }

/* 全体のラッパー */
.flow-horizontal-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 10px;
  box-sizing: border-box;
}

/* フローリスト全体 */
.flow-list {
  display: flex;
  flex-wrap: wrap;         /* 折り返し有効 */
  justify-content: center; /* 中央寄せ */
  gap: 40px 5px;           /* 縦の間隔を40px、横の間隔を5pxに設定 */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 矢印ボックスのデザイン */
.flow-item {
  position: relative;     /* 重なり順制御用 */
  background: #e5f6ff;    /* ベースカラー */
  color: #007cff;
  font-weight: bold;
  font-size: 14px;
  width: 180px;           /* 幅を固定 */
  min-height: 90px;       /* 2行になってもいいように高さを確保 */
  
  /* 上(25px)を固定して位置ズレ防止 */
  padding: 25px 20px 10px 35px; 
  
  display: flex;
  flex-direction: column;
  
  /* 上下中央揃えではなく、上揃えにする */
  justify-content: flex-start; 
  align-items: flex-start;
  
  /* PC用：右向き矢印の形 */
  -webkit-clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%);
  clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%);
  
  /* 影をつける */
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
  
  /* リセット */
  border: none;
  border-radius: 0;
  margin-right: 0;
  box-shadow: none;
}

/* 先頭の要素（PC版）は左を平らにする */
.flow-list li:first-child {
  -webkit-clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%);
  clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%);
  padding-left: 20px; 
}

/* 偶数番目の色を変える */
.flow-item:nth-child(even) {
  background: #c7e9ff; 
}

/* テキストスタイル */
.step-num {
  font-size: 12px;
  margin-bottom: 5px;
  color: #0056b3;
  display: block;
  line-height: 1;
}
.step-label {
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

/* 特殊ボックスの設定 */
/* 納品（強調） */
.item-final {
  background: #007cff !important;
  color: white !important;
}
.item-final .step-num, .item-final .step-label {
  color: white !important;
}

/* オプション（OP） */
.item-option {
  background: #f0f0f0 !important;
  color: #666 !important;
  margin-top: 50px !important; /* 上の段との距離をさらに広げる */
}
.item-option .step-num {
  color: #666;
}

/* 不要な疑似要素を削除 */
.flow-item::after, .flow-item::before {
  display: none !important;
  content: none !important;
}


/* === 8. Instructor (講師紹介) === */
.instructor { text-align: center; }
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.instructor-item {
    background-color: var(--light-bg);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.instructor-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
.instructor-info { padding: 20px; }
.instructor-info h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    text-align: left;
    color: #00796B;
    line-height: 1.4;
}
.instructor-info h3 small {
    display: block;
    font-size: 12px;
    color: var(--light-text);
    margin-top: 4px;
    font-weight: 400;
    text-align: left;
}
.instructor-info p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 0;
    line-height: 1.6;
}


/* === 9. Who We Are (Our Strengths) === */
.our-strengths .section-intro, .our-strengths .strengths-outro { max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; font-size: 16px; }
.our-strengths .section-intro { margin-bottom: 50px; }
.our-strengths .strengths-outro { margin-top: 50px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.book-item { text-align: center; }
.book-item img { margin: 0 auto; }


/* === 10. Vision === */
.vision { text-align: center; }
.vision-strong-message {
    text-align: center;
    max-width: 1000px;
    margin: 60px auto 0;
}
.vision-strong-message .highlight-message {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    color: #d40e00;
    display: inline-block;
    margin: 0 auto;
}


/* === 11. Refund Guarantee === */
.refund-guarantee { text-align: center; max-width: 700px; margin: 0 auto; }
.refund-guarantee h2::after { display: block; width: 60px; height: 3px; background-color: var(--accent-color1); margin: 20px auto 0; border-radius: 1.5px; box-shadow: none; }
.refund-guarantee p { font-size: 17px; line-height: 1.8; }
.refund-guarantee .refund-condition { font-weight: 500; border:1px solid var(--accent-teal); border-radius: 12px; padding: 20px; margin: 30px 0; background-color: #fff; }
.refund-guarantee .refund-condition strong { color: var(--accent-teal); font-weight: 700; text-shadow: none; }


/* === 12. Info Session === */
.info-session { text-align: left; max-width: 800px; margin: 0 auto; }
.info-session p { margin-bottom: 1.5em; font-size: 17px; }
.info-session strong { font-weight: 700; color: red; text-shadow: none; }
.info-session .info-session-highlight { font-weight: 700; background: rgba(255, 229, 35, 0.639); padding: 15px 25px; border-radius: 12px; margin-top: 40px; box-shadow: 0 6px 15px rgba(0,121,107,0.3); font-size: 19px; letter-spacing: 0; }


/* === 13. FAQ === */
.faq h2 { margin-bottom: 50px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.faq-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.09); }
.faq-question { font-size: 18px; font-weight: 600; color: #fff; padding: 22px 25px; margin: 0; position: relative; cursor: pointer; text-align: left; background: linear-gradient(130deg, rgb(22, 192, 237), rgb(150, 131, 206)); transition: all 0.3s ease; display: flex; align-items: center; }
.faq-question:hover { filter: brightness(0.9); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.faq-question::before { content: '+'; font-size: 24px; color: #fff; font-weight: bold; margin-right: 15px; transition: transform 0.3s ease; display: inline-block; width: 1.2em; text-align: center; line-height: 1; }
.faq-item.active .faq-question::before { content: '-'; transform: rotate(180deg); }
.faq-question span { flex: 1; }
.faq-question::after { display: none; }
.faq-answer { padding: 0 25px; background-color: #fdfdfd; max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out, padding 0.35s ease-out; }
.faq-item.active .faq-answer { max-height: 250px; padding-top: 20px; padding-bottom: 25px; border-top: 1px dashed var(--border-color); }
.faq-answer p { font-size: 15px; color: var(--light-text); margin: 0; line-height: 1.7; }
.faq-contact { text-align: center; margin-top: 50px; }
.faq-contact p { font-size: 17px; margin-bottom: 30px; font-weight: 500; color: var(--dark-blue); }


/* === 14. Contact === */
.contact { background: linear-gradient(135deg, var(--accent-teal) 0%, var(--dark-blue) 100%); color: #fff; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.contact::before { display: none; }
.contact > * { position: relative; z-index: 2; }
.contact h2 { color: #fff; font-size: 34px; margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.contact h2 .title-en, .contact h2 .title-ja { color: #fff; opacity: 1; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.contact h2 .title-en { opacity: 0.9; }
.contact .h2-divider { background: #fff; box-shadow: none; }
.contact-text { font-size: 18px; margin-bottom: 40px; line-height: 1.7; opacity: 1; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.15); }
.contact .primary-cta { background-image: none; background-color: #fff; color: var(--accent-teal); box-shadow: 0 10px 30px rgba(0,0,0,0.25); border: none; transition: all 0.3s ease; }
.contact .primary-cta:hover { background-color: #333; color: #fff; transform: translateY(-4px); box-shadow: 0 14px 35px rgba(0,0,0,0.3); }


/* === フッター === */
.footer { background-color: #333; color: #ddd; padding: 30px 0; text-align: center; font-size: 14px; text-shadow: none; }
.footer p { color: #ddd; margin: 0; line-height: 1.6; }


/* === レスポンシブ対応 (Media Queries) === */
@media (max-width: 900px) {
    .problem-list {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 25px;
    }
    .problem-list li {
        grid-column: auto;
        grid-row: auto;
    }
    .problem-list li:nth-child(4),
    .problem-list li:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    
    /* Instructor SP 2列表示 */
    .instructor-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 100%;
        gap: 30px 25px;
    }
    .instructor-photo { height: 300px; }
    .instructor-info { padding: 20px; }
    .instructor-info h3 { font-size: 18px; }
    .instructor-info h3 small { font-size: 12px; }
    .instructor-info p { font-size: 14px; }
    
    /* Voice 2列表示 */
    .voice-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2 { font-size: 30px; }
     .title-en { font-size: 40px; }
     .title-ja { font-size: 15px; }
    h3 { font-size: 21px; }

    .container { padding: 0 20px; }

    .header .container.header-container { position: relative; }
    .header-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 10px 0; border-top: 1px solid var(--border-color); }
    .header-nav.active { display: block; }
    .header-nav ul { flex-direction: column; gap: 0; }
    .header-nav li { width: 100%; text-align: center; }
    .header-nav a { display: block; padding: 12px 20px; font-size: 16px; border-bottom: 1px solid #eee; color: var(--dark-blue); }
    .header-nav li:last-child a { border-bottom: none; }
    .header-nav .nav-cta { margin: 10px auto 0; display: inline-block; width: auto; padding: 10px 25px; }
    .hamburger-menu { display: block; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    .hamburger-menu.active span:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-of-type(2) { opacity: 0; }
    .hamburger-menu.active span:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding-top: 0; padding-bottom: 0; }
    .hero .container.hero-content { padding-left: 0; padding-right: 0; }
    .hero-image-container { margin: 0 auto 0; }
    .hero-image-desktop { display: none; }
    .hero-image-mobile { display: block; width: 100%; max-width: none; margin: 0 auto; box-shadow: none; border-radius: 0; }
    .hero-cta-group { 
        position: static; 
        width: 100%; 
        max-width: none; 
        margin: 0 auto; 
        align-items: center; 
        background: none; 
        padding: 20px 0; 
        backdrop-filter: none; 
        box-shadow: none; 
        flex-direction: column; 
        gap: 15px; 
        transform: none; 
    }
    .hero-cta-group p { display: none; }
    .hero-cta-group-buttons { display: flex; flex-direction: column; gap: 15px; justify-content: center; align-items: center; width: 100%; }
    .hero-cta-group .cta-button { 
        width: 90%; 
        max-width: 320px; 
        box-sizing: border-box; 
        border-radius: 50px; 
    }

    .cta-button { padding: 15px 40px; font-size: 16px; }
    .large-cta { padding: 18px 50px; font-size: 18px; }
    .contact .large-cta { 
        display: block; 
        margin: 0 auto;
        box-sizing: border-box;
        width: 90%; 
        font-size: 18px; 
        padding: 18px 35px; 
    }

    .problem-list li { padding: 20px 20px 20px 25px; font-size: 15px; }
    .problem-list li strong { font-size: 18px; }
    
    .strength-features-grid { grid-template-columns: 1fr; gap: 20px; max-width: 450px; padding: 0; margin-top: 40px; }
    .strength-feature-item { padding: 60px 20px 25px 20px; }
    .feature-number { font-size: 36px; left: 20px; top: 15px; }
    .strength-feature-item h3 { font-size: 19px; text-align: center; margin-top: 5px; }
    .strength-feature-item p { text-align: left; }
    .strength-icon { max-width: 180px; }
    .sp-only { display: inline; }

    .learning-environment ol.support-list { grid-template-columns: 1fr; gap: 30px; max-width: 450px; }
    .learning-environment ol.support-list li { padding: 0 0 0 50px; }
    .learning-environment ol.support-list li::before { left: 0; top: 0; width: 30px; height: 30px; font-size: 16px; }
    .learning-environment ol.support-list h3 { font-size: 19px; }
    .support-strong-message { margin-top: 50px; }
    .support-strong-message .support-message-image { margin-bottom: 30px; border-radius: 12px; }
    .support-strong-message .highlight-message { font-size: 20px; padding: 25px 30px; line-height: 1.5; }

    .vision-strong-message .highlight-message { font-size: 20px; padding: 25px 30px; line-height: 1.5; }    

    .book-grid { gap: 20px; }

    .lecture-header { padding: 12px 20px; flex-direction: column; align-items: center; gap: 5px; }
    .lecture-header h3 { font-size: 18px; }
    .lecture-type { font-size: 12px; padding: 3px 8px;}
    .lecture-block ul { padding: 15px 20px 15px 40px; font-size: 14px; }
    .lecture-note { font-size: 12px; padding: 12px 20px;}

    /* Voice (スマホは1列) */
    .voice-grid { grid-template-columns: 1fr; gap: 20px; }
    .voice-item { 
        padding: 25px 20px;
        /* スマホでも高さを固定してスクロールさせる場合は400px */
        height: 400px; 
    }
    .voice-title { font-size: 1.15rem; }
    .voice-item::before { font-size: 4rem; top: 5px; right: 15px; }

    /* Instructor SP 2列表示 */
    .instructor-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 100%; 
        gap: 20px; 
    }
    .instructor-photo { height: 280px; }
    .instructor-info { padding: 20px; }
    .instructor-info h3 { font-size: 18px; text-align: center; }
    .instructor-info h3 small { font-size: 12px; text-align: center; }
    .instructor-info p { font-size: 14px; text-align: left; }

    .faq-question { font-size: 17px; padding: 20px 25px; }
    .faq-question::before { font-size: 22px; margin-right: 12px; }
    .faq-answer p { font-size: 14px; }

    .contact h2 { font-size: 30px; }
    .contact h2 .title-en { font-size: 40px; }
    .contact h2 .title-ja { font-size: 15px; }
    .contact-text { font-size: 17px; }
}

/* ★ Flowのスマホ対応 (600px以下) */
@media (max-width: 600px) {
  .flow-list {
    flex-direction: column; /* 縦並び */
    gap: 0;                 /* 隙間なく連結 */
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .flow-item {
    width: 100%;
    height: auto;
    min-height: 80px;
    margin-bottom: -20px;   /* 食い込み調整 */
    
    /* ★重要：スマホでも上(35px)を固定して位置ズレを防ぎつつ、文字を下に配置 */
    padding: 35px 20px 40px 20px; 
    
    /* 上揃えにしつつ、左右は中央へ */
    justify-content: flex-start;
    align-items: center;    
    text-align: center;
    
    /* スマホ用：下向き矢印の形 */
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
  }

  /* ★重なり順の制御（上の箱を手前に） */
  .flow-list .flow-item:nth-child(1) { z-index: 20; }
  .flow-list .flow-item:nth-child(2) { z-index: 19; }
  .flow-list .flow-item:nth-child(3) { z-index: 18; }
  .flow-list .flow-item:nth-child(4) { z-index: 17; }
  .flow-list .flow-item:nth-child(5) { z-index: 16; }
  .flow-list .flow-item:nth-child(6) { z-index: 15; }
  .flow-list .flow-item:nth-child(7) { z-index: 14; }
  .flow-list .flow-item:nth-child(8) { z-index: 13; }
  .flow-list .flow-item:nth-child(9) { z-index: 12; }
  .flow-list .flow-item:nth-child(10) { z-index: 11; }

  /* 先頭要素（スマホ版） */
  .flow-list li:first-child {
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
    padding-left: 20px;
    border-radius: 8px 8px 0 0; /* 上だけ丸く */
  }
  
  /* 最後の要素（スマホ版） */
  .flow-list li:last-child {
     margin-bottom: 0;
     -webkit-clip-path: none;
     clip-path: none;
     border-radius: 0 0 8px 8px; /* 下だけ丸く */
     padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
    h2 { font-size: 28px; }
    .title-en { font-size: 36px; }
    .title-ja { font-size: 14px; }

    .hero-image-container { margin: 0 auto 0; }

    .problem-list li { font-size: 14px; }
    .problem-list li strong { font-size: 17px; }

    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .learning-environment ol.support-list li { padding: 0 0 0 45px; }
    .learning-environment ol.support-list li::before { width: 28px; height: 28px; font-size: 14px; }
    .learning-environment ol.support-list h3 { font-size: 17px; }
    .support-strong-message { margin-top: 40px; }
    .support-strong-message .support-message-image { margin-bottom: 25px; border-radius: 10px; }
    .support-strong-message .highlight-message { font-size: 18px; padding: 20px 25px; }

    .vision-strong-message .highlight-message { font-size: 18px; padding: 20px 25px; }    

    .flow-item ul { font-size: 12px; }
    
    /* Instructor SP 2列表示 */
    .instructor-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 100%; 
        gap: 15px; 
    }
    .instructor-photo { height: 250px; }
    .instructor-info { padding: 15px; }
    .instructor-info h3 { font-size: 16px; }
    .instructor-info h3 small { font-size: 11px; }
    .instructor-info p { font-size: 13px; }


    .faq-question { font-size: 16px; }
    .faq-answer p { font-size: 14px; }

    .contact h2 { font-size: 28px; }
    .contact h2 .title-en { font-size: 36px; }
}


/* === Keyframes for Animation === */

/* 英語タイトル用: スライドイン(下から) -> グラデーション -> 最終色 */
@keyframes slideUpAndColorChange {
    0% { opacity: 0; transform: translateY(100%); background-position: 200% 0; -webkit-text-fill-color: transparent; }
    40% { opacity: 1; transform: translateY(0); background-position: 100% 0; -webkit-text-fill-color: transparent; }
    70% { background-position: 0% 0; -webkit-text-fill-color: transparent; }
    100% { background-position: 0% 0; color: #000; -webkit-text-fill-color: #000; opacity: 1; transform: translateY(0); }
}

/* Contactセクション用 (最終色が白) */
@keyframes slideUpAndColorChangeWhite {
    0% { opacity: 0; transform: translateY(100%); background-position: 200% 0; -webkit-text-fill-color: transparent; }
    40% { opacity: 1; transform: translateY(0); background-position: 100% 0; -webkit-text-fill-color: transparent; }
    70% { background-position: 0% 0; -webkit-text-fill-color: transparent; }
    100% { background-position: 0% 0; color: #fff; -webkit-text-fill-color: #fff; opacity: 1; transform: translateY(0); }
}

/* 区切り線・日本語タイトル用: シンプルなスライドアップ */
@keyframes slideUpSimple {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}