/* ============================================================
   設定画面のスタイル（V6.0 - 別画面版）
   ============================================================ */

/* 設定画面コンテナ */
.settings-screen-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 120px;
}

/* 設定項目（白いボックス） */
.settings-item-unified {
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.settings-item-unified:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* アイコン（丸） */
.item-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

/* コンテンツ */
.item-content-unified {
    flex: 1;
    min-width: 0;
}

.item-title-unified {
    font-size: 15px;
    font-weight: 700;
    color: #5d5444;
    margin-bottom: 4px;
}

.item-value-unified {
    font-size: 14px;
    color: #a6967a;
}

/* 矢印 */
.item-arrow-unified {
    font-size: 24px;
    color: #d4c5af;
    flex-shrink: 0;
}

/* 区切り線 */
.settings-divider-unified {
    height: 1px;
    background: #eee5d8;
    margin: 12px 0;
}

/* ============================================================
   モーダル（統一デザイン）
   ============================================================ */

/* 暗い背景 */
.modal-overlay-dark {
    background: rgba(0, 0, 0, 0.6);
}

/* モーダルシート */
.modal-sheet {
    background: #fdfaf5;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

/* 閉じるボタン（×） */
.modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee5d8;
    border: none;
    color: #7a6f5a;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-x:active {
    transform: scale(0.9);
}

/* モーダルタイトル */
.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #5d5444;
    text-align: center;
    margin-bottom: 16px;
}

/* モーダル説明文 */
.modal-desc {
    font-size: 14px;
    color: #7a6f5a;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* モーダル本体 */
.modal-body {
    margin-bottom: 24px;
}

/* モーダルフッター */
.modal-footer {
    display: flex;
    gap: 12px;
}

/* プライマリボタン */
.btn-modal-primary {
    flex: 1;
    padding: 16px;
    background: #bca37f;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ============================================================
   入力モーダル
   ============================================================ */

.modal-input-large {
    width: 100%;
    font-size: 32px;
    font-weight: 700;
    color: #5d5444;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
    outline: none;
    text-align: center;
}

.modal-input-large::placeholder {
    color: #d4c5af;
    font-weight: 400;
}

.modal-input-underline {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #bca37f 50%, transparent 100%);
    margin-top: 8px;
}

/* ============================================================
   現在の読み方表示
   ============================================================ */

.current-reading-display {
    text-align: center;
    padding: 32px 20px;
}

.current-reading-label {
    font-size: 13px;
    color: #a6967a;
    margin-bottom: 12px;
    font-weight: 600;
}

.current-reading-value {
    font-size: 48px;
    font-weight: 800;
    color: #5d5444;
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* ============================================================
   選択モーダル
   ============================================================ */

.choice-option {
    width: 100%;
    background: white;
    border: 2px solid #eee5d8;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    text-align: left;
}

.choice-option:active {
    transform: scale(0.98);
}

.choice-option.selected {
    border-color: #bca37f;
    background: #fdfaf5;
}

/* ラジオボタン */
.choice-radio {
    width: 24px;
    height: 24px;
    border: 3px solid #d4c5af;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s;
}

.choice-radio.checked {
    border-color: #bca37f;
}

.choice-radio.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #bca37f;
    border-radius: 50%;
}

/* 選択肢コンテンツ */
.choice-content {
    flex: 1;
}

.choice-label {
    font-size: 16px;
    font-weight: 700;
    color: #5d5444;
    margin-bottom: 4px;
}

.choice-desc {
    font-size: 13px;
    color: #a6967a;
    line-height: 1.5;
}

/* ============================================================
   イメージタググリッド（色統一版）
   ============================================================ */

.tag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.tag-button-unified {
    padding: 16px 12px;
    border: 2px solid #eee5d8;
    border-radius: 16px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 600;
    color: #7a6f5a;
}

.tag-button-unified:active {
    transform: scale(0.95);
}

.tag-button-unified.selected {
    border-color: #bca37f;
    background: #fdfaf5;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tag-icon {
    font-size: 28px;
}

.tag-label {
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
}

.tag-check {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #bca37f;
}

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

@media (max-width: 480px) {
    .settings-item-unified {
        padding: 14px 16px;
    }
    
    .item-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .modal-sheet {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .modal-input-large {
        font-size: 28px;
    }
    
    .current-reading-value {
        font-size: 40px;
    }
    
    .tag-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-button-unified {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .tag-icon {
        font-size: 24px;
    }
    
    .tag-label {
        font-size: 14px;
        text-align: left;
        flex: 1;
    }
}

/* ============================================================
   スクロールバー
   ============================================================ */

.modal-sheet::-webkit-scrollbar {
    width: 6px;
}

.modal-sheet::-webkit-scrollbar-track {
    background: transparent;
}

.modal-sheet::-webkit-scrollbar-thumb {
    background: #d4c5af;
    border-radius: 3px;
}

.modal-sheet::-webkit-scrollbar-thumb:hover {
    background: #bca37f;
}

/* ============================================================
   ストックのグリッド修正
   全てのカードを同じ幅・高さに統一
   ============================================================ */

#stock-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    padding-bottom: 40px;
}

#stock-list .stock-card {
    background: white;
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 100px;
    width: 100%;
    max-width: 85px;
}

#stock-list .stock-card:active {
    transform: scale(0.95);
}

/* ストックカード内の要素 */
#stock-list .stock-card .stock-kanji {
    font-size: 40px !important;
    font-weight: 900;
    color: #5d5444;
    margin-bottom: 4px;
}

#stock-list .stock-card .stock-strokes {
    font-size: 10px;
    color: #a6967a;
    font-weight: 600;
    margin-bottom: 6px;
}

#stock-list .stock-card .stock-position {
    font-size: 9px;
    color: #bca37f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* スーパーライクの星表示 */
#stock-list .stock-card .stock-stars {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    font-size: 14px;
}
