/* 
 * Custom List Styles - Frontend CSS
 * Version: 1.0.0
 * フロントエンド表示用スタイルシート
 */

/* ==========================================================================
   リストマーカースタイル
   ========================================================================== */

/* 丸数字 */
ul.list-marker-circle-number,
ol.list-marker-circle-number {
    list-style: none;
    counter-reset: list-counter;
}

ul.list-marker-circle-number > li,
ol.list-marker-circle-number > li {
    position: relative;
    padding-left: 2.5em;
    counter-increment: list-counter;
}

ul.list-marker-circle-number > li::before,
ol.list-marker-circle-number > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    background: #4a5568;
    color: white;
    text-align: center;
    line-height: 1.8em;
    font-weight: bold;
}

/* 順位 */
ul.list-marker-ranking,
ol.list-marker-ranking {
    list-style: none;
    list-style-type: none;
    counter-reset: list-counter;
}

ul.list-marker-ranking > li,
ol.list-marker-ranking > li {
    position: relative;
    padding-left: 2.5em;
    counter-increment: list-counter;
    list-style-type: none;
    margin-bottom: 0.5em;
    min-height: 2em;
}

ul.list-marker-ranking > li::before,
ol.list-marker-ranking > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: #4a5568;
    color: white;
    text-align: center;
    line-height: 1.6em;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 1位 - 金 */
ul.list-marker-ranking > li:nth-child(1)::before,
ol.list-marker-ranking > li:nth-child(1)::before {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

/* 2位 - シルバー */
ul.list-marker-ranking > li:nth-child(2)::before,
ol.list-marker-ranking > li:nth-child(2)::before {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

/* 3位 - 銅 */
ul.list-marker-ranking > li:nth-child(3)::before,
ol.list-marker-ranking > li:nth-child(3)::before {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: white;
}

/* ステップ */
ul.list-marker-step,
ol.list-marker-step {
    list-style: none;
    counter-reset: list-counter;
}

ul.list-marker-step > li,
ol.list-marker-step > li {
    position: relative;
    padding-left: 3em;
    counter-increment: list-counter;
    margin-bottom: 1.5em;
}

ul.list-marker-step > li::before,
ol.list-marker-step > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    border: 2px solid #4b5563;
    background: white;
    color: #4b5563;
    text-align: center;
    line-height: 2em;
    font-weight: bold;
    font-size: 0.9em;
}

ul.list-marker-step > li::after,
ol.list-marker-step > li::after {
    content: "";
    position: absolute;
    left: 0.95em;
    top: 2em;
    width: 2px;
    height: calc(100% + 1.5em);
    background: #d1d5db;
    z-index: -1;
}

ul.list-marker-step > li:last-child::after,
ol.list-marker-step > li:last-child::after {
    display: none;
}

/* チェック */
ul.list-marker-check,
ol.list-marker-check {
    list-style: none;
}

ul.list-marker-check > li,
ol.list-marker-check > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-check > li::before,
ol.list-marker-check > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

/* チェック有効 */
ul.list-marker-check-active,
ol.list-marker-check-active {
    list-style: none;
}

ul.list-marker-check-active > li,
ol.list-marker-check-active > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-check-active > li::before,
ol.list-marker-check-active > li::before {
    content: "☑";
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 1.2em;
}

/* チェック無効 */
ul.list-marker-check-inactive,
ol.list-marker-check-inactive {
    list-style: none;
}

ul.list-marker-check-inactive > li,
ol.list-marker-check-inactive > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-check-inactive > li::before,
ol.list-marker-check-inactive > li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-size: 1.2em;
}

/* 丸 */
ul.list-marker-circle,
ol.list-marker-circle {
    list-style: none;
}

ul.list-marker-circle > li,
ol.list-marker-circle > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-circle > li::before,
ol.list-marker-circle > li::before {
    content: "○";
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 1em;
    font-weight: bold;
    top: 0.2em;
}

/* 三角 */
ul.list-marker-triangle,
ol.list-marker-triangle {
    list-style: none;
}

ul.list-marker-triangle > li,
ol.list-marker-triangle > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-triangle > li::before,
ol.list-marker-triangle > li::before {
    content: "△";
    position: absolute;
    left: 0;
    color: #d97706;
    font-size: 1em;
    font-weight: bold;
    top: 0.2em;
}

/* バツ */
ul.list-marker-cross,
ol.list-marker-cross {
    list-style: none;
}

ul.list-marker-cross > li,
ol.list-marker-cross > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-cross > li::before,
ol.list-marker-cross > li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2em;
}

/* 情報 */
ul.list-marker-info,
ol.list-marker-info {
    list-style: none;
}

ul.list-marker-info > li,
ol.list-marker-info > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-info > li::before,
ol.list-marker-info > li::before {
    content: "ℹ";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.3em;
}

/* 疑問 */
ul.list-marker-question,
ol.list-marker-question {
    list-style: none;
}

ul.list-marker-question > li,
ol.list-marker-question > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-question > li::before,
ol.list-marker-question > li::before {
    content: "？";
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: bold;
    font-size: 1.2em;
}

/* 警告 */
ul.list-marker-warning,
ol.list-marker-warning {
    list-style: none;
}

ul.list-marker-warning > li,
ol.list-marker-warning > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-warning > li::before,
ol.list-marker-warning > li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-size: 1.2em;
}

/* 肉球 */
ul.list-marker-paw,
ol.list-marker-paw {
    list-style: none;
}

ul.list-marker-paw > li,
ol.list-marker-paw > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-paw > li::before,
ol.list-marker-paw > li::before {
    content: "🐾";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* サムアップ */
ul.list-marker-thumbs-up,
ol.list-marker-thumbs-up {
    list-style: none;
}

ul.list-marker-thumbs-up > li,
ol.list-marker-thumbs-up > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-thumbs-up > li::before,
ol.list-marker-thumbs-up > li::before {
    content: "👍";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* サムダウン */
ul.list-marker-thumbs-down,
ol.list-marker-thumbs-down {
    list-style: none;
}

ul.list-marker-thumbs-down > li,
ol.list-marker-thumbs-down > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-thumbs-down > li::before,
ol.list-marker-thumbs-down > li::before {
    content: "👎";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* コメント */
ul.list-marker-comment,
ol.list-marker-comment {
    list-style: none;
}

ul.list-marker-comment > li,
ol.list-marker-comment > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-comment > li::before,
ol.list-marker-comment > li::before {
    content: "💬";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* 男性 */
ul.list-marker-male,
ol.list-marker-male {
    list-style: none;
}

ul.list-marker-male > li,
ol.list-marker-male > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-male > li::before,
ol.list-marker-male > li::before {
    content: "👨";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* 女性 */
ul.list-marker-female,
ol.list-marker-female {
    list-style: none;
}

ul.list-marker-female > li,
ol.list-marker-female > li {
    position: relative;
    padding-left: 2em;
}

ul.list-marker-female > li::before,
ol.list-marker-female > li::before {
    content: "👩";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* ==========================================================================
   ボーダースタイル
   ========================================================================== */

/* シンプル */
ul.list-border-simple,
ol.list-border-simple {
    border: 1px solid #d1d5db;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
}

/* 太線 */
ul.list-border-bold,
ol.list-border-bold {
    border: 3px solid #4b5563;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
}

/* 点線 */
ul.list-border-dotted,
ol.list-border-dotted {
    border: 2px dotted #6b7280;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
}

/* 破線 */
ul.list-border-dashed,
ol.list-border-dashed {
    border: 2px dashed #6b7280;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
}

/* 二重線 */
ul.list-border-double,
ol.list-border-double {
    border: 3px double #4b5563;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
}

/* 影付き */
ul.list-border-shadow,
ol.list-border-shadow {
    border: 1px solid #e5e7eb;
    padding: 1em 1em 1em 2.5em;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 角丸 */
ul.list-border-rounded,
ol.list-border-rounded {
    border: 2px solid #3b82f6;
    padding: 1em 1em 1em 2.5em;
    border-radius: 12px;
    background: #eff6ff;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    ul.list-marker-circle-number > li,
    ol.list-marker-circle-number > li,
    ul.list-marker-ranking > li,
    ol.list-marker-ranking > li {
        padding-left: 2.2em;
    }
    
    ul.list-marker-circle-number > li::before,
    ol.list-marker-circle-number > li::before,
    ul.list-marker-ranking > li::before,
    ol.list-marker-ranking > li::before {
        width: 1.6em;
        height: 1.6em;
        line-height: 1.6em;
        font-size: 0.9em;
    }
}