/* Tabemap Legal Documents - CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main {
    min-height: calc(100vh - 120px);
    padding: 3rem 0;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #34495e;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF6B35;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    margin: 1.5rem 0 0.8rem 0;
}

p {
    margin-bottom: 1.2rem;
    color: #555555;
}

ul, ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #555555;
}

/* Links */
a {
    color: #FF6B35;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #e55a2b;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.intro-text {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

/* Contact Information */
.contact-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.contact-info h4 {
    color: #FF6B35;
    margin-top: 0;
}

/* Last Updated */
.last-updated {
    text-align: right;
    font-size: 0.9rem;
    color: #888888;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-text {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #FF6B35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .main {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}