/* files /kkks/css/kkks.css   ses: 2026-01-15   dev: 13 */
@charset "UTF-8";

/* 基盤設定・ヘッダー・タブは変更なし */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.25; color: #333; background-color: #f4f1ed; padding-top: 45px;
}

.siteHeader {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.08); height: 40px;
}
.headerInner { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; height: 100%; }
.headerTime { font-size: 0.65rem; color: #9a9a9a; letter-spacing: 0.03em; }
.logoText { font-size: 0.85rem; font-weight: 700; color: #a44a56; text-decoration: none; }

.tabNav { display: flex; background: #d0d0d0; padding: 8px 8px 0 8px; gap: 4px; border-bottom: 1px solid #bbb; }
.tabItem {
    flex: 1; text-align: center; padding: 10px 0; text-decoration: none; color: #666; font-size: 0.8rem;
    background: #bababa; transition: 0.2s ease;
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}
.tabItem.active { background: #faf9f7; color: #a44a56; font-weight: bold; padding-top: 12px; z-index: 5; }

/* コンテナ構造 */
.container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 4px; }
.loveBoxInput, .loveBoxList {
    border: 1px solid #999 !important;
    margin: 0 5px 15px 5px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    display: block !important;
}
.loveBoxInput {
    background-color: #faf9f7 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 12px !important;
    margin-top: -1px !important;
}
.loveBoxList {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px !important;
}
.loveTitle {
    font-size: 0.8rem !important; color: #a44a56 !important; font-weight: bold !important;
    border-bottom: 2px solid #eee !important; margin-bottom: 8px !important; padding-bottom: 3px !important;
}

/* フォーム部品 */
.loveFlexRow { display: flex !important; gap: 5px !important; margin-bottom: 5px !important; }
.loveInput {
    height: 34px !important; border: 1px solid #bbb !important;
    border-radius: 4px !important; padding: 0 5px !important; font-size: 0.9rem !important; width: 100%;
}
.loveSaveBtn {
    width: 100% !important; height: 45px !important; background: #a44a56 !important;
    color: #fff !important; border: none !important; border-radius: 4px !important; font-weight: bold !important; font-size: 1.1rem !important;
}

/* --- 修正：直近の入力明細（文字サイズ 80% 最適化） --- */
.loveListTable { width: 100% !important; border-collapse: collapse !important; }
.loveListTable tr { border-bottom: 1px solid #eee !important; }

.loveListTable td { 
    padding: 8px 2px !important; 
    /* 全体フォントを約80%に縮小 */
    font-size: 0.72rem !important; 
    line-height: 1.1 !important;
}

/* 日付とカテゴリの調整 */
.tdDate { 
    color: #888 !important; 
    font-size: 0.65rem !important; 
}
.tdDate span { color: #a0a0a0; }

/* 金額の調整 */
.tdAmt { 
    text-align: right !important; 
    font-weight: bold !important; 
    font-size: 0.8rem !important; /* 金額は視認性のため少しだけ大きく */
}

/* 削除ボタンの調整 */
.tdDel { text-align: right !important; width: 30px !important; }
.tdDel a { 
    color: #ccc !important; 
    text-decoration: none !important; 
    font-size: 1.1rem !important; 
    display: block;
}

/* ページャー設定 */
.lovePager {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 10px !important;
}
/* ページャー設定 */
.lovePager a {
    color: #a44a56 !important;
    text-decoration: none !important;
    font-size: 0.7rem !important;
}
/* ページャー設定 */
.lovePager span {
    color: #888 !important;
    font-size: 0.7rem !important;
}