:root {
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-pale: #d8f3dc;
    --gold: #c9a84c;
    --gold-light: #f0d080;
    --dark: #1a1a1a;
    --mid: #3a3a3a;
    --gray: #6b7280;
    --bg: #f5f7f0;
    --white: #ffffff;
    --border: #dde8d8;
    --label-w: 108px;
  }
  /* ── Scroll wrapper ── */
  .table-outer {
    position: relative;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.09);
    background: var(--white);
    overflow: hidden;
  }

  /* Scroll hint bar (mobile only) */
  .scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .scroll-hint .arrow { animation: nudge 1.4s ease-in-out infinite; }
  @keyframes nudge {
    0%,100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
  }
  @media (max-width: 700px) {
    .scroll-hint { display: flex; }
  }

  /* Fade-right overlay */
  .table-outer::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 32px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.7));
    pointer-events: none;
    border-radius: 0 14px 14px 0;
    transition: opacity 0.3s;
  }
  .table-outer.scrolled-end::after { opacity: 0; }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--green-pale) transparent;
  }
  .table-scroll::-webkit-scrollbar { height: 4px; }
  .table-scroll::-webkit-scrollbar-track { background: transparent; }
  .table-scroll::-webkit-scrollbar-thumb {
    background: var(--green-pale);
    border-radius: 99px;
  }
.pricetable{min-width: 100%;}
  .pricetable table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: var(--white);
  }

  /* ── Column headers ── */
  .pricetable thead tr { background: var(--dark); }
  .pricetable thead th {
    padding: 0;
    vertical-align: top;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .pricetable thead th:last-child { border-right: none; }

  /* Sticky label column */
  .pricetable thead th:first-child,
  .pricetable tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
  }
  .pricetable thead th:first-child {
    background: #111;
    width: var(--label-w);
    min-width: var(--label-w);
    z-index: 3;
  }

  .plan-card {
    padding: 16px 12px 14px;
    text-align: center;
  }
  .plan-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 3px;
    padding: 2px 7px;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  .badge-standard  { background: #e5ede8; color: #2d6a4f; }
  .badge-value     { background: #dff0e3; color: #1b5e35; }
  .badge-value-day { background: #c8ead0; color: #155231; }
  .badge-prem      { background: var(--gold-light); color: #6b4a00; }
  .badge-prem-day  { background: var(--gold); color: #4a3000; }

  .plan-name {
    font-size: clamp(10px, 1.5vw, 13px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .plan-name.gold { color: var(--gold-light); }

  .price-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 3.5vw, 36px);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--white);
  }
  .price-main.gold { color: var(--gold-light); }
  .price-unit  { font-size: 10px; color: #aaa; }
  .price-tax   { font-size: 10px; color: #999; margin-top: 2px; }
  .price-orig  { font-size: 10px; color: #888; text-decoration: line-through; margin-top: 1px; }
  .off-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 3px;
  }
  .avail-time {
    font-size: 9px;
    color: #bbb;
    margin-top: 5px;
    padding: 3px 7px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    line-height: 1.4;
  }

  /* ── Row label (sticky) ── */
  .pricetable tbody td:first-child {
    background: #f4f7f1;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mid);
    border-right: 2px solid var(--border);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    vertical-align: middle;
    width: var(--label-w);
    min-width: var(--label-w);
    /* subtle shadow so sticky col stands out on scroll */
    box-shadow: 2px 0 6px rgba(0,0,0,0.04);
  }
  .label-icon { display: block; font-size: 15px; margin-bottom: 2px; }

  /* ── Category row ── */
  .cat-row td {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    position: sticky;
    left: 0;
  }

  /* ── Data cells ── */
  .pricetable tbody td {
    padding: 12px 10px;
    font-size: 12px !important;
    font-weight: 500;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    text-align: center;
    line-height: 1.5;
    color: var(--mid);
  }
  .pricetable tbody td:last-child { border-right: none; }

  .pricetable tbody tr:nth-child(even):not(.cat-row) td        { background: #fafcf8; }
  .pricetable tbody tr:nth-child(odd):not(.cat-row) td          { background: var(--white); }
  .pricetable tbody tr:nth-child(even):not(.cat-row) td:first-child,
  .pricetable tbody tr:nth-child(odd):not(.cat-row) td:first-child { background: #f4f7f1; }
  
  .yes { color: var(--green-light); font-size: 16px; font-weight: 700; }
  .no  { color: #ccc; font-size: 16px; }
  .highlight      { font-weight: 700 !important; color: var(--green) !important; }
  .highlight-gold { font-weight: 700 !important; color: #9a6f00 !important; }

  .lesson-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
  }
  .lp-none { background: #f0f0f0; color: #aaa !important; }
  .lp-2    { background: #d8f3dc; color: var(--green) !important; }
  .lp-5    { background: var(--gold-light); color: #6b4a00 !important; }

  /* ── 受付停止中 ── */
  .col-suspended { opacity: 0.55; }
  .suspended-badge {
    display: inline-block;
    margin-top: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
  }
  .pricetable tbody tr:not(.cat-row) td:nth-child(2) {
    opacity: 0.45;
    background: #f2f2f2 !important;
  }


  .tokutenbnr{
    padding-bottom:1.5em;
  }
  .SP{display: none;}
@media only screen and (max-width: 750px) {
    .PC{display: none;}
    .SP{display: block;}
    .pricetable{
        padding-bottom:1.5em;
    }
}