/* Discord使い方ガイド - スタイルシート */

/* 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* メインコンテナ */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #5865F2, #7289DA, #99AAB5);
}

/* ヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    color: #5865F2;
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #5865F2, #7289DA);
    border-radius: 2px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-top: 15px;
}

/* 目次 */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid #5865F2;
}

.table-of-contents h3 {
    color: #5865F2;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #4f545c;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background-color: #5865F2;
    color: white;
    transform: translateX(5px);
}

/* 進捗バー */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #5865F2, #7289DA);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ダークモード切り替え */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #5865F2;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* 章見出し */
h2 {
    color: #5865F2;
    font-size: 2em;
    margin-top: 60px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 12px;
    border-left: 6px solid #5865F2;
    position: relative;
    overflow: hidden;
}

h2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(88, 101, 242, 0.1) 50%, transparent 60%);
}

/* サブ見出し */
h3 {
    color: #4f545c;
    font-size: 1.4em;
    margin-top: 35px;
    margin-bottom: 18px;
    padding-left: 15px;
    border-left: 3px solid #7289DA;
}

h4 {
    color: #5865F2;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* テキスト */
p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* 画像 */
img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border: 2px solid #e3e5e8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 画像モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal img {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #f1c0e8;
}

/* リスト */
ol, ul {
    margin-bottom: 25px;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ステップリスト */
.step-list {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e3e5e8;
    position: relative;
    overflow: hidden;
}

.step-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #5865F2, #7289DA);
}

.step-list h4 {
    color: #5865F2;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* ハイライトボックス */
.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffc107;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.tip {
    background: linear-gradient(135deg, #d1ecf1 0%, #a7d5e0 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #17a2b8;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.2);
}

/* 動画リンク */
.video-link {
    display: inline-flex;
    align-items: center;
    color: #5865F2;
    text-decoration: none;
    font-weight: bold;
    margin: 15px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-link:hover {
    background: #5865F2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* Discordリンク */
.discord-link {
    display: inline-flex;
    align-items: center;
    color: #5865F2;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.discord-link:hover {
    background: #5865F2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* テーブル */
.rule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .rule-table th,
    .rule-table td {
        border: none;
        padding: 15px;
        text-align: left;
        vertical-align: top;
    }

.rule-table th {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    color: white;
    font-weight: bold;
}

.rule-table tr:nth-child(even) {
    background-color: #f8f9ff;
}

.rule-table tr:hover {
    background-color: #e8ecff;
    transition: background-color 0.3s ease;
}

/* 絵文字 */
.emoji {
    font-size: 1.3em;
    margin-right: 10px;
    display: inline-block;
}

/* アコーディオン */
.accordion {
    margin: 20px 0;
}

.accordion-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    color: #5865F2;
    cursor: pointer;
    padding: 18px;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e8ecff 0%, #d1d9ff 100%);
}

.accordion-header.active {
    background: #5865F2;
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9ff;
    border-radius: 0 0 8px 8px;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 20px;
}

/* ダークモード */
.dark-mode {
    background: linear-gradient(135deg, #2c2f33 0%, #23272a 100%);
    color: #dcddde;
}

.dark-mode .container {
    background-color: #36393f;
    color: #dcddde;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
    color: #7289da;
}

.dark-mode .step-list {
    background: linear-gradient(135deg, #2f3136 0%, #36393f 100%);
}

.dark-mode .highlight {
    background: linear-gradient(135deg, #5a4a2a 0%, #6b5b2f 100%);
}

.dark-mode .tip {
    background: linear-gradient(135deg, #2a4a5a 0%, #2f5b6b 100%);
}

.dark-mode .video-link {
    background: linear-gradient(135deg, #2f3136 0%, #36393f 100%);
    color: #7289da;
}

.dark-mode .video-link:hover {
    background: #7289da;
    color: white;
}

.dark-mode .discord-link {
    background: linear-gradient(135deg, #2f3136 0%, #36393f 100%);
    color: #7289da;
}

.dark-mode .discord-link:hover {
    background: #7289da;
    color: white;
}

.dark-mode .rule-table tr:nth-child(even) {
    background-color: #2f3136;
}

.dark-mode .rule-table tr:hover {
    background-color: #36393f;
}

.dark-mode .accordion-header {
    background: linear-gradient(135deg, #2f3136 0%, #36393f 100%);
    color: #7289da;
}

.dark-mode .accordion-content {
    background: #2f3136;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.4em;
        padding: 12px;
        line-height: 1.3;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.1em;
        line-height: 1.3;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    h4 {
        font-size: 1.0em;
        line-height: 1.3;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: left;
    }
    
    li {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    img {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .rule-table {
        font-size: 0.85em;
    }
    
    .rule-table th,
    .rule-table td {
        padding: 8px 6px;
        line-height: 1.3;
    }
    
    .rule-table td:nth-child(1) {
        white-space: pre-line;
        width: 4em;
        max-width: 4em;
    }
    
    .rule-table td:nth-child(2) {
        white-space: pre-line;
    }
    
    .rule-table td:nth-child(3) {
        white-space: pre-line;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
    
    .step-list {
        padding: 15px;
        margin: 15px 0;
    }
    
    .step-list h4 {
        font-size: 1.0em;
        margin-bottom: 10px;
    }
    
    .step-list p {
        font-size: 0.95em;
        margin-bottom: 12px;
    }
    
    .video-link {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .discord-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .highlight,
    .tip {
        padding: 15px;
        margin: 15px 0;
    }
    
    .highlight h3,
    .tip h3 {
        font-size: 1.0em;
        margin-bottom: 10px;
    }
    
    .highlight p,
    .tip p {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 1.0em;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.3em;
        padding: 10px;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.0em;
        line-height: 1.2;
    }
    
    h4 {
        font-size: 0.95em;
        line-height: 1.2;
    }
    
    p {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    li {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .step-list {
        padding: 12px;
    }
    
    .highlight,
    .tip {
        padding: 12px;
    }
    
    .toc-list a {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    
    .video-link {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .discord-link {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5865F2, #7289DA);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4752C4, #5B6EAE);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* フォーカス時のアクセシビリティ */
button:focus,
a:focus {
    outline: 2px solid #5865F2;
    outline-offset: 2px;
}

/* プリント用スタイル */
@media print {
    .theme-toggle,
    .progress-bar {
        display: none;
    }
    
    .container {
        box-shadow: none;
        padding: 20px;
    }
    
    .video-link {
        color: #000 !important;
    }
} 