/* ==========================================
   Shiodokei (潮時計) Web CSS Design
   Premium Dark Ocean Theme
   ========================================== */

/* Design Tokens */
:root {
    --bg-dark: #080a10;
    --bg-card: rgba(18, 22, 32, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --cyan: #00f2fe;
    --blue: #0072ff;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
    --accent-glow: rgba(0, 242, 254, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Glow (Premium Visual Effect) */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--cyan) 0%, rgba(0,0,0,0) 70%);
}

.bg-glow-2 {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--blue) 0%, rgba(0,0,0,0) 70%);
}

/* Layout Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Design */
#main-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.brand-text h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 4px;
    display: block;
    text-align: left;
    margin-top: -4px;
    padding-left: 2px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-weight: 300;
}

/* Main Content Area */
main {
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

/* Glassmorphic Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 24px;
    transition: var(--transition-smooth);
    outline: none;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #05070a;
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Glassmorphism Document Card */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    min-height: 400px;
}

/* Tab Panels Display */
.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Typography Inside Panel */
.content-panel h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    border-left: 4px solid var(--cyan);
    padding-left: 12px;
}

.last-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.doc-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.doc-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: justify;
}

.doc-body ol, .doc-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.doc-body li {
    margin-bottom: 8px;
}

.contact-link {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--cyan);
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* Tokusho Table Styles */
.tokusho-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tokusho-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

.tokusho-table th, .tokusho-table td {
    padding: 16px 20px;
    font-size: 14px;
    vertical-align: top;
}

.tokusho-table th {
    width: 30%;
    color: var(--cyan);
    font-weight: 600;
    text-align: left;
}

.tokusho-table td {
    width: 70%;
    color: var(--text-secondary);
}

.table-subtext {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Footer Section */
#main-footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    animation: fadeIn 1.2s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
    }
    
    .content-card {
        padding: 24px;
    }

    .brand-text h1 {
        font-size: 26px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Mobile responsive for tokusho table */
    .tokusho-table th, .tokusho-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .tokusho-table th {
        padding-bottom: 4px;
    }
    
    .tokusho-table tr {
        padding: 10px 0;
        display: block;
    }
}
