:root {
    --primary-color: #0b2545;      /* Deep Navy */
    --secondary-color: #1a659e;    /* Rich Blue */
    --accent-color: #00a896;       /* Vibrant Green/Teal */
    --text-color: #333333;
    --text-light: #f5f5f5;
    --bg-light: #f8f9fa;
    --gold: #d4af37;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .badge {
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--gold);
    font-weight: 900;
}

.highlight-text {
    color: var(--accent-color);
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 168, 150, 0.3);
}

.btn-primary:hover {
    background-color: #008f7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 168, 150, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-glow {
    background: linear-gradient(135deg, var(--gold) 0%, #fbc531 100%);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    transform: translateY(-3px) scale(1.02);
}

/* Microcopy */
.microcopy {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fbc531;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 15px;
    border-radius: 30px;
}

.microcopy-bottom {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
}

.contact-form .microcopy-bottom {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #888;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-contact p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 150px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,37,69,0.9) 0%, rgba(26,101,158,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.super-badge {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fff8d6 100%);
    border: 3px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(212, 175, 55, 0.2);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    transform: scale(1.05);
}

.super-badge::before {
    content: "当事務所の最大の強み";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 3px 25px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.super-badge-main {
    display: block;
    color: #111;
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 5px;
}

.super-badge-highlight {
    color: #e74c3c;
    font-size: 2rem;
    border-bottom: 4px solid #e74c3c;
    margin: 0 5px;
    padding-bottom: 2px;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start; /* Disable vertical center to prevent overlap */
        padding-top: 180px; /* Further increased for safety */
        padding-bottom: 80px;
    }
    .super-badge {
        padding: 20px 15px 15px 15px;
        width: 95%;
        box-sizing: border-box;
        margin-top: 20px;
    }
    .super-badge-main {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    .super-badge-highlight {
        font-size: 1.5rem;
        display: inline-block;
        margin: 5px 0;
    }
    .mobile-only {
        display: block;
    }
    .hero-title {
        font-size: 2.3rem; /* Further reduced for narrow screens */
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Glassmorphism Classes */
.glass-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-radius: 20px;
}

/* Achievements Banner */
.achievements-banner {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 20px;
    margin-bottom: 60px;
}

.badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.no1-img {
    width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.no1-img:hover {
    transform: scale(1.05);
}

.badge-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .achievements-banner {
        margin-top: -30px;
    }
    .badges-wrapper {
        gap: 30px;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
    }
}

/* Welcome Box / Eye-catcher */
.welcome-section {
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
}

.welcome-box {
    background: #fffdf5; /* Soft yellow matching the reference */
    border: 4px solid var(--accent-color);
    border-radius: 15px;
    padding: 50px 40px 40px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.welcome-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
    letter-spacing: 2px;
    white-space: nowrap;
}

.welcome-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.welcome-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.welcome-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.welcome-list li {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-list li i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.welcome-icon i {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.15rem;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .welcome-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .welcome-list li {
        font-size: 1.1rem;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }
    .welcome-icon {
        display: none;
    }
}

/* Problems Section */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--accent-color);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.problem-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background-color: var(--white);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 168, 150, 0.1);
    display: block;
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
}

.feature-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-image {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Profile Section */
.profile-section {
    background-color: var(--bg-light);
}

.profile-box {
    display: flex;
    gap: 40px;
    padding: 50px;
    align-items: center;
}

.profile-image-col {
    flex: 0 0 280px;
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

.profile-text-col {
    flex: 1;
}

.profile-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.profile-name {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.profile-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.profile-desc {
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .profile-box {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .profile-image-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Flow Section */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.3;
}

.flow-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-num {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 168, 150, 0.4);
    z-index: 1;
    flex-shrink: 0;
}

.step-content {
    margin-left: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    flex: 1;
}

.step-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Pricing Section */
.pricing-section {
    background: var(--white);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.pricing-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.price {
    font-size: 1.2rem;
}

.price span {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
}

.pricing-body {
    padding: 40px;
}

.pricing-includes {
    margin-bottom: 30px;
}

.pricing-includes li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-includes li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.pricing-note {
    font-size: 0.85rem;
    color: #666;
}

/* Service Area Section */
.service-area-section {
    background-color: var(--bg-light);
}

.service-area-box {
    background: var(--white);
    border: 2px solid #ddd;
    border-left: 8px solid var(--accent-color);
    border-radius: 10px;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.area-grid {
    margin-top: 20px;
    text-align: left;
}

.area-group {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.area-group:last-child {
    border-bottom: none;
}

.area-group strong {
    color: var(--primary-color);
    display: inline-block;
    min-width: 90px;
}

@media (max-width: 768px) {
    .service-area-box {
        flex-direction: column;
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }
    .area-group {
        text-align: left;
    }
    .area-group strong {
        display: block;
        margin-bottom: 5px;
    }
}

.area-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.japan-map-img {
    width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.area-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e74c3c; /* Pink/Red matching the screenshot text */
}

.area-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-color);
}

.area-desc strong {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .service-area-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        border-left: 2px solid #ddd;
        border-top: 8px solid var(--accent-color);
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
}

.contact-box {
    display: flex;
    gap: 40px;
    padding: 50px;
}

.contact-info {
    flex: 1;
    color: var(--primary-color);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.method i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.method .label {
    display: block;
    font-weight: 700;
    color: #666;
}

.method .value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}

.method .hours {
    font-size: 0.85rem;
    color: #666;
}

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.required {
    background: #e74c3c;
    color: var(--white);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

.optional {
    background: #999;
    color: var(--white);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

.radio-pill-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.radio-pill-group input[type="radio"] {
    display: none;
}
.radio-pill-group label {
    padding: 10px 25px;
    border: 1px solid #ccc;
    border-radius: 30px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
    color: #333;
}
.radio-pill-group label:hover {
    background: #e9ecef;
}
.radio-pill-group input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-logo i {
    color: var(--gold);
}

.copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Requirements Section */
.requirements-section {
    background-color: var(--bg-light);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.req-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.req-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.req-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
}

.req-num {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.req-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.req-body {
    padding: 30px 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border-left: 5px solid var(--accent-color);
}

.faq-q, .faq-a {
    display: flex;
    gap: 15px;
}

.faq-q {
    margin-bottom: 15px;
    align-items: center;
}

.faq-icon-q, .faq-icon-a {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon-q {
    background-color: var(--primary-color);
    color: var(--white);
}

.faq-a {
    align-items: flex-start;
}

.faq-icon-a {
    background-color: #f1f1f1;
    color: var(--accent-color);
}

.faq-q h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-a p {
    color: #555;
    padding-top: 5px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
    }
    
    .contact-box {
        flex-direction: column;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .flow-steps::before {
        left: 30px;
    }

    .step-num {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .step-content {
        margin-left: 20px;
    }
}
