/* Base Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #333;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-subcopy {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
}

.hero-subcopy strong {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Problem Section */
.problem {
    padding: 80px 0;
}

.problem-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.problem-text p {
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 123, 255, 0.1);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Solution Section */
.solution {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-lead {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.flow-item {
    text-align: center;
    font-weight: bold;
    flex: 1;
}

.flow-item span {
    font-size: 0.8rem;
    font-weight: normal;
    color: #777;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 0 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.feature-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.1rem;
}

/* Pricing */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.pricing-label {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.pricing-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Cases */
.cases {
    padding: 80px 0;
    background-color: #f0f7ff;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* QA */
.qa {
    padding: 80px 0;
}

.qa-list {
    max-width: 800px;
    margin: 0 auto;
}

.qa-item {
    border-bottom: 1px solid var(--border-color);
}

.qa-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.qa-item.active .qa-question::after {
    content: '-';
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
}

.qa-item.active .qa-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

/* Office */
.office {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.office-content {
    max-width: 800px;
    margin: 0 auto;
}

.office-content p {
    margin-bottom: 2rem;
    text-align: center;
}

.office-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.office-table th, .office-table td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
}

.office-table th {
    background-color: #f1f1f1;
    width: 30%;
    text-align: left;
}

/* Contact */
.contact {
    padding: 80px 0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group label span {
    color: red;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-checkbox {
    margin-bottom: 20px;
}

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

.contact-info {
    text-align: center;
    color: #777;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .card-grid, .features, .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow {
        flex-direction: column;
        gap: 20px;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .nav, .header-cta {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .card-grid, .features, .case-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile Nav Active */
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav.active .nav-list {
        flex-direction: column;
        align-items: center;
    }
}

/* Legal Page Specific Styles */
.legal-page {
    padding-bottom: 80px;
}

.page-header {
    background-color: var(--light-bg);
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-header .section-title {
    margin-bottom: 0;
}

.legal-content .office-table {
    max-width: 900px;
    margin: 0 auto 40px;
}

.back-to-home {
    text-align: center;
    margin-top: 40px;
}

/* Policy Page Specific Styles */
.policy-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-body h3 {
    margin: 2rem 0 1rem;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.25rem;
}

.policy-body ul, .policy-body ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.policy-body li {
    margin-bottom: 0.5rem;
}

.contact-box {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.enactment-date {
    margin-top: 3rem;
    text-align: right;
    font-weight: bold;
}
