/* --- Base Styles --- */
:root {
    --primary: #1F3A8A; /* Main brand color */
    --primary-light: #3b82f6; /* Updated primary light for better contrast */
    --primary-dark: #0F2A6B; /* Darker shade */
    --accent: #E6B422; /* Accent color (gold) */
    --accent-light: #F9D76F; /* Lighter accent */
    --accent-dark: #D4A20F; /* Darker accent */
    --accent-rgb: 230, 180, 34; /* Accent color in RGB for box-shadow */
    --surface: #FFFFFF; /* Card backgrounds, etc. */
    --bg: #F8FAFC; /* Page background */
    --muted: #64748B; /* Muted text color */
    --text-dark: #1A202C; /* Default text color */
    --text-light: #FFFFFF; /* Text on dark backgrounds */
    --border-light: #e5e7eb; /* Light border color */
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.07);
    --shadow-lg: rgba(0, 0, 0, 0.1);
    --error-color: #dc2626; /* Red for errors */
    --highlight-bg: #eef2ff; /* Lighter blue for highlight */
    --marker-color: #fef3c7; /* Lighter yellow marker color */

    /* --- Font Families (Updated) --- */
    --font-body: 'BIZ UDPGothic', sans-serif;          /* 本文: BIZ UDPGothic */
    --font-heading-rounded: 'M PLUS Rounded 1c', sans-serif; /* H3-H6, ボタンなど: M PLUS Rounded 1c */
    --font-serif-heading: 'Noto Serif JP', serif;     /* H1: Noto Serif JP */
    --font-gothic-heading: 'BIZ UDPGothic', sans-serif; /* H2: BIZ UDPGothic */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 100px; /* Sticky footer分のスペース確保 (スマホ時のみ有効になるよう調整) */
}

/* --- Font Weights and Families --- */
h1 { font-family: var(--font-serif-heading); font-weight: 700; }
h2 { font-family: var(--font-gothic-heading); font-weight: 700; }
h3, h4, h5, h6 { font-family: var(--font-heading-rounded); font-weight: 700; }
.btn, .footer-logo, .lawyer-name, .flow-title, .faq-question, .case-badge,
.price-table thead th, .zero-yen-plan th, .pricing-options-table th,
.problem-solution-text-v2, .problem-solution-text-v2 strong, .zero-yen-plan strong,
.faq-answer .term-explanation strong, .cta strong, .feature-card li strong,
.flow-content p strong, .price-table td strong, .form-confirmation-note strong,
.flow-number, .show-more-cases-btn, .early-cta-section .btn
 { font-family: var(--font-heading-rounded); font-weight: 700; }

.section-subtitle, .feature-card .benefit, .case-result, .flow-services h4,
.price-table th, .office-card .map-link, .form-row label,
.contact-form-section .section-intro-text a
 { font-weight: 400; }
.problem-card h3, .feature-card h3, .case-card h3, .office-card h3
 { font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Mobile Header Bar --- */
.mobile-header-bar {
    display: none; background-color: var(--surface); padding: 10px 20px;
    box-shadow: 0 2px 5px var(--shadow-sm); position: sticky; top: 0; left: 0;
    width: 100%; z-index: 1000; justify-content: space-between; align-items: center;
}
.mobile-header-bar img { display: block; height: 35px; }
.mobile-header-location {
    font-family: var(--font-serif-heading); font-size: 0.75rem;
    color: #a0aec0; font-weight: 700;
}

/* --- Header --- */
header {
    background-image: url('https://franchising.heteml.net/inheritance/lp/img/top12.png');
    background-color: #333; background-size: cover; background-position: center;
    background-repeat: no-repeat; color: var(--text-light); padding: 100px 0 120px;
    text-align: center; position: relative; overflow: hidden;
}
header::after { /* Wave SVG */
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f8fafc' fill-opacity='1' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,144C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: bottom; background-size: cover; z-index: 3;
}
header .container { position: relative; z-index: 2; }
header h1 { font-size: 3rem; margin-bottom: 1.2rem; line-height: 1.4; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); }
header p.subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; opacity: 0.95; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-body); }
.header-benefits { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; font-size: 0.95rem; margin-bottom: 3rem; opacity: 1; max-width: 750px; margin-left: auto; margin-right: auto; font-family: var(--font-body); }
.benefit-item { display: flex; align-items: center; gap: 6px; background-color: rgba(0, 0, 0, 0.25); padding: 6px 12px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.3); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); }
.benefit-item i { color: var(--accent-light); font-size: 1em; }

/* --- Sections --- */
section { padding: 70px 0; }
.problems { background-color: var(--bg); }

section h2 { text-align: center; font-size: 2.1rem; margin-bottom: 10px; color: var(--primary); position: relative; }
.section-subtitle { display: block; text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 50px; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-body); }
section h2::after { content: ""; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent); border-radius: 2px; }

/* --- Buttons --- */
.btn { display: inline-block; text-decoration: none; padding: 14px 32px; border-radius: 50px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; border: 2px solid transparent; cursor: pointer; font-size: 1.05rem; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--text-light); box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2); border-color: transparent; padding: 15px 35px; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.btn-secondary { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.btn-secondary:hover { background: var(--primary-dark); color: var(--text-light); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 42, 107, 0.2); }
.btn-secondary i { color: var(--primary); transition: color 0.2s ease; }
.btn-secondary:hover i { color: var(--text-light); }
.cta-buttons { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-top: 35px; }
.show-more-cases-btn {
    display: none;
    margin: 25px auto 0;
    padding: 10px 25px;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.show-more-cases-btn:hover {
    background-color: var(--primary-dark);
}

/* --- Problem Section --- */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.problem-card { background: var(--surface); padding: 25px 30px; border-radius: 16px; box-shadow: 0 6px 20px var(--shadow-md); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-light); position: relative; z-index: 1; }
.problem-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(31, 58, 138, 0.06) 0%, transparent 65%); border-radius: 50%; z-index: -1; opacity: 0.8; transition: transform 0.5s ease, opacity 0.5s ease; }
.problem-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px var(--shadow-lg); }
.problem-card:hover::before { transform: scale(1.15) rotate(15deg); opacity: 1; }
.problem-card h3 { margin-bottom: 10px; font-size: 1.15rem; color: var(--primary); position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.problem-card h3 i { color: var(--primary-light); font-size: 1.2em; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.problem-card p { position: relative; z-index: 1; font-size: 0.95rem; font-family: var(--font-body); }
.problem-card .benefit { color: var(--primary-dark); margin-top: 10px; font-size: 0.95rem; padding-top: 10px; border-top: 1px dashed var(--border-light); font-family: var(--font-body); }
.problem-card h3::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: 0.8em; color: var(--muted); transition: transform 0.3s ease; display: none; }
.problem-card.open h3::after { transform: rotate(180deg); }
.problem-callout-container { margin-top: 30px; text-align: center; }
.problem-double-chevron { font-size: 2.8rem; color: var(--accent); line-height: 0.7; margin-bottom: 20px; font-weight: 900; }
.problem-double-chevron i { display: block; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.problem-solution-text-v2 { font-size: 1.6rem; color: var(--primary-dark); padding: 10px 20px; display: inline-block; max-width: 90%; line-height: 1.6; }
.problem-solution-text-v2 .highlight-marker { background: linear-gradient(transparent 60%, var(--marker-color) 60%); padding: 0 0.2em; margin: 0 -0.2em; display: inline; }
.problem-solution-text-v2 strong { color: var(--primary); font-size: 1.1em; }

/* --- Early CTA Section --- */
.early-cta-section {
    background-image: url('https://franchising.heteml.net/inheritance/lp/img/ctaback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}
.early-cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}
.early-cta-section .container {
    position: relative;
    z-index: 2;
}
.early-cta-section h2 {
    font-family: var(--font-heading-rounded);
    font-size: 1.9rem;
    margin-bottom: 100px;
    line-height: 1.5;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
}
.early-cta-section h2::after {
    display: none;
}
.early-cta-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    line-height: 1.85;
    opacity: 0.95;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.03em;
}
.early-cta-section .btn {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    font-size: 1.1rem;
    padding: 15px 35px;
}
.early-cta-section .btn i {
    margin-right: 8px;
}
.early-cta-section .btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(230, 180, 34, 0.3);
}

/* --- Features Section --- */
.features {
    position: relative;
    z-index: 0;
    background-color: var(--surface);
    overflow: hidden;
}
.features::before {
    content: '';
    display: none;
}
.features .container {
    position: relative;
    z-index: 1;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; counter-reset: feature-counter; }
.feature-card { padding: 30px; padding-top: 30px; border-radius: 12px; background-color: var(--surface); box-shadow: 0 6px 18px var(--shadow-sm); transition: box-shadow 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--border-light); }
.feature-card::before { content: counter(feature-counter); counter-increment: feature-counter; position: absolute; top: 0; left: 0; background-color: var(--primary-dark); color: white; font-size: 1.4rem; line-height: 1; padding: 12px 18px; border-radius: 12px 0 12px 0; z-index: 2; min-width: 50px; text-align: center; font-family: var(--font-heading-rounded); }
.feature-card::after { display: none; }
.feature-card:hover { box-shadow: 0 10px 22px var(--shadow-md); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary); padding-top: 30px; min-height: 2.6em; display: flex; align-items: center; }
.feature-card ul {
    list-style: none;
    padding-left: 0;
    flex-grow: 1;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
}
.feature-card ul li {
    margin-bottom: 5px;
    padding-left: 1.2em;
    position: relative;
}
.feature-card ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
.feature-card ul:not(.feature-description) li::before {
     content: "✓";
     color: var(--accent-dark);
}
.feature-card .benefit { color: var(--primary-dark); margin-top: auto; font-size: 0.95rem; padding-left: 1.3em; position: relative; font-family: var(--font-body); }
.feature-card .benefit::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: bold; font-size: 1.1em; }

/* --- Case Studies Section --- */
.cases {
    background-color: var(--bg);
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://franchising.heteml.net/inheritance/lp/img/room2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.30;
    z-index: -1;
}
.cases .container {
    position: relative;
    z-index: 1;
}
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.case-card { background-color: var(--surface); background-image: linear-gradient(to top left, rgba(255, 255, 255, 0.9) 80%, rgba(255, 255, 255, 0) 30%), url('https://franchising.heteml.net/inheritance/lp/img/cases.png'); background-position: bottom 15px right 15px; background-repeat: no-repeat; background-size: 100px auto; padding: 30px; border-radius: 12px; position: relative; box-shadow: 0 6px 18px var(--shadow-sm); border-top: 5px solid var(--primary); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-top: 15px; }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 10px 22px var(--shadow-md); }
.case-badge { position: absolute; top: -15px; left: 20px; transform: none; background: var(--accent); color: var(--primary-dark); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.1); white-space: nowrap; }
.case-card h3 { margin-bottom: 12px; font-size: 1.2rem; color: var(--primary); padding-top: 15px; position: relative; z-index: 1; text-align: left; padding-left: 10px; }
.case-result { color: var(--primary-dark); margin-bottom: 18px; font-size: 1.05rem; border-bottom: 1px dashed var(--border-light); padding-bottom: 12px; position: relative; z-index: 1; font-family: var(--font-body); }
.case-card p:last-of-type { flex-grow: 1; font-size: 0.95rem; line-height: 1.7; position: relative; z-index: 1; font-family: var(--font-body); }

/* --- Lawyer Introduction Section --- */
.lawyers {
    background-color: var(--primary-dark);
    color: var(--text-light);
}
.lawyers h2 {
    color: var(--text-light);
}
.lawyers .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}
.lawyers h2::after {
    background: var(--accent-light);
}
.lawyers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; text-align: center; }
.lawyer-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 18px var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}
.lawyer-card:hover { transform: translateY(-5px); box-shadow: 0 10px 22px var(--shadow-md); }
.lawyer-image { width: 140px; height: 140px; border-radius: 50%; margin-bottom: 20px; object-fit: cover; border: 6px solid var(--surface); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.lawyer-name { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.lawyer-position { color: var(--muted); margin-bottom: 15px; font-size: 0.9rem; font-family: var(--font-body); }
.lawyer-description { font-size: 0.9rem; text-align: left; margin-bottom: 15px; width: 100%; color: var(--text-dark); flex-grow: 1; font-family: var(--font-body); }
.lawyer-profile-details {
    text-align: left;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    width: 100%;
    font-family: var(--font-body);
}
.lawyer-profile-details p {
    margin-bottom: 8px;
    line-height: 1.6;
}
.lawyer-profile-details p:last-child {
    margin-bottom: 0;
}
.lawyer-profile-details strong {
    font-family: var(--font-heading-rounded);
    color: var(--primary-dark);
}

/* --- Pricing Section --- */
.pricing { background-color: var(--surface); }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px var(--shadow-md); margin-bottom: 35px; }
.price-table th, .price-table td { padding: 20px 25px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; font-family: var(--font-body); }
.price-table th { background-color: var(--bg); width: 35%; color: var(--primary-dark); font-size: 1.05rem; }
.price-table td { color: var(--text-dark); font-size: 1rem; line-height: 1.7; }
.price-table td span { font-size: 0.9rem; color: var(--muted); display: block; margin-top: 5px; font-family: var(--font-body); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table thead th { background-color: var(--primary-dark); color: var(--text-light); font-size: 1.2rem; text-align: center; border-bottom: none; padding: 15px 25px; }
.price-note { margin-top: 20px; font-size: 0.95rem; color: var(--muted); text-align: left; line-height: 1.7; padding-left: 10px; border-left: 3px solid var(--border-light); font-family: var(--font-body); }
.zero-yen-plan thead th { background-color: var(--accent-dark); color: var(--text-light); }
.zero-yen-plan td, .zero-yen-plan th { background-color: rgba(249, 215, 111, 0.06); }
.zero-yen-plan th { color: var(--accent-dark); }
.zero-yen-plan strong { color: var(--accent-dark); font-size: 1.15rem; }
.zero-yen-plan td span { color: #85620a; font-family: var(--font-body); }
.pricing-options-table th { width: 30%; background-color: var(--bg); color: var(--primary); }
.pricing-options-table td p { margin: 0; font-size: 0.95rem; font-family: var(--font-body); }
.pricing-options-table td span { font-size: 0.85rem; color: var(--muted); display: block; margin-top: 4px; font-family: var(--font-body); }
.pricing-options-table td span.example-text { display: block; margin-bottom: 4px; font-size: 0.9rem; color: var(--text-dark); font-family: var(--font-body); }

/* --- Process/Flow Section --- */
.flow { background-color: var(--bg); }
.flow-steps { max-width: 800px; margin: 0 auto; position: relative; }
.flow-steps::before { content: ""; position: absolute; top: 30px; left: 30px; bottom: 30px; width: 4px; background-color: rgba(37, 99, 235, 0.25); z-index: 0; border-radius: 2px; }
.flow-step { display: flex; margin-bottom: 45px; position: relative; z-index: 1; }
.flow-step:last-child { margin-bottom: 0; }
.flow-number { width: 64px; height: 64px; background: var(--primary); color: var(--text-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; margin-right: 30px; border: 5px solid var(--bg); z-index: 1; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.flow-content { flex: 1; background: var(--surface); padding: 25px; border-radius: 12px; box-shadow: 0 5px 15px var(--shadow-sm); }
.flow-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; }
.flow-content p { font-size: 1rem; line-height: 1.7; font-family: var(--font-body); }
.flow-services { margin-top: 18px; background-color: rgba(31, 58, 138, 0.05); padding: 15px 20px; border-radius: 8px; border-left: 5px solid var(--primary-light); }
.flow-services h4 { font-size: 1rem; margin-bottom: 10px; color: var(--primary); font-family: var(--font-body); }
.flow-services ul { list-style-type: none; margin: 0; padding: 0; font-family: var(--font-body); }
.flow-services li { font-size: 0.95rem; margin-bottom: 8px; padding-left: 22px; position: relative; font-family: var(--font-body); }
.flow-services li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: bold; font-size: 1.1em; }

/* --- FAQ Section --- */
.faq { background-color: var(--surface); }
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--surface); border-radius: 16px; margin-bottom: 20px; border: 1px solid var(--border-light); overflow: hidden; box-shadow: 0 4px 10px var(--shadow-sm); transition: box-shadow 0.3s ease; }
.faq-item:hover { box-shadow: 0 8px 15px var(--shadow-md); }
.faq-question { padding: 22px 60px 22px 30px; color: var(--primary); cursor: pointer; position: relative; display: block; transition: background-color 0.2s ease; font-size: 1.1rem; }
.faq-question:hover { background-color: rgba(31, 58, 138, 0.03); }
.faq-question::after { content: '+'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--primary-light); transition: transform 0.3s ease, color 0.3s ease; line-height: 1; }
.faq-item.open .faq-question { background-color: rgba(31, 58, 138, 0.05); color: var(--primary-dark); }
.faq-item.open .faq-question::after { content: '−'; transform: translateY(-50%); color: var(--primary-dark); }
.faq-answer { padding: 0 30px; font-size: 1rem; line-height: 1.8; border-top: 1px solid var(--border-light); background-color: var(--surface); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, opacity 0.5s ease-in-out; font-family: var(--font-body); }
.faq-item.open .faq-answer { max-height: 1000px; opacity: 1; padding-top: 25px; padding-bottom: 30px; }
.faq-answer .term-explanation { font-size: 0.95rem; color: var(--muted); margin-top: 15px; padding: 15px 18px; background-color: #f8fafc; border-radius: 8px; border-left: 5px solid var(--accent); box-shadow: 0 2px 5px var(--shadow-sm); font-family: var(--font-body); }
.faq-answer .term-explanation strong { color: var(--primary-dark); }
.faq-answer ul { margin-top: 10px; margin-bottom: 10px; padding-left: 20px; font-family: var(--font-body); }
.faq-answer ul li { margin-bottom: 5px; font-family: var(--font-body); }

/* --- CTA Section (Refined Styles for all .cta sections) --- */
.cta {
    text-align: left;
    color: var(--text-light);
    padding: 70px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image: url('https://franchising.heteml.net/inheritance/lp/img/ctaback.jpg'); /* Common background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta::before { /* Common overlay style */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(15, 42, 107, 0.75); /* Primary dark based overlay for ALL .cta sections */
}
.cta .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}
.cta-info {
    flex: 1 1 auto;
    min-width: 300px;
    padding-right: 20px;
    margin-bottom: 0;
}
.cta-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: left;
    line-height: 1.45;
    font-family: var(--font-gothic-heading);
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.cta-info h2::after {
    display: none;
}
.cta-info .cta-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 580px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.cta-tel-block {
    margin-bottom: 0;
}
.cta-tel-block .cta-tel-label {
    font-size: 0.9rem;
    color: var(--accent-light);
    opacity: 1;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}
.cta-tel-block .cta-tel-number {
    font-family: var(--font-heading-rounded);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.cta-tel-block .cta-tel-number i {
    margin-right: 15px;
    font-size: 2.2rem;
    color: var(--accent-light);
}
.cta-tel-block .cta-tel-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    display: block;
}
.sp-only-cta-tel-br {
    display: none;
}
.cta-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Default to center */
    margin-left: auto; /* Push to right on desktop if space */
}
.cta-actions .btn {
    width: auto;
    min-width: 300px;
    max-width: 100%;
    padding: 20px 45px;
    font-size: 1.15rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(var(--accent-rgb, 230, 180, 34), 0.25);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.25s ease;
}
.cta-actions .btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}
.cta-actions .btn-primary:hover {
    background: var(--accent-dark);
    color: var(--primary-dark);
    border-color: var(--accent-dark);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 25px rgba(var(--accent-rgb, 230, 180, 34), 0.35);
}
.cta-actions .btn i {
    margin-right: 12px;
    font-size: 1.15em;
}

/* Specific styles for .cta-deadline if any minor adjustments are needed, can be added here. */
/* For example, if the text shadow needs to be different due to different parts of the shared bg image */
.cta-deadline .cta-info h2 strong {
    font-size: 1.1em;
    padding: 0.1em 0.3em;
    /* background-color: rgba(255,255,255,0.1); */ /* Optional highlight for deadline text */
    border-radius: 4px;
}


/* --- Office Location Section --- */
.office-locations { background-color: var(--bg); }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.office-card { background-color: var(--bg); padding: 25px; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: 0 4px 10px var(--shadow-sm); display: flex; flex-direction: column; }
.office-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; }
.office-card h3 i { margin-right: 10px; color: var(--primary-light); font-size: 1.3em; }
.office-card .office-image { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.office-card p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; margin-bottom: 15px; flex-grow: 1; font-family: var(--font-body); }
.office-card .map-link { display: inline-block; font-size: 0.9rem; color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--primary-light); transition: color 0.2s ease, border-color 0.2s ease; margin-top: auto; font-family: var(--font-body); }
.office-card .map-link:hover { color: var(--primary-light); border-color: var(--primary); }
.office-card .map-link i { margin-left: 5px; }
/* ... (rest of the CSS remains the same as lp_stylesheet_20250516_cta_final) ... */


/* --- Contact Form Section --- */
.contact-form-section {
    background-color: var(--surface); /* Reverted to surface (white) */
    padding: 80px 0;
}
.contact-form-container { max-width: 750px; margin: 0 auto; }
.contact-form { background: var(--surface); padding: 45px 50px; border-radius: 20px; box-shadow: 0 12px 35px var(--shadow-lg); }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; margin-bottom: 10px; font-size: 1rem; color: var(--primary-dark); font-family: var(--font-body); }
.form-row label.checkbox-group-label { margin-bottom: 15px; }
.form-row label .required { color: var(--error-color); font-size: 0.8em; margin-left: 5px; }
.form-row label .optional { color: var(--muted); font-size: 0.8em; margin-left: 5px; font-weight: normal; }
.form-row.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-row.preferred-dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; }
.checkbox-item { display: flex; align-items: center; cursor: pointer; }
.checkbox-item input[type="checkbox"] { margin-right: 8px; cursor: pointer; width: 18px; height: 18px; }
.checkbox-item label { margin-bottom: 0; font-weight: normal; font-size: 1rem; color: var(--text-dark); font-family: var(--font-body); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 15px 20px; border: 1px solid var(--border-light); border-radius: 10px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; background-color: #fdfdfe; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); background-color: var(--surface); }
input[type="date"].date-placeholder:required:invalid { color: var(--muted); }
input[type="date"] { position: relative; min-height: 55px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
.form-textarea { min-height: 150px; resize: vertical; }
.form-submit { text-align: center; margin-top: 35px; }
.form-privacy { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; display: flex; justify-content: center; align-items: center; font-family: var(--font-body); }
.form-privacy label { display: inline-block; margin-bottom: 0; font-weight: normal; color: var(--muted); cursor: pointer; font-size: 0.9rem; margin-left: 5px; font-family: var(--font-body); }
.form-privacy input[type="checkbox"] { margin-right: 0; vertical-align: middle; cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.privacy-link { color: var(--primary); text-decoration: underline; }
.privacy-link:hover { color: var(--primary-light); }
.contact-form-section .section-intro-text {
    text-align: left;
    max-width: 650px;
    margin: -30px auto 45px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted); /* Reverted intro text color */
    font-family: var(--font-body);
}
.contact-form-section .section-intro-text a { color: var(--primary); text-decoration: none; font-family: var(--font-body); }
.contact-form-section .section-intro-text a:hover { text-decoration: underline; }
.form-confirmation-note { text-align: left; font-size: 0.9rem; color: var(--muted); margin-top: 25px; padding: 10px; background-color: var(--bg); border-radius: 8px; border: 1px dashed var(--border-light); font-family: var(--font-body); }
.form-error-message { color: var(--error-color); font-size: 0.85rem; margin-top: 5px; display: none; }

/* --- Footer --- */
footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.85); padding: 60px 0 40px; text-align: center; position: relative; overflow: hidden; }
footer::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background-image: url('https://franchising.heteml.net/inheritance/lp/img/town-footer2.png'); background-size: auto 100px; background-position: bottom left; background-repeat: repeat-x; opacity: 0.15; z-index: 0; }
footer .container { position: relative; z-index: 1; }
.footer-logo { font-size: 1.5rem; margin-bottom: 25px; color: var(--text-light); }
.footer-address { font-size: 0.95rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.9; font-family: var(--font-body); }
.footer-address a { color: inherit; text-decoration: none; }
.footer-address a:hover { color: var(--accent-light); }
.footer-info { font-size: 0.9rem; opacity: 0.8; margin-bottom: 12px; font-family: var(--font-body); }
.footer-links { margin-top: 30px; margin-bottom: 30px; }
.footer-links a { color: rgba(255, 255, 255, 0.85); margin: 0 15px; text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; font-family: var(--font-body); }
.footer-links a:hover { color: var(--text-light); text-decoration: underline; }
.footer-copyright { font-size: 0.85rem; opacity: 0.7; margin-top: 35px; font-family: var(--font-body); }

/* --- Sticky Footer CTA (Mobile Only) --- */
.sticky-footer-cta { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); padding: 12px 15px; box-shadow: 0 -3px 10px rgba(0,0,0,0.1); z-index: 1001; display: none; gap: 15px; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sticky-footer-cta .btn { flex: 1; padding: 10px 15px; font-size: 0.9rem; white-space: nowrap; min-width: 0; }
.sticky-footer-cta .btn-phone { background-color: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.sticky-footer-cta .btn-phone:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--surface); }
.sticky-footer-cta .btn-phone i { color: var(--primary-dark); }
.sticky-footer-cta .btn-phone:hover i { color: var(--surface); }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablet */
    .features-grid, .cases-grid, .office-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
    .problems-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    header h1 { font-size: 2.4rem; }
    section h2 { font-size: 2rem; }
    .feature-card h3 { min-height: auto; }
    .early-cta-section h2 { font-size: 1.7rem; }
    .early-cta-section p { font-size: 1rem; }

    .cta .container { flex-direction: column; text-align: center;}
    .cta-info { padding-right: 0; text-align: center; flex-basis: 100%; margin-bottom: 30px;}
    .cta-info h2 { text-align: center; }
    .cta-actions { flex-basis: 100%; align-items: center; margin-top: 0; width: 100%;}
    .cta-actions .btn { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) { /* Mobile */
    body { padding-bottom: 100px; }
    .mobile-header-bar { display: flex; align-items: center; }
    header { padding: 60px 0 100px; }
    header h1 { font-size: 3rem; writing-mode: vertical-rl; text-orientation: mixed; display: inline-block; margin-bottom: 1.5rem; line-height: 1.6; height: auto; max-width: 90%; margin-left: auto; margin-right: auto; }
    header p.subtitle { font-size: 1.1rem; }
    header .header-benefits { gap: 10px 15px; font-size: 0.85rem;}
    header .benefit-item { padding: 5px 10px;}

    section { padding: 50px 0; }
    section h2 { font-size: 1.8rem; margin-bottom: 45px; }
    section h2::after { width: 60px; bottom: -15px;}
    .section-subtitle { font-size: 0.8rem; margin-bottom: 40px;}

    .btn { padding: 12px 25px; font-size: 1rem;}

    .problems .problem-card { padding: 20px; cursor: pointer;}
    .problems .problem-card h3 { margin-bottom: 0; font-size: 1.15rem;}
    .problems .problem-card h3 i { font-size: 1.2em;}
    .problems .problem-card p { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-light); font-size: 0.9rem; }
    .problems .problem-card.open p { display: block; }
    .problems .problem-card h3::after { display: inline-block; }
    .problem-solution-text-v2 { font-size: 1.2rem; padding: 15px 20px;}

    .lawyers-grid {
         grid-template-columns: 1fr;
    }
    .lawyer-card {
        width: 100%;
    }

    .cases-grid {
         grid-template-columns: 1fr;
    }
    .cases-grid .case-card:nth-child(n+4) {
        display: none;
    }
    .cases-grid.show-all-cases .case-card {
        display: flex !important;
    }
    .show-more-cases-btn {
        display: block;
    }


    .flow-step { flex-direction: column; align-items: center; }
    .flow-number { margin-bottom: 20px; margin-right: 0; width: 60px; height: 60px; font-size: 1.5rem;}
    .flow-steps::before { left: 50%; transform: translateX(-50%); height: calc(100% - 60px); }
    .flow-content { width: 100%; padding: 20px;}
    .flow-title { font-size: 1.2rem;}

    .price-table th, .price-table td { padding: 15px 18px; font-size: 0.95rem;}
    .price-table th { width: 40%; font-size: 1rem;}
    .price-table td span { font-size: 0.8rem;}

    .form-row.two-columns,
    .form-row.preferred-dates-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-form { padding: 35px 25px; }
    .contact-form-container { max-width: 100%; }
    .form-input, .form-select, .form-textarea { padding: 14px 16px; font-size: 0.95rem;}

    .footer-address { font-size: 0.9rem; text-align: left; }
    .footer-links a { margin: 0 10px; font-size: 0.9rem; }
    .footer-copyright { font-size: 0.8rem;}
    footer::before { background-size: cover; background-repeat: no-repeat; opacity: 0.1; }

    .lawyer-image { width: 120px; height: 120px;}
    .lawyer-name { font-size: 1.2rem;}

    .faq-question { padding: 18px 50px 18px 25px; font-size: 1rem;}
    .faq-question::after { right: 25px; font-size: 1.8rem;}
    .faq-answer { padding-left: 25px; padding-right: 25px;}
    .faq-item.open .faq-answer { padding-top: 20px; padding-bottom: 25px;}

    .office-grid { grid-template-columns: 1fr; }
    .office-card { padding: 20px;}
    .office-card h3 { font-size: 1.1rem;}
    .office-card .office-image { height: 120px; }

    .checkbox-group { flex-direction: column; align-items: flex-start; gap: 10px;}
    .form-privacy { flex-direction: row; align-items: center; text-align: left;}
    .form-privacy label { margin-left: 5px; margin-top: 0;}

    .sticky-footer-cta { display: flex; }

    .early-cta-section { padding: 60px 0; }
    .early-cta-section h2 { font-size: 1.6rem; margin-bottom: 55px;}
    .early-cta-section p { font-size: 1rem; margin-bottom: 25px;}
    .early-cta-section .btn { font-size: 1rem; padding: 12px 25px;}

    /* CTA Refinements for Mobile */
    .cta { padding: 50px 20px; }
    .cta .container {
        /* flex-direction: column; */ /* Already handled in 992px media query */
        /* text-align: center; */   /* Already handled in 992px media query */
        gap: 25px;
    }
    .cta-info {
        /* padding-right: 0; */ /* Handled in 992px media query */
        /* text-align: center; */ /* Handled in 992px media query */
        /* flex-basis: 100%; */ /* Handled in 992px media query */
        margin-bottom: 10px;
    }
    .cta-info h2 {
        font-size: 1.7rem; /* Further refined for mobile */
        line-height: 1.4;
        margin-bottom: 15px;
        /* text-align: center; */ /* Handled in 992px media query */
    }
    .cta-info .cta-description {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 25px;
    }
    .cta-tel-block .cta-tel-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    .cta-tel-block .cta-tel-number {
        font-size: 2.0rem; /* Further refined for mobile */
    }
    .cta-tel-block .cta-tel-number i {
        font-size: 1.9rem; /* Further refined for mobile */
        margin-right: 10px;
    }
    .cta-tel-block .cta-tel-note {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    .sp-only-cta-tel-br {
        display: block !important;
    }
    .cta-actions {
        /* flex-basis: 100%; */ /* Handled in 992px media query */
        align-items: center; /* Ensure button is centered within this container */
        width: 100%;
        margin-left: 0;
    }
    .cta-actions .btn {
        font-size: 1.05rem;
        padding: 16px 25px;
        min-width: auto; /* Allow button to be smaller than desktop min-width */
        width: 100%;
        max-width: 320px; /* Consistent max-width for button on mobile */
        margin-left: auto; /* Ensure centering */
        margin-right: auto; /* Ensure centering */
    }
}
@media (min-width: 769px) {
     body { padding-bottom: 0; }
     .sticky-footer-cta { display: none; }
     .sp-only-cta-tel-br { display: none; }
}
