/*
Theme Name: Zyunkai PM Support
Theme URI:
Description: PMサポートサービスのランディングページテーマ
Version: 1.0
Author: Zyunkai Dev
Text Domain: zyunkai
*/

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2b8a3e;
  --green-dark: #1f6d2f;
  --green-darker: #174e23;
  --green-bg: #eaf6ec;
  --green-accent: #3fb055;
  --orange: #e87d1e;
  --orange-dark: #c96510;
  --orange-light: #fff3e5;
  --gold: #d4a730;
  --gold-light: #f4d77a;
  --white: #fff;
  --bg: #fff;
  --bg-gray: #f5f7f5;
  --border: #e0e0e0;
  --text: #2a2a2a;
  --text-sub: #777;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --container: min(100%, 1280px);
  --gutter: clamp(16px, 3vw, 40px);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* =============================
   SECTION HEAD - catchy design
   ============================= */
.sec-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec-head {
  text-align: center;
  margin: 0 auto clamp(20px, 2.5vw, 36px);
  position: relative;
}
.sec-head .en {
  display: block;
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sec-head h2 {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
  padding: 0 24px;
}
.sec-head h2::before,
.sec-head h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 3px;
  background: var(--green);
  transform: translateY(-50%);
}
.sec-head h2::before { left: 0; }
.sec-head h2::after { right: 0; }
.sec-head .deco-line {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =============================
   GOLD CORNER FRAME
   ============================= */
.gold-frame {
  position: relative;
  padding: 5px;
  overflow: hidden;
}
.gold-frame::before,
.gold-frame::after,
.gold-frame .c1,
.gold-frame .c2 {
  content: ""; position: absolute;
  width: clamp(18px, 2vw, 28px);
  height: clamp(18px, 2vw, 28px);
  z-index: 2;
  transition: all .3s;
}
.gold-frame::before { top: 0; left: 0; border-top: 3px solid var(--gold); border-left: 3px solid var(--gold); }
.gold-frame::after  { bottom: 0; right: 0; border-bottom: 3px solid var(--gold); border-right: 3px solid var(--gold); }
.gold-frame .c1 { top: 0; right: 0; border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); }
.gold-frame .c2 { bottom: 0; left: 0; border-bottom: 3px solid var(--gold); border-left: 3px solid var(--gold); }
.gold-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

/* =============================
   FV - catchy hero
   ============================= */
.fv-section {
  width: 100%;
  padding: 0;
  position: relative;
}
.fv-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.fv-image {
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  overflow: hidden;
}
.fv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.fv-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(63,176,85,0.5) 0%, transparent 50%),
    linear-gradient(135deg, rgba(31,109,47,0.85) 0%, rgba(23,78,35,0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  color: var(--white);
}
.fv-content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  padding: 0 var(--gutter);
}
.fv-text {
  text-align: center;
}
.fv-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 6px 20px;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 700;
  border-radius: 30px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(232,125,30,0.4);
  position: relative;
}
.fv-badge::before,
.fv-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--white);
  opacity: 0.7;
}
.fv-badge::before { left: -40px; transform: translateY(-50%); }
.fv-badge::after  { right: -40px; transform: translateY(-50%); }
.fv-catch {
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.fv-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: clamp(5px, 1.2vw, 14px);
  margin-bottom: 16px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.fv-subtitle {
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.fv-divider {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 18px auto 0;
  border-radius: 2px;
}
/* ---- FV value card ---- */
.fv-value-card {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 22vw, 300px);
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.fv-vc-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 3px 12px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.fv-vc-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.fv-vc-title {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.5;
}
.fv-vc-icon {
  width: clamp(32px, 3vw, 40px);
  height: clamp(32px, 3vw, 40px);
  color: var(--green-dark);
  flex-shrink: 0;
}
.fv-vc-catch {
  font-size: clamp(0.7rem, 0.82vw, 0.8rem);
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 6px;
}
.fv-vc-catch strong {
  color: var(--green-dark);
  background: linear-gradient(transparent 60%, rgba(63,176,85,0.25) 60%);
  padding: 0 3px;
}
.fv-vc-desc {
  font-size: clamp(0.65rem, 0.75vw, 0.75rem);
  color: var(--text-sub);
  line-height: 1.75;
}
.fv-vc-desc strong {
  color: var(--orange-dark);
  font-weight: 900;
  background: linear-gradient(transparent 60%, rgba(232,125,30,0.2) 60%);
  padding: 0 3px;
}

/* =============================
   PLANS
   ============================= */
.plans-section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter);
}
/* ---- plan cards ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
/* ---- comparison table ---- */
.plans-compare {
  width: 100%;
}
.plans-compare .compare-title {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 900;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: clamp(10px, 1.2vw, 16px);
  letter-spacing: 2px;
}
.plans-compare .table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.plans-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  background: var(--white);
}
.plans-compare th,
.plans-compare td {
  border: 1px solid var(--border);
  padding: clamp(10px, 1.2vw, 14px) clamp(14px, 1.5vw, 20px);
  text-align: center;
}
.plans-compare thead th {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  border: 1px solid var(--green-dark);
  padding: clamp(12px, 1.4vw, 16px) clamp(14px, 1.5vw, 20px);
}
.plans-compare tbody th {
  background: var(--green-bg);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  color: var(--green-dark);
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
}
.plans-compare tbody tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
.plans-compare tbody tr:hover td { background: var(--bg-gray); }
.plans-compare .check {
  color: var(--orange);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}
.plans-compare .note {
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  color: var(--text-sub);
  margin-top: 12px;
}
.plan-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .35s, box-shadow .35s;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border: 2px solid var(--orange);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.plan-card .ribbon {
  position: absolute;
  top: 10px; right: -34px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 38px;
  transform: rotate(35deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  letter-spacing: 1.5px;
  z-index: 3;
}
.plan-card .card-head {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 8px 8px;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  position: relative;
}
.plan-card.featured .card-head {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}
.plan-card .card-body {
  padding: 12px 12px 14px;
  text-align: center;
}
.plan-card .card-body .gold-frame {
  height: clamp(105px, 12vw, 145px);
  margin-bottom: 10px;
  border-radius: 4px;
}
.plan-card:hover .gold-frame img { transform: scale(1.08); }
.plan-card .card-body .desc {
  font-size: clamp(0.7rem, 0.82vw, 0.78rem);
  color: var(--text-sub);
  margin-bottom: 8px;
  min-height: 2.4em;
  line-height: 1.5;
}
.plan-card .card-body .price-area {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.plan-card .card-body .price-label {
  display: block;
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  color: var(--text-sub);
  margin-bottom: 2px;
}
.plan-card .card-body .price {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.plan-card .card-body .price .big {
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  color: var(--orange);
  margin: 0 2px;
}
.plan-card .card-body .price .estimate {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 2px;
}
.plan-card.original .card-head {
  background: linear-gradient(135deg, #5a6570 0%, #3d454d 100%);
}

/* =============================
   SIMULATION
   ============================= */
.simulation-section {
  background: linear-gradient(180deg, #f8fbf7 0%, #eef6ec 100%);
  padding: clamp(40px, 5vw, 72px) 0;
  position: relative;
}
.simulation-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--orange) 50%, var(--gold) 100%);
}
.simulation-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sim-lead {
  text-align: center;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  color: var(--text);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.sim-lead strong {
  color: var(--orange);
  font-weight: 900;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 1px;
}

.sim-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: clamp(20px, 3vw, 40px);
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

/* ---- 入力フォーム ---- */
.sim-form,
.sim-base {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.sim-field-full { grid-column: 1 / -1; }

/* ---- 収入・支出グループ ---- */
.sim-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.sim-group {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: clamp(16px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sim-group.income-group { border-top: 4px solid var(--green); }
.sim-group.expense-group { border-top: 4px solid var(--orange); }
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.group-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}
.income-group .group-mark { background: var(--green-bg); color: var(--green-dark); }
.expense-group .group-mark { background: var(--orange-light); color: var(--orange-dark); }
.group-title {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
  flex: 1;
  min-width: 0;
}
.group-sub {
  font-size: clamp(0.65rem, 0.78vw, 0.72rem);
  color: var(--text-sub);
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0;
}

/* ---- トグルスイッチ ---- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  font-weight: 700;
  color: var(--text-sub);
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: #cfd4d0;
  border-radius: 999px;
  transition: background .25s;
  flex-shrink: 0;
}
.switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.income-group .switch input:checked + .switch-slider { background: var(--green); }
.expense-group .switch input:checked + .switch-slider { background: var(--orange); }
.switch input:checked + .switch-slider::after { transform: translateX(16px); }
.switch input:checked ~ .switch-text { color: var(--text); }

/* ---- 内訳リスト ---- */
.kv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 50px 160px;
  column-gap: 10px;
  row-gap: 0;
}
.kv-item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  transition: opacity .25s;
}
.kv-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-hidden { display: none !important; }
.kv-detail-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  padding: 10px 12px;
  background: rgba(43, 138, 62, 0.06);
  border-radius: 8px;
  margin: 4px 0 6px;
  border-bottom: none !important;
}
.kv-detail-row .detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kv-detail-row label {
  font-size: clamp(0.65rem, 0.78vw, 0.72rem);
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.kv-detail-row .input-wrap.inline.small {
  max-width: 100%;
  padding: 0 8px;
}
.kv-detail-row .input-wrap.inline.small input {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  padding: 6px 0;
}
.kv-note {
  font-size: clamp(0.62rem, 0.74vw, 0.7rem);
  color: var(--text-sub);
  font-weight: 500;
  margin-left: 4px;
}
.kv-item:last-child { border-bottom: none; }
.kv-item.is-disabled .kv-name,
.kv-item.is-disabled .kv-value,
.kv-item.is-disabled .input-wrap {
  opacity: 0.35;
}
.kv-item.is-disabled .input-wrap { pointer-events: none; }
.kv-item.subtotal {
  border-top: 2px solid var(--border);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 12px;
}
.kv-name {
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 700;
  color: var(--text);
}
.kv-value {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.expense-group .kv-item:not(.subtotal) .kv-value { color: var(--orange-dark); }
.income-group .kv-value { color: var(--green-dark); }
.kv-item.subtotal .kv-name {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--green-dark);
}
.expense-group .kv-item.subtotal .kv-name { color: var(--orange-dark); }
.kv-item.subtotal .kv-value {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}
.input-wrap.inline {
  width: 100%;
  max-width: 150px;
  padding: 0 10px;
}
.input-wrap.inline input {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  padding: 8px 0;
  text-align: right;
}
.sim-label {
  display: block;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.plan-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-gray);
  padding: 6px;
  border-radius: 12px;
}
.plan-btn {
  appearance: none;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all .25s;
}
.plan-btn:hover { color: var(--text); background: rgba(255,255,255,0.5); }
.plan-btn .pt-name { font-weight: 900; letter-spacing: 1px; }
.plan-btn .pt-price {
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  color: var(--text-sub);
  font-weight: 700;
}
.plan-btn.is-active {
  background: var(--white);
  border-color: var(--orange);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(232,125,30,0.18);
}
.plan-btn.is-active .pt-price { color: var(--orange); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43,138,62,0.12);
}
.input-wrap .unit-prefix {
  color: var(--text-sub);
  font-weight: 700;
  margin-right: 4px;
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 900;
  color: var(--text);
  padding: 14px 0;
  width: 100%;
  text-align: right;
  -moz-appearance: textfield;
}
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-wrap .unit {
  color: var(--text-sub);
  font-weight: 700;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  margin-left: 8px;
  white-space: nowrap;
}

/* ---- 結果カード ---- */
.sim-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
}
.result-card {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: clamp(14px, 1.6vw, 20px);
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}
.result-card.income::before { background: var(--green); }
.result-card.expense::before { background: var(--text-sub); }
.result-card.profit::before { background: var(--orange); }
.result-card.profit-year::before { background: linear-gradient(90deg, var(--orange) 0%, var(--gold) 100%); }
.result-card.profit-year {
  background: linear-gradient(180deg, #fff8ec 0%, #fff3e0 100%);
  border-color: var(--gold-light);
}
.rc-label {
  display: block;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  color: var(--text-sub);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.rc-value {
  display: block;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.result-card.income .rc-value { color: var(--green-dark); }
.result-card.expense .rc-value { color: var(--text-sub); }
.result-card.profit .rc-value { color: var(--orange-dark); }
.result-card.profit-year .rc-value { color: var(--orange-dark); font-size: clamp(1.3rem, 2vw, 1.85rem); }
.rc-value.is-negative { color: #c0392b !important; }
.rc-formula {
  display: block;
  font-size: clamp(0.6rem, 0.72vw, 0.68rem);
  color: var(--text-sub);
  margin-top: 6px;
  opacity: 0.8;
}

/* ---- グラフ ---- */
.sim-chart {
  background: linear-gradient(180deg, #fafdfa 0%, #f3f8f3 100%);
  border-radius: 12px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--border);
}
.chart-head {
  text-align: center;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}
.chart-title {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 1.5px;
}
.chart-view-toggle {
  display: inline-flex;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-top: 10px;
  gap: 4px;
}
.view-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.5px;
}
.view-btn:hover { color: var(--text); }
.view-btn.is-active {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.chart-area {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 0.8vw, 10px);
  align-items: end;
  height: clamp(240px, 28vw, 340px);
  padding: 8px clamp(4px, 1vw, 12px) 0;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.chart-area.is-monthly {
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(3px, 0.6vw, 8px);
}
.chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.78rem, 0.92vw, 0.88rem);
}
.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.legend-swatch.light { background: linear-gradient(180deg, #a8d3b3 0%, #2b8a3e 100%); }
.legend-swatch.standard { background: linear-gradient(180deg, var(--gold-light) 0%, var(--orange-dark) 100%); }
.legend-label { font-weight: 700; color: var(--text); }
.legend-total {
  font-weight: 900;
  color: var(--text);
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.chart-bar .bars-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  flex: 1;
  width: 100%;
  min-height: 0;
}
.chart-bar .bar {
  flex: 1;
  max-width: 22px;
  border-radius: 5px 5px 0 0;
  position: relative;
  height: 0;
  min-height: 2px;
  transition: height .8s cubic-bezier(.2,.8,.2,1);
}
.chart-bar .bar.light {
  background: linear-gradient(180deg, #a8d3b3 0%, #2b8a3e 100%);
  box-shadow: 0 -2px 6px rgba(43,138,62,0.18);
}
.chart-bar .bar.standard {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--orange-dark) 100%);
  box-shadow: 0 -2px 6px rgba(232,125,30,0.22);
}
.chart-area.is-monthly .chart-bar .bar { max-width: 14px; }
.chart-area.is-monthly .chart-bar .bars-pair { gap: 1px; }
.chart-bar .bar.is-negative { background: linear-gradient(180deg, #e74c3c 0%, #922b21 100%) !important; }

.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  background: var(--white);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--border);
  pointer-events: none;
  line-height: 1.2;
}
.bar-values-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
  font-size: clamp(0.55rem, 0.7vw, 0.65rem);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.bv-line {
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.2px;
}
.bv-line.light { color: var(--green-dark); background: rgba(43,138,62,0.12); }
.bv-line.standard { color: var(--orange-dark); background: rgba(232,125,30,0.14); }
.bar-label {
  margin-top: 8px;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 700;
  color: var(--green-dark);
}
.chart-area.is-monthly .bar-label { font-size: clamp(0.55rem, 0.7vw, 0.68rem); }
.chart-area.is-monthly .bar-value { font-size: clamp(0.55rem, 0.65vw, 0.6rem); padding: 1px 3px; }
.chart-note {
  text-align: center;
  font-size: clamp(0.68rem, 0.8vw, 0.75rem);
  color: var(--text-sub);
  margin-top: 16px;
}

/* =============================
   SERVICES
   ============================= */
.services-section {
  background:
    linear-gradient(180deg, var(--bg-gray) 0%, var(--white) 100%);
  padding: clamp(32px, 4vw, 56px) 0;
  width: 100%;
  position: relative;
}
.services-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--orange), var(--green));
}
.services-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.svc-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s;
  border: 1px solid var(--border);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.svc-card .svc-img {
  position: relative;
  height: clamp(110px, 11vw, 150px);
  overflow: hidden;
}
.svc-card .svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-card .svc-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
  pointer-events: none;
}
.svc-card .svc-num {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--white);
  color: var(--green-dark);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid var(--green);
  z-index: 2;
}
.svc-card .svc-label {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px;
  color: var(--white);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 2;
  letter-spacing: 0.5px;
}
.svc-card .svc-body {
  padding: clamp(10px, 1.2vw, 16px);
  flex: 1;
  border-top: 2px solid var(--green);
}
.svc-card .svc-body p {
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  color: var(--text-sub);
  line-height: 1.55;
}
.svc-card .svc-body .svc-sub {
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: clamp(0.68rem, 0.78vw, 0.76rem);
}

/* =============================
   STRENGTH (弊社サービスの特徴)
   ============================= */
.strength-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--green-bg) 100%);
  padding: clamp(36px, 4.5vw, 60px) 0;
  width: 100%;
}
.strength-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.strength-lead {
  text-align: center;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: var(--text);
  margin-bottom: clamp(24px, 3vw, 36px);
  line-height: 1.8;
}
.strength-lead strong {
  color: var(--orange-dark);
  background: linear-gradient(transparent 60%, rgba(232,125,30,0.2) 60%);
  padding: 0 4px;
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.str-card {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 20px);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.str-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.str-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.str-title {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  min-height: 3.2em;
}
.str-diff {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: clamp(10px, 1.2vw, 14px);
  border-left: 3px solid var(--orange);
}
.str-vs {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 2px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.str-diff p {
  font-size: clamp(0.7rem, 0.82vw, 0.8rem);
  color: var(--text-sub);
  line-height: 1.7;
}

/* Options Box */
.options-box {
  margin-top: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 2px dashed var(--orange);
  border-radius: 12px;
  padding: clamp(20px, 2.4vw, 32px);
  position: relative;
}
.options-head {
  text-align: center;
  margin-bottom: 16px;
}
.options-head .options-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 3px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.options-head h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 2px;
}
.options-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 20px);
}
.options-list li {
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 700;
  border: 1px solid var(--orange);
}
.options-list li::before {
  content: "・";
  font-weight: 900;
}

/* =============================
   FEATURE (設備チェック価値) — moved into plans-row
   ============================= */

.case-head {
  text-align: center;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.case-head .case-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 4px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.case-head h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 2px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.case-card {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(24px, 2.8vw, 36px) clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-card .case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  border-radius: 50%;
  margin-bottom: 14px;
  border: 2px solid var(--green);
}
.case-card .case-tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.case-card .case-title {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.case-card .case-desc {
  font-size: clamp(0.82rem, 0.98vw, 0.92rem);
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.case-card .case-desc strong {
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 1.05em;
}
.case-card .case-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-card .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  padding: 8px 14px;
  background: var(--bg-gray);
  border-radius: 8px;
}
.case-card .result-row.highlight-row {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
}
.case-card .result-row .result-label {
  font-weight: 700;
  letter-spacing: 2px;
}
.case-card .result-row .result-value {
  font-weight: 700;
}
.case-card .result-row.highlight-row .result-value strong {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 900;
  margin-right: 2px;
}

@media (max-width: 720px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* =============================
   TABLE
   ============================= */
.table-section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.table-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  background: var(--white);
  min-width: 680px;
  overflow: hidden;
}
.table-section th,
.table-section td {
  border: 1px solid var(--border);
  padding: clamp(8px, 1vw, 12px) clamp(8px, 1vw, 14px);
  text-align: center;
}
.table-section thead th {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.72rem, 0.85vw, 0.88rem);
  border: 1px solid var(--green-dark);
}
.table-section tbody th {
  background: var(--green-bg);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  color: var(--green-dark);
}
.table-section tbody tr:hover td { background: var(--bg-gray); }
.table-section .check {
  color: var(--orange);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}
.table-section .price-cell {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.table-section .price-cell strong {
  color: var(--orange);
  font-size: 1.05em;
}
.table-section .note {
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  color: var(--text-sub);
  margin-top: 14px;
}

/* =============================
   WORKFLOW
   ============================= */
.workflow-section {
  background:
    linear-gradient(135deg, var(--green-bg) 0%, #d9eddd 100%);
  padding: clamp(32px, 4vw, 56px) 0;
  width: 100%;
  position: relative;
}
.workflow-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
}
.workflow-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.workflow-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 18px);
  justify-content: center;
  position: relative;
}
.wf-card {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(14px, 1.6vw, 22px) clamp(10px, 1.2vw, 16px);
  text-align: center;
  flex: 1;
  max-width: 240px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--green);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.wf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.wf-card .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  width: clamp(38px, 3vw, 48px);
  height: clamp(38px, 3vw, 48px);
  border-radius: 50%;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 900;
  margin: 10px auto 10px;
  box-shadow: 0 4px 12px rgba(43,138,62,0.35);
  border: 3px solid var(--white);
  position: relative;
}
.wf-card .step-num::before {
  content: "STEP";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  color: var(--green-dark);
  letter-spacing: 2px;
  font-weight: 700;
}
.wf-card .gold-frame {
  height: clamp(90px, 10vw, 130px);
  margin-bottom: 10px;
  border-radius: 4px;
}
.wf-card h3 {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.wf-card p {
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  color: var(--text-sub);
  line-height: 1.6;
}
.wf-arrow {
  display: flex;
  align-items: center;
  align-self: center;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid var(--orange);
  flex-shrink: 0;
}

/* =============================
   CTA
   ============================= */
.cta-section {
  background:
    radial-gradient(circle at 20% 50%, var(--green-accent) 0%, transparent 50%),
    linear-gradient(135deg, var(--green) 0%, var(--green-darker) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(32px, 4vw, 52px) var(--gutter);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section::before {
  width: 300px; height: 300px;
  top: -100px; left: -100px;
}
.cta-section::after {
  width: 400px; height: 400px;
  bottom: -150px; right: -150px;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section .cta-sub {
  display: inline-block;
  background: var(--orange);
  padding: 4px 18px;
  border-radius: 30px;
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.cta-section h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: 1px;
}
.cta-section .cta-phone {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta-section .cta-phone .phone-icon {
  color: var(--orange);
  font-size: 0.85em;
}
.cta-section .cta-info {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  opacity: 0.92;
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: #1a1a1a;
  color: var(--white);
  text-align: center;
  padding: clamp(20px, 2.5vw, 32px) var(--gutter);
  width: 100%;
  border-top: 3px solid var(--green);
}
.footer-company {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: 2px;
}
.footer-address {
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  opacity: 0.7;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--white);
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  opacity: 0.8;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; }
.footer-copy {
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  opacity: 0.5;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .workflow-grid { flex-wrap: wrap; }
  .wf-card { max-width: calc(50% - 10px); flex-basis: calc(50% - 10px); }
  .wf-arrow { display: none; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-6px); }
  .sim-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fv-value-card { display: none; }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .strength-grid { grid-template-columns: 1fr; }
  .str-title { min-height: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-card { max-width: 100%; flex-basis: 100%; }
  .sim-card { padding: 16px; gap: 20px; }
  .sim-form,
  .sim-base { grid-template-columns: 1fr; }
  .sim-groups { grid-template-columns: 1fr; }
  .sim-group { padding: 14px; }
  .plan-toggle { grid-template-columns: 1fr; }

  /* 内訳リスト：名前+トグルの行 / 値の行 の 2 段組に切り替え */
  .kv-list { display: block; }
  .kv-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-column: auto;
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 0;
  }
  .kv-item .kv-name { grid-column: 1; grid-row: 1; min-width: 0; }
  .kv-item .kv-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .kv-item .kv-value {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
    width: 100%;
  }
  .kv-item.subtotal { grid-template-rows: auto; padding-top: 12px; }
  .kv-item.subtotal .kv-name { grid-column: 1; grid-row: 1; }
  .kv-item.subtotal .kv-value { grid-column: 2; grid-row: 1; width: auto; }

  .kv-detail-row {
    grid-column: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 6px;
    padding: 8px;
    margin: 0 0 6px;
  }
  .kv-detail-row label { font-size: 0.62rem; letter-spacing: 0; }
  .kv-detail-row .input-wrap.inline.small { padding: 0 6px; }
  .input-wrap.inline { max-width: 100%; }

  /* グラフ：1画面に収める。各バーの値は凡例の累計で代替 */
  .sim-chart { padding: 16px 10px; }
  .chart-area {
    height: 200px;
    gap: 3px;
    padding: 8px 2px 0;
    grid-template-columns: repeat(10, 1fr);
  }
  .chart-area.is-monthly {
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
  }
  .chart-bar .bars-pair { gap: 2px; }
  .chart-area.is-monthly .chart-bar .bars-pair { gap: 1px; }
  .chart-bar .bar { max-width: 12px; }
  .chart-area.is-monthly .chart-bar .bar { max-width: 9px; }
  .bar-values-stack { display: none; }
  .bar-label {
    font-size: 0.6rem;
    margin-top: 6px;
    letter-spacing: 0;
  }
  .chart-area.is-monthly .bar-label {
    font-size: 0.5rem;
    letter-spacing: -0.5px;
  }

  .sec-head h2::before,
  .sec-head h2::after { display: none; }
}

@media (max-width: 380px) {
  .chart-area .chart-bar .bar { max-width: 10px; }
  .chart-area.is-monthly .chart-bar .bar { max-width: 7px; }
  .chart-area.is-monthly .bar-label { font-size: 0.46rem; }
  .kv-name { font-size: 0.78rem; }
}
