/* =============================================
   熊本モバイルアカデミー LP - Main Stylesheet
   ============================================= */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Teal (matching mobile-ac.net) */
    --navy: #1a5c5a;
    --navy-light: #267370;
    --navy-dark: #123d3c;
    --blue: #1f6b69;
    --blue-light: #2a8583;
    --blue-pale: #e4f2f1;
    --blue-bg: #eef7f6;
    
    /* Accent - Gold (matching mobile-ac.net) */
    --accent: #c99a3a;
    --accent-soft: #d9a84e;
    --gold: #c99a3a;
    --gold-light: #d9a84e;
    --gold-pale: #f5ecd8;
    
    /* Warm tones */
    --warm-beige: #f9f6f1;
    --warm-cream: #fefcf8;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Text */
    --text-primary: #1e3a3a;
    --text-secondary: #4a6060;
    --text-light: #7a9090;
    --text-white: #ffffff;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', Georgia, serif;
    
    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 72px;
    --container-max: 1080px;
    --container-wide: 1200px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26, 92, 90, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 92, 90, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 92, 90, 0.10);
    --shadow-xl: 0 16px 48px rgba(26, 92, 90, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* SP only line breaks */
.sp-only {
    display: none;
}

/* 語の途中改行を避けたい短いフレーズ（必要な箇所のみ） */
.jp-nowrap {
    white-space: nowrap;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.section-title .text-accent {
    color: var(--gold);
}

.section-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    margin: 24px auto 0;
    border-radius: 1px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
    overflow: visible;
}

.header.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-list a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--blue);
    transition: width var(--transition-normal);
}

.nav-list a:hover {
    color: var(--navy);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    letter-spacing: 0.02em;
}

.header-cta-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ハンバーガーがactiveの時は最前面に */
.hamburger.active {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 9999;
}



.mobile-nav-list {
    text-align: center;
    padding-top: 72px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-nav-list a:hover {
    color: var(--blue);
}

.mobile-nav-cta {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav-cta a {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-xl);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
    background: url('../images/hero.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 92, 90, 0.85) 0%,
        rgba(31, 107, 105, 0.70) 50%,
        rgba(18, 61, 60, 0.80) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.hero-title span {
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-light);
    border-radius: 2px;
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 2;
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    letter-spacing: 0.02em;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    color: var(--navy);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    color: var(--white);
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-scroll span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ===== Section 2: Target ===== */
.section-target {
    background: var(--white);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.target-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
}

.target-card:hover {
    background: var(--white);
    border-color: var(--blue-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.target-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--blue-pale);
    border-radius: 50%;
    color: var(--blue);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.target-card:hover .target-icon {
    background: var(--blue);
    color: var(--white);
}

.target-card p {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ===== Section 3: Vision ===== */
.section-vision {
    background: var(--warm-beige);
}

.vision-content {
    max-width: 860px;
    margin: 0 auto;
}

.vision-text {
    text-align: center;
    margin-bottom: 64px;
}

.vision-text p {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.vision-text p:last-child {
    margin-bottom: 0;
}

.vision-text strong {
    color: var(--navy);
    font-weight: 600;
}

.vision-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vision-value-card {
    background: var(--white);
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.vision-value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--blue-pale);
}

.vision-value-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-pale);
    margin-bottom: 16px;
    line-height: 1;
}

.vision-value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.vision-value-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Section 4: Curriculum ===== */
.section-curriculum {
    background: var(--white);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.curriculum-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
}

.curriculum-card:hover {
    background: var(--white);
    border-color: var(--blue-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Make last 2 cards span center */
.curriculum-grid .curriculum-card:nth-child(4) {
    grid-column: 1 / 2;
}

.curriculum-grid .curriculum-card:nth-child(5) {
    grid-column: 2 / 3;
}

.curriculum-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.curriculum-number {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    min-width: 36px;
}

.curriculum-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.curriculum-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.curriculum-list li:last-child {
    margin-bottom: 0;
}

.curriculum-list li i {
    color: var(--blue);
    font-size: 0.7rem;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ===== Section 5: Flow ===== */
.section-flow {
    background: var(--blue-bg);
}

.flow-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.flow-diagram {
    max-width: 560px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.flow-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
    border-color: var(--blue-pale);
}

.flow-step-final {
    background: var(--white);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(201, 154, 58, 0.15);
}

.flow-step-final:hover {
    background: var(--white);
    border-color: var(--gold-light);
    transform: translateX(8px);
    box-shadow: 0 6px 28px rgba(201, 154, 58, 0.22);
}

.flow-step-final .flow-step-icon {
    background: var(--gold);
    color: var(--white);
}

.flow-step-final h3 {
    color: var(--navy);
    font-weight: 700;
}

.flow-step-final p {
    color: var(--text-secondary);
}

.flow-step-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: 50%;
    color: var(--blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flow-step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.flow-step-content {
    flex: 1;
    min-width: 0;
}

.flow-step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.flow-arrow {
    text-align: center;
    padding: 12px 0;
    color: var(--blue);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* ===== Section 6: Support ===== */
.section-support {
    background: var(--white);
}

.support-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 56px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
}

.support-card:hover {
    background: var(--white);
    border-color: var(--blue-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.support-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--blue-pale);
    border-radius: var(--radius-md);
    color: var(--blue);
    font-size: 1.3rem;
    transition: all var(--transition-normal);
}

.support-card:hover .support-card-icon {
    background: var(--blue);
    color: var(--white);
}

.support-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.support-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Section 7: Qualification ===== */
.section-qualification {
    background: var(--warm-beige);
}

.qualification-content {
    max-width: 800px;
    margin: 0 auto;
}

.qualification-text {
    text-align: center;
    margin-bottom: 56px;
}

.qualification-text p {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.qualification-text p:last-child {
    margin-bottom: 0;
}

/* Certification Cards */
.cert-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.cert-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
    border-color: var(--blue-pale);
}

.cert-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: var(--radius-md);
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cert-card:hover .cert-card-icon {
    background: var(--blue);
    color: var(--white);
}

.cert-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.cert-card-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cert-card-benefit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cert-note {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
}

.cert-mpca {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cert-mpca i {
    color: var(--blue);
    font-size: 0.82rem;
}

.cert-mpca a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.cert-mpca a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* ===== Section 8: Fit Check ===== */
.section-fit {
    background: var(--white);
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.fit-card {
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.fit-card-good {
    background: var(--gray-50);
    border-color: var(--blue-pale);
}

.fit-card-not {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.fit-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.fit-card-good .fit-card-header {
    border-bottom-color: var(--blue-pale);
}

.fit-card-icon {
    font-size: 1.3rem;
}

.fit-card-good .fit-card-icon {
    color: var(--blue);
}

.fit-card-not .fit-card-icon {
    color: var(--gray-500);
}

.fit-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}

.fit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.fit-list li:last-child {
    margin-bottom: 0;
}

.fit-card-good .fit-list li i {
    color: var(--blue);
    font-size: 0.75rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.fit-card-not .fit-list li i {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.fit-list li span {
    color: var(--text-primary);
}

.fit-card-not .fit-list li span {
    color: var(--text-secondary);
}

/* ===== Section 9: FAQ ===== */
.section-faq {
    background: var(--gray-50);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--blue-pale);
}

.faq-item.active {
    border-color: var(--blue-pale);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.faq-question:hover {
    color: var(--navy);
}

.faq-toggle-icon {
    font-size: 0.85rem;
    color: var(--blue);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out,
                padding var(--transition-normal) ease-out;
}

.faq-answer p {
    padding: 0 28px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ===== Section 10: Message ===== */
.section-message {
    position: relative;
    background: url('../images/bg-abstract.jpg') center center / cover no-repeat;
    padding: var(--section-padding) 0;
}

.message-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 92, 90, 0.90) 0%,
        rgba(31, 107, 105, 0.84) 50%,
        rgba(18, 61, 60, 0.92) 100%
    );
}

.message-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(960px, 100%);
    margin: 0 auto;
}

.message-content .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.message-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 48px;
    letter-spacing: 0.03em;
}

.message-text {
    text-align: center;
}

.message-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 2.2;
    margin-bottom: 20px;
    line-break: strict;
    word-break: keep-all;
    text-wrap: pretty;
}

.message-text strong {
    color: var(--white);
    font-weight: 600;
}

.message-closing {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.05rem !important;
    color: var(--white) !important;
}

/* ===== Section 11: CTA ===== */
.section-cta {
    background: var(--white);
    padding: 100px 0 120px;
}

.cta-content {
    text-align: center;
    max-width: min(780px, 100%);
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.cta-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 48px;
    line-break: strict;
    word-break: keep-all;
    text-wrap: pretty;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 48px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    letter-spacing: 0.02em;
    width: fit-content;
}

.btn-cta-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--blue-pale);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    letter-spacing: 0.02em;
    width: fit-content;
}

.btn-cta-secondary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cta-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    letter-spacing: 0.02em;
    width: fit-content;
}

.btn-cta-tertiary:hover {
    color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.cta-note i {
    color: var(--blue);
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 0;
}

.footer-content {
    text-align: center;
    padding-bottom: 40px;
}

.footer .logo-main {
    color: var(--white);
    font-size: 1.1rem;
}

.footer .logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* ===== Animations ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.9;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Target */
    .target-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .target-card {
        padding: 28px 16px;
    }
    
    /* Vision */
    .vision-text p {
        font-size: 0.92rem;
    }
    
    .vision-values {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vision-value-card {
        padding: 32px 24px;
    }
    
    /* Curriculum */
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .curriculum-grid .curriculum-card:nth-child(4),
    .curriculum-grid .curriculum-card:nth-child(5) {
        grid-column: auto;
    }
    
    /* Flow */
    .flow-intro {
        font-size: 0.92rem;
    }
    
    .flow-step {
        padding: 20px 24px;
        gap: 16px;
    }
    
    .flow-step-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* Support */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .support-card {
        padding: 32px 24px;
    }
    
    /* Certification Cards */
    .cert-card {
        padding: 24px 20px;
        gap: 16px;
    }
    
    .cert-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* Fit */
    .fit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fit-card {
        padding: 32px 24px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 18px 20px;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.85rem;
    }
    
    /* Message */
    .message-title {
        font-size: 1.7rem;
    }
    
    .message-text p {
        font-size: 0.92rem;
    }
    
    /* CTA */
    .section-cta {
        padding: 72px 0 80px;
    }
    
    .cta-title {
        font-size: 1.7rem;
    }
    
    .cta-text {
        font-size: 0.88rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-tertiary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* Footer */
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-label {
        font-size: 0.72rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .target-grid {
        grid-template-columns: 1fr;
    }
    
    .target-card {
        padding: 24px 20px;
    }
    
    .header-inner {
        height: 60px;
    }
    
    .logo-main {
        font-size: 0.95rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LP: 枠まわりの横幅・折り返し（文字サイズは変えない） ===== */
.section-target .container,
.section-vision .container,
.section-curriculum .container,
.section-flow .container,
.section-support .container,
.section-qualification .container,
.section-fit .container {
    max-width: min(1280px, 100%);
}

.vision-content {
    max-width: 1040px;
}

.flow-intro {
    max-width: 800px;
}

.flow-diagram {
    max-width: min(960px, 100%);
}

/* 枠内テキスト：単語途中改行を避け、禁則に近い折り返し（日本語） */
.target-card p,
.vision-value-card p,
.curriculum-list li,
.flow-step-content p,
.support-card p,
.cert-card-body,
.cert-card-benefit {
    line-break: strict;
    word-break: keep-all;
    text-wrap: pretty;
}

@media (min-width: 769px) {
    /* 3列→2列でカード幅を大きくし、短文の不自然な改行を減らす */
    .target-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .target-card {
        padding: 40px 32px;
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .support-card {
        padding: 40px 28px;
    }

    .vision-values {
        gap: 28px;
    }

    .vision-value-card {
        padding: 40px 32px;
    }

    .cert-card {
        padding: 32px 36px;
    }

    .flow-step {
        padding: 28px 36px;
    }
}

/* ===== Experience signup form page ===== */
.form-page-body {
    background: var(--warm-beige);
}

.form-page-header .header-inner {
    justify-content: space-between;
}

.form-page-header .logo {
    flex-shrink: 1;
    min-width: 0;
}

.header-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 16px;
}

.header-back-link:hover {
    color: var(--navy);
}

.form-page-main {
    padding-top: 96px;
    padding-bottom: 48px;
}

.form-page-container {
    max-width: 640px;
}

.form-page-intro {
    text-align: center;
    margin-bottom: 40px;
}

.form-page-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.form-page-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.95;
    text-align: left;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.taiken-form .form-field {
    margin-bottom: 24px;
}

.taiken-form .form-field:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-required {
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42, 133, 131, 0.15);
    background: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.form-field--checkbox {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.6;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--navy);
}

.form-hint {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.7;
}

.form-status {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.6;
}

.form-status--success {
    background: var(--blue-pale);
    color: var(--navy);
    border: 1px solid var(--blue-pale);
}

.form-status--error {
    background: #fff5f5;
    color: #8a2c2c;
    border: 1px solid #f5c6c6;
}

.form-actions {
    margin-top: 32px;
    text-align: center;
}

.form-submit-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.form-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-page-footnote {
    text-align: center;
    margin-top: 32px;
}

.form-page-footnote a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--blue);
}

.form-page-footnote a:hover {
    color: var(--navy);
}

.form-page-footer {
    padding-top: 0;
}

@media (max-width: 768px) {
    .form-page-title {
        font-size: 1.45rem;
    }

    .form-card {
        padding: 28px 20px;
    }

    .header-back-link {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .header-back-link {
        font-size: 0.72rem;
        gap: 4px;
    }

    .form-page-header .logo-main {
        font-size: 0.82rem;
    }
}

/* ===== Mobile polish: reduce oversized frames and stabilize wrapping ===== */
@media (max-width: 768px) {
    :root {
        --section-padding-mobile: 56px;
        --radius-md: 10px;
        --radius-lg: 14px;
        --radius-xl: 22px;
    }

    .container,
    .header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        height: 64px;
    }

    .logo {
        gap: 8px;
        min-width: 0;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo-main {
        font-size: 0.92rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-label {
        margin-bottom: 12px;
    }

    .section-title,
    .message-title,
    .cta-title,
    .form-page-title {
        letter-spacing: 0.01em;
        text-wrap: balance;
    }

    .hero {
        min-height: 100svh;
        padding-top: 64px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-label {
        padding: 7px 18px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-title {
        line-height: 1.45;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        line-height: 1.85;
        margin-bottom: 40px;
    }

    .btn {
        min-height: 56px;
        padding: 14px 22px;
        border-radius: 999px;
        line-height: 1.45;
        text-align: center;
    }

    .target-card,
    .vision-value-card,
    .curriculum-card,
    .support-card,
    .fit-card,
    .flow-step,
    .cert-card,
    .faq-item {
        border-radius: 14px;
        box-shadow: none;
        max-width: 100%;
        overflow: hidden;
    }

    .target-card {
        padding: 22px 18px;
    }

    .target-icon,
    .support-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .vision-text {
        margin-bottom: 40px;
    }

    .vision-text p,
    .qualification-text p,
    .message-text p,
    .cta-text,
    .support-intro,
    .flow-intro,
    .cert-note {
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    .target-card *,
    .vision-value-card *,
    .curriculum-card *,
    .flow-step *,
    .support-card *,
    .cert-card *,
    .fit-card *,
    .faq-item * {
        max-width: 100%;
        min-width: 0;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .vision-value-card {
        padding: 26px 20px;
    }

    .vision-value-number {
        margin-bottom: 12px;
    }

    .curriculum-card {
        padding: 24px 20px;
    }

    .curriculum-card-header {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .curriculum-number {
        min-width: 30px;
        font-size: 1.4rem;
    }

    .curriculum-list li,
    .fit-list li {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .flow-intro,
    .support-intro,
    .qualification-text {
        margin-bottom: 40px;
    }

    .flow-step {
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
        border-radius: 14px;
    }

    .flow-step-icon,
    .cert-card-icon {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .support-card {
        padding: 26px 20px;
    }

    .support-grid,
    .target-grid,
    .vision-values,
    .curriculum-grid,
    .fit-grid {
        width: 100%;
        min-width: 0;
    }

    .cert-card {
        gap: 14px;
        padding: 20px;
        border-radius: 14px;
    }

    .cert-mpca {
        align-items: flex-start;
        line-height: 1.7;
    }

    .fit-card {
        padding: 26px 20px;
    }

    .fit-card-header {
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .faq-question {
        padding: 16px 18px;
        gap: 12px;
        line-height: 1.6;
    }

    .faq-answer p {
        padding: 0 18px 18px;
        line-height: 1.8;
    }

    .section-message {
        padding: 64px 0;
    }

    .message-title {
        margin-bottom: 36px;
    }

    .message-closing {
        margin-top: 32px;
        padding-top: 24px;
    }

    .section-cta {
        padding: 60px 0 68px;
    }

    .cta-text {
        margin-bottom: 36px;
    }

    .cta-note {
        line-height: 1.7;
    }

    .form-page-main {
        padding-top: 88px;
        padding-bottom: 36px;
    }

    .form-page-intro {
        margin-bottom: 28px;
    }

    .form-page-lead {
        line-height: 1.85;
    }

    .form-card {
        padding: 24px 18px;
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
    }

    .taiken-form .form-field {
        margin-bottom: 20px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 13px 14px;
        border-radius: 10px;
    }

    .form-actions {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .container,
    .header-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-title {
        line-height: 1.55;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle,
    .form-page-lead {
        font-size: 0.86rem;
    }

    .target-card,
    .vision-value-card,
    .curriculum-card,
    .support-card,
    .cert-card,
    .fit-card,
    .form-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cert-card {
        flex-direction: column;
    }
}
