/* Legal Pages Specific Styles */

/* Page Header (共通スタイル) */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A5F8E 0%, #2E86C1 100%);
    opacity: 0.95;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-title {
    margin-bottom: 20px;
}

.page-title .title-en {
    font-size: 14px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
    opacity: 1;
    color: #E8F8F5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-title .title-ja {
    font-size: 36px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.6;
}

.breadcrumb span {
    margin: 0 10px;
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background: white;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.document-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.last-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: right;
}

.intro-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.legal-section p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.legal-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.legal-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-section ol li {
    padding-left: 10px;
    list-style: decimal;
}

.legal-section ol li::before {
    display: none;
}

/* Subsections */
.subsection {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.subsection h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.subsection h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px 0;
}

.subsection p {
    margin-bottom: 15px;
}

.subsection ul {
    margin-bottom: 15px;
}

.subsection li {
    font-size: 15px;
    margin-bottom: 8px;
}

/* Contact Info */
.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin: 25px 0;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
    padding-left: 10px;
}

/* Document Footer */
.document-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.effective-date,
.revision-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 0 0;
}

/* Emphasis */
.legal-section strong {
    font-weight: 600;
    color: var(--primary-color);
}

.legal-section em {
    font-style: italic;
    color: var(--text-dark);
    background: rgba(46, 134, 193, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-table th,
.legal-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.legal-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Related Links */
.related-links {
    padding: 80px 0;
    background: var(--bg-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.link-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.link-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.link-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.link-arrow {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

/* Alert Boxes */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(46, 134, 193, 0.1);
    border-left-color: var(--primary-color);
    color: var(--text-dark);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: var(--text-dark);
}

.alert-important {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
    color: var(--text-dark);
}

.alert h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.alert p {
    margin: 0;
    font-size: 15px;
}

/* Print Styles */
@media print {
    .main-header,
    .mobile-menu,
    .related-links,
    .main-footer {
        display: none;
    }

    .legal-document {
        box-shadow: none;
        border: none;
        padding: 20px;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .legal-section h2 {
        page-break-after: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.6;
        color: black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        height: 200px;
        margin-top: 60px;
    }

    .page-title .title-ja {
        font-size: 28px;
    }

    /* Legal Document */
    .legal-document {
        padding: 40px 30px;
        margin: 0 20px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
    }

    .subsection {
        padding: 20px;
    }

    .subsection h3 {
        font-size: 16px;
    }

    /* Contact Info */
    .contact-info {
        padding: 25px;
    }

    .contact-item {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .contact-item strong {
        font-size: 15px;
    }

    .contact-item p {
        font-size: 14px;
        padding-left: 0;
        margin-top: 5px;
    }

    /* Related Links */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .link-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    /* Page Title */
    .page-title .title-ja {
        font-size: 24px;
    }

    /* Legal Document */
    .legal-document {
        padding: 30px 20px;
        margin: 0 10px;
        border-radius: 10px;
    }

    .document-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .intro-text {
        padding: 20px;
        font-size: 15px;
    }

    .legal-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .legal-section h3 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }

    .legal-section li {
        padding-left: 20px;
        margin-bottom: 8px;
    }

    /* Subsections */
    .subsection {
        padding: 15px;
        margin: 20px 0;
    }

    .subsection h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .subsection li {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Tables */
    .legal-table {
        font-size: 12px;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px;
    }

    /* Contact Info */
    .contact-info {
        padding: 20px;
    }

    .contact-item strong {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 13px;
    }

    /* Document Footer */
    .document-footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    .effective-date,
    .revision-date {
        font-size: 12px;
    }

    .company-name {
        font-size: 14px;
    }

    /* Related Links */
    .link-card {
        padding: 20px;
    }

    .link-card h3 {
        font-size: 18px;
    }

    .link-card p {
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .link-card,
    .link-arrow {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .legal-document {
        border: 2px solid var(--text-dark);
    }

    .subsection {
        border: 1px solid var(--text-dark);
    }

    .alert {
        border: 2px solid;
    }
}