.jimoto-my-dashboard {
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    padding: 20px;
    margin: 0 0 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
    box-sizing: border-box;
}

/* =========================================================
   地元ポータルヘッダー
========================================================= */

.jimoto-portal-hero {
    position: relative;
    margin: 0 0 16px;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 55, 127, 0.14), transparent 34%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 62%, #f0f6ff 100%);
    border: 1px solid #d8e6fb;
    border-radius: 18px;
    box-sizing: border-box;
}

.jimoto-portal-hero::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    background: rgba(0, 55, 127, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.jimoto-portal-hero-main {
    position: relative;
    z-index: 1;
}

.jimoto-portal-label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #00377F;
    border-radius: 999px;
    line-height: 1.5;
}

.jimoto-portal-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #222222;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.jimoto-portal-title #jimoto-my-area-name {
    color: #00377F;
}

.jimoto-portal-lead {
    max-width: 680px;
    margin: 0 0 14px;
    font-size: 14px;
    color: #555555;
    line-height: 1.8;
}

.jimoto-portal-area-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.jimoto-my-area-zip {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #00377F;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #d8e6fb;
    line-height: 1.5;
}

.jimoto-dashboard-change-link {
    display: inline-block;
    min-width: 150px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 700;
    color: #00377F;
    text-align: center;
    text-decoration: none;
    border: 1px solid #00377F;
    border-radius: 999px;
    background: #ffffff;
    white-space: nowrap;
    box-sizing: border-box;
}

.jimoto-dashboard-change-link:hover {
    background: #f0f5ff;
    color: #00377F;
    text-decoration: none;
}

/* =========================================================
   地元ポータル入口カード
========================================================= */

.jimoto-portal-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.jimoto-portal-card {
    display: block;
    min-height: 112px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    text-decoration: none;
    color: #222222;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.jimoto-portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
    border-color: #b8cdea;
    color: #222222;
    text-decoration: none;
}

.jimoto-portal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 0 9px;
    font-size: 18px;
    background: #f3f7fc;
    border-radius: 12px;
}

.jimoto-portal-card-title {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #222222;
    line-height: 1.45;
}

.jimoto-portal-card-text {
    display: block;
    font-size: 12px;
    color: #666666;
    line-height: 1.55;
}

.jimoto-portal-card-home {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.jimoto-portal-card-shop .jimoto-portal-icon {
    background: #eef9f1;
}

.jimoto-portal-card-food .jimoto-portal-icon {
    background: #fff4e6;
}

.jimoto-portal-card-fun .jimoto-portal-icon {
    background: #f5f0ff;
}

.jimoto-portal-card-safety .jimoto-portal-icon {
    background: #fff8d9;
}

.jimoto-portal-card-medical .jimoto-portal-icon {
    background: #fff0f0;
}

/* =========================================================
   マイ地元カード・ショートカット
========================================================= */

.jimoto-my-area-card {
    padding: 14px 16px;
    margin-bottom: 18px;
    background: #f7faff;
    border: 1px solid #d8e6fb;
    border-radius: 14px;
}

.jimoto-my-area-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 0;
}

.jimoto-my-area-summary-label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #00377F;
    background: #ffffff;
    border: 1px solid #d8e6fb;
    border-radius: 999px;
    line-height: 1.5;
}

.jimoto-my-area-summary-text {
    font-size: 13px;
    color: #555555;
    line-height: 1.7;
}

.jimoto-shortcut-box {
    margin-top: 12px;
}

.jimoto-shortcut-toggle {
    display: inline-block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #00377F;
    background: #ffffff;
    border: 1px solid #cbdcf2;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.5;
}

.jimoto-shortcut-toggle:hover {
    background: #edf4ff;
}

.jimoto-shortcut-panel {
    margin-top: 10px;
}

.jimoto-shortcut-content {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
}

.jimoto-shortcut-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #222222;
    line-height: 1.6;
}

.jimoto-shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.jimoto-shortcut-item {
    padding: 10px;
    background: #f9fbfe;
    border: 1px solid #e5edf7;
    border-radius: 10px;
}

.jimoto-shortcut-item-title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #00377F;
    line-height: 1.5;
}

.jimoto-shortcut-item p {
    margin: 0;
    font-size: 12px;
    color: #555555;
    line-height: 1.7;
}

.jimoto-shortcut-note {
    margin: 10px 0 0;
    font-size: 11px;
    color: #777777;
    line-height: 1.7;
}

/* =========================================================
   メモカード
========================================================= */

.jimoto-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.jimoto-dashboard-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-sizing: border-box;
}

.jimoto-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.jimoto-card-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    color: #00377F;
    line-height: 1.5;
}

.jimoto-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #222222;
    line-height: 1.5;
}

.jimoto-memo-saved-time {
    margin-top: 2px;
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
}

.jimoto-shopping-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.jimoto-shopping-input-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.jimoto-shopping-input-row button,
.jimoto-save-button,
.jimoto-clear-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.5;
    box-sizing: border-box;
}

.jimoto-shopping-input-row button,
.jimoto-save-button {
    color: #ffffff;
    background: #00377F;
}

.jimoto-shopping-input-row button:hover,
.jimoto-save-button:hover {
    opacity: 0.88;
}

.jimoto-clear-button {
    color: #666666;
    background: #eeeeee;
}

.jimoto-clear-button:hover {
    background: #dddddd;
}

.jimoto-frequent-items {
    margin: 0 0 14px;
    padding: 10px;
    background: #f9fbfe;
    border: 1px solid #e5edf7;
    border-radius: 10px;
}

.jimoto-frequent-items-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #555555;
    line-height: 1.5;
}

.jimoto-frequent-items-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.jimoto-frequent-item-button {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #00377F;
    background: #ffffff;
    border: 1px solid #cbdcf2;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.4;
}

.jimoto-frequent-item-button:hover {
    background: #edf4ff;
}

.jimoto-shopping-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jimoto-shopping-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.jimoto-shopping-list li:last-child {
    border-bottom: none;
}

.jimoto-shopping-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.jimoto-shopping-item-text {
    flex: 1;
    font-size: 15px;
    color: #222222;
    line-height: 1.6;
    word-break: break-word;
}

.jimoto-shopping-item-text.is-checked {
    color: #999999;
    text-decoration: line-through;
}

.jimoto-delete-item {
    min-width: 44px;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
    color: #ffffff;
    background: #999999;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.4;
    flex-shrink: 0;
}

.jimoto-delete-item:hover {
    background: #777777;
}

#jimoto-local-memo {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.7;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
}

.jimoto-small-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #666666;
    line-height: 1.8;
}

.jimoto-storage-note {
    margin: 16px 0 0;
    padding: 12px;
    font-size: 12px;
    color: #666666;
    background: #f8f8f8;
    border-radius: 8px;
    line-height: 1.8;
}

/* =========================================================
   スマホ表示
========================================================= */

@media screen and (max-width: 768px) {
    .jimoto-my-dashboard {
        padding: 14px;
        border-radius: 14px;
        margin-bottom: 22px;
    }

    .jimoto-portal-hero {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .jimoto-portal-title {
        font-size: 22px;
        line-height: 1.55;
    }

    .jimoto-portal-lead {
        font-size: 13px;
        line-height: 1.75;
    }

    .jimoto-portal-area-line {
        display: block;
    }

    .jimoto-my-area-zip {
        margin: 0 0 9px;
        font-size: 14px;
    }

    .jimoto-dashboard-change-link {
        width: 100%;
        min-width: 0;
        padding: 11px 14px;
        font-size: 14px;
        text-align: center;
    }

    .jimoto-portal-shortcuts {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .jimoto-portal-card {
        min-height: 106px;
        padding: 13px 12px;
        border-radius: 14px;
    }

    .jimoto-portal-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .jimoto-portal-card-title {
        font-size: 15px;
    }

    .jimoto-portal-card-text {
        font-size: 11px;
    }

    .jimoto-my-area-card {
        padding: 14px;
        margin-bottom: 16px;
    }

    .jimoto-my-area-main {
        display: block;
    }

    .jimoto-my-area-summary-label {
        margin-bottom: 7px;
    }

    .jimoto-my-area-summary-text {
        display: block;
        font-size: 13px;
    }

    .jimoto-shortcut-toggle {
        width: 100%;
        padding: 9px 12px;
        font-size: 13px;
    }

    .jimoto-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .jimoto-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jimoto-dashboard-card {
        padding: 14px;
    }

    .jimoto-card-title {
        font-size: 18px;
    }

    .jimoto-memo-saved-time {
        font-size: 12px;
    }

    .jimoto-shopping-input-row {
        flex-direction: column;
        gap: 9px;
    }

    .jimoto-shopping-input-row input {
        width: 100%;
        height: 44px;
        font-size: 15px;
    }

    .jimoto-shopping-input-row button {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
        display: block;
    }

    .jimoto-frequent-items {
        padding: 10px;
        margin-bottom: 14px;
    }

    .jimoto-frequent-items-buttons {
        gap: 8px;
    }

    .jimoto-frequent-item-button {
        padding: 7px 11px;
        font-size: 13px;
    }

    .jimoto-shopping-list li {
        gap: 9px;
        padding: 11px 0;
    }

    .jimoto-shopping-list input[type="checkbox"] {
        width: 21px;
        height: 21px;
    }

    .jimoto-shopping-item-text {
        font-size: 15px;
    }

    .jimoto-delete-item {
        min-width: 46px;
        min-height: 34px;
        font-size: 12px;
    }

    #jimoto-local-memo {
        min-height: 170px;
        font-size: 15px;
    }

    .jimoto-storage-note {
        padding: 11px;
    }
}

@media screen and (max-width: 360px) {
    .jimoto-portal-shortcuts {
        gap: 8px;
    }

    .jimoto-portal-card {
        min-height: 104px;
        padding: 12px 10px;
    }

    .jimoto-portal-card-title {
        font-size: 14px;
    }
}
/* =========================================================
   ポータルトップ：天気ミニ表示
========================================================= */

.jimoto-portal-weather-mini {
    margin: 0 0 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.035);
}

.jimoto-portal-weather-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.jimoto-portal-weather-label {
    display: inline-block;
    margin: 0 0 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #00377F;
    border-radius: 999px;
    line-height: 1.5;
}

.jimoto-portal-weather-title {
    font-size: 18px;
    font-weight: 800;
    color: #222222;
    line-height: 1.5;
}

.jimoto-portal-weather-link {
    flex-shrink: 0;
    display: inline-block;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700;
    color: #00377F;
    background: #f0f5ff;
    border: 1px solid #cbdcf2;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.5;
}

.jimoto-portal-weather-link:hover {
    color: #00377F;
    background: #e5efff;
    text-decoration: none;
}

.jimoto-portal-weather-mini-body {
    background: #f9fbfe;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 10px;
    box-sizing: border-box;
}

/* 天気カードをポータルトップ用にコンパクト化 */
.jimoto-portal-weather-mini-body .jimoto-weather-card {
    padding: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.jimoto-portal-weather-mini-body .jimoto-weather-current-head {
    margin-bottom: 6px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-current-title {
    font-size: 14px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-place {
    font-size: 11px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-icon-large {
    width: 44px;
    height: 44px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-current-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-row {
    font-size: 12px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-row-label {
    min-width: auto;
}

.jimoto-portal-weather-mini-body .jimoto-weather-forecast-title {
    margin-top: 8px;
    font-size: 12px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-forecast-list {
    gap: 6px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-forecast-item {
    flex-basis: 58px;
    padding: 6px 5px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-icon-small {
    width: 30px;
    height: 30px;
}

.jimoto-portal-weather-mini-body .jimoto-weather-forecast-desc {
    display: none;
}

/* Cocoon 1カラム化後は旧スマホ専用ブロックを非表示 */
.jimoto-mobile-info-block {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .jimoto-portal-weather-mini {
        padding: 13px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .jimoto-portal-weather-mini-head {
        display: block;
        margin-bottom: 10px;
    }

    .jimoto-portal-weather-title {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .jimoto-portal-weather-link {
        display: inline-block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-current-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-forecast-item {
        flex-basis: 62px;
    }
}
/* =========================================================
   ポータルトップ：モーダル表示
========================================================= */

.jimoto-portal-card.jimoto-modal-open {
    width: 100%;
    min-height: 112px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.jimoto-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.jimoto-modal.is-open {
    display: block;
}

.jimoto-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
}

.jimoto-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jimoto-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #f7faff;
    border-bottom: 1px solid #dbe5f2;
}

.jimoto-modal-label {
    display: inline-block;
    margin: 0 0 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #00377F;
    border-radius: 999px;
    line-height: 1.5;
}

.jimoto-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #222222;
    line-height: 1.45;
}

.jimoto-modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: #00377F;
    background: #ffffff;
    border: 1px solid #cbdcf2;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
}

.jimoto-modal-close:hover {
    background: #edf4ff;
}

.jimoto-modal-body {
    padding: 16px;
    overflow-y: auto;
    background: #ffffff;
}

/* モーダル内の情報カード調整 */
.jimoto-modal-body .jimoto-crime-card,
.jimoto-modal-body .jimoto-medical-card {
    box-shadow: none;
}

.jimoto-modal-body .jimoto-medical-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.jimoto-modal-open {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .jimoto-modal-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 28px);
        margin: 14px auto;
        border-radius: 16px;
    }

    .jimoto-modal-head {
        padding: 14px;
    }

    .jimoto-modal-title {
        font-size: 18px;
    }

    .jimoto-modal-body {
        padding: 12px;
    }

    .jimoto-modal-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}
/* =========================================================
   ポータルトップ：天気ミニ表示 PC横並び調整・最終版
========================================================= */

@media screen and (min-width: 769px) {
    .jimoto-portal-weather-mini-body .jimoto-weather-card {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 28px;
        row-gap: 6px;
        align-items: start;
        padding: 18px 22px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-current-head {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-current-main {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 0;
    }

   .jimoto-portal-weather-mini-body .jimoto-weather-forecast-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
    align-self: start;
    padding-top: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

    .jimoto-portal-weather-mini-body .jimoto-weather-forecast-list {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-forecast-item {
        flex: 0 0 66px;
        padding: 8px 6px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-current-title {
        font-size: 15px;
        line-height: 1.5;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-place {
        font-size: 12px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-icon-large {
        width: 34px;
        height: 34px;
        margin-top: 4px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-icon-small {
        width: 28px;
        height: 28px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-row {
        font-size: 13px;
    }

    .jimoto-portal-weather-mini-body .jimoto-weather-row-label {
        min-width: 3.2em;
    }
}
.jimoto-portal-weather-mini-body .jimoto-weather-current-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
}
/* =========================================================
   メモエリア改善：購入済み削除ボタン・スマホ表示・購入済み表示
========================================================= */

/* 買い物メモ右上のボタン配置 */
.jimoto-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* 購入済みを削除ボタン */
#jimoto-shopping-clear-checked {
    color: #00377F;
    background: #f0f5ff;
    border: 1px solid #cbdcf2;
}

#jimoto-shopping-clear-checked:hover {
    background: #e5efff;
}

/* 購入済みアイテムを少し分かりやすく */
.jimoto-shopping-list li:has(.jimoto-shopping-item-text.is-checked) {
    opacity: 0.72;
    background: #f8f8f8;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.jimoto-shopping-item-text.is-checked {
    color: #999999;
    text-decoration: line-through;
}

/* メモエリアへのアンカー移動時に少し余白を持たせる */
#jimoto-memo-area {
    scroll-margin-top: 24px;
}

/* スマホでメモエリアをさらに使いやすく */
@media screen and (max-width: 768px) {
    .jimoto-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jimoto-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .jimoto-card-actions .jimoto-clear-button {
        width: 100%;
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
        text-align: center;
    }

    .jimoto-shopping-list li {
        align-items: center;
        gap: 10px;
        padding: 12px 0;
    }

    .jimoto-shopping-list li:has(.jimoto-shopping-item-text.is-checked) {
        padding: 10px 8px;
    }

    .jimoto-shopping-item-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .jimoto-delete-item {
        min-width: 52px;
        min-height: 38px;
        font-size: 13px;
    }

    #jimoto-local-memo {
        min-height: 210px;
        font-size: 16px;
        line-height: 1.8;
    }

    .jimoto-memo-saved-time {
        margin-top: 4px;
        font-size: 12px;
    }
}

@media screen and (max-width: 420px) {
    .jimoto-card-actions {
        grid-template-columns: 1fr;
    }

    .jimoto-card-actions .jimoto-clear-button {
        min-height: 42px;
    }
}