@charset "UTF-8";

/* ==========================================================================
   マイデータ編集画面（文字サイズ拡大・視認性抜群スタイル）
   ========================================================================== */

.mydata-edit-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mydata-edit-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #0f172a;
}

.mydata-edit-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ブロック全体のコンテナ */
.mydata-edit-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

/* 各ブロックの枠 */
.mydata-edit-block-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ブロックヘッダー（見出し） */
.mydata-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #334155;
    margin-bottom: 4px;
}

.mydata-block-title-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.mydata-block-title-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* ★大項目タイトル（16px / 太字） */
.mydata-block-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #0f172a;
}

/* 移動ボタン */
.mydata-move-btns {
    display: flex;
    gap: 6px;
}

.mydata-btn-move {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mydata-btn-move:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   細分け項目：文字サイズ 15px ＆ 太字 ＆ タップエリア拡大
   ========================================================================== */

.mydata-subitems-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mydata-subitem-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 8px 4px; /* タップしやすいように上下パディングを8pxに拡大 */
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.1s ease;
}

.mydata-subitem-label:last-child {
    border-bottom: none;
}

.mydata-subitem-label:hover {
    background-color: #f8fafc;
}

/* チェックボックス（文字サイズに合わせて少し拡大） */
.mydata-subitem-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0;
}

/* ★項目名テキスト（15px / 太字 / 見やすい濃紺） */
.mydata-subitem-text {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #0f172a;
    line-height: 1.3;
}

/* ==========================================================================
   保存・リセットボタンエリア
   ========================================================================== */

div#js-mydata-btn-container.mydata-btn-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding: 10px 0 !important; /* 枠線を消した分、内側余白を微調整 */
    background: transparent !important; /* 背景を透明化 */
    border: none !important; /* 枠線を削除 */
    box-shadow: none !important;
}

button#js-mydata-reset-btn.mydata-reset-btn {
    padding: 10px 18px !important;
    background-color: #64748b !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

button#js-mydata-save-btn.mydata-save-btn {
    padding: 10px 22px !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}


/* ==========================================================================
   前のページに戻るリンク（シンプル左揃え）
   ========================================================================== */
.mydata-back-link-container {
    margin: 4px 0 12px;
}

.mydata-back-link {
    display: inline-block;
    color: #2563eb !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.mydata-back-link:hover {
    opacity: 0.7;
    text-decoration: underline !important;
}