/**
 * price-page.css — 価格表ページ共通CSS（全商品共用）
 * price-simulator.css のコンポーネントを前提に、
 * ヒーロー/FAQ/関連リンク/見積モーダル/オプションカード等を定義
 *
 * 旧 tag-price.css から tag-price- → pv2- / #tagPriceSimulator → .price-simulator に統合
 */

/* ==========================================================================
   ページタイトル
   ========================================================================== */
.pv2-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 20px;
  padding: 12px 0 12px 16px;
  line-height: 1.4;
  border-left: 4px solid #ff6633;
}
.pv2-page-title span {
  color: #ff6633;
}
.pv2-page-title small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #888;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   ヒーロー価格表示
   ========================================================================== */
.pv2-hero {
  position: relative;
  text-align: center;
  padding: 32px 25px 26px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #FF6B35 0%, #e85020 100%);
  border-radius: var(--ps-radius-lg, 12px);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255,107,53,0.25);
}
.pv2-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pv2-hero__label {
  font-size: 13px;
  font-weight: bold;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  position: relative; z-index: 1;
}
.pv2-hero__amount {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative; z-index: 1;
}
@media (max-width: 576px) {
  .pv2-hero__amount { font-size: 36px; }
}
.pv2-hero__summary {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  position: relative; z-index: 1;
}
.pv2-hero__summary span { margin: 0 4px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.pv2-cta {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1E293B, #334155);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--ps-radius-md, 8px);
  cursor: pointer;
  transition: var(--ps-transition, all 0.3s ease-in-out);
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(30,41,59,0.3);
}
.pv2-cta:hover {
  background: linear-gradient(135deg, #0f172a, #1E293B);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,41,59,0.4);
}
.pv2-cta--sub {
  background: var(--ps-white, #fff);
  color: var(--ps-black, #2b2b2b);
  border: 2px solid var(--ps-gray-300, #e0e0e0);
  box-shadow: none;
}
.pv2-cta--sub:hover {
  background: var(--ps-gray-100, #f8f9fa);
  color: var(--ps-black, #2b2b2b);
  border-color: var(--ps-black, #2b2b2b);
  box-shadow: var(--ps-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

/* ==========================================================================
   注記
   ========================================================================== */
.pv2-note {
  text-align: center;
  font-size: 13px;
  color: var(--ps-gray-500, #9d9d9d);
  margin: 12px 0 30px;
}

/* ==========================================================================
   FAQ セクション
   ========================================================================== */
.pv2-faq {
  margin: 48px 0;
  padding: 32px 0;
}
.pv2-faq__title {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 28px;
}
.pv2-faq__title i {
  color: #ff6633;
  margin-right: 8px;
}
.pv2-faq .accordion {
  border: none;
  border-left: 3px solid #e0e0e0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  background: #fff;
}
.pv2-faq .accordion:hover {
  border-left-color: #ff6633;
  box-shadow: 0 2px 8px rgba(255,102,51,0.1);
}
.pv2-faq .accordion + .accordion { margin-top: 14px; }
.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #ff6633, #ff8a5a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}
.pv2-faq .accordion-header { padding: 16px 20px; }
.pv2-faq .accordion-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.faq-a-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #f0f0f0;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-answer__text { flex: 1; }
.faq-answer__text a { color: #ff6633; text-decoration: underline; }

/* ==========================================================================
   関連リンクセクション
   ========================================================================== */
.pv2-related {
  margin: 40px 0;
  padding: 24px;
  background: var(--ps-gray-100, #f8f9fa);
  border-radius: var(--ps-radius-md, 8px);
}
.pv2-related__title {
  font-size: 16px;
  font-weight: bold;
  color: var(--ps-black, #2b2b2b);
  margin-bottom: 16px;
}
.pv2-related__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.pv2-related__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ps-white, #fff);
  border: 1px solid var(--ps-gray-300, #e0e0e0);
  border-radius: var(--ps-radius-sm, 5px);
  color: var(--ps-black, #2b2b2b);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: var(--ps-transition, all 0.3s ease-in-out);
}
.pv2-related__link:hover {
  border-color: var(--ps-orange, #ff6633);
  color: var(--ps-orange, #ff6633);
  transform: translateY(-1px);
  box-shadow: var(--ps-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
  text-decoration: none;
}
.pv2-related__link i { color: var(--ps-orange, #ff6633); }

/* ==========================================================================
   見積書ボタン
   ========================================================================== */
.pv2-btn-estimate {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}
.pv2-btn-estimate:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   見積書モーダル
   ========================================================================== */
.pv2-estimate-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.pv2-estimate-modal.is-open { display: flex; }
.pv2-estimate-modal__content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pv2-estimate-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.pv2-estimate-modal__header h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}
.pv2-estimate-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.pv2-estimate-modal__close:hover { color: #333; }
.pv2-estimate-modal__body { padding: 24px; }
.pv2-estimate-preview {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}
.pv2-estimate-preview__header {
  text-align: center;
  margin-bottom: 20px;
}
.pv2-estimate-preview__header h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 8px 0;
}
.pv2-estimate-preview__header p {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}
.pv2-estimate-preview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.pv2-estimate-preview__table th,
.pv2-estimate-preview__table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.pv2-estimate-preview__table thead { background: #f8f9fa; }
.pv2-estimate-preview__table th { font-weight: bold; font-size: 13px; }
.pv2-estimate-preview__table .total-row { background: #f8f9fa; font-weight: bold; }
.pv2-estimate-preview__footer { font-size: 12px; color: #999; text-align: center; }
.pv2-estimate-preview__footer p { margin: 4px 0; }
.pv2-estimate-modal__footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}
.pv2-estimate-modal__footer button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.pv2-btn-modal-print {
  background: linear-gradient(135deg, #FF6B35, #FF8A5A);
  color: #fff;
}
.pv2-btn-modal-print:hover {
  background: linear-gradient(135deg, #e85020, #FF6B35);
}
.pv2-btn-modal-close { background: #f0f0f0; color: #666; }
.pv2-btn-modal-close:hover { background: #e0e0e0; color: #333; }

/* ==========================================================================
   オプションカード（用紙・色数・サイズ選択）
   ========================================================================== */
.option-group { margin-bottom: 16px; }
.option-group__label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
}
.option-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.option-cards--3col { grid-template-columns: repeat(3, 1fr); }
.option-card {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.option-card:hover { border-color: #FF6B35; }
.option-card.is-active { border-color: #FF6B35; background: #fff8f5; }
.option-card__name {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #2b2b2b;
}
.option-card__desc {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* サイズ選択セクション（アコーディオン外） */
.pv2-size-section {
  margin-bottom: 15px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* サイズ画像付きカード */
.option-card--with-img { text-align: center; padding: 10px 8px 12px; }
.option-card__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.option-card--with-img.is-active .option-card__img { transform: scale(1.08); }
.option-card--with-img .option-card__name { font-size: 13px; }
.option-card--with-img .option-card__desc { font-size: 11px; }

/* デザインセレクト選択済みバナー */
.ds-loaded-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 100%);
  border: 1px solid #86cfac;
  border-radius: 10px;
}
.ds-loaded-banner__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2ecc71;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
}
.ds-loaded-banner__body { flex: 1; }
.ds-loaded-banner__title { font-size: 13px; font-weight: 700; color: #1a7a42; }
.ds-loaded-banner__detail { font-size: 12px; color: #4a9c6a; margin-top: 2px; }
.ds-loaded-banner__change {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1a7a42;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid #86cfac;
  border-radius: 6px;
  transition: all 0.2s;
}
.ds-loaded-banner__change:hover { background: #2ecc71; color: #fff; border-color: #2ecc71; }

@media (max-width: 576px) {
  .option-cards--3col { grid-template-columns: repeat(2, 1fr); }
  .option-cards--size { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .option-card--with-img { padding: 8px 4px 10px; }
  .option-card__img { width: 48px; height: 48px; }
  .option-card--with-img .option-card__name { font-size: 11px; }
  .option-card--with-img .option-card__desc { font-size: 10px; }
  .pv2-size-section { padding: 14px 14px; }
  .ds-loaded-banner { flex-wrap: wrap; }
  .ds-loaded-banner__change { width: 100%; text-align: center; }
}

/* ==========================================================================
   スライダー余白圧縮（.price-simulator スコープで上書き）
   ========================================================================== */
.price-simulator .slider-section {
  margin-bottom: 16px;
  padding: 18px 22px;
}
.price-simulator .slider-header { margin-bottom: 12px; }
.price-simulator .slider-range { font-size: 11px; }
.price-simulator .slider { display: block; }

/* ==========================================================================
   比較カードセクション圧縮
   ========================================================================== */
.price-simulator .delivery-comparison {
  margin-bottom: 20px;
  padding: 18px;
}
.price-simulator .comparison-title {
  margin-bottom: 12px;
  font-size: 13px;
}
.price-simulator .comparison-card { padding: 16px 14px; }
.price-simulator .card-price { font-size: 22px; }

/* ==========================================================================
   比較カード — disabled 状態
   ========================================================================== */
.comparison-card--disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.comparison-card--disabled .card-price { color: #c2c2c2; }
.comparison-card--disabled .card-days { font-size: 12px; color: #9d9d9d; }

/* ==========================================================================
   オプション追加セクション
   ========================================================================== */
.option-add-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}
.option-add-section .section-label {
  font-size: 15px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #ff6633;
}
.option-add-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.option-add-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
  margin-bottom: 0;
}
.option-add-item:hover {
  border-color: #ff6633;
  background: #fff;
  box-shadow: 0 2px 8px rgba(255,102,51,0.08);
}
.option-add-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #ff6633;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.option-add-item input[type="checkbox"]:checked + .option-add-item__body { color: #2b2b2b; }
.option-add-item:has(input:checked) { border-color: #ff6633; background: #fff8f5; }
.option-add-item__body { display: flex; flex-direction: column; min-width: 0; }
.option-add-item__name { font-size: 13px; font-weight: 700; color: #2b2b2b; line-height: 1.3; }
.option-add-item__price { font-size: 12px; font-weight: 700; color: #ff6633; margin-top: 2px; }
.option-add-item__desc { font-size: 11px; color: #999; margin-top: 3px; line-height: 1.4; }
.option-add-note { font-size: 11px; color: #999; margin-top: 12px; margin-bottom: 0; line-height: 1.5; }
.option-add-note a { color: #ff6633; text-decoration: underline; }
@media (max-width: 576px) {
  .option-add-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   印刷プレビュー用
   ========================================================================== */
@media print {
  .pv2-hero,
  .slider-section,
  .comparison-cards,
  .pv2-cta { display: none; }
}
