/* style.css */

/* メインスタイルはダークモードを維持 */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
    background-color: #1e1e1e;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* メインカラーを #00c8c8 (ターコイズブルー) に設定 */
.main-color {
    color: #000000;
}

h1 {
    color: #00c8c8;
    /* ターコイズブルー */
    text-align: center;
    border-bottom: 2px solid #00c8c8;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* h2 の文字色を白(#f0f0f0)に固定 */
h2 {
    color: #f0f0f0;
    /* 文字を白に変更 */
    background-color: #00c8c8;
    /* 背景をターコイズブルー */
    padding: 8px 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-radius: 4px;
}

h3 {
    color: #00c8c8;
    /* サブ見出しはターコイズブルー */
    margin-top: 20px;
    border-left: 3px solid #00c8c8;
    padding-left: 8px;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.feature-list li {
    background-color: #3e3e42;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 5px solid #00c8c8;
    /* ターコイズブルーのライン */
}

.feature-list strong {
    color: #ffcc00;
    /* キーワードは黄色でハイライト */
}

/* 既存のコードブロックのスタイルをコードブロック内に適用 */
.feature-list code {
    background-color: #4CAF50;
    padding: 2px 4px;
    border-radius: 3px;
    color: #1e1e1e;
    font-family: Consolas, monospace;
    font-weight: bold;
}

/* --- コマンド表示ボックス (code-container) スタイル --- */
.code-container {
    margin: 20px 0;
}

.code-container pre {
    background-color: #1a1a1a;
    border: 1px solid #3e3e42;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.code-container code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95em;
    color: #ffffff;
    /* コマンドの文字色 */
    display: block;
    /* 背景色を無効化 */
    background-color: transparent;
    padding: 0;
}

.code-container:hover pre {
    border-color: #00c8c8;
    box-shadow: 0 0 8px rgba(0, 200, 200, 0.5);
}

/* --- コマンド表示ボックス スタイル 終 --- */


/* --- アコーディオン (FAQ) スタイル --- */
.faq-section {
    margin-top: 40px;
    border-top: 1px solid #00c8c8;
    /* ターコイズブルーに変更 */
    padding-top: 20px;
}

details {
    background-color: #3e3e42;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 5px 0;
}

summary {
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 15px;
    cursor: pointer;
    outline: none;
    color: #00c8c8;
    /* 見出しをターコイズブルーに */
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s;
}

details[open] summary {
    border-bottom: 1px solid #555;
    color: #f0f0f0;
    /* 開いた時は白に */
}

details p,
details ul {
    padding: 10px 15px 15px 15px;
    line-height: 1.6;
}

/* --- アコーディオン (FAQ) スタイル 終 --- */


.back-link {
    display: block;
    margin-top: 40px;
    text-align: center;
}

.back-link a {
    color: #f0f0f0;
    background-color: #007acc;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.back-link a:hover {
    opacity: 0.8;
}

.note {
    color: #ff9800;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    border: 1px dashed #ff9800;
    border-radius: 4px;
}

/* modal_style.css */

/* =============================================== */
/* === ダウンロードボタン（ページ本文内）のスタイル === */
/* =============================================== */

.download-container {
    text-align: center;
    margin: 40px 0 20px 0;
    /* 上下に余白 */
}

.download-button {
    background-color: #ffffff;
    /* 通常のダウンロードボタンの色 */
    margin: 10px 0;
    color: #000000;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    width: 100%;
}

.download-button:hover {
    background-color: #00c8c8;
}


/* =============================================== */
/* === モーダル (利用規約ポップアップ) スタイル === */
/* =============================================== */

/* モーダル背景 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* 濃い背景 */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* モーダルコンテンツ */
.modal-content {
    background-color: #2d2d30;
    /* ダークな背景 */
    color: #f0f0f0;
    /* 白文字 */
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    font-weight: bold;
    color: #ffcc00;
    /* 閉じるボタンを黄色に */
    cursor: pointer;
    border: none;
    background: none;
}

.modal-close-button:hover {
    color: #fff;
}

.modal-header h2 {
    margin-top: 0;
    color: #00c8c8;
    /* ターコイズブルー */
    text-align: center;
    margin-bottom: 20px;
}

/* ガイドライン表示エリア */
.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    color: #f0f0f0;
    /* 白文字 */
    text-align: left;
}

/* モーダル内のコンテンツ（読み込まれたHTML内の要素）のスタイルを上書き */
.modal-body h1,
.modal-body h2,
.modal-body h3 {
    color: #00c8c8;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    margin-top: 20px;
}

.modal-body p,
.modal-body li {
    color: #f0f0f0;
    line-height: 1.6;
}

.modal-body ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

/* end modal body content styling */


.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.agree-download-button {
    padding: 18px 25px;
    font-size: 1.5em;
    background-color: #00c8c8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    opacity: 0.4;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    width: 100%;
}

.agree-download-button.enabled {
    background-color: #00c8c8;
    cursor: pointer;
    opacity: 1;
}

.agree-download-button.enabled:hover {
    background-color: #009999;
}

a {
    /* すべてのリンクの標準色を水色 (#00c8c8) に設定 */
    color: #00c8c8;
    text-decoration: none;
    /* 下線を非表示に (好みで調整) */
    transition: color 0.3s ease;
    /* 色変化を滑らかにする */
}

a:visited {
    /* 訪問済みリンクの色 (任意で標準色に近い色に設定) */
    color: #00a0a0;
}

a:hover {
    /* マウスオーバー時の色を明るい黄色 (#ffcc00) に設定 */
    color: #ffffff;
    text-decoration: underline;
    /* ホバー時に下線を表示 */
}

.attention {
    color: #f0f0f0;
    /* 文字を白に変更 */
    background-color: #ff0000;
    /* 背景をターコイズブルー */
    padding: 8px 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-radius: 4px;
}