/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #c24644;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.header-title {
    font-family: 'Kaisei HarunoUmi', 'Noto Sans JP', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.header-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.05em;
}

/* ナビゲーション */
.nav {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.2rem 0;
    gap: clamp(0.5rem, 3vw, 2rem);
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(0.6rem, 3vw, 1.5rem);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: clamp(0.5rem, 3vw, 1rem);
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #c24644;
    color: #ffffff;
}

/* メインコンテンツ */
.main {
    padding: 3rem 0;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #c24644;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #c24644;
    margin: 1rem auto;
}

/* エラッタセクション */
.errata-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.version-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    word-break: keep-all;
    line-height: 1.7;
}

.errata-list {
    display: grid;
    gap: 2rem;
}

.errata-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #c24644;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.errata-title {
    font-size: 1.4rem;
    color: #c24644;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.version-tag {
    display: inline-block;
    background-color: #f7fafc;
    color: #666666;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    border: 1px solid #e0e0e0;
}

.errata-content {
    display: grid;
    gap: 1.5rem;
}

.error-section,
.correct-section {
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.error-section p,
.correct-section p {
    word-break: keep-all;
    line-height: 1.7;
}

.error-section {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.correct-section {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
}

.error-section h4 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.correct-section h4 {
    color: #38a169;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.add-errata-note {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #c24644;
    margin-top: 2rem;
    text-align: center;
    color: #666666;
}

.add-errata-note p {
    word-break: keep-all;
    line-height: 1.7;
    margin: 0;
}

/* ダウンロードセクション */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-single {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.download-item {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: box-shadow 0.3s ease;
    max-width: 400px;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.download-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.download-item h3 {
    color: #c24644;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.download-item p {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #888888;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #c24644;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #8b2f2d;
}

.download-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.download-btn:hover .download-icon {
    transform: translateY(1px);
}

/* お問い合わせセクション */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666666;
}

.contact-intro p {
    word-break: keep-all;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 3rem;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333333;
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c24644;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
}

.submit-btn {
    background-color: #c24644;
    color: #ffffff;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

.submit-btn:hover {
    background-color: #8b2f2d;
}

.contact-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.contact-info p {
    font-weight: 600;
}

.contact-info ul {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
    display: inline-block;
    text-align: left;
}

.contact-info li {
    margin-bottom: 0.5rem;
    color: #666666;
    word-break: keep-all;
    line-height: 1.7;
    position: relative;
    padding-left: 1rem;
}

.contact-info li::before {
    content: '•';
    color: #c24644;
    position: absolute;
    left: 0;
}

/* フッター */
.footer {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-note {
    margin-top: 1rem;
    color: #cccccc;
    font-size: 0.9rem;
}

/* 成功ページ */
.success-message {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}

.success-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.success-content h2 {
    color: #38a169;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.success-content p {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    word-break: keep-all;
}

.success-actions {
    margin-top: 2.5rem;
}

.back-btn {
    display: inline-block;
    background-color: #c24644;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #8b2f2d;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .nav-list {
        padding: 1rem 0;
    }
    
    .nav-list li {
        margin: 0 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
        max-width: none;
        padding: 0 1rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-single {
        margin: 0 1rem 2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem 3rem;
    }
    
    .download-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .errata-content {
        gap: 1rem;
    }
    
    .error-section,
    .correct-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .nav-list li {
        margin: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    .errata-item,
    .download-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-info ul {
        display: inline-block;
        width: auto;
        max-width: 100%;
        text-align: left;
        padding-left: 0;
    }
    
    .contact-info li {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .version-tag {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
    }
}

@media (max-width: 360px) {
    .nav-list li {
        margin: 0 0.3rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
