/* --- Base & Variables (Modern White Theme) --- */
:root {
    /* メインカラー：信頼感のある鮮やかなブルー */
    --primary: #0ea5e9;       /* Sky Blue 500 */
    --primary-dark: #0284c7;  /* Sky Blue 600 */
    --accent: #38bdf8;        /* Sky Blue 400 */
    
    /* LINE色は維持 */
    --line-color: #06C755;
    
    /* テキストカラー：可読性の高いダークネイビー・グレー */
    --text-main: #1e293b;     /* Slate 800 - 完全な黒より目に優しい */
    --text-sub: #64748b;      /* Slate 500 */
    --text-white: #ffffff;
    
    /* 背景色：白・オフホワイトベース */
    --bg-body: #ffffff;       
    --bg-pale: #f0f9ff;       /* 極めて薄いブルーグレー（セクション背景用） */
    --bg-card: #ffffff;       
    --bg-footer: #1e293b;     /* フッターのみ引き締め色のダーク */
    
    --radius: 16px;           /* より丸みを持たせて親しみやすく */
    
    /* 影：白背景に映える柔らかく拡散する影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-float: 0 20px 40px -10px rgba(14, 165, 233, 0.15); /* 浮き上がるような影 */
    
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-jp);
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.8;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 0;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-pale { background-color: var(--bg-pale); }

/* --- Scroll Progress --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
    width: 0%; z-index: 2000; transition: width 0.1s;
}

/* --- Header & Nav --- */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    height: 70px; display: flex; align-items: center;
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-sub { font-size: 11px; color: var(--text-sub); display: block; line-height: 1; margin-bottom: 4px; }
.logo-main { font-size: 1.2rem; font-weight: 900; color: var(--primary); letter-spacing: 0.05em; }

.nav-desktop { display: none; }

/* Hamburger */
.hamburger {
    width: 44px; height: 44px; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
}
.bar { width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; border-radius: 2px; }
.hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active .bar:nth-child(2) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
    background: var(--bg-body); z-index: 999;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; padding: 20px;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-link {
    font-size: 1.1rem; font-weight: 700; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: block; color: var(--text-main);
}
.mobile-link span { color: var(--primary); font-family: var(--font-en); margin-right: 10px; font-weight: 500; }
.mobile-menu-cta { margin-top: auto; padding-bottom: 40px; }

/* --- Components --- */
.btn-primary {
    background: linear-gradient(135deg, var(--line-color), #05a045); 
    color: white;
    font-weight: 700; border-radius: 50px; padding: 14px 28px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.25);
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35);
}
.btn-primary.large { width: 100%; max-width: 340px; padding: 20px; font-size: 1.1rem; }
.btn-primary:active { transform: scale(0.98); }
.full-width { width: 100%; }

.tag-label { 
    display: inline-block; 
    background: #e0f2fe;
    color: var(--primary-dark); 
    font-size: 0.85rem; padding: 6px 16px; border-radius: 50px; font-weight: 700; margin-bottom: 16px;
}

/* --- Hero Section --- */
.hero { 
    padding-top: 140px; padding-bottom: 80px; text-align: center; 
    position: relative; overflow: hidden; 
}
.hero-bg-circle {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 150vw; height: 100vw;
    background: radial-gradient(circle, rgba(224, 242, 254, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1; pointer-events: none;
}

.hero-title {
    font-size: clamp(1.1rem, 6vw, 2.4rem); 
    white-space: nowrap;
    line-height: 1.3; 
    font-weight: 900; 
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.accent-x { color: var(--primary); font-weight: 300; margin: 0 8px; }
.hero-text { font-size: 1.05rem; color: var(--text-sub); margin-bottom: 40px; }
.cta-micro { font-size: 0.9rem; font-weight: 700; color: #ef4444; margin-bottom: 10px; } 
.arrow-icon { margin-left: 8px; transition: transform 0.3s; }
.btn-primary:hover .arrow-icon { transform: translateX(5px); }

/* --- Features (Bento Grid) --- */
.section-header { margin-bottom: 50px; text-align: center; }
.section-en { 
    font-family: var(--font-en); font-weight: 700; color: var(--primary); 
    letter-spacing: 0.15em; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 8px;
}
.section-jp { font-size: 1.75rem; font-weight: 900; color: var(--text-main); }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bento-item {
    background: var(--bg-card); 
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius);
    padding: 30px; display: flex; align-items: flex-start; gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.icon-box { font-size: 2.2rem; line-height: 1; flex-shrink: 0; background: #f1f5f9; padding: 12px; border-radius: 12px; }
.bento-content h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.bento-content p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.7; }

/* --- Tuition Rule (Timeline) --- */
.rule-card {
    background: var(--bg-card); padding: 50px 30px; border-radius: 24px;
    box-shadow: var(--shadow-lg); text-align: center;
    margin-bottom: 50px; position: relative; overflow: hidden;
}
.rule-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
}

.badge-red { background: #fee2e2; color: #ef4444; font-size: 0.8rem; padding: 6px 12px; border-radius: 50px; font-weight: 700; vertical-align: middle; display: inline-block; margin-bottom: 10px; }
.rule-header h3 { font-size: 1.6rem; margin: 15px 0 20px; font-weight: 900; color: var(--text-main); }
.rule-lead { font-size: 1rem; text-align: left; margin-bottom: 40px; color: var(--text-sub); }
.rule-lead strong { color: var(--primary-dark); background: linear-gradient(transparent 70%, #bae6fd 70%); }

.timeline-visual { margin: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.timeline-item {
    width: 100%; border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 20px;
    position: relative; text-align: left; background: #f8fafc;
    transition: transform 0.3s;
}
.timeline-item.highlight { 
    border: 2px solid var(--primary); 
    background: #f0f9ff;
    box-shadow: var(--shadow-float);
    transform: scale(1.02);
}
.tm-point { width: 14px; height: 14px; border-radius: 50%; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); }
.tm-point.start { background: #cbd5e1; }
.tm-point.end { background: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }

.tm-grade { font-size: 0.85rem; color: var(--text-sub); display: block; margin-bottom: 4px; font-weight: 700; }
.tm-price { font-size: 1.3rem; font-weight: 900; color: var(--text-main); }
.tm-price.active { color: var(--primary); }

.timeline-arrow-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 700;
}
.timeline-label { margin-bottom: 5px; font-size: 0.85rem; }
.timeline-icon { font-size: 1.5rem; line-height: 1; }

.rule-notes { text-align: left; margin-top: 30px; background: #f1f5f9; padding: 20px; border-radius: 12px; }
.note-text { font-size: 0.8rem; color: #64748b; margin-bottom: 6px; }

/* --- Cost Comparison Infographic --- */
.comparison-area {
    background: var(--bg-card); border-radius: 24px; padding: 40px 30px;
    box-shadow: var(--shadow-md); 
    border: 1px solid rgba(0,0,0,0.05);
}
.comparison-header { text-align: center; margin-bottom: 30px; }
.comparison-header h3 { font-size: 1.4rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.comp-note { font-size: 0.75rem; color: #94a3b8; }

.comp-case { margin-bottom: 50px; }
.comp-case h4 { 
    font-size: 1.15rem; font-weight: 700; margin-bottom: 15px; 
    border-left: 5px solid var(--primary); padding-left: 15px; 
    color: var(--text-main);
}

.comp-flex { display: flex; flex-direction: column; gap: 15px; }
.comp-card {
    border-radius: 16px; padding: 20px; flex: 1;
    display: flex; flex-direction: column;
}
.comp-card.general { 
    background: #f1f5f9; 
    color: #64748b;
}
.comp-card.free { 
    background: #ffffff; 
    border: 2px solid var(--primary); 
    position: relative; 
    box-shadow: var(--shadow-lg);
}
.comp-card.free::after { 
    content: "free"; position: absolute; top: -12px; right: 20px; 
    background: var(--primary); color: white; 
    padding: 2px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; 
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.comp-card-title { 
    font-size: 0.95rem; font-weight: 700; text-align: center; margin-bottom: 12px; 
    padding-bottom: 8px; border-bottom: 1px dashed #cbd5e1; 
    color: var(--text-main); 
}
.comp-card.free .comp-card-title { color: var(--primary); border-bottom-color: var(--primary); }

.comp-list { font-size: 0.85rem; margin-bottom: 15px; flex-grow: 1; padding: 0; color: var(--text-main); }
.comp-list li { margin-bottom: 6px; position: relative; padding-left: 1em; }
.comp-list li::before { content: "・"; position: absolute; left: 0; color: #94a3b8; }

.comp-total { 
    font-weight: 900; text-align: center; 
    background: #e2e8f0; color: #475569;
    padding: 10px; border-radius: 8px; font-size: 1rem; 
}
.comp-card.free .comp-total { 
    color: #ef4444; 
    border: 2px solid #fee2e2; 
    background: #fef2f2;
}

.comp-diff {
    text-align: center; margin-top: 15px; font-weight: 700; color: var(--text-main); font-size: 1.05rem;
    background: #fffbeb;
    padding: 12px; border-radius: 12px; border: 1px solid #fcd34d;
}
.comp-diff strong { color: #d97706; font-size: 1.4rem; margin: 0 4px; }
.diff-arrow { color: var(--primary); margin-right: 5px; }

/* --- Flow (Steps) --- */
.step-list { display: flex; flex-direction: column; gap: 30px; }
.step-item { 
    display: flex; gap: 24px; align-items: flex-start; 
    background: white; padding: 20px; border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.step-num {
    background: var(--primary); color: white; width: 48px; height: 48px;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-en); flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4); font-size: 1.2rem;
}
.step-body h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-main); font-weight: 700; }
.step-body p { font-size: 0.95rem; color: var(--text-sub); }

/* --- Pricing --- */
.pricing-wrapper { display: flex; flex-direction: column; gap: 30px; }
.price-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); }

.price-card.recommended { 
    border: 3px solid var(--primary); 
    box-shadow: var(--shadow-float);
    transform: scale(1.02);
}
.price-card.recommended:hover { transform: scale(1.02) translateY(-5px); }

.pc-header { background: #f8fafc; padding: 30px 20px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.pc-badge { background: #fbbf24; color: #fff; font-size: 0.8rem; padding: 4px 12px; border-radius: 50px; font-weight: 700; box-shadow: 0 2px 5px rgba(251, 191, 36, 0.4); }
.pc-header h4 { font-size: 1.2rem; font-weight: 900; margin-top: 10px; color: var(--text-main); }
.pc-desc { font-size: 0.85rem; color: var(--primary); font-weight: 700; margin-top: 5px; }

.pc-features { padding: 25px; background: var(--bg-card); font-size: 0.95rem; }
.pc-features li { margin-bottom: 10px; padding-left: 24px; position: relative; color: var(--text-main); }
.pc-features li::before { 
    content: "✔"; color: white; background: var(--line-color); 
    position: absolute; left: 0; top: 2px;
    width: 16px; height: 16px; border-radius: 50%; font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}

.pc-features li.text-blue { color: var(--primary-dark); font-weight: 700; background: #f0f9ff; padding: 8px 8px 8px 28px; border-radius: 6px; }
.pc-features li.text-blue::before { top: 10px; left: 6px; }
.pc-features li.mute { color: #94a3b8; }
.pc-features li.mute::before { background: #cbd5e1; }

.table-container { overflow-x: auto; padding-bottom: 10px; margin: 0 10px 20px; }
.clean-table { width: 100%; border-collapse: collapse; min-width: 320px; font-size: 0.95rem; }
.clean-table th, .clean-table td { padding: 14px 10px; text-align: center; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.clean-table thead th { font-size: 0.85rem; color: var(--text-sub); font-weight: normal; background: #f8fafc; }
.clean-table tbody th { text-align: left; font-weight: 700; padding-left: 15px; position: sticky; left: 0; background: var(--bg-card); z-index: 1; border-right: 2px solid #f1f5f9; color: var(--text-main); }
.clean-table td { color: var(--primary-dark); font-weight: 700; font-family: var(--font-en); }
.yen { font-size: 0.75em; margin-left: 2px; color: var(--text-sub); }

.fees-simple { background: white; padding: 25px; border-radius: 16px; margin-top: 20px; border: 1px solid #e2e8f0; box-shadow: var(--shadow-sm); }
.fee-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #cbd5e1; padding: 12px 0; color: var(--text-main); }
.fee-row:last-child { border-bottom: none; }
.fee-row dt { font-weight: 700; }
.fee-row dd { font-weight: 700; font-family: var(--font-en); }
.fee-note-bottom { font-size: 0.9rem; color: var(--primary); font-weight: 700; margin-top: 20px; text-align: center; }

/* --- FAQ --- */
.faq-grid { display: flex; flex-direction: column; gap: 16px; }
.faq-details { 
    background: var(--bg-card); border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; 
    transition: all 0.3s;
}
.faq-details:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.faq-details summary { 
    padding: 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; 
    color: var(--text-main); font-size: 1.05rem;
}
.faq-details summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 20px 24px; font-size: 1rem; color: var(--text-sub); line-height: 1.8; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.icon { font-weight: 300; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-details[open] .icon { transform: rotate(45deg); }
.faq-details[open] { background: #fdfeff; }

/* --- Access --- */
.access-card { 
    background: var(--bg-card); border-radius: 24px; overflow: hidden; 
    box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.05); 
}
.access-text { padding: 40px; text-align: center; }
.access-text h3 { margin-bottom: 20px; font-size: 1.5rem; color: var(--text-main); font-weight: 900; }
.access-text address { font-style: normal; margin-bottom: 20px; line-height: 1.8; color: var(--text-sub); }
.hours { font-weight: 700; color: var(--primary-dark); margin-bottom: 30px; background: #f0f9ff; display: inline-block; padding: 8px 20px; border-radius: 50px; }
.access-map { height: 400px; width: 100%; }
.access-map iframe { filter: none; }

/* --- Footer --- */
.footer { background: var(--bg-footer); color: #94a3b8; text-align: center; padding: 40px 0; font-size: 0.85rem; }

/* --- Mobile Bottom Bar --- */
.mobile-bottom-bar {
    position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 900;
}
.bar-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--line-color), #05a045); color: white; padding: 14px;
    border-radius: 16px; box-shadow: 0 10px 25px rgba(6,199,85,0.4);
    text-align: center; border: 2px solid white;
}

/* --- Animations (Professional & Smooth) --- */
.fade-up, .fade-in, .stagger-item { 
    opacity: 0; 
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up { transform: translateY(40px); }
.stagger-item { transform: translateY(20px); }

body.js-active .visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.shadow-pulse { animation: pulseShadow 2s infinite; }
@keyframes pulseShadow {
    0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}

/* --- Desktop Adjustments (Min-width: 768px) --- */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .nav-desktop { display: flex; align-items: center; gap: 30px; }
    .nav-desktop ul { display: flex; gap: 24px; }
    .nav-link { font-weight: 700; font-size: 0.95rem; color: var(--text-main); position: relative; }
    
    .nav-link::after {
        content: ""; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px;
        background: var(--primary); transition: width 0.3s;
    }
    .nav-link:hover { color: var(--primary); }
    .nav-link:hover::after { width: 100%; }

    .btn-header { background: var(--line-color); color: white; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(6,199,85,0.3); transition: transform 0.2s; }
    .btn-header:hover { transform: translateY(-2px); }
    
    .hero-title { font-size: 4rem; }
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    
    .pricing-wrapper { flex-direction: row; align-items: flex-start; }
    .price-card { flex: 1; }
    
    .timeline-visual { flex-direction: row; justify-content: center; gap: 40px; }
    .timeline-arrow-container { flex-direction: column; margin: 0; }
    .timeline-label { margin-bottom: 8px; font-size: 1rem; }
    .timeline-icon { transform: rotate(-90deg); }
    .timeline-item { width: auto; min-width: 300px; }
    
    .comp-flex { flex-direction: row; gap: 30px; }
    .comp-diff { width: 80%; margin: 20px auto 0; font-size: 1.2rem; }
    
    .access-card { display: grid; grid-template-columns: 1fr 1.2fr; }
    .access-map { height: 100%; min-height: 450px; }
    .access-text { display: flex; flex-direction: column; justify-content: center; padding: 50px; text-align: left; }
    .access-text h3 { text-align: left; }
    
    .mobile-bottom-bar { display: none; }
}
