@charset "UTF-8";

/* ==========================================================================
   Modern Style for Mod Install Page
   ========================================================================== */

/* ベースリセットと変数定義 */
:root {
    --primary-color: #6C5DD3;
    /* モダンなパープル */
    --accent-color: #FF754C;
    /* アクセントのオレンジ */
    --text-color: #333333;
    --bg-color: #f7f7fafa;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    box-sizing: border-box;
}

/* メインコンテナの調整 */
.main {
    background-color: var(--bg-color);
    padding: 40px 20px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-color);
}

/* 規約/記事コンテナのモダン化 */
.terms-date {
    max-width: 900px !important;
    /* 少し広げる */
    margin: 0 auto;
    padding: 0;
}

/* タイトルの装飾 */
h2.terms-h2 {
    text-align: center;
    margin-bottom: 40px !important;
    position: relative;
    display: block;
    width: 100%;
}

h2.terms-h2 .p-terms {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
}

/* 導入文 */
.terms-introduction {
    background: var(--card-bg);
    padding: 30px !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px !important;
    border: none !important;
    /* 既存のボーダーを削除 */
    text-align: center;
}

.terms-comment {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    display: inline-block;
    text-align: left;
}

/* セクション見出し (H3) */
h3.terms-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.4;
}

/* リストコンテナ (リセット) */
ul.terms-ul {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
}

/* 動画エリアの装飾 */
.video-container {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

/* ----------------------------------------------------
   ステップ（手順）のカード化デザイン
   ---------------------------------------------------- */
ul.terms-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
}

/* 各ステップのカード */
li.terms-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
    list-style: none !important;
    /* デフォルトの数字を消す */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid transparent;
}

li.terms-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

/* ステップ番号とタイトルのスタイル */
li.terms-item strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 本文テキスト */
li.terms-item {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* リンクボタン化 */
li.terms-item a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(108, 93, 211, 0.3);
}

li.terms-item a:hover {
    background-color: #5b4cc4;
    transform: scale(1.05);
}

/* TOPに戻るボタン */
.back-to-top-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* ----------------------------------------------------
   キャラクター＆吹き出しスタイル
   ---------------------------------------------------- */
.character-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.character-icon {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.character-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: #fff;
    object-fit: cover;
}

.character-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
    display: block;
}

/* 吹き出し */
.speech-bubble {
    position: relative;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.speech-bubble::after,
.speech-bubble::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 100%;
    border-style: solid;
}

.speech-bubble::before {
    top: 17px;
    border-width: 10px;
    border-color: transparent var(--primary-color) transparent transparent;
}

.speech-bubble::after {
    border-width: 7px;
    border-color: transparent #fff transparent transparent;
    margin-top: 3px;
}

/* スクリーンショットエリア */
.step-image {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.step-screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ調整（スマホ） */
@media screen and (max-width: 600px) {
    .character-box {
        align-items: flex-start;
        gap: 10px;
    }

    .character-icon {
        width: 55px;
        /* スマホでは少し小さく */
    }

    .character-icon img {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .character-name {
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .speech-bubble {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* 吹き出しの三角位置を微調整 */
    .speech-bubble::before {
        top: 15px;
        border-width: 8px;
        margin-top: 0;
    }

    .speech-bubble::after {
        top: 18px;
        border-width: 5px;
        margin-top: 0;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .main {
        padding: 20px 10px;
    }

    h2.terms-h2 {
        margin-bottom: 20px !important;
    }

    h2.terms-h2 .p-terms {
        font-size: 1.5rem;
    }
}

@media screen and (min-width: 768px) {
    /* PCでも縦並び（1列）にするため grid-template-columns の指定を削除 */


    .main {
        padding: 40px;
    }
}

/* Footer Visibility Fix */
#footer {
    height: auto !important;
    margin-bottom: 0 !important;
    padding: 20px 0 !important;
    position: relative;
    z-index: 10;
    min-height: 50px;
}

/* ----------------------------------------------------
   目次スタイル
   ---------------------------------------------------- */
.toc-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef0f2;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-title::before {
    content: "\f0ca";
    /* FontAwesome list icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: rgba(108, 93, 211, 0.05);
    padding-left: 15px;
}