:root {
    --primary-color: #1a365d;
    --primary-light: #2d4a66;
    --secondary-color: #3182ce;
    --accent-color: #ed8936;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --warning-color: #e53e3e;
    --warning-bg: #fed7d7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(26, 54, 93, 0.98);
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #cbd5e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 54, 93, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        border-radius: 0 0 16px 16px;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Page-specific styles for index.html */
#hero {
    background: #e6f7ff;
    color: #1a365d;
    padding: 2rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 1000px 100px;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

#hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

#hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

#hero p {
    text-align: left;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.warning-section {
    background: var(--warning-bg);
    border-left: 6px solid var(--warning-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.warning-section h3 {
    color: var(--warning-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-section h3::before {
    content: "⚠️";
    font-size: 1.5rem;
}

.warning-section p {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.8;
}

main section {
    padding: 1rem 0;
    position: relative;
}

main section:nth-child(even) {
    background: var(--bg-secondary);
}

#news h2,
.contact-section h2 {
    text-align: center;
    margin-bottom: 0rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

#news h2::after,
.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-item h3 {
    display: inline-block;
    width: 160px;
    margin-right: 1rem;
    font-family: monospace;
    color: var(--text-secondary);
    font-weight: normal;
}

.news-item p {
    display: inline;
    margin: 0;
    padding: 0;
}

.news-item a {
    text-decoration: none;
    color: var(--secondary-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 0rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
    text-align: left;
}

.card .btn {
    margin-top: auto;
}

#news {
    padding-bottom: 3rem !important;
}

#faq-contact {
    padding-top: 1rem !important;
}

@media (max-width: 768px) {
    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    #news h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .card {
        padding: 2rem;
    }

    .warning-section {
        padding: 1.5rem;
    }

    main section {
        padding: 3.5rem 0;
    }
}

/* Page-specific styles for oshirase.html */
main {
    padding-top: 80px;
}

#notice {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.notice-section {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.notice-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.notice-header {
    text-align: right;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.detail-item {
    margin-bottom: 2.5rem;
}

.detail-item h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.notice-footer {
    text-align: right;
    margin-top: 3rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.meeting-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.meeting-info h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.meeting-info p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Page-specific styles for contact.php */
.contact-section {
    padding: 4rem 0;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--warning-color);
    margin-left: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-notice {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.form-notice h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.form-notice ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.form-notice li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-notice p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.error-message {
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--warning-color);
    background-color: var(--warning-bg);
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--success-color);
    background-color: var(--success-bg);
}

.confirmation-section {
    padding: 4rem 0;
    display: none;
}

.confirmation-details {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.confirmation-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-item h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.confirmation-item p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.success-message {
    text-align: center;
    padding: 4rem 0;
    display: none;
}

.success-message .icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 1.8rem;
    }

    .contact-form,
    .confirmation-details {
        padding: 2rem;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}

/* Page-specific styles for faq.html */
.page-header {
    background: var(--gradient-1);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><path d="M0,0 C150,100 350,0 500,50 C650,100 850,0 1000,50 L1000,100 L0,100 Z"></path></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
    position: relative;
}

.faq-section::before {
    content: '';
    display: block;
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
    pointer-events: none;
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.faq-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    background: var(--bg-secondary);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    scroll-margin-top: 80px;
}

.faq-question::after {
    position: absolute;
    right: 1.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-question::before {
    content: "Q";
    display: inline-block;
    background: var(--accent-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* === MODIFICATION START === */
.faq-item.active .faq-answer {
    max-height: 5000px;
    /* Increased value to ensure panel opens fully */
    padding: 0 1.5rem 1.5rem;
}

/* === MODIFICATION END === */

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-card h4::before {
    content: "📋";
    font-size: 1.2rem;
}


/* ダウンロードセクション */
#download-section {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0 auto;
    max-width: 900px;
}

.download-item {
    flex: 1;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 250px;
    max-width: 350px;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    margin-bottom: 1.5rem;
}

.download-icon svg {
    width: 80px;
    height: 80px;
}

.download-icon path[fill="#2b579a"] {
    fill: #2b579a;
    /* Microsoft Wordの青 */
}

.download-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-item p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 30px;
}

.download-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    max-width: 220px;
}

.download-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.download-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

.toc-detailed-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.toc-detailed-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.detailed-toc {
    list-style: none;
    padding-left: 0;
}

.detailed-toc>li {
    margin-bottom: 1.5rem;
}

.detailed-toc>li>a {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detailed-toc ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.detailed-toc ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.detailed-toc ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.detailed-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    /* 追加 */
    position: relative;
    /* 追加 */
    z-index: 1;
    /* 追加 */
}

.detailed-toc a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* === フローティングボタンの追加 === */
.floating-toc-button {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-toc-button:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.floating-toc-button::before {
    content: "↑";
    font-size: 1.2rem;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px; /* モバイル用の調整値 */
    }

    .page-header {
        padding: 6rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .faq-section {
        scroll-margin-top: 60px;
    }

    .faq-section::before {
        height: 0;
        margin-top: 0;
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem 2.5rem 1rem 1rem;
        word-break: break-word;
        cursor: default !important;
    }

    .faq-question::after {
        display: none !important;
    }

    .faq-answer {
        padding: 0 1.5rem 1.5rem !important;
        /* 常にパディング表示 */
        max-height: none !important;
        /* 高さ制限解除 */
        overflow: visible !important;
        /* オーバーフロー表示 */
        display: block !important;
        /* 常に表示 */
    }

    .download-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .download-item {
        max-width: 100%;
    }
}