/* ================================================================
   desknet's NEO 料金シミュレーター — simulator.css
   参考：XD https://xd.adobe.com/view/49dadeff-89f4-4e22-a5a0-8367f86d90d4-1c89/
        公式 https://www.desknets.com/neo/price/
   ================================================================ */

/* ========================
   カスタムプロパティ
   ======================== */
:root {
  /* 公式サイト準拠カラー */
  --clr-primary:       #2a3a8e;   /* インディゴブルー（お問合せボタン等） */
  --clr-primary-dark:  #1d2f75;
  --clr-primary-light: #e8ecf8;
  --clr-accent:        #f7db15;   /* 黄色CTA（公式サイト "無料トライアル"） */
  --clr-accent-dark:   #d9bf00;
  --clr-indigo:        #3f51b5;   /* サブカラー */

  /* プランカラー */
  --clr-lite:      #29b6f6;   /* ライト：スカイブルー */
  --clr-std:       #8e44ad;   /* スタンダード：グラデーション代表色 */
  --clr-premium:   #c5a85c;   /* プレミアム：ゴールド */
  --clr-chatlplus: #26a69a;   /* チャットプラス：ティール */

  /* テキスト */
  --clr-text:     #1a2035;
  --clr-text-sub: #5a6480;

  /* 背景・ボーダー */
  --clr-bg:        #eef1fb;   /* ラベンダー系（公式サイト背景）*/
  --clr-surface:   #ffffff;
  --clr-border:    #d1dcee;
  --clr-row-even:  #f4f8fd;

  /* 消費税 */
  --tax-rate: 0.10;

  /* シェイプ */
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* シャドウ */
  --shadow-card:   0 2px 10px rgba(42, 58, 142, 0.08);
  --shadow-sticky: 0 4px 24px rgba(42, 58, 142, 0.16);

  --font: 'Noto Sans JP', sans-serif;
  --tr: 0.2s ease;
}

/* ========================
   リセット
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
}

/* ========================
   ヘッダーバナー（XD参照：ピンク系ポリゴン）
   ======================== */
.sim-page-header {
  background: linear-gradient(135deg,
    #f8d7da 0%, #fce4ec 30%, #e8eaf6 70%, #c5cae9 100%);
  padding: 40px 20px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sim-page-header::before,
.sim-page-header::after {
  content: '';
  position: absolute;
  border-radius: 4px;
  opacity: 0.35;
}
.sim-page-header::before {
  width: 200px; height: 200px;
  top: -60px; left: -40px;
  background: linear-gradient(135deg, #f48fb1, #ce93d8);
  transform: rotate(30deg);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.sim-page-header::after {
  width: 160px; height: 160px;
  bottom: -50px; right: -30px;
  background: linear-gradient(135deg, #90caf9, #ce93d8);
  transform: rotate(-20deg);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.sim-page-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  color: #1e4d8c;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.sim-page-header p {
  font-size: 0.9rem;
  color: var(--clr-text-sub);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* ========================
   シミュレーター外枠
   ======================== */
#se-price-simulator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ========================
   ローディング
   ======================== */
#loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.loading-inner { text-align: center; color: var(--clr-text-sub); font-size: 0.9rem; }
.loading-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: sim-spin 0.8s linear infinite;
}
@keyframes sim-spin { to { transform: rotate(360deg); } }

/* ========================
   メインレイアウト
   ======================== */
.se-sim-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.se-sim-main    { flex: 1; min-width: 300px; }
.se-sim-sidebar { flex: 0 0 300px; position: sticky; top: 20px; align-self: flex-start; }

/* ========================
   セクション共通
   ======================== */
.se-section {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

/* セクションヘッダー */
.se-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: 14px 20px;
  border-bottom: 1px solid var(--clr-border);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* セクション本文 */
.se-section-body { padding: 20px 20px 24px; }

/* ========================
   STEP 1：プランカード
   ======================== */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow: visible; /* ツールチップがカード外にはみ出せるよう維持 */
}

.plan-card { position: relative; }
.plan-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.card-content {
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0 0 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
  position: relative;
  overflow: hidden;
  background: #fff;
}
.card-content:hover {
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42,58,142,0.14);
}

/* プラン別カラーストライプ */
.card-stripe {
  height: 6px;
  width: 100%;
  margin-bottom: 12px;
}
.plan-card[data-plan="lite"]      .card-stripe { background: var(--clr-lite); }
.plan-card[data-plan="standard"]  .card-stripe {
  background: linear-gradient(90deg, #f27a2b, #8e44ad, #1d43b5);
}
.plan-card[data-plan="premium"]   .card-stripe { background: var(--clr-premium); }
.plan-card[data-plan="chatlplus"] .card-stripe {
  background: linear-gradient(90deg, var(--clr-chatlplus), #00796b);
}

.card-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-text);
  margin-bottom: 2px;
  padding: 0 8px;
}
.card-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-sub);
  padding: 0 8px;
  margin-bottom: 4px;
}
.card-price {
  display: block;
  font-size: 0.875rem;
  color: var(--clr-text-sub);
  padding: 0 8px;
}
.card-price strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-primary);
}

/* STEP1 セクションのみ overflow:visible にしてツールチップを上に出せるようにする */
.se-section--plan-cards { overflow: visible; }

/* プラン特徴ツールチップ（カード上部に展開） */
.card-features-tooltip {
  position: absolute;
  bottom: calc(100% + 10px); /* カード上端より上 */
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: min(240px, 90vw);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(42,58,142,0.16);
  padding: 10px 14px 12px;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: left;
}
.plan-card:hover .card-features-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 下向き三角（カードへの矢印） */
.card-features-tooltip::before,
.card-features-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top-color: var(--clr-border);
}
.card-features-tooltip::after {
  margin-left: -7px;
  border-width: 7px;
  border-top-color: #fff;
  margin-top: -1px;
}
.card-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card-features-list li {
  font-size: 11px;
  color: var(--clr-text-sub);
  line-height: 1.5;
  padding: 2px 0 2px 14px;
  position: relative;
}
/* 使えるツール：チェックマーク */
.card-tools-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-primary);
  font-size: 10px;
  font-weight: 700;
}
/* 特徴：中黒 */
.card-desc-list li::before {
  content: '・';
  position: absolute;
  left: -2px;
  color: var(--clr-text-sub);
  font-size: 10px;
}
/* ツールと特徴の間のスペース */
.card-features-spacer {
  height: 6px;
}

/* バッジ（人気No.1等） */
.card-badge {
  position: absolute;
  top: 2px; right: -1px;
  background: linear-gradient(90deg, #f27a2b, #8e44ad);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  white-space: nowrap;
  z-index: 1;
}

/* 選択時 */
.plan-card input[type="radio"]:checked + .card-content {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(42,58,142,0.15);
}
/* チェックマーク */
.plan-card input[type="radio"]:checked + .card-content::after {
  content: '✓';
  position: absolute;
  top: 8px; left: 8px;
  width: 20px; height: 20px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  text-indent: 0;
}

/* ========================
   STEP 2：利用人数
   ======================== */
.user-input-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.range-wrap { position: relative; }
.range-wrap input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--clr-primary) 0%,
    var(--clr-primary) 0%,
    var(--clr-border) 0%
  );
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clr-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(42,58,142,0.3);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--clr-text-sub);
  margin-top: 6px;
}
.number-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  background: #fff;
  color: var(--clr-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr), color var(--tr);
  flex-shrink: 0;
  line-height: 1;
}
.user-btn:hover { background: var(--clr-primary); color: #fff; }
#user-number {
  width: 115px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 4px 8px;
  font-family: var(--font);
  color: var(--clr-primary);
  -moz-appearance: textfield;
  background: var(--clr-primary-light);
}
#user-number:focus { outline: none; border-color: var(--clr-primary); }
#user-number::-webkit-outer-spin-button,
#user-number::-webkit-inner-spin-button { -webkit-appearance: none; }
.unit-label { font-size: 0.9rem; font-weight: 700; color: var(--clr-text-sub); }

/* ========================
   STEP 3：オプション
   ======================== */
.opt-table { width: 100%; }

.opt-item-wrapper {
  border-bottom: 1px solid var(--clr-border);
  transition: opacity var(--tr), background var(--tr);
}
.opt-item-wrapper:last-child { border-bottom: none; }
.opt-item-wrapper.active { background: #edf3fc; }
.opt-item-wrapper.child-indent {
  border-left: 3px solid var(--clr-primary);
  padding-left: 16px;
  background: #f5f7fd;
}
.opt-item-wrapper.child-indent.active { background: #e5edfb; }
.opt-item-wrapper.disabled {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}

.opt-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}
.opt-name-row { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.opt-name { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.opt-name b { font-weight: 700; }
.opt-price-label {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
}
.price-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--clr-primary);
}
.price-unit {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--clr-text-sub);
}
.se-heading-label {
  white-space: nowrap;
  flex-shrink: 0;
}
.se-heading-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--clr-text-sub);
  margin-left: auto;
}
.min-user-note {
  font-size: 0.8rem;
  color: var(--clr-text-sub);
  white-space: nowrap;
}

.option-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
}
.option-tooltip .p-form-1__tooltip-text {
  position: absolute;
  top: 21px;
  left: 0;
  transform: translate(0, -100%);
  padding: 0 0 15px 0;
  z-index: 9999;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  pointer-events: none;
}
.option-tooltip:hover .p-form-1__tooltip-text,
.option-tooltip:focus .p-form-1__tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translate(0, calc(-100% - 15px));
  pointer-events: auto;
}
.option-tooltip .p-form-1__tooltip-text::before {
  content: '';
  position: absolute;
  display: block;
  border-top: 9px solid #fff;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  bottom: 6px;
  right: 19px;
}
.option-tooltip .p-form-1__tooltip-text-inner {
  color: #333;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 12px 9px;
  width: 238px;
  line-height: 1.6;
  font-size: 11px;
  word-break: break-word;
}

@media only screen and (max-width: 47.9375em) {
  .p-form-1__tooltip {
    position: relative;
  }
  .option-tooltip::before,
  .option-tooltip:hover::before,
  .option-tooltip:focus::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .option-tooltip .p-form-1__tooltip-text::before {
    display: block !important;
  }
}

.opt-qty-row {
  padding: 10px 20px 14px;
  display: none;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--clr-text-sub);
  flex-wrap: wrap;
  border-top: 1px dashed var(--clr-border);
}
.opt-item-wrapper.active .opt-qty-row {
  display: flex;
  background: rgba(255, 255, 255, 0.55);
}
.opt-disabled-note {
  display: none;
  font-size: 0.75rem;
  color: var(--clr-text);
  margin-left: 8px;
}
.opt-disabled-note.active { display: inline; }
.opt-annotation,
.opt-min-note {
  display: none;
  font-size: 0.8rem;
  color: #666;
  padding: 4px 20px 8px;
  background: rgba(255, 255, 255, 0.55);
}
.opt-annotation.active,
.opt-min-note.active { display: block; }
.opt-suggestion-wrap {
  display: none;
  background: rgba(255, 255, 255, 0.55);
  padding-bottom: 12px;
}
.opt-suggestion-wrap.active { display: block; }
.opt-suggestion {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin: 0 20px;
  padding: 7px 12px;
  background: #fff8e1;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #5a4000;
  line-height: 1.5;
}
.opt-suggestion::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23f0a020'/%3E%3Ctext x='8' y='12.5' text-anchor='middle' fill='white' font-family='Georgia%2Cserif' font-weight='bold' font-size='10'%3Ei%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.opt-suggestion.active { display: flex; }
.opt-qty-row > span { line-height: 1.4; }

/* チェックボックス → XD参照でチェックボックスに変更 */
.opt-checkbox {
  width: 20px; height: 20px;
  border: 2px solid var(--clr-border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
}

/* トグルスイッチ（既存ロジックと互換のため残す） */
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  cursor: pointer; display: inline-block; flex-shrink: 0;
}
.toggle-switch input {
  position: absolute; inset: 0; opacity: 0;
  width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.slider {
  position: absolute; inset: 0;
  background: #c0cbd8; border-radius: 24px;
  transition: background var(--tr);
}
.slider::before {
  content: ''; position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform var(--tr);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .slider { background: var(--clr-primary); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

/* 数量ステッパー */
.qty-stepper-wrap { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn {
  border: 0;
  background: var(--clr-primary-light);
  border-radius: 50%;
  width: 30px; height: 30px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  color: var(--clr-primary);
  display: inline-flex; align-items: center; justify-content: center;
  user-select: none;
  transition: background var(--tr);
  line-height: 1;
}
.qty-btn:hover { background: var(--clr-primary); color: #fff; }
.qty-btn:active { transform: scale(0.95); }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-display {
  border: 2px solid var(--clr-border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  text-align: center;
  font-weight: 700;
  color: var(--clr-text);
  width: 76px; height: 30px;
  line-height: 24px;
  font-family: var(--font);
  -moz-appearance: textfield;
  cursor: text;
}
.qty-display:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(42, 58, 142, 0.15);
}
.qty-display::-webkit-outer-spin-button,
.qty-display::-webkit-inner-spin-button { -webkit-appearance: none; }

.sync-label {
  font-size: 0.875rem;
  color: var(--clr-text-sub);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none;
}
.sync-label input[type="checkbox"] {
  accent-color: var(--clr-primary);
  width: 14px; height: 14px; cursor: pointer;
}

/* ========================
   サイドバー：お見積もり金額
   ======================== */
.result-box {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticky);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

/* サイドバーヘッダー */
.result-header-bar {
  background: var(--clr-primary);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* 月額 / 年額 タブ */
.result-tab-wrap {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
}
.result-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  transition: background var(--tr), color var(--tr);
}
.result-tab.active {
  background: var(--clr-surface);
  color: var(--clr-primary);
  border-bottom: 3px solid var(--clr-primary);
  margin-bottom: -1px;
}
.result-tab:not(.active) { color: var(--clr-text-sub); }

/* 金額コンテンツ */
.result-body { padding: 16px; }

/* 明細リスト */
.breakdown-list {
  list-style: none;
  margin-bottom: 12px;
  max-height: 180px;
  overflow-y: auto;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  color: var(--clr-text);
  padding: 5px 0;
  border-bottom: 1px dashed #e5e9f2;
  gap: 6px;
}
.breakdown-item:last-child { border-bottom: none; }
.breakdown-item.plan-breakdown-item { flex-direction: column; align-items: stretch; }
.bd-plan-category { display: block; font-size: 0.72rem; color: var(--clr-text-sub); font-weight: 500; margin-bottom: 2px; }
.bd-plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.bd-name { flex: 1; font-size: 0.78rem; }
.bd-amount { font-weight: 600; color: var(--clr-text); white-space: nowrap; font-size: 1rem; }
.bd-yen { font-size: 0.7em; font-weight: 600; }

/* 小計・消費税・合計 */
.result-subtotals {
  border-top: 1px solid var(--clr-border);
  padding-top: 12px;
  margin-top: 8px;
}
.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 4px 0;
  color: var(--clr-text);
}
.subtotal-row .lbl { font-size: 0.78rem; }
.subtotal-row .val { font-weight: 600; color: var(--clr-text); }
.subtotal-row:not(.total-row) .yen { font-size: 0.7em; }
.subtotal-row.total-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--clr-primary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.subtotal-row.total-row .val {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--clr-primary);
}
.yen { font-size: 0.875rem; }

.result-note-text {
  font-size: 0.7rem;
  color: var(--clr-text-sub);
  margin-top: 12px;
  line-height: 1.5;
  padding-left: 1em;
  text-indent: -1em;
}

/* CTAボタン2つ */
.result-cta-wrap {
  padding: 16px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), filter var(--tr);
  border: none;
  text-decoration: none;
}
/* 「この内容でお問合せ」：インディゴ */
.btn-inquiry {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(42,58,142,0.3);
}
.btn-inquiry:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(42,58,142,0.35); }
/* 「概算のお見積りを作成（PDF）」：黄色 */
.btn-pdf {
  background: var(--clr-accent);
  color: var(--clr-text);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.btn-pdf:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* プラン未選択時の非活性 */
.cta-button.disabled,
.cta-button:disabled {
  opacity: 0.4;
  filter: grayscale(0.8);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* ========================
   PDF テンプレート（画面外）
   ======================== */
#pdf-template {
  position: fixed;
  left: -9999px; top: 0;
  width: 780px;
  padding: 40px 44px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #111;
  line-height: 1.5;
}
/* ヘッダー */
.pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid #1a3460;
}
.pdf-title { font-size: 26px; font-weight: 900; color: #1a3460; margin: 0; letter-spacing: 0.04em; }
.pdf-company-block { text-align: right; }
.pdf-logo { height: 34px; display: block; margin-bottom: 8px; }
.pdf-company-info { font-size: 11px; color: #333; line-height: 1.7; text-align: left; }
.pdf-email { color: #1a3460; }
.pdf-issue-date { font-size: 11px; color: #333; margin-top: 8px; text-align: left; }
/* 契約期間 */
.pdf-meta-tbl {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 13px;
}
.pdf-meta-tbl th {
  background: #1a3460;
  color: #fff;
  border: 1px solid #1a3460;
  padding: 6px 10px;
  width: 100px;
  font-weight: 700;
  text-align: left;
}
.pdf-meta-tbl td { padding: 6px 10px; color: #1a3460; font-weight: 700; border: 1px solid #c8d0e0; }
/* 概算お見積額 */
.pdf-estimate-heading { font-size: 11px; font-weight: 700; margin: 0 0 4px; color: #555; letter-spacing: 0.06em; text-transform: uppercase; }
.pdf-estimate-box {
  background: #1a3460;
  border-radius: 4px;
  padding: 12px 20px 10px;
  margin-bottom: 16px;
  text-align: right;
}
.pdf-estimate-num { font-size: 50px; font-weight: 900; color: #fff; letter-spacing: 0.01em; }
.pdf-estimate-unit { display: inline; font-size: 15px; color: rgba(255,255,255,0.8); margin-left: 6px; }
/* 明細テーブル */
.pdf-detail-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}
.pdf-detail-tbl th {
  background: #1a3460;
  border: 1px solid #1a3460;
  padding: 7px 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.pdf-th-price, .pdf-th-amount { width: 80px; }
.pdf-th-qty { width: 96px; }
.pdf-detail-tbl td { border: 1px solid #c8d0e0; padding: 6px 10px; vertical-align: middle; }
.pdf-td-cat {
  background: #dce5f5;
  color: #1a3460;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
  padding: 6px 5px;
}
.pdf-td-price, .pdf-td-amount { width: 80px; }
.pdf-td-qty { width: 96px; }
.pdf-detail-tbl .pdf-td-qty,
.pdf-detail-tbl .pdf-td-amount { text-align: right; }
/* フッター集計 */
.pdf-tfoot-blank { border: none !important; background: transparent !important; }
.pdf-foot-label {
  background: #eef2fb;
  border: 1px solid #c8d0e0;
  padding: 5px 12px;
  width: 100px;
  font-size: 12px;
  white-space: nowrap;
}
.pdf-foot-val { border: 1px solid #c8d0e0; padding: 5px 12px; text-align: right; width: 90px; font-size: 12px; }
.pdf-foot-total-label { background: #1a3460 !important; color: #fff !important; font-weight: 700; border-color: #1a3460 !important; }
.pdf-foot-total-val   { background: #1a3460 !important; color: #fff !important; font-weight: 700; border-color: #1a3460 !important; }
/* 備考 */
.pdf-remarks-title { font-size: 12px; font-weight: 700; margin: 0 0 6px; color: #1a3460; padding-bottom: 4px; border-bottom: 1px solid #1a3460; }
.pdf-remarks-body {
  background: #eef2fb;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11px;
  color: #333;
  line-height: 1.7;
}
.pdf-remarks-body p { margin: 0; font-size: 11px; color: #444; }
.pdf-url { font-size: 10px; color: #1a3460; display: block; padding-left: 1.2em; }

/* ========================
   フォームセクション
   ======================== */
.form-section {
  background: #fff;
  padding: 60px 20px;
  border-top: 1px solid var(--clr-border);
}
.form-section-inner { max-width: 860px; margin: 0 auto; }
.form-section .p-form-1 { border-top: 1px solid rgba(0,0,0,0.12); }
.form-section-title {
  font-size: 1.4rem; font-weight: 900; text-align: center;
  margin-bottom: 10px; color: var(--clr-primary);
}
.form-section-sub {
  text-align: center; font-size: 0.95rem;
  color: var(--clr-text-sub); margin-bottom: 36px;
}
.form-placeholder {
  background: var(--clr-primary-light);
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  color: var(--clr-text-sub);
  font-size: 0.88rem;
  line-height: 2;
}

/* ========================
   レスポンシブ
   ======================== */
@media (max-width: 960px) {
  .se-sim-sidebar { flex: 0 0 100%; }
  .result-box { position: static; }
}
@media (max-width: 640px) {
  .plan-cards { grid-template-columns: repeat(2, 1fr); }
  .se-sim-sidebar { flex: 0 0 100%; }
  /* オプション行：価格を2行目に */
  .opt-main-row { flex-wrap: wrap; }
  .toggle-switch { order: 2; }
  .opt-price-label { order: 3; flex: 0 0 100%; text-align: right; padding-top: 4px; }
  /* STEP3見出し */
  .se-heading { flex-wrap: wrap; }
  .se-heading-note { flex: 0 0 100%; margin-left: 0; margin-top: 2px; }
}
@media (max-width: 360px) {
  .plan-cards { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .opt-main-row { padding: 12px 14px; }
  .opt-qty-row  { padding: 10px 14px 12px; }
}

/* form.css に未定義のラベル注記テキスト */
.p-form-1__label-text2 {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

/* ========================
   最少ユーザー数ノート（＋ボタン右）
   ======================== */
.min-user-note {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-sub);
  white-space: nowrap;
  margin-left: 8px;
  align-self: center;
}

/* ========================
   フォーム ※改行なし・入力欄左端揃え
   ======================== */
/* 「※は入力必須項目です」の ※ が改行されないように */
.form-section p.subText {
  white-space: nowrap;
}
.form-section p.subText span {
  display: inline;
}

/* 各行ラベルの ※ が改行されないように */
.form-section .p-form-1__label.-required .p-form-1__label-text {
  display: inline;
  white-space: nowrap;
}

/* 入力欄の左端を揃える：ラベル幅を固定 */
.form-section .p-form-1__row:not(.-vertical) {
  display: flex;
  align-items: flex-start;
}
.form-section .p-form-1__row:not(.-vertical) > .p-form-1__label {
  flex: 0 0 220px;
  width: 220px;
  box-sizing: border-box;
}
.form-section .p-form-1__row:not(.-vertical) > .p-form-1__field,
.form-section .p-form-1__row:not(.-vertical) > .p-form-1__group {
  flex: 1;
  min-width: 0;
}

/* ========================
   フォーム：スマホ（768px以下）
   ======================== */
@media (max-width: 768px) {
  /* フォームセクション余白 */
  .form-section { padding: 36px 16px; }
  .form-section .p-form-1 { padding: 20px 16px 32px; }

  /* 各行：縦積みに切り替え */
  .form-section .p-form-1__row:not(.-vertical) {
    display: block;
  }
  .form-section .p-form-1__row:not(.-vertical) > .p-form-1__label {
    flex: none;
    width: 100%;
    padding-top: 0;
    margin-bottom: 4px;
  }
  .form-section .p-form-1__row:not(.-vertical) > .p-form-1__field,
  .form-section .p-form-1__row:not(.-vertical) > .p-form-1__group {
    flex: none;
    width: 100%;
  }

  /* グループ（姓・名）：横並び維持だが均等幅に */
  .form-section .p-form-1__group {
    display: flex;
    gap: 8px;
  }
  .form-section .p-form-1__group > .p-form-1__field {
    flex: 1;
    min-width: 0;
  }

  /* 行ラベルのホワイトスペース解除 */
  .form-section .p-form-1__label.-required .p-form-1__label-text {
    white-space: normal;
  }

  /* subText */
  .form-section p.subText { white-space: normal; }

  /* ツールチップテキスト */
  .form-section .p-form-1__tooltip-text { max-width: 260px; }
}

/* ========================
   フッター
   ======================== */
footer .l-footer_sub {
  background: #fff;
  border-top: 1px solid #e5e9f2;
  padding: 14px 20px;
}
footer .l-footer_sub__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer .l-footer_sub_list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
footer .l-footer_sub_listItem {
  display: flex;
  align-items: center;
}
footer .l-footer_sub_listItem + .l-footer_sub_listItem::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #c0c8d8;
  margin: 0 12px;
}
footer .l-footer_sub_listItem a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #333;
}
footer .l-footer_sub_listItem a:hover { text-decoration: underline; }
footer .u-font-footer06 { font-size: 0.75rem; }
footer .c-btn_icon._blank {
  display: inline-flex;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
footer .c-btn_icon._blank svg { width: 100%; height: 100%; fill: #666; }
footer .l-footer_copyright { white-space: nowrap; }
footer .u-font-footer03 { font-size: 0.7rem; color: #666; }
