:root { --primary: #007bff; --success: #28a745; --bg: #f4f7f6; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: #333; margin: 0; padding: 20px; }
.card { max-width: 450px; margin: 0 auto; background: white; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
h1 { text-align: center; color: var(--primary); margin-top: 0; cursor: pointer; transition: 0.3s; }
h1:hover { opacity: 0.7; }

/* 共通ボタン */
.btn { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.2s; margin-top: 15px; }
.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: transparent; border: 1px solid #ccc; color: #666; }
.btn:disabled { background: #ccc; cursor: not-allowed; }

/* タブ・入力 */
.tabs { display: flex; gap: 10px; margin: 20px 0; }
.tabs button { flex: 1; padding: 10px; border: 2px solid #eee; border-radius: 8px; background: white; cursor: pointer; font-weight: bold; }
.tabs button.active { border-color: var(--primary); background: #e7f3ff; color: var(--primary); }
.input-group { margin: 20px 0; text-align: center; font-weight: bold; }
.input-group input { width: 60px; padding: 8px; font-size: 1.1rem; text-align: center; border: 1px solid #ddd; border-radius: 4px; }

/* リスト表示 */
.info-badge { background: #eee; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; display: inline-block; margin-bottom: 15px; font-weight: bold; }
.item-list { list-style: none; padding: 0; margin: 0; }
.item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.item input { margin-right: 15px; transform: scale(1.3); }

/* アイテム追加 */
.add-box { display: flex; gap: 5px; margin-bottom: 20px; }
.add-box input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.add-box button { width: 50px; background: #6c757d; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1.2rem; }

/* 共有ボックス */
.share-box { margin-top: 20px; padding: 15px; background: #e7f3ff; border: 1px solid #b3d7ff; border-radius: 8px; font-size: 0.85rem; word-break: break-all; }
.status-msg { text-align: center; color: var(--success); font-weight: bold; margin-top: 10px; }
.item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.item-content { display: flex; align-items: center; flex: 1; cursor: pointer; }
.delete-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 10px;
    transition: 0.2s;
    opacity: 0.6;
}
.delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}
/* フッターのデザイン */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}
footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
}

/* 規約モーダルのスタイル */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white; padding: 20px; border-radius: 12px;
    max-width: 90%; max-height: 80%; overflow-y: auto;
    position: relative;
}
.modal-close {
    position: sticky; top: 0; float: right;
    font-size: 1.5rem; cursor: pointer; color: #aaa;
}
.terms-text {
    font-size: 0.85rem; line-height: 1.6; text-align: left;
}
