@charset "UTF-8";

/* ==================================================
   Base & Reset
   ================================================== */
:root {
    --primary: #3b5998;
    --primary-light: #5a78b5;
    --accent: #d33b3a;
    --accent-hover: #b02a29;
    --bg-gray: #f4f7fb;
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #dce1e8;
    --arrow-color: #aeb6c4;
    --pattern-a: #2B4C7E;
    --pattern-b: #1A6D4B;
    --pattern-c: #A84918;
    --pattern-d: #6A4C9C;
}

html { scroll-behavior: smooth; }
.procedure-page { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: var(--text-main); line-height: 1.6; background-color: #ffffff; font-size: 1.6rem; }
.procedure-page a { text-decoration: none; transition: 0.3s; }

/* ==================================================
   Layout & Utilities
   ================================================== */
.section_padding { padding: 80px 20px; }
.section_pattern_details { padding-top: 0; }
.bg_gray { background-color: var(--bg-gray); }
.procedure-container { max-width: 1000px; margin: 0 auto; }
/* Schedule お手続きの流れ セクションの上下余白 */
.procedure-page > .procedure-container {
    padding: 80px 20px;}
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px; }

.text-main-color { color: var(--text-main); }
.text-accent-bold { color: var(--accent); font-weight: bold; }
.text-light-note { color: var(--text-light); }

/* Initial Hidden States for Diagnosis */
#q2_box, #q3_box, #arrow1, #arrow2, #diag_results, #result_a, #result_b, #result_c, #result_d { display: none; }

/* ==================================================
   Typography & Headings
   ================================================== */
.proc_title { font-size: 3.4rem; font-weight: 800; color: var(--text-main); text-align: center; margin-bottom: 50px; line-height: 1.4; position: relative; }
.proc_title .sub { display: block; font-size: 1.4rem; color: var(--text-light); font-weight: normal; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
.proc_title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; border-radius: 2px; opacity: 0.3; }

/* ==================================================
   Fixed Button & Sticky Nav
   ================================================== */
.fixed_contact_btn { position: fixed; z-index: 999; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.fixed_contact_btn:hover { background: var(--accent-hover); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); }

@media screen and (min-width: 769px) {
    .fixed_contact_btn { right: 20px; bottom: 20px; padding: 15px 30px; border-radius: 50px; font-size: 1.6rem; }
    .fixed_contact_btn::before { content: "\f0e0"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 8px; }
}
@media screen and (max-width: 768px) {
    .fixed_contact_btn { left: 0; bottom: 0; width: 100%; height: 60px; font-size: 1.6rem; border-top: 2px solid #fff; border-radius: 0; }
    body { padding-bottom: 60px; }
}

.sticky_nav { position: fixed; top: 60px; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); z-index: 2; transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s; padding: 10px 20px; backdrop-filter: blur(5px); }
.sticky_nav.is-active { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.sticky_nav_inner { display: flex; justify-content: center; gap: 15px; max-width: 1000px; margin: 0 auto; }
.sticky_nav a { display: flex; align-items: center; background: #fff; border: 2px solid var(--border-color); color: var(--text-main); padding: 6px 20px; border-radius: 30px; font-weight: bold; font-size: 1.4rem; text-decoration: none; transition: 0.3s; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02); }

/* バッジの形状を真ん丸にし、A・B・C・Dに対応 */
.sticky_nav a span.nav_badge { width: 24px; height: 24px; padding: 0; background: var(--bg-gray); border: 1px solid var(--border-color); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 1.3rem; transition: 0.3s; font-weight: bold; flex-shrink: 0; }
.sticky_nav a.nav_a span.nav_badge { color: var(--pattern-a); }
.sticky_nav a.nav_b span.nav_badge { color: var(--pattern-b); }
.sticky_nav a.nav_c span.nav_badge { color: var(--pattern-c); }
.sticky_nav a.nav_d span.nav_badge { color: var(--pattern-d); }
.sticky_nav a.nav_a:hover { border-color: var(--pattern-a); color: var(--pattern-a); }
.sticky_nav a.nav_b:hover { border-color: var(--pattern-b); color: var(--pattern-b); }
.sticky_nav a.nav_c:hover { border-color: var(--pattern-c); color: var(--pattern-c); }
.sticky_nav a.nav_d:hover { border-color: var(--pattern-d); color: var(--pattern-d); }
.sticky_nav a.nav_a:hover span.nav_badge { background: var(--pattern-a); color: #fff; border-color: var(--pattern-a); }
.sticky_nav a.nav_b:hover span.nav_badge { background: var(--pattern-b); color: #fff; border-color: var(--pattern-b); }
.sticky_nav a.nav_c:hover span.nav_badge { background: var(--pattern-c); color: #fff; border-color: var(--pattern-c); }
.sticky_nav a.nav_d:hover span.nav_badge { background: var(--pattern-d); color: #fff; border-color: var(--pattern-d); }

/* アクティブ（現在表示中）のリンク */
.sticky_nav a.nav_a.is-current { border-color: var(--pattern-a); color: var(--pattern-a); background: #eef2f9; }
.sticky_nav a.nav_b.is-current { border-color: var(--pattern-b); color: var(--pattern-b); background: #eef6f2; }
.sticky_nav a.nav_c.is-current { border-color: var(--pattern-c); color: var(--pattern-c); background: #fdf2ed; }
.sticky_nav a.nav_d.is-current { border-color: var(--pattern-d); color: var(--pattern-d); background: #f4f0f9; }
.sticky_nav a.nav_a.is-current span.nav_badge { background: var(--pattern-a); color: #fff; border-color: var(--pattern-a); }
.sticky_nav a.nav_b.is-current span.nav_badge { background: var(--pattern-b); color: #fff; border-color: var(--pattern-b); }
.sticky_nav a.nav_c.is-current span.nav_badge { background: var(--pattern-c); color: #fff; border-color: var(--pattern-c); }
.sticky_nav a.nav_d.is-current span.nav_badge { background: var(--pattern-d); color: #fff; border-color: var(--pattern-d); }

@media screen and (max-width: 768px) {
    .sticky_nav { top: 60px; padding: 10px 5px; }
    .sticky_nav_inner { gap: 5px; flex-wrap: wrap; }
    .sticky_nav a { font-size: 1.1rem; padding: 6px 8px; flex-direction: column; justify-content: center; text-align: center; flex: 1 1 calc(25% - 5px); min-width: 75px; }
    .sticky_nav a span.nav_badge { margin-right: 0; margin-bottom: 4px; font-size: 1.2rem; }
}

/* ==================================================
   Hero & System Wrapper
   ================================================== */
.hero { background: linear-gradient(135deg, #f8f9fc 0%, #e6e9f5 100%); padding: 80px 20px; text-align: center; border-bottom: 5px solid var(--accent); }
.hero h1 { font-size: 4rem; color: var(--primary); font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.hero p { font-size: 2rem; font-weight: bold; color: var(--text-main); margin-bottom: 10px; }
.hero .badge { display: inline-block; background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 30px; font-size: 1.6rem; font-weight: bold; margin-bottom: 20px; }

.system_wrapper { background: #fff; border-radius: 20px; padding: 50px 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06); border: none; }
.system_wrapper h3 { font-size: 2.6rem; color: var(--primary); text-align: center; margin-bottom: 20px; font-weight: 900; }
.system_wrapper > p { text-align: center; font-size: 1.6rem; color: var(--text-main); line-height: 1.8; margin-bottom: 40px; }

.tax_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.tax_how { background: #f8f9fa; border-radius: 16px; padding: 25px 20px; border: 1px solid #e9ecef; display: flex; flex-direction: column; }
.tax_how.change { background: #fff; border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(211, 59, 58, 0.12); transform: scale(1.03); position: relative; z-index: 2; }
.how_tit { text-align: center; border-bottom: 2px dashed #dee2e6; padding-bottom: 15px; margin-bottom: 20px; }
.tax_how.change .how_tit { border-bottom-color: #ffcdd2; }
.how_tit h3 { font-size: 1.5rem; color: var(--text-light); margin: 0; font-weight: bold; }
.how_tit h3 span { display: block; font-size: 2.2rem; color: var(--text-main); margin-top: 8px; font-weight: 900; }
.tax_how.change .how_tit h3 span { color: var(--accent); }
.how_txt { padding: 0 10px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.how_step { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e9ecef; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tax_how.change .how_step { border-bottom-color: #ffebee; }
.how_step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.how_step_text { flex-grow: 1; }
.how_step_text h4 { font-size: 1.4rem; color: var(--text-light); margin-bottom: 5px; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.tax_how.change .how_step_text h4 { color: var(--accent); }
.how_step_text h4 i { font-size: 1.6rem; }
.how_step_text p { font-size: 1.6rem; margin: 0; line-height: 1.5; color: var(--text-main); font-weight: bold; }
.how_step_text p small { font-size: 1.2rem; color: var(--text-light); font-weight: normal; display: block; margin-top: 4px; }
.how_step img { width: 110px; height: auto; flex-shrink: 0; }

.role_share_box { margin-top: 60px; padding-top: 50px; border-top: 2px dashed var(--border-color); }
.role_share_title { text-align: center; color: var(--text-main); font-size: 2.4rem; font-weight: 900; margin-bottom: 40px; }
.role_share_flex_visual { display: flex; align-items: stretch; justify-content: center; gap: 30px; }
.role_card_visual { flex: 1; background: #f8faff; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(59, 89, 152, 0.05); position: relative; border: 1px solid #e2e8f0; border-top: 6px solid var(--primary); }
.role_card_header { padding: 40px 20px 20px; display: flex; align-items: center; flex-direction: column; text-align: center; }
.role_card_header i.icon_main { background: #fff; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: var(--primary); box-shadow: 0 4px 15px rgba(59, 89, 152, 0.15); margin-bottom: 20px; }
.role_card_header .badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 6px 24px; border-radius: 30px; font-size: 1.4rem; font-weight: bold; color: #fff; background: var(--primary); white-space: nowrap; box-shadow: 0 3px 10px rgba(59, 89, 152, 0.3); }
.role_card_header h5 { font-size: 2.2rem; margin: 0; font-weight: 900; color: var(--text-main); }
.role_visual_content { padding: 0 30px 30px; flex-grow: 1; display: flex; flex-direction: column; }
.role_visual_content p { font-size: 1.5rem; line-height: 1.7; margin: 0; color: var(--text-main); text-align: center; }
.role_visual_content small { font-size: 1.3rem; color: var(--text-light); margin-top: auto; text-align: left; line-height: 1.5; padding-top: 20px; margin-top: 20px; border-top: 1px dashed #cbd5e1; }
.role_plus_visual { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary); opacity: 0.3; }

.refund_notice_visual { background: #fffafa; border: 1px solid #ffcdd2; border-radius: 12px; margin-top: 50px; padding: 30px; box-shadow: 0 4px 15px rgba(211, 59, 58, 0.05); position: relative; }
.refund_notice_visual .notice_header { display: flex; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #ffebee; padding-bottom: 15px; }
.refund_notice_visual .notice_header i { font-size: 2.4rem; color: var(--accent); margin-right: 12px; }
.refund_notice_visual .notice_header h5 { font-size: 2rem; margin: 0; font-weight: 900; color: var(--accent); line-height: 1.4; }
.refund_notice_visual .notice_body p { font-size: 1.5rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.8; }
.refund_notice_visual .notice_body p.highlight { font-weight: bold; }
.refund_notice_visual .alert_box { background: #fff; border-left: 5px solid var(--accent); padding: 15px 20px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.refund_notice_visual .alert_box p { color: var(--accent); font-weight: bold; margin: 0; font-size: 1.5rem; display: flex; align-items: center; }
.refund_notice_visual .alert_box p i { margin-right: 10px; font-size: 1.8rem; }

/* ==================================================
   Flow Chart & Steps
   ================================================== */
.question_flow_wrapper { background: var(--bg-gray); padding: 50px 30px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 900px; margin: 0 auto 50px; }
.diag_intro { text-align: center; margin-bottom: 40px; }
.diag_intro_title { font-size: 2.6rem; color: var(--text-main); font-weight: bold; margin-bottom: 15px; }
.diag_intro_text { font-size: 1.6rem; color: var(--text-main); }
.question_box { background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--primary); border-radius: 8px; padding: 30px; position: relative; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); margin-bottom: 0; }
.q_label { position: absolute; top: -16px; left: 30px; background: var(--primary); color: #fff; font-size: 1.6rem; font-weight: bold; padding: 4px 20px; border-radius: 30px; }
.q_text { font-size: 2rem; color: var(--text-main); font-weight: bold; text-align: center; margin-top: 15px; margin-bottom: 25px; line-height: 1.4; }
.q_answers { display: flex; gap: 20px; justify-content: center; align-items: stretch; padding-bottom: 10px; }
.answer_btn { flex: 1; max-width: 400px; background: #ffffff; border: 2px solid var(--border-color); color: var(--text-main); padding: 25px 20px; border-radius: 16px; text-align: center; font-size: 1.8rem; font-weight: bold; text-decoration: none; transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); position: relative; }
.answer_btn.btn_yes:hover, .answer_btn.btn_choice:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(59, 89, 152, 0.15); transform: translateY(-3px); }
.answer_btn.btn_yes.selected, .answer_btn.btn_choice.selected { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(59, 89, 152, 0.3); transform: translateY(0); }
.answer_btn.btn_no:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(211, 59, 58, 0.15); transform: translateY(-3px); }
.answer_btn.btn_no.selected { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 10px rgba(211, 59, 58, 0.3); transform: translateY(0); }
.answer_btn span.dest { font-size: 1.3rem; padding: 6px 18px; border-radius: 30px; transition: 0.3s; background: var(--bg-gray); color: var(--text-light); display: inline-block; font-weight: normal; margin-top: 5px; }
.answer_btn.selected span.dest { background: rgba(255, 255, 255, 0.2) !important; color: #fff !important; }
.yn_icon { font-size: 4rem; display: block; transition: 0.3s; }
.btn_yes .yn_icon, .btn_choice .yn_icon { color: var(--primary); }
.btn_no .yn_icon { color: var(--text-light); }
.btn_no:hover .yn_icon { color: var(--accent); }
.answer_btn:hover .yn_icon { transform: scale(1.1); }
.answer_btn.selected .yn_icon { color: #fff; }
.yn_label { font-size: 2.8rem; font-weight: 900; line-height: 1; transition: 0.3s; display: block; }
.btn_yes .yn_label, .btn_choice .yn_label { color: var(--primary); }
.btn_no .yn_label { color: var(--text-light); }
.btn_no:hover .yn_label { color: var(--accent); }
.answer_btn.selected .yn_label { color: #fff; }
.yn_text { font-size: 1.5rem; font-weight: bold; color: var(--text-main); transition: 0.3s; display: block; }
.btn_no .yn_text { color: var(--text-light); }
.btn_no:hover .yn_text { color: var(--text-main); }
.answer_btn.selected .yn_text { color: #fff; }

.q_hint { background: #fffbe6; border: 1px solid #ffe58f; padding: 15px 20px; border-radius: 8px; font-size: 1.4rem; line-height: 1.6; color: var(--text-main); margin-bottom: 15px; }
.q_hint i { color: #faad14; font-size: 1.8rem; margin-right: 5px; }
.question_box .q_hint { margin-bottom: 0; }
.doc_btn_item .q_hint { width: 100%; margin-top: 10px; margin-bottom: 0; order: 3; }
#q3_box .q_hint { margin-bottom: 20px; }
.q_arrow_down { text-align: center; font-size: 3rem; color: var(--border-color); margin: 15px 0; }

.diag_results_wrapper { margin-top: 40px; }
.result_box { background: #fff; border: 1px solid var(--border-color); border-top: 5px solid var(--accent); border-radius: 8px; padding: 40px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); animation: fadeIn 0.5s ease; }
.result_box_inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; text-align: left; }
.result_content { flex: 1; }
.result_ill { flex-shrink: 0; width: 320px; text-align: center; }
.result_ill img { width: 100%; height: auto; max-height: 250px; object-fit: contain; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.result_box h3 { font-size: 2.4rem; color: var(--text-main); margin-bottom: 15px; font-weight: bold; margin-top: 0; }
.result_box h3 span { font-size: 2.8rem; }
#result_a h3 span { color: var(--pattern-a); }
#result_b h3 span { color: var(--pattern-b); }
#result_c h3 span { color: var(--pattern-c); }
#result_d h3 span { color: var(--pattern-d); }
.result_box p { font-size: 1.6rem; margin-bottom: 25px; color: var(--text-main); }
.diag_reset_wrapper { text-align: center; margin-top: 20px; }
.reset_btn { background: transparent; border: none; color: var(--text-light); font-size: 1.4rem; text-decoration: underline; cursor: pointer; transition: 0.3s; }
.reset_btn:hover { color: var(--primary); }
.diag_help_box { margin-top: 40px; text-align: center; background: #fff; padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.diag_help_text { font-size: 1.5rem; color: var(--text-main); margin-bottom: 15px; font-weight: bold; }
.diag_help_icon { color: var(--primary); font-size: 2rem; vertical-align: middle; margin-right: 5px; }
.diag_help_btn { font-size: 1.4rem; padding: 12px 30px; }

/* ==================================================
   Pattern Sections
   ================================================== */
.pattern_section { background: #fff; border-radius: 16px; padding: 50px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); border: 1px solid var(--border-color); margin-bottom: 60px; overflow: hidden; scroll-margin-top: 114px; }
.pattern_section:last-child { margin-bottom: 0; }
.pattern_header { display: flex; align-items: center; justify-content: flex-start; gap: 40px; color: #fff; padding: 15px 50px; margin: -50px -50px 35px -50px; }
#pattern-a .pattern_header { background: var(--pattern-a); }
#pattern-b .pattern_header { background: var(--pattern-b); }
#pattern-c .pattern_header { background: var(--pattern-c); }
#pattern-d .pattern_header { background: var(--pattern-d); }
.pattern_header_left { display: flex; align-items: center; }
.pattern_header_left .badge_abc { width: 48px; height: 48px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: bold; margin-right: 20px; flex-shrink: 0; }
#pattern-a .badge_abc { color: var(--pattern-a); }
#pattern-b .badge_abc { color: var(--pattern-b); }
#pattern-c .badge_abc { color: var(--pattern-c); }
#pattern-d .badge_abc { color: var(--pattern-d); }
.pattern_header_text h3 { font-size: 2.4rem; color: #fff; margin: 0 0 5px 0; line-height: 1.3; }
.pattern_header_text small { font-size: 1.5rem; color: rgba(255, 255, 255, 0.8); font-weight: normal; display: block; }
.pattern_header_ill { width: 140px; height: 140px; flex-shrink: 0; margin-left: 0; }
.pattern_header_ill img { width: 100%; height: 100%; object-fit: contain; }

.pattern_step { margin-bottom: 0; position: relative; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.pattern_step:last-child { margin-bottom: 0; }
.pattern_step.step1 { border: 2px solid var(--accent); border-top: 6px solid var(--accent); position: relative; }
.pattern_step.step2 { border: 2px solid var(--primary); border-top: 6px solid var(--primary); position: relative; }
.pattern_step.step3 { border: 2px solid #1A6D4B; border-top: 6px solid #1A6D4B; position: relative; }

/* STEP3 2カラム導入フロー */
.install_2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.install_col { background: #f8faff; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.install_col_header { padding: 14px 18px; font-weight: bold; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; color: #fff; }
.install_col_header.stera { background: #1a4a8a; }
.install_col_header.windows { background: #0078d4; }
.install_col_header i { font-size: 1.8rem; }
.install_col_body { padding: 18px; }
.install_flow_steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.install_flow_step { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eef0f3; position: relative; }
.install_flow_step:last-child { border-bottom: none; padding-bottom: 0; }
.install_step_num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.3rem; color: #fff; flex-shrink: 0; margin-top: 1px; }
.install_col_header.stera ~ .install_col_body .install_step_num { background: #1a4a8a; }
.install_col.stera .install_step_num { background: #1a4a8a; }
.install_col.windows .install_step_num { background: #0078d4; }
.install_step_body { flex: 1; }
.install_step_title { font-weight: bold; font-size: 1.4rem; color: var(--text-main); margin-bottom: 4px; }
.install_step_desc { font-size: 1.3rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.install_step_desc a { color: var(--primary); text-decoration: underline; }
.install_step_img { margin-top: 8px; }
.install_step_img img { max-width: 140px; height: auto; border: 1px solid var(--border-color); border-radius: 4px; }

@media screen and (max-width: 768px) {
    .install_2col { grid-template-columns: 1fr; }
}

.step_connector { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; gap: 0; }
.step_connector_line { width: 2px; height: 20px; background: var(--border-color); }
.step_connector_arrow { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 12px solid var(--border-color); }

.step_title { font-size: 2rem; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: flex-start; font-weight: bold; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; flex-wrap: wrap; gap: 4px; }
.step_title span.num { display: inline-flex; align-items: center; gap: 6px; padding: 7px 20px; border-radius: 30px; font-size: 1.5rem; font-weight: 900; margin-right: 15px; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; margin-top: 12px; }
.step_title_text { display: flex; flex-direction: column-reverse; flex: 1; }
.step_title_main { font-size: 2rem; font-weight: bold; color: var(--text-main); line-height: 1.3; }
.step_title_sub { font-size: 1.5rem; font-weight: normal; color: var(--text-light); margin-bottom: 6px; display: inline-block; background: var(--bg-gray); padding: 5px 14px; border-radius: 4px; align-self: flex-start; }
.pattern_step.step1 .step_title span.num { background: var(--accent); color: #fff; box-shadow: 0 3px 8px rgba(211,59,58,0.3); }
.pattern_step.step2 .step_title span.num { background: var(--primary); color: #fff; box-shadow: 0 3px 8px rgba(59,89,152,0.25); }
.pattern_step.step3 .step_title span.num { background: #1A6D4B; color: #fff; box-shadow: 0 3px 8px rgba(26,109,75,0.25); }
.step_title span.req { font-size: 1.2rem; background: #fffafa; color: var(--accent); border: 1px solid #ffcdd2; padding: 4px 10px; border-radius: 20px; margin-left: auto; font-weight: bold; }
.step_content_box { background: transparent; padding: 0; }

.step_lead_text { font-weight: bold; font-size: 1.4rem; margin-bottom: 10px; color: var(--text-main); }
.step_desc_text { margin-bottom: 10px; font-size: 1.4rem; line-height: 1.7; color: var(--text-light); }
.step_note_text { font-weight: bold; font-size: 1.4rem; color: var(--accent); margin-bottom: 15px; }

.step_alert_box { background: #fffafa; border-left: 4px solid var(--accent); padding: 15px; border-radius: 4px; margin: 20px 0; display: flex; align-items: center; gap: 10px; }
.step_alert_icon { color: var(--accent); font-size: 2rem; }
.step_alert_text { font-weight: bold; margin: 0; font-size: 1.4rem; color: var(--text-main); }
.step_action_wrapper { text-align: center; margin-top: 25px; }

/* ==================================================
   Steps (Clean List Style)
   ================================================== */
.sub_steps { margin-top: 20px; }
.s_step { margin-bottom: 30px; }
.s_step:last-child { margin-bottom: 0; }

.s_step_header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.s_step_header .s_num { background: var(--primary); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.3rem; flex-shrink: 0; }
.s_step_header h5 { margin: 0; font-size: 1.8rem; color: var(--text-main); font-weight: bold; }

.s_step_body { padding-left: 36px; }
.s_step_body > p { margin: 0 0 12px 0; font-size: 1.5rem; line-height: 1.7; color: var(--text-light); }
.s_step_body p:last-child { margin-bottom: 0; }

.s_step_note { background: #fffafa; border-left: 4px solid var(--accent); padding: 15px; border-radius: 4px; margin: 15px 0; display: flex; align-items: flex-start; gap: 10px; }
.s_step_note i { font-size: 1.8rem; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.s_step_note span { font-size: 1.4rem; color: var(--text-main); line-height: 1.6; font-weight: normal; }
.s_step_note span strong { color: var(--accent); }

.id_code_box { background: #f0f4ff; border: 2px solid var(--primary); padding: 14px 20px; border-radius: 8px; margin: 14px 0 18px 0; display: block; }
.id_code_label { font-size: 1.3rem; color: var(--text-light); display: block; margin-bottom: 6px; text-align: center; }
.id_code_value { font-size: 2.2rem; color: var(--primary); letter-spacing: 1px; display: block; text-align: center; font-weight: bold; }

/* ==================================================
   Unified Document Card
   ================================================== */
.doc_unified_card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); overflow: hidden; }
.doc_u_body { padding: 24px; }
.doc_u_title { font-size: 1.6rem; font-weight: bold; color: var(--primary); margin: 0 0 16px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.doc_u_title i { color: var(--primary); font-size: 1.8rem; }
.doc_u_desc { font-size: 1.5rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }

.doc_btn_group { display: flex; flex-direction: column; gap: 0; }
.doc_btn_item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eef0f3; flex-wrap: wrap; }
.doc_btn_item:first-child { padding-top: 0; }
.doc_btn_item:last-child { padding-bottom: 0; border-bottom: none; }
.doc_label { font-size: 1.5rem; font-weight: bold; color: var(--text-main); flex: 1; min-width: 120px; padding-left: 10px; border-left: 3px solid var(--primary); }
.doc_desc { font-size: 1.25rem; color: var(--text-light); margin: 8px 0 0; line-height: 1.5; width: 100%; padding-left: 13px; order: 2; }

/* 新規: 2カラムレイアウト (Cパターンの見本用) */
.doc_2col_wrapper { display: flex; gap: 20px; margin-top: 15px; border-top: 1px dashed var(--border-color); padding-top: 15px; }
.doc_col { flex: 1; background: #f8faff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.doc_col_header { background: #f0f2f5; color: var(--text-main); padding: 10px 15px; font-weight: bold; font-size: 1.4rem; text-align: center; border-bottom: 2px solid var(--border-color); border-top: 3px solid #7a9cc0; }
.doc_col:nth-child(2) .doc_col_header { border-top-color: #7aab93; }
.doc_col_body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.doc_col_body .doc_desc { margin-bottom: 15px; padding-left: 0; line-height: 1.6; flex: 1; }
.doc_col_body .btn_doc { width: 100%; justify-content: center; }

.btn_doc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; font-size: 1.4rem; font-weight: bold; border-radius: 6px; text-decoration: none; transition: 0.2s; white-space: nowrap; }
.btn_doc.doc_primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn_doc.doc_primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn_doc.doc_accent { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn_doc.doc_accent:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }

.doc_u_submit { display: flex; align-items: flex-start; gap: 14px; background: #f8faff; border-radius: 8px; padding: 14px 16px; margin-top: 20px; border: 1px solid #dce6f5; }
.doc_u_submit_title { font-size: 1.2rem; font-weight: bold; color: #fff; background: var(--primary); padding: 3px 10px; border-radius: 4px; white-space: nowrap; display: inline-block; flex-shrink: 0; margin-top: 2px; }
.doc_u_submit_body { flex: 1; }
.doc_u_submit_desc { font-size: 1.35rem; color: var(--text-main); line-height: 1.7; margin: 0 0 4px 0; }
.doc_u_submit_note { font-size: 1.2rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.doc_u_submit_link { color: var(--primary); text-decoration: underline; font-weight: bold; transition: 0.3s; }
.doc_u_submit_link:hover { color: var(--primary-light); text-decoration: none; }

/* ==================================================
   Tips & Notes Container
   ================================================== */
.doc_tips_container { background: #f8f9fa; border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; margin-top: 20px; }
.doc_tips_title { font-size: 1.4rem; color: var(--text-main); font-weight: bold; margin: 0 0 12px 0; display: flex; align-items: center; gap: 6px; }
.doc_tips_title i { color: var(--primary); font-size: 1.6rem; }
.doc_tip_item { background: #fff; border: 1px solid #eef0f3; border-radius: 6px; padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.doc_tip_item:last-child { margin-bottom: 0; }
.tip_text { flex: 1; }
.tip_label { font-size: 1.4rem; font-weight: bold; color: var(--text-main); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tip_desc { font-size: 1.3rem; color: var(--text-light); margin: 0; line-height: 1.5; }

.btn_doc.doc_sub { background: #fff; color: var(--text-main); border: 1px solid var(--border-color); font-weight: normal; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.btn_doc.doc_sub:hover { border-color: #aaa; background: var(--bg-gray); }

.doc_u_footer { background: #f8f9fa; padding: 14px 24px; border-top: 1px solid var(--border-color); }
.doc_u_footer_title { font-size: 1.3rem; font-weight: bold; color: var(--text-light); margin: 0 0 4px 0; display: flex; align-items: center; gap: 6px; }
.doc_u_footer_title i { color: var(--text-light); }
.doc_u_footer_desc { font-size: 1.25rem; color: var(--text-light); line-height: 1.6; margin: 0 0 6px 0; }

.doc_ref_link { color: var(--primary); text-decoration: underline; display: inline-flex; align-items: center; gap: 5px; font-weight: bold; font-size: 1.3rem; }
.link_underline_bold { color: var(--primary); text-decoration: underline; font-weight: bold; }

/* ==================================================
   Buttons & Links
   ================================================== */
.btn_proc { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; font-size: 1.5rem; font-weight: bold; border-radius: 50px; text-decoration: none; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-hover); }
.btn_proc i { margin-left: 10px; }

.link_item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); transition: 0.3s; margin-top: 15px; }
.link_item:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.link_item_text h4 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 5px; }
.link_item_text p { font-size: 1.3rem; color: var(--text-light); margin: 0; }
.badge-gov { background: #506f53; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 1.1rem; margin-left: 8px; vertical-align: middle; font-weight: normal; }
.badge-bc { background: var(--primary); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 1.1rem; margin-right: 8px; vertical-align: middle; }

/* ==================================================
   Schedule Timeline
   ================================================== */
.timeline { display: flex; justify-content: space-between; position: relative; margin: 40px 0 0; }
.timeline::before { content: ''; position: absolute; top: 16px; left: 0; width: 100%; height: 2px; background: var(--border-color); z-index: 1; }
.timeline_item { position: relative; z-index: 1; width: 23%; text-align: center; }
.timeline_dot { width: 34px; height: 34px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.3rem; color: var(--primary); }
.timeline_content h4 { color: var(--text-main); font-size: 1.5rem; font-weight: bold; margin-bottom: 6px; }
.timeline_content p { font-size: 1.3rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ==================================================
   Seminar
   ================================================== */
.seminar_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seminar_card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); }
.seminar_img { height: 160px; background: #ddd; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem; }
.seminar_img.bg1 { background-color: #5a78b5; }
.seminar_img.bg2 { background-color: #4a90e2; }
.seminar_img.bg3 { background-color: #f39c12; }
.seminar_body { padding: 20px; }
.seminar_body h4 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 10px; line-height: 1.4; font-weight: bold; }
.seminar_body p { font-size: 1.4rem; color: var(--text-light); margin: 0; }

/* ==================================================
   Footer CTA
   ================================================== */
.footer_cta { background: linear-gradient(135deg, var(--primary) 0%, #2b4273 100%); padding: 60px 20px; text-align: center; color: #fff; }
.footer_cta h2 { font-size: 3rem; margin-bottom: 20px; color: #fff; }
.footer_cta p { font-size: 1.6rem; margin-bottom: 30px; opacity: 0.9; }
.btn-white { background: #fff; color: var(--primary) !important; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.btn-white:hover { background: #f0f0f0; }

/* ==================================================
   Responsive
   ================================================== */
@media screen and (max-width: 768px) {
    .system_wrapper { padding: 30px 20px; }
    .tax_grid, .seminar_grid { grid-template-columns: 1fr; gap: 20px; }
    .role_share_flex_visual { flex-direction: column; gap: 40px; }
    .role_plus_visual { margin: -10px 0; transform: rotate(90deg); }
    .tax_how.change { transform: none; }
    .refund_notice_visual .notice_body { padding: 15px; }
    .refund_notice_visual .notice_header h5 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.6rem; }
    .pattern_section { padding: 30px 20px; }
    .pattern_header { flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; margin: -30px -20px 20px -20px; padding: 20px; }
    .pattern_header_text h3 { font-size: 2.0rem; }
    .pattern_header_text small { font-size: 1.3rem; }
    .pattern_header_ill { width: 80px; height: 80px; margin-left: 0; }
    .step_title span.req { margin-left: 0; margin-top: 10px; }
    .pattern_step { padding: 20px; }
    .link_item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .link_item .btn_proc { width: 100%; }
    .schedule_grid { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; gap: 0; margin: 20px 0 0; }
    .timeline::before { top: 0; left: 16px; width: 2px; height: 100%; }
    .timeline_item { width: 100%; display: flex; align-items: flex-start; gap: 16px; text-align: left; padding-bottom: 20px; }
    .timeline_item:last-child { padding-bottom: 0; }
    .timeline_dot { margin: 0; flex-shrink: 0; }
    .q_answers { flex-direction: column; }
    .answer_btn { max-width: 100%; }
    .q_text { font-size: 1.8rem; }
    .result_box_inner { flex-direction: column-reverse; text-align: center; gap: 20px; }
    .result_ill { width: 220px; margin: 0 auto; }
    .result_box h3 { font-size: 2.2rem; }
    .result_box h3 span { font-size: 2.6rem; }
    
    .s_step_body { padding-left: 0; }
    .doc_u_body { padding: 20px; }
    .doc_u_footer { padding: 20px; }
    .doc_u_submit { padding: 15px; }
    .doc_btn_item { flex-direction: column; align-items: stretch; gap: 10px; }
    .doc_label { flex: none; }
    .btn_doc { width: 100%; padding: 12px; font-size: 1.4rem; justify-content: center; }
    
    .doc_tip_item { flex-direction: column; align-items: flex-start; }
    .btn_doc.doc_sub { width: 100%; justify-content: center; margin-top: 10px; }
    .doc_2col_wrapper { flex-direction: column; gap: 15px; }
}
/* question_box内のeあっと免税リンク色 */
.q_link_eatmenzei {
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}
.q_link_eatmenzei:hover {
    color: #d35400;
}

/* 解約手続きの注意文 */
.cancel_notice {
    background: #fff8e1;
    border-left: 4px solid #f0a500;
    padding: 10px 15px;
    border-radius: 4px;
    color: #7a5c00;
    font-size: 1.4rem;
    margin: 10px 0 15px;
}
.cancel_notice i {
    margin-right: 6px;
    color: #f0a500;
}

/* 鉤括弧内の赤文字 */
.text-red-bold {
    color: var(--accent);
    font-weight: bold;
}
/* ==========================================
   パターン別 お手続きの流れ スタイル
   ========================================== */
.flow_pattern_block {
    margin-bottom: 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

.flow_pattern_label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    font-size: 1.7rem;
    font-weight: bold;
    color: #fff;
}

.flow_badge_abc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-size: 1.8rem;
    font-weight: 900;
    flex-shrink: 0;
}

.flow_label_a { background: linear-gradient(90deg, #1a6c3e, #2b9a5a); }
.flow_label_b { background: linear-gradient(90deg, #1a5c8a, #2980b9); }
.flow_label_c { background: linear-gradient(90deg, #7a4a1a, #c0782a); }
.flow_label_d { background: linear-gradient(90deg, #5a2d82, #8e44ad); }

.flow_pattern_block .timeline {
    padding: 24px 28px 8px;
}

/* パターンB完了ドット */
.timeline_dot_green {
    background: #2ecc71 !important;
    color: #fff;
    font-size: 1.4rem;
}

@media (max-width: 640px) {
    .flow_pattern_label {
        font-size: 1.5rem;
        padding: 14px 18px;
    }
    .flow_pattern_block .timeline {
        padding: 16px 16px 4px;
    }
}

/* 導入手順 端末選択導線ボックス */
.install_intro_box {
    background: #f0f7f4;
    /* border-left: 4px solid var(--primary); */
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
}
.install_intro_text {
    margin: 0;
    font-size: 1.5rem;
    color: #2b7a4b;
    font-weight: bold;
}
.install_intro_text i {
    margin-right: 8px;
}

/* パターンB セクション末尾の補足文 */
.pattern_b_note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f7f4;
    /* border-left: 4px solid var(--primary); */
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 20px;
    font-size: 1.5rem;
    color: #2b7a4b;
    font-weight: bold;
}
.pattern_b_note i {
    font-size: 1.8rem;
    flex-shrink: 0;
}
/* ==========================================
   アコーディオン パターンセクション
   ========================================== */
.accordion_pattern .pattern_header {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}
.accordion_pattern .pattern_header:hover {
    background: rgba(59, 89, 152, 0.03);
}
.accordion_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.2s, color 0.2s;
    margin-left: 16px;
}
.accordion_trigger.is-open .accordion_icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* アコーディオンの閉じた状態 */
.accordion_body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.accordion_body.is-open {
    /* max-heightはJS側でscrollHeightをセット */
}

/* アコーディオンが閉じているときのパターンヘッダーの下ボーダー */
.accordion_pattern {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
}
.accordion_pattern .pattern_header {
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.accordion_trigger.is-open {
    border-bottom: 2px solid var(--border-color) !important;
}

/* pattern_headerにflex alignをopen時にも維持 */
.pattern_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 24px 28px;
}
.pattern_header_left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* ==========================================
   診断案内モーダル
   ========================================== */
.diag_modal_overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 20px;
}
.diag_modal_overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.diag_modal_box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.diag_modal_close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.diag_modal_close:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}
.diag_modal_icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(59,89,152,0.25);
}
.diag_modal_title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 14px;
}
.diag_modal_text {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}
.diag_modal_btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.diag_modal_btn_go {
    width: 100%;
    max-width: 340px;
    font-size: 1.7rem;
    padding: 16px 30px;
}
.diag_modal_btn_skip {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
    transition: color 0.2s;
}
.diag_modal_btn_skip:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .diag_modal_box {
        padding: 40px 24px 30px;
    }
    .diag_modal_title {
        font-size: 2rem;
    }
    .accordion_icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    .pattern_header {
        padding: 18px 16px;
        gap: 10px;
    }
}

/* ==========================================
   診断セクション 背景
   ========================================== */
.bg_diag {
    background: #d4ddef;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
    position: relative;
}

.section_pattern_details {
    padding-top: 60px !important;
}

/* ==========================================
   パターンD 導線リンク
   ========================================== */
.pattern_d_guide_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 6px;
}

/* ==========================================
   【重要】消費税返金サービス モーダル
   ========================================== */
.important_modal_overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 20px;
    overflow-y: auto;
}
.important_modal_overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.important_modal_box {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: importantModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    margin: auto;
}
@keyframes importantModalIn {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0);       opacity: 1; }
}
.important_modal_close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.important_modal_close:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}
.important_modal_icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #5b7fa6;
    color: #fff;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(91, 127, 166, 0.3);
}
.important_modal_title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.5;
    margin-bottom: 10px;
}
.important_modal_audience {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.important_modal_body {
    text-align: left;
    margin-bottom: 20px;
}
.important_modal_body p {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 12px;
}
.important_modal_body p:last-child {
    margin-bottom: 0;
}
.important_modal_note {
    font-size: 1.3rem !important;
    color: var(--text-light) !important;
}
.important_modal_btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.important_modal_btn_go {
    width: 100%;
    max-width: 360px;
    font-size: 1.7rem;
    padding: 16px 30px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .important_modal_overlay {
        padding: 12px;
        align-items: flex-start;
    }
    .important_modal_box {
        padding: 48px 20px 28px;
        border-radius: 16px;
        margin-top: 20px;
    }
    .important_modal_title {
        font-size: 1.9rem;
    }
    .important_modal_icon {
        width: 60px;
        height: 60px;
        font-size: 2.4rem;
    }
    .important_modal_body p {
        font-size: 1.35rem;
    }
    .important_modal_btn_go {
        max-width: 100%;
        font-size: 1.5rem;
        padding: 14px 20px;
    }
}
@media (max-width: 480px) {
    .important_modal_box {
        padding: 44px 16px 24px;
    }
    .important_modal_title {
        font-size: 1.7rem;
    }
}