/* Base Styles */
:root {
    --primary-color: #00B900; /* LINE Green */
    --secondary-color: #4285F4; /* Google Blue */
    --text-color: #333;
    --bg-color: #f9f9f9;
    --sidebar-width: 250px;
    --header-height: 60px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start; /* Fix sidebar alignment */
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header h1 {
    font-size: 1.2rem;
    margin: 0;
    display: inline-block;
    margin-right: 20px;
}

.site-header p {
    font-size: 0.9rem;
    color: #666;
    display: inline-block;
    margin: 0;
}

/* Sidebar (TOC) */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.toc h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.toc a:hover {
    color: var(--primary-color);
}

.toc .separator {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

/* Main Content */
.content {
    flex-grow: 1;
    min-width: 0; /* Prevent overflow */
    padding-bottom: 100px;
}

.manual-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
}

.badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.badge-blue {
    background: var(--secondary-color);
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    line-height: 1.3;
}

.lead {
    font-size: 1.1rem;
    color: #666;
}

/* Steps */
.step-block {
    margin-bottom: 60px;
}

.step-block h3 {
    font-size: 1.8rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: #222;
}

#form-manual .step-block h3 {
    border-color: var(--secondary-color);
}

.step-block h4 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

/* Utilities */
.tips, .highlight-box {
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tips h5, .highlight-box h5 {
    margin-top: 0;
    color: #155724;
    font-size: 1.1rem;
}

.highlight-box {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.check-list li, .highlight-box li {
    margin-bottom: 8px;
}

/* Images & Placeholders */
figure {
    margin: 30px 0;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

.button-link {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background: #00a000;
}

.image-placeholder {
    background: #f4f4f4;
    border: 2px dashed #ccc;
    color: #777;
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
}

.image-placeholder p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.image-placeholder small {
    display: block;
    margin-top: 10px;
    color: #999;
}

/* Copy Box */
.copy-box {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}

.copy-box h5 {
    color: #fff;
    margin-top: 0;
}

.copy-box textarea {
    width: 100%;
    height: 250px;
    background: transparent;
    border: none;
    color: inherit;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
}

.copy-box button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.copy-box button:hover {
    background: #e0e0e0;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px;
    background: #fff;
    color: #888;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

/* Mobile */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        max-height: none;
    }
    .toc {
        display: none; /* Hide TOC on mobile for simplicity, or make strict */
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Added for Google Form Manual */
.toc .sub-item a {
    padding-left: 20px;
    font-size: 0.9rem;
    color: #666;
    border-left: 2px solid transparent;
}

.toc .sub-item a:hover {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.tag-required {
    background: #ff4d4f;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: bold;
}
