/* 基本設定 */
:root {
    --main-color: #1d9de7; /* メインカラー */
    --accent-color: #f47f26; /* アクセントカラー */
    --accent-color-2: #11bd1f;
    --bg-color: #e8f1f8; /* 背景色 */
    --text-color: #333; /* テキストカラー */
    --header-height: 70px; /* ヘッダーの高さ */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: var(--header-height);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.8;
}

/* 汎用クラス */
.container { max-width: 960px; margin: 0 auto; padding: 80px 20px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }
h2 { text-align: center; font-size: 2.2rem; margin-bottom: 60px; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--accent-color); margin: 20px auto 0; border-radius: 2px; }

/* アニメーション用 */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ヘッダー */
.header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; height: var(--header-height); width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; }
.header-container { max-width: 1100px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--main-color); }
#global-nav { display: flex; align-items: center; }
#global-nav a { text-decoration: none; color: var(--text-color); margin: 0 12px; font-weight: 700; font-size: 0.9rem; transition: color 0.3s; }
#global-nav a:hover { color: var(--accent-color); }
.header-cta { background-color: var(--accent-color); color: white !important; padding: 8px 18px; border-radius: 50px; transition: background-color 0.3s; }
.header-cta:hover { background-color: #dc5139; }
.hamburger-btn { display: none; }

/* ヒーローセクション */
.hero { color: white; position: relative; overflow: hidden; padding: 80px 20px; background-color: var(--main-color); }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; }
.hero-content { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.hero-main-message { text-align: center; padding-bottom: 0px; }
.hero h1 { font-size: 3rem; margin: 0 0 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.cta-button { display: inline-block; background-color: var(--accent-color); color: white; padding: 15px 40px; text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 1.1rem; transition: background-color 0.3s, transform 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cta-button:hover { background-color: #ff6347; transform: translateY(-3px); }
.efficiency-in-hero { padding: 20px 0; }
.efficiency-title { color: white; text-align: center; font-size: 1.8rem; margin-bottom: 40px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.efficiency-title::after { display: none; }
.efficiency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.efficiency-card { background: rgba(255, 255, 255, 0.95); padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.efficiency-card h3 { font-size: 1.1rem; color: var(--main-color); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.efficiency-card h3 .icon { font-size: 1.4rem; }
.comparison-wrapper { display: flex; justify-content: space-around; align-items: center; margin-bottom: 20px; }
.time-block { padding: 5px 15px; border-radius: 8px; }
.time-block.before { background-color: #ddd; }
.time-block.after { background-color: #deebff; }
.time-label { display: block; font-size: 0.7rem; color: #777; margin-bottom: 2px; }
.time-value { font-size: 1.8rem; font-weight: 700; color: var(--text-color); }
.time-value .unit { font-size: 0.9rem; margin-left: 2px; }
.arrow { font-size: 1.8rem; color: var(--main-color); font-weight: 700; }
.reduction-rate { font-size: 1.1rem; font-weight: 700; color: black; }
.reduction-rate .highlight { color: var(--accent-color-2); font-size: 2rem; vertical-align: middle; }
.hero-bottom-cta { text-align: center; margin-top: 50px; }

/* 課題セクション */
.problems { background-color: var(--bg-color); }
.problem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background-color: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; }
.card .icon { font-size: 3rem; color: var(--main-color); margin-bottom: 15px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* 講座の詳細セクション */
.details-section { background-color: #fff; }
.tab-menu { display: flex; justify-content: center; gap: 10px; border-bottom: 2px solid #eee; margin-bottom: 40px; }
.tab-btn { padding: 15px 30px; border: none; background-color: transparent; font-size: 1.1rem; font-weight: 700; color: #888; cursor: pointer; position: relative; transition: color 0.3s; }
.tab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--accent-color); transform: scaleX(0); transition: transform 0.3s; }
.tab-btn.active { color: var(--main-color); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInContent 0.5s ease; }
@keyframes fadeInContent { from { opacity: 0; } to { opacity: 1; } }

/* ★★★ .fee-details を .details-box に名前変更 ★★★ */
.details-box {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
}

.details-box h3 { font-size: 1.6rem; color: var(--main-color); margin-bottom: 20px; }
.curriculum-list, .target-list { list-style: none; padding-left: 0; }
.curriculum-list li, .target-list li { padding-left: 1.5em; position: relative; margin-bottom: 15px; }
.curriculum-list li::before, .target-list li::before { content: '✓'; color: var(--accent-color); position: absolute; left: 0; font-weight: 700; }
.fee-list { list-style: none; padding: 0; margin: 0; }
.fee-list li { font-size: 1.1rem; margin-bottom: 15px; }
.fee-list li:last-child { margin-bottom: 0; }
.fee-list strong { color: var(--main-color); }
.note { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #555; }
/* ★★★ .fee-cta のスタイルを削除 ★★★ */

/* 講師紹介セクション */
.instructor-section { background-color: var(--bg-color); }
.instructor-profile { display: flex; align-items: center; gap: 40px; }
.instructor-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.instructor-info h3 { font-size: 1.8rem; margin: 0; color: var(--main-color); }
.instructor-info h4 { font-size: 1rem; font-weight: 400; color: #555; margin: 5px 0 20px; }
.instructor-info p { margin-bottom: 10px; }

/* 開催場所・アクセスセクション */
.access-section { background-color: #fff; }
.access-details { display: flex; gap: 40px; align-items: flex-start; }
.access-info { flex: 1; }
.access-info h3 { font-size: 1.5rem; }
.map-container { flex: 1; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 350px; border: 0; display: block; }

/* FAQセクション */
.faq { background-color: var(--bg-color); }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question { padding: 20px 0; cursor: pointer; font-weight: 700; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 10px; font-size: 1.5rem; color: var(--main-color); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; padding: 0 20px; }
.faq-answer p { margin-top: 0; padding-bottom: 20px; }

/* CTAセクション */
.cta-section { background-color: var(--main-color); color: white; text-align: center; }
.cta-section h2 { color: white; }
.cta-section h2::after { background-color: white; }
.cta-section p { font-size: 1.1rem; margin-bottom: 40px; }

/* フッター */
footer { background-color: #333; color: #ccc; text-align: center; padding: 50px 20px; }
.footer-content h3 { color: white; font-size: 1.5rem; margin-bottom: 15px; }
.footer-content p { margin-bottom: 30px; }
.footer-button { display: inline-block; background-color: var(--accent-color); color: white; padding: 12px 30px; text-decoration: none; border-radius: 50px; font-weight: 700; transition: background-color 0.3s; }
.footer-button:hover { background-color: #ff6347; }
.copyright { border-top: 1px solid #444; margin-top: 40px; padding-top: 20px; font-size: 0.9rem; }

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .container { padding: 60px 15px; }
    h2 { font-size: 1.6rem; margin-bottom: 40px; }
    h3 { font-size: 1.2rem; }
    #global-nav { display: block; position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height)); background-color: rgba(255, 255, 255, 0.98); transform: translateX(100%); transition: transform 0.3s ease-in-out; text-align: center; padding-top: 40px; }
    #global-nav.active { transform: translateX(0); }
    #global-nav a { display: block; padding: 20px; margin: 0; color: var(--main-color); font-size: 1.2rem; }
    .header-cta { background: none; color: var(--accent-color) !important; padding: 0; border-radius: 0; }
    .hamburger-btn { display: block; width: 30px; height: 24px; position: relative; cursor: pointer; border: none; background: transparent; z-index: 1001; }
    .hamburger-btn span { display: block; position: absolute; width: 100%; height: 3px; background-color: var(--main-color); border-radius: 2px; transition: all 0.3s; }
    .hamburger-btn span:nth-child(1) { top: 0; }
    .hamburger-btn span:nth-child(2) { top: 10px; }
    .hamburger-btn span:nth-child(3) { bottom: 0; }
    .hamburger-btn.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-main-message { padding-bottom: 40px; }
    .efficiency-grid { grid-template-columns: 1fr; }
    .tab-menu { flex-wrap: wrap; }
    .tab-btn { padding: 12px; font-size: 0.9rem; flex-grow: 1; }
    .instructor-profile, .access-details { flex-direction: column; text-align: center; }
    .instructor-img { width: 150px; height: 150px; }
    .map-container { width: 100%; margin-top: 30px; }
    .fee-list li { font-size: 1rem; }
}