body {
    background: #ffeeee !important;
}

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .app-title {
        font-size: 22px !important;
    }

    .header-sub {
        font-size: 15px;
        margin-bottom: 12px;
        white-space: normal;
    }

    .header-right {
        min-width: auto;
        text-align: left;
    }

    .header-right > div:first-child {
        text-align: left;
        margin-bottom: 8px;
    }

    .top-nav a {
        font-size: 14px;
        margin-left: 0;
        margin-right: 6px;
    }
}
.header-bar {
    background: #2c3e50;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-radius: 12px 12px 0 0;
    font-size: 16px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header-left h1.app-title,
.app-title {
    margin: 0;
    font-size: 24px !important;
    color: #ffffff;

}

.header-sub {
    font-size: 15px;
    margin-top: 4px;
    margin-bottom: 8px;
    opacity: 0.9;
    white-space: normal;
    line-height: 1.5;
}

.header-right {
    min-width: 0;
    flex: 1 1 420px;
    text-align: right;
}

.header-right > div:first-child {
    text-align: right;
    font-size: 16px;
    font-weight: 500;
}

.app-title {
    color: #ffffff; /* ヘッダーがダークブルーの前提 */
    margin: 0;
    font-size: 24px !important;
}

.top-nav {
    margin-top: 6px;
}

.top-nav a {
    display: inline-block;
    padding: 8px 12px;
    margin-left: 4px;
    margin-top: 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    background: rgba(255,255,255,0.08);
    color: #ffeb99;
}

.top-nav a.active {
    background: #ffeb99;
    color: #2c3e50;
    font-weight: 700;
}

.top-nav a:hover {
    background: rgba(255,255,255,0.18);
}

.app-footer {
    font-size: 12px;
    color: #777;
    padding: 16px 0 24px;
    text-align: center;
}
.app-footer a {
    color: #3498db;
    text-decoration: none;
}

/* トップ画面（page-home）だけ「トップへ戻る」を非表示にする */
.page-home .top-nav a:first-child {
    display: none;
}

.page-title {
    font-size: 25px;
    font-weight: 700;
    margin: 20px 30px 16px; /* 上20px, 左右30px, 下16px を共通に */
}

:root {
    --primary-color: #3498db;
    --dark-blue: #2c3e50;
    --success-green: #27ae60;
    --accent-orange: #e67e22;
    --bg-gray: #f4f7f9;
    --border-color: #dcdde1;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-gray);
    color: #2f3640;
    margin: 0;
    padding: 20px;
    font-size: 18px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

/* ===== 料金ページ（共通） ===== */

.page-pricing .container-inner {
    padding: 30px;
}

/* サブタイトル */
.page-pricing .subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 30px 24px;
    line-height: 1.6;
}

/* 年払い / 月払いタブ */
.page-pricing .toggle-year {
    display: inline-flex;
    border-radius: 999px;
    background: #ecf0f1;
    padding: 3px;
    margin: 0 30px 24px;
    font-size: 12px;
}
.page-pricing .toggle-year span {
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    color: #555;
}
.page-pricing .toggle-year span.active {
    background: #3498db;
    color: #fff;
    font-weight: 700;
}

/* プランカードの並び */
.page-pricing .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 30px 10px;
}

/* カード本体 */
.page-pricing .plan-card {
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 18px 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* おすすめカードの強調 */
.page-pricing .plan-card.plan-highlight {
    border-width: 2px;
    border-color: #3498db;
    box-shadow: 0 8px 20px rgba(52,152,219,0.18);
}

/* ヘッダー部分 */
.page-pricing .plan-header h2 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}
.page-pricing .plan-tagline {
    margin: 4px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* おすすめバッジ */
.page-pricing .plan-badge {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1c40f;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 6px;
}

/* 料金表示 */
.page-pricing .plan-price {
    margin: 12px 0 10px;
}
.page-pricing .plan-price .price-main {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}
.page-pricing .plan-price .price-unit {
    font-size: 12px;
    margin-left: 4px;
    color: #7f8c8d;
}
.page-pricing .plan-price .price-meta {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* 特徴リスト */
.page-pricing .plan-features {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
}
.page-pricing .plan-features li {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

/* ボタン */
.page-pricing .plan-actions {
    margin-top: auto;
    text-align: center;
}
.page-pricing .btn-plan {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.page-pricing .btn-plan.btn-primary {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
.page-pricing .btn-plan.btn-outline {
    background: #fff;
    color: #3498db;
    border-color: #3498db;
}
.page-pricing .btn-plan:hover {
    opacity: 0.9;
}

/* 備考 */
.page-pricing .note {
    font-size: 11px;
    color: #777;
    margin: 16px 30px 0;
    line-height: 1.6;
}

.btn-current-plan {
    white-space: normal;
    text-align: center;
}

.btn-current-plan {
    white-space: nowrap;
}

.form-container-narrow {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
}

.trial-banner {
    max-width: 560px;
    margin: 0 auto 16px;         /* 中央寄せ＋下に余白 */
    padding: 10px 14px;
    background: #fff3cd;         /* 薄い黄色 */
    border: 1px solid #ffe08a;
    border-radius: 6px;
    color: #8a6d3b;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trial-banner::before {
    content: "⏰";
    font-size: 16px;
}
.trial-banner strong {
    font-size: 15px;
    margin: 0 2px;
}

.logout {
    font-size: 15px;
}

/* 履歴一覧ヘッダー */
.page-history-list .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 16px;
}

.page-history-list .header .page-title {
    font-size: 22px;
    margin: 0;
}

.page-history-list .header .btn-new {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
}

/* 履歴一覧：ヘッダーバーとタイトルの間隔調整 */
.page-history-list .main-area {
    margin-top: 16px;   /* デフォルトより小さくして間隔を詰める */
}

/* 履歴テーブル全体 */
.page-history-list .biz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;              /* 本文より少し小さめ */
    margin-top: 8px;
}

/* 履歴一覧：左右の余白を少し付ける */
.page-history-list .container-inner {
    padding-left: 24px;   /* 好みで 20〜32px 程度 */
    padding-right: 24px;
}

.page-history-list .biz-table th,
.page-history-list .biz-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e1e4e8;
}

.page-history-list .biz-table th {
    background: #f5f7fa;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: #555;
}

.page-history-list .biz-table td.worker-name {
    font-weight: 600;
}

/* 詳細ボタン */
.page-history-list .btn-view {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
}