:root {
    --brand-color: #6c8cff;
    --bg-light: #f8fafc;
    --text-dark: #334155;
    --accent-orange: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

h1, h2 { text-align: center; margin-bottom: 20px; }


/* 共通リンク・ボタン */
.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--brand-color);
    text-decoration: none;
    font-size: 17px;
}

.main-add-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #6c8cff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 28px;
    box-shadow: 0 6px 14px rgba(108, 140, 255, 0.3);
    margin-top: 15px;
        }  

/* トースト通知 */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #333; color: #fff; padding: 12px 20px; border-radius: 20px;
    font-size: 14px; animation: toastFade 3s forwards; z-index: 1000;
}
@keyframes toastFade {
    0% { opacity: 0; transform: translate(-50%, -10px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* ボタンをセンターに寄せるための箱 */
.action-area, .bottom-action {
display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* 少し間隔を詰める */
    margin-bottom: 20px;
}

/* ボタンにカーソルを乗せたとき、またはスマホで触れたときの反応 */
.main-add-btn:hover, .graph-link-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 140, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.main-add-btn:active, .graph-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(108, 140, 255, 0.3);
}
/* リンクボタンの文字サイズを少し調整 */
.graph-link-btn {
    font-size: 15px !important; /* 17pxから少し下げて1行に収まりやすく */
    padding: 8px 16px !important;
}

/* スマホでのボタン幅調整 */
@media (max-width: 768px) {
    body {
        padding: 10px 10px; /* 左右の余白を「0」にするのがポイント！ */
    }
  .main-add-btn {
　　width: 33%;
    font-size: 15px;
    padding: 12px; /* 左右のpaddingを0にするか、小さくする */
    display: inline-block;
    margin-top: 20px;
    text-align: center;      /* 文字を中央に寄せる */
    box-sizing: border-box;  /* paddingをwidthの中に含める設定 */
    vertical-align: middle;
    margin-bottom: 10px;
    }
    .container {
      padding: 15px 10px;
      margin: 0;
      width: 100%;
      box-sizing: border-box;
      border-radius: 12px;
    }


}

/* 支払いラベル（4枚目のようなはっきりした色使い） */
.pay-label {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}
.pay-label.is-cash {
    color: #e67e22;
    font-weight: bold;
    font-size: 17px;
    display: contents;
}
.pay-label.is-card {
    color: #2563eb;
    font-weight: bold;
    font-size: 17px;
    display: contents;

}
.back-link { 
    display: inline-block; 
    margin-top: 5px;
    margin-bottom: 16px; 
    color: var(--brand-color); 
    text-decoration: none; 
    font-size: 17px; }	