/*
Theme Name: Thomas Nitzsche Theme
Description: Custom theme for /test-site/
Version: 1.1
Author: Thomas Nitzsche Inc.
*/

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --c-primary: #0B2545;
    --c-accent: #3A6EA5;
    --c-text: #222222;
    --c-text-gray: #555555;
    --c-bg: #FFFFFF;
    --c-bg-light: #F8F9FA;
    --c-border: #E5E5E5;
    --font-main: "Noto Sans JP", sans-serif;
    --font-serif: "Noto Serif JP", serif;
    --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--c-text);
    line-height: 2.0;
    font-size: 15px;
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* WordPress Admin Bar Fix */
body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .header { top: 46px; } }

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
img { width: 100%; height: auto; vertical-align: bottom; display: block; }
li { list-style: none; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--c-bg-light); }
.text-center { text-align: center; }

/* Animation */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border: 1px solid var(--c-primary);
    color: var(--c-primary); font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
    background: #fff; cursor: pointer; transition: all 0.3s;
    text-align: center; white-space: nowrap; min-width: fit-content;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: #1a3c66; border-color: #1a3c66; opacity: 1; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.08em; color: var(--c-primary); }
.section-title { margin-bottom: 80px; text-align: center; }
.section-title span {
    display: block; font-family: var(--font-main); font-size: 12px; color: var(--c-accent);
    letter-spacing: 0.2em; margin-bottom: 10px; text-transform: uppercase;
}
.section-title h2 { font-size: 32px; }

/* Badges */
.badge-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
/* ★修正: 下層ページのヒーローエリア内ではバッジを中央寄せにする */
.page-hero .badge-container { justify-content: center; }

.badge {
    font-size: 11px; color: var(--c-primary); border: 1px solid var(--c-primary);
    padding: 4px 10px; background: #fff; display: inline-block; white-space: nowrap;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--c-border);
    z-index: 1000; display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; backdrop-filter: blur(10px);
}
.logo { font-family: var(--font-serif); font-size: 20px; font-weight: bold; color: var(--c-primary); white-space: nowrap;}

/* PC Nav */
.nav-pc { display: flex; gap: 24px; align-items: center; }
.nav-item { font-size: 13px; font-weight: 500; color: var(--c-text); cursor: pointer; white-space: nowrap; }
.nav-item-group { position: relative; height: 100%; display: flex; align-items: center; }
.nav-dropdown {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; min-width: 260px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--c-border); padding: 10px 0; border-radius: 4px;
}
.nav-item-group:hover .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block; padding: 12px 20px; color: var(--c-text); font-size: 13px;
    transition: background 0.2s; white-space: nowrap; text-align: left;
}
.nav-dropdown a:hover { background: var(--c-bg-light); color: var(--c-primary); }

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; z-index: 1100; position: relative; width: 30px; height: 20px; }
.hamburger span {
    display: block; position: absolute; height: 2px; width: 100%; background: var(--c-primary);
    transition: 0.3s; left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.nav-sp {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #fff; z-index: 1000; padding: 100px 20px 40px;
    text-align: center; overflow-y: auto; opacity: 0; pointer-events: none; transition: 0.3s;
}
.nav-sp.active { opacity: 1; pointer-events: auto; }
.nav-sp-item { display: block; padding: 16px 0; border-bottom: 1px solid #eee; font-weight: bold; font-size: 15px; }
.nav-sp-item-sub { display: block; padding: 12px 0; font-size: 13px; color: #666; background: #f9f9f9; }

/* Breadcrumbs */
.breadcrumbs { background: var(--c-bg-light); padding: 15px 0; font-size: 12px; color: #888; }
.breadcrumbs a { text-decoration: underline; color: var(--c-text-gray); }
.breadcrumbs span { margin: 0 8px; }

/* ==========================================================================
   Page Specific & Components
   ========================================================================== */

/* Hero (Top & Sub) */
.hero { height: calc(100vh - var(--header-height)); min-height: 600px; display: flex; background-color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.hero-text-area { display: flex; align-items: center; justify-content: flex-end; padding: 60px 0; background: linear-gradient(90deg, #F8F9FA 0%, #FFFFFF 100%); }
.hero-text-content { width: 100%; max-width: 540px; padding-right: 60px; padding-left: 40px; }
.hero-text-content h1 { font-size: 44px; line-height: 1.5; margin-bottom: 32px; font-feature-settings: "palt"; word-break: normal; overflow-wrap: normal; white-space: pre-wrap; }
.hero-text-content p { font-size: 16px; color: var(--c-text-gray); margin-bottom: 48px; }
.hero-img-area { position: relative; width: 100%; height: 100%; }
.hero-img-area img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-btn-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.page-hero { padding-top: 80px; padding-bottom: 80px; background-size: cover; background-position: center; text-align: center; }
.page-hero h1 { font-size: 42px; line-height: 1.4; margin-bottom: 24px; }
.page-hero p { font-size: 16px; color: var(--c-text-gray); margin-bottom: 40px; font-weight: 500; }

/* Lead */
.lead-section { padding: 80px 0; text-align: center; }
.lead-text { font-size: 22px; font-weight: 600; line-height: 2.0; color: var(--c-primary); font-family: var(--font-serif); margin-bottom: 30px; }

/* Services Card (Top) */
.service-item { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.service-item:last-child { margin-bottom: 0; }
.service-item:nth-child(even) { flex-direction: row-reverse; }
.service-content { flex: 1; }
.service-visual { flex: 1; height: 350px; overflow: hidden; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-visual:hover img { transform: scale(1.05); }
.service-num { font-family: var(--font-serif); color: var(--c-accent); font-size: 18px; font-style: italic; display: block; margin-bottom: 16px; }
.service-content h3 { font-size: 26px; margin-bottom: 24px; }
.service-content p { color: var(--c-text-gray); margin-bottom: 32px; text-align: justify; }

/* Service List Grid (Sub) */
.service-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-box { background: #fff; border: 1px solid var(--c-border); padding: 30px; height: 100%; transition: transform 0.3s; }
.service-box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-box h3 { font-size: 18px; margin-bottom: 16px; color: var(--c-primary); border-bottom: 2px solid var(--c-bg-light); padding-bottom: 10px; }
.service-box p { font-size: 14px; color: var(--c-text-gray); margin-bottom: 0; }
.service-box ul { list-style: none; padding: 0; color: var(--c-text-gray); }
.service-box li { margin-bottom: 10px; padding-left: 1.2em; position: relative; font-size: 14px; }
.service-box li::before { content: "•"; color: var(--c-accent); position: absolute; left: 0; top: 0; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.case-card { background: #fff; border: 1px solid var(--c-border); padding: 40px; transition: transform 0.4s; display: flex; flex-direction: column; align-items: flex-start; }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tag-wrap { margin-bottom: 16px; }
.tag { font-size: 11px; background: #eee; padding: 4px 10px; margin-right: 6px; color: #666; }

.case-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-box { background: #fff; border: 1px solid var(--c-border); overflow: hidden; transition: transform 0.3s; }
.case-box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.case-img { height: 180px; width: 100%; object-fit: cover; }
.case-body { padding: 24px; }
.case-body h3 { font-size: 16px; margin-bottom: 16px; line-height: 1.6; }
.case-body p { font-size: 13px; color: var(--c-text-gray); margin-bottom: 20px; }

/* Pain & Solution */
.pain-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ps-card { background: #fff; border: 1px solid var(--c-border); padding: 32px 24px; }
.ps-title { font-size: 18px; margin-bottom: 20px; text-align: center; border-bottom: 1px solid var(--c-border); padding-bottom: 12px; }
.pain-text { color: #d00; font-size: 14px; margin-bottom: 16px; position: relative; padding-left: 20px; }
.pain-text::before { content: "×"; position: absolute; left: 0; color: #d00; font-weight: bold; }
.solution-text { color: var(--c-primary); font-size: 14px; font-weight: bold; position: relative; padding-left: 20px; margin-top: 16px; border-top: 1px dashed var(--c-border); padding-top: 16px; }
.solution-text::before { content: "◎"; position: absolute; left: 0; color: var(--c-accent); }

/* Value / Reasons */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card { text-align: center; padding: 30px; background: #fff; border: 1px solid var(--c-border); }
.value-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.value-card h3 { font-size: 18px; margin-bottom: 16px; }
.value-card p { font-size: 14px; text-align: left; color: var(--c-text-gray); line-height: 1.8; }

.reason-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reason-card { text-align: center; padding: 30px; background: var(--c-bg-light); border-radius: 4px; }
.reason-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.reason-card h3 { font-size: 16px; margin-bottom: 12px; }
.reason-card p { font-size: 13px; color: var(--c-text-gray); text-align: left; }

/* Process */
.process-flow { display: flex; justify-content: space-between; position: relative; gap: 20px; }
.process-step { flex: 1; background: #fff; border: 1px solid var(--c-border); padding: 24px; position: relative; }
.process-step::after { content: "▶"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--c-border); font-size: 14px; }
.process-step:last-child::after { display: none; }
.step-num { display: block; font-family: var(--font-serif); color: var(--c-accent); margin-bottom: 8px; font-style: italic; }
.step-title { font-weight: bold; margin-bottom: 8px; display: block; color: var(--c-primary); }
.step-desc { font-size: 13px; color: var(--c-text-gray); }

/* Succession */
.succession-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.succession-item { background: #fff; padding: 16px 20px; border-left: 4px solid var(--c-accent); font-weight: 500; font-size: 14px; }

/* FAQ */
.faq-item { margin-bottom: 24px; border-bottom: 1px solid var(--c-border); padding-bottom: 24px; }
.faq-q { font-weight: bold; font-size: 16px; color: var(--c-primary); margin-bottom: 12px; display: flex; align-items: center; }
.faq-q::before { content: "Q."; color: var(--c-accent); margin-right: 10px; font-family: var(--font-serif); font-weight: bold; font-size: 18px; }
.faq-a { font-size: 14px; color: var(--c-text-gray); padding-left: 28px; line-height: 1.8; }

/* Pricing Table */
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 30px; background: #fff; }
.pricing-table th, .pricing-table td { border: 1px solid var(--c-border); padding: 20px; text-align: center; }
.pricing-table th { background: var(--c-primary); color: #fff; font-weight: normal; }
.pricing-table .plan-name { font-size: 18px; font-weight: bold; display: block; margin-bottom: 5px; }
.pricing-table .price { font-size: 24px; font-weight: bold; color: var(--c-primary); }
.pricing-table td ul { text-align: left; font-size: 13px; list-style: none; padding: 0; margin-top: 15px; }
.pricing-table td li { margin-bottom: 5px; padding-left: 15px; position: relative; }
.pricing-table td li::before { content: "・"; position: absolute; left: 0; }

.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 20px; background: #fff; }
.fee-table th, .fee-table td { border: 1px solid var(--c-border); padding: 12px; text-align: left; }
.fee-table th { background: var(--c-bg-light); width: 60%; color: var(--c-primary); }
.fee-note { font-size: 12px; color: #666; margin-top: 8px; text-align: right; }

/* Company Info */
.rep-section { padding: 100px 0; background: #fff; }
.rep-content { max-width: 800px; margin: 0 auto; text-align: center; }
.rep-position { font-size: 14px; letter-spacing: 0.1em; color: var(--c-accent); display: block; margin-bottom: 10px; }
.rep-name { font-size: 32px; font-family: var(--font-serif); font-weight: 600; margin-bottom: 40px; color: var(--c-primary); }
.rep-name span { font-size: 16px; margin-left: 15px; font-family: var(--font-main); font-weight: 400; color: var(--c-text-gray); }
.rep-lead { font-size: 20px; font-weight: 600; line-height: 1.8; margin-bottom: 40px; font-family: var(--font-serif); color: var(--c-text); }
.rep-body { font-size: 15px; line-height: 2.0; color: var(--c-text-gray); text-align: justify; margin-bottom: 40px; }
.rep-skills { background: var(--c-bg-light); padding: 30px; border-radius: 4px; font-size: 14px; color: var(--c-text); text-align: left; }
.rep-skills strong { color: var(--c-primary); display: block; margin-bottom: 10px; font-size: 15px; }
.rep-skills ul { list-style: none; padding: 0; }
.rep-skills li { margin-bottom: 6px; padding-left: 1.2em; position: relative; }
.rep-skills li::before { content: "•"; color: var(--c-accent); position: absolute; left: 0; }

.history-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.history-table th, .history-table td { padding: 20px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.history-table th { width: 180px; color: var(--c-primary); font-weight: bold; font-family: var(--font-serif); }

.track-record-list { display: grid; gap: 30px; }
.track-card { background: #fff; border: 1px solid var(--c-border); padding: 40px; }
.track-card h3 { font-size: 18px; margin-bottom: 16px; color: var(--c-primary); padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.track-card p { font-size: 14px; color: var(--c-text-gray); margin-bottom: 0; }
.track-tag { display: inline-block; font-size: 11px; background: var(--c-bg-light); padding: 4px 10px; margin-bottom: 16px; color: var(--c-accent); border: 1px solid var(--c-border); }

/* Forms & Downloads */
.template-section { background: #E9F2FA; padding: 80px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.template-container { display: flex; gap: 50px; align-items: center; }
.template-info { flex: 1; }
.template-form { flex: 1; background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.lead-magnet-section { background: #E9F2FA; padding: 60px 0; border-top: 1px solid var(--c-border); margin-bottom: 60px; border-radius: 8px; }
.magnet-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 30px; border: 1px solid var(--c-border); }

.contact-form { max-width: 700px; margin: 0 auto; background: #fff; padding: 40px; border: 1px solid var(--c-border); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; font-family: inherit; border-radius: 4px; }
.form-group textarea { height: 160px; }
.required { color: #d00; margin-left: 4px; font-size: 12px; background: #ffebeb; padding: 2px 6px; border-radius: 4px; }
.checkbox-group { margin-bottom: 24px; }
.checkbox-label { display: block; margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.checkbox-label input { width: auto; margin-right: 8px; }

.booking-container { max-width: 900px; margin: 0 auto; background: #fff; padding: 40px; border: 1px solid var(--c-border); text-align: center; }
.booking-placeholder { background: #f4f6f8; padding: 60px 20px; border-radius: 8px; border: 2px dashed #ccc; color: #999; margin-top: 20px; }

.disclaimer-box { background: #fdfdfd; border: 1px solid #ddd; padding: 20px; font-size: 13px; color: #666; margin-bottom: 60px; }
.disclaimer-note { margin-top: 40px; padding: 20px; background: #fff; border: 1px solid var(--c-border); font-size: 13px; color: #666; text-align: center; }

/* Footer */
.footer { background: #f5f5f5; padding: 80px 0; font-size: 13px; color: #888; border-top: 1px solid #ddd; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-info h4 { margin-bottom: 16px; font-size: 18px; }
.sp-cta { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--c-primary); color: #fff; text-align: center; padding: 16px; z-index: 2000; font-weight: bold; }

/* Responsive General */
@media screen and (max-width: 768px) {
    .header { padding: 0 20px; } .nav-pc { display: none; } .hamburger { display: block; } .sp-cta { display: block; }
    .hero { height: auto; display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-img-area { order: -1; height: 300px; }
    .hero-text-area { justify-content: center; padding: 60px 24px; background: #fff; }
    .hero-text-content { max-width: 100%; padding: 0; text-align: center; }
    .hero-text-content h1 { font-size: 32px; margin-bottom: 24px; line-height: 1.4; white-space: normal; }
    .hero-text-content br { display: none; }
    .hero-btn-group { display: flex; flex-direction: column; gap: 16px; align-items: center; }
    .hero-btn-group .btn { width: 100%; max-width: 300px; margin: 0 !important; }
    
    .page-hero { padding-top: 60px; }
    .page-hero h1 { font-size: 28px; }
    
    .service-item, .service-item:nth-child(even) { flex-direction: column-reverse; gap: 30px; margin-bottom: 80px; }
    .content-grid, .service-row, .template-container, .cases-grid, .pain-solution-grid, .case-grid-3, .service-list-grid, .process-flow, .reason-list, .curriculum-grid, .format-section { grid-template-columns: 1fr; display: grid; gap: 30px; }
    .service-img { height: 200px; width: 100%; }
    .contact-form, .template-form, .magnet-form, .booking-container { padding: 20px; border: none; }
    
    .history-table th, .history-table td { display: block; width: 100%; padding: 10px 0; }
    .history-table th { padding-top: 20px; border-bottom: none; }
    
    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table th, .pricing-table td { display: block; width: 100%; }
    .pricing-table tr { margin-bottom: 30px; border: 1px solid var(--c-border); }
    
    .footer-inner { flex-direction: column; gap: 40px; }
    body { padding-bottom: 60px; }
}

/* ==========================================================================
   追加修正: 支援範囲・ボタン位置調整
   ========================================================================== */

/* 支援範囲セクション (Scope of Service) */
.scope-section { background: #fff; border-bottom: 1px solid var(--c-border); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.scope-box { padding: 30px; border-radius: 4px; }

/* できること（左側） */
.scope-box.do { background: #F3F9F1; border: 1px solid #CDE6C7; }
.scope-box.do h3 { color: #2E7D32; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; }
.scope-box.do h3::before { content: "✔"; margin-right: 10px; font-weight: bold; }

/* できないこと（右側） */
.scope-box.dont { background: #F9F9F9; border: 1px solid #E5E5E5; }
.scope-box.dont h3 { color: #666; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; }
.scope-box.dont h3::before { content: "×"; margin-right: 10px; font-weight: bold; color: #999; }

.scope-list { list-style: none; padding: 0; font-size: 14px; line-height: 1.8; }
.scope-list li { margin-bottom: 8px; padding-left: 1em; position: relative; }
.scope-list li::before { content: "・"; position: absolute; left: 0; }

@media screen and (max-width: 768px) {
    .scope-grid { grid-template-columns: 1fr; }
}

/* 支援事例カード等の高さ揃えとボタン下寄せ */
.case-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.case-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-body p {
    margin-bottom: 24px; 
}
.case-body .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   追加修正: 資格対策ページ (Exam) 用スタイル
   ========================================================================== */

/* カリキュラムグリッド */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.curriculum-card {
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 30px;
    height: 100%;
}
.curriculum-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-bg-light);
    padding-bottom: 10px;
}
.curriculum-card ul {
    list-style: none;
    padding: 0;
    color: var(--c-text-gray);
}
.curriculum-card li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
    font-size: 14px;
}
.curriculum-card li::before {
    content: "•";
    color: var(--c-accent);
    position: absolute;
    left: 0;
    top: 0;
}

/* 公式根拠リンクボックス */
.official-links-box {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-left: 4px solid var(--c-primary);
    border-radius: 4px;
}
.official-links-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}
.official-links-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.official-links-box li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.official-links-box a {
    color: var(--c-primary);
    text-decoration: underline;
}

/* 提供形態・成果物セクション */
.format-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.info-box {
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 40px;
    height: 100%;
}
.info-box h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--c-primary);
    text-align: center;
}
.info-list {
    list-style: none;
    padding: 0;
}
.info-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}
.info-list li:last-child {
    border-bottom: none;
}
.info-list li::before {
    content: "✔";
    color: var(--c-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 注意書きボックス */
.notice-box {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--c-border);
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .curriculum-grid, .format-section {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   投資ページ (Investment) 専用スタイル - 修正版
   ========================================================================== */

/* 1. 3分解説 (Explainer) - カードデザイン強化 */
.explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.explainer-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px; /* 角丸 */
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 影をつけてカード感を出す */
    transition: transform 0.3s ease;
}
.explainer-card:hover {
    transform: translateY(-5px); /* ホバーで少し浮く */
}
.explainer-card h3 {
    font-size: 17px;
    font-weight: bold;
    color: var(--c-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.5;
}
.explainer-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 2. 提供コンテンツ (Investment Grid) - アイコン付きカード */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.investment-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 35px 25px;
    text-align: left;
    height: 100%; /* 高さを揃える */
    box-sizing: border-box;
}
.inv-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
    color: var(--c-primary);
}
.investment-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}
.investment-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 3. サービスメニュー (交互レイアウト) */
.menu-section {
    display: flex;
    flex-direction: column;
    gap: 80px; /* アイテム間の余白 */
    margin-top: 50px;
}
.menu-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff; /* 背景白 */
}
.menu-row:nth-child(even) {
    flex-direction: row-reverse; /* 偶数番目は画像を右、テキストを左 */
}
.menu-img {
    flex: 1;
    width: 50%;
}
.menu-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.menu-text {
    flex: 1;
    width: 50%;
}
.menu-text h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--c-primary);
    position: relative;
    padding-left: 15px;
}
.menu-text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--c-accent); /* アクセントカラーの縦棒 */
}
.menu-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}
.menu-note {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 10px;
}

/* 4. 成果物リスト (Deliverables) - 横並び固定 */
.deliverables-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 60px;
    text-align: center;
    border-radius: 8px;
}
.deliverables-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.deliverable-item {
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px; /* カプセル型 */
    border: 1px solid var(--c-primary);
    font-weight: bold;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 5. 免責注記（控えめ） */
.disclaimer-small {
    font-size: 11px;
    color: #aaa; /* 薄いグレー */
    margin-top: 10px;
    margin-bottom: 30px;
}

/* スマホ対応 (Responsive) */
@media screen and (max-width: 768px) {
    .explainer-grid, 
    .investment-grid {
        grid-template-columns: 1fr; /* 1列に */
        gap: 20px;
    }
    .menu-row, 
    .menu-row:nth-child(even) {
        flex-direction: column; /* 縦並びに */
        gap: 20px;
    }
    .menu-img, .menu-text {
        width: 100%;
        flex: auto;
    }
    .deliverables-grid {
        flex-direction: column;
        gap: 15px;
    }
    .deliverable-item {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   フォーム共通: プライバシーポリシー同意チェックボックス
   ========================================================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 20px 0 30px 0; /* 上下の余白 */
    gap: 8px;
    line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
    transform: scale(1.2); /* チェックボックスを少し大きく */
    cursor: pointer;
}
.checkbox-label label {
    cursor: pointer;
    margin: 0; /* ラベルの余白リセット */
}
.checkbox-label a {
    color: var(--c-primary, #003366); /* テーマカラー、未定義なら紺 */
    text-decoration: underline;
}
.checkbox-label a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ==========================================================================
   スマホ表示崩れ修正（M&A - Value/Reasons）
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Value (選ばれる理由) のグリッドを1列にする */
    .value-grid {
        grid-template-columns: 1fr; /* 強制的に1カラム */
        gap: 30px;
    }

    /* 各カードのスタイル調整 */
    .value-card {
        width: 100%;
        box-sizing: border-box; /* パディングを含めた幅計算 */
        margin-bottom: 20px;
    }

    /* アイコンとテキストのバランス調整 */
    .value-card h3 {
        font-size: 18px; /* スマホで見やすいサイズに */
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   スマホ表示崩れ修正（Exam & investment - Pricing Table） - 修正版
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* 表の構造を解除してブロック化 */
    .pricing-table, 
    .pricing-table tbody, 
    .pricing-table tr {
        display: block;
        width: 100%;
    }

    /* ヘッダー行自体は非表示（代わりに各カード内に表示させるため） */
    .pricing-table thead {
        display: none;
    }

    /* 各セルをカード化 */
    .pricing-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 40px; /* カード間の余白 */
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px; /* 角丸 */
        padding: 30px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        position: relative; /* 擬似要素の配置基準 */
        margin-top: 0;
    }

    /* data-label属性を読み取ってヘッダーとして表示 */
    .pricing-table td::before {
        content: attr(data-label); /* HTML側のdata-labelの中身を表示 */
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: var(--c-primary); /* ヘッダー背景色 */
        color: #fff; /* ヘッダー文字色 */
        font-weight: bold;
        padding: 10px;
        text-align: center;
        border-radius: 8px 8px 0 0; /* 上部のみ角丸 */
        font-size: 16px;
    }

    /* カード内コンテンツの調整 */
    .pricing-table .plan-name {
        display: block;
        font-size: 18px;
        font-weight: bold;
        margin-top: 20px; /* ヘッダーとの距離 */
        margin-bottom: 10px;
        color: #333;
        text-align: center;
    }
    
    .pricing-table .price {
        display: block;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
        color: var(--c-accent); /* 金額を目立たせる */
    }
    
    .pricing-table ul {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Contact Form 7 完全修正版（最強版）
   ========================================================================== */

/* 1. フォント強制統一 */
.wpcf7-form,
.wpcf7-form p,
.wpcf7-form label,
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7-list-item-label {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.8;
    font-weight: normal; /* 太字になるのを防ぐ */
}

/* 2. 入力欄のデザイン */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

/* 3. チェックボックスエリアの構造リセット */
.checkbox-label {
    margin: 20px 0;
    text-align: center; /* エリア全体を中央寄せ */
}

/* チェックボックスの並びを整形 */
.wpcf7-list-item {
    display: inline-block; /* 横並びにする */
    margin: 0;
}

/* ラベル（文字と箱）の配置調整 */
.wpcf7-list-item label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 箱と文字の間隔 */
    cursor: pointer;
    width: auto;
}

/* チェックボックス本体 */
.wpcf7-list-item input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0 !important;
    position: relative;
    top: -1px; /* 微調整 */
}

/* 文字部分 */
.wpcf7-list-item-label {
    display: inline-block;
    vertical-align: middle;
}

/* 4. 送信ボタン */
.wpcf7-submit {
    display: inline-block;
    min-width: 200px;
    padding: 16px 0;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background-color: #003366; /* テーマカラーに合わせてください */
    color: #fff;
    border-radius: 4px;
}
.wpcf7-submit:hover {
    opacity: 0.8;
}

/* 5. 不要な改行タグ（br）を消す */
.wpcf7-form br {
    display: none;
}