/**
 * タグ価格表ページ専用CSS
 * price-simulator.css のコンポーネントを前提とし、
 * Figma Makeデザインに準拠した追加スタイルのみ定義
 */

/* ==========================================================================
   ページタイトル（コンパクトh1）
   ========================================================================== */
.tag-price-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.4;
}
.tag-price-page-title span {
  color: #ff6633;
}

/* ==========================================================================
   ヒーロー価格表示 — price-simulator-demo.html準拠（オレンジグラデ・白文字）
   ========================================================================== */
.tag-price-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);
}

.tag-price-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;
}

.tag-price-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;
}

.tag-price-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) {
  .tag-price-hero__amount {
    font-size: 36px;
  }
}

.tag-price-hero__summary {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  position: relative; z-index: 1;
}

.tag-price-hero__summary span {
  margin: 0 4px;
}

/* ==========================================================================
   CTA — price-simulator-demo準拠（オレンジ全幅ボタン）
   ========================================================================== */
.tag-price-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);
}

.tag-price-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);
}

.tag-price-cta--sub {
  background: var(--ps-white, #fff);
  color: var(--ps-black, #2b2b2b);
  border: 2px solid var(--ps-gray-300, #e0e0e0);
  box-shadow: none;
}

.tag-price-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));
}

/* ==========================================================================
   注記 — Figma準拠（グレー小文字・中央寄せ）
   ========================================================================== */
.tag-price-note {
  text-align: center;
  font-size: 13px;
  color: var(--ps-gray-500, #9d9d9d);
  margin: 12px 0 30px;
}


/* ==========================================================================
   FAQ セクション — リデザイン
   ========================================================================== */
.tag-price-faq {
  margin: 48px 0;
  padding: 32px 0;
}

.tag-price-faq__title {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 28px;
}
.tag-price-faq__title i {
  color: #ff6633;
  margin-right: 8px;
}

/* アコーディオン上書き */
.tag-price-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;
}
.tag-price-faq .accordion:hover {
  border-left-color: #ff6633;
  box-shadow: 0 2px 8px rgba(255,102,51,0.1);
}
.tag-price-faq .accordion + .accordion {
  margin-top: 14px;
}

/* Q アイコン */
.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;
}

/* ヘッダー調整 */
.tag-price-faq .accordion-header {
  padding: 16px 20px;
}
.tag-price-faq .accordion-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* A アイコン + 回答テキスト */
.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;
}

/* ==========================================================================
   関連リンクセクション
   ========================================================================== */
.tag-price-related {
  margin: 40px 0;
  padding: 24px;
  background: var(--ps-gray-100, #f8f9fa);
  border-radius: var(--ps-radius-md, 8px);
}

.tag-price-related__title {
  font-size: 16px;
  font-weight: bold;
  color: var(--ps-black, #2b2b2b);
  margin-bottom: 16px;
}

.tag-price-related__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tag-price-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);
}

.tag-price-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;
}

.tag-price-related__link i {
  color: var(--ps-orange, #ff6633);
}




/* ==========================================================================
   見積書ボタン
   ========================================================================== */
.tag-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;
}
.tag-btn-estimate:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   見積書モーダル
   ========================================================================== */
.tag-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;
}
.tag-estimate-modal.is-open {
  display: flex;
}
.tag-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);
}
.tag-estimate-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.tag-estimate-modal__header h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}
.tag-estimate-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.tag-estimate-modal__close:hover {
  color: #333;
}
.tag-estimate-modal__body {
  padding: 24px;
}
.tag-estimate-preview {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}
.tag-estimate-preview__header {
  text-align: center;
  margin-bottom: 20px;
}
.tag-estimate-preview__header h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 8px 0;
}
.tag-estimate-preview__header p {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}
.tag-estimate-preview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.tag-estimate-preview__table th,
.tag-estimate-preview__table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.tag-estimate-preview__table thead {
  background: #f8f9fa;
}
.tag-estimate-preview__table th {
  font-weight: bold;
  font-size: 13px;
}
.tag-estimate-preview__table .total-row {
  background: #f8f9fa;
  font-weight: bold;
}
.tag-estimate-preview__footer {
  font-size: 12px;
  color: #999;
  text-align: center;
}
.tag-estimate-preview__footer p {
  margin: 4px 0;
}
.tag-estimate-modal__footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}
.tag-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;
}
.tag-btn-modal-print {
  background: linear-gradient(135deg, #FF6B35, #FF8A5A);
  color: #fff;
}
.tag-btn-modal-print:hover {
  background: linear-gradient(135deg, #e85020, #FF6B35);
}
.tag-btn-modal-close {
  background: #f0f0f0;
  color: #666;
}
.tag-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;
}

@media (max-width: 576px) {
  .option-cards--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}


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

/* ==========================================================================
   比較カードセクション圧縮
   ========================================================================== */
#tagPriceSimulator .delivery-comparison {
  margin-bottom: 20px;
  padding: 18px;
}
#tagPriceSimulator .comparison-title {
  margin-bottom: 12px;
  font-size: 13px;
}
#tagPriceSimulator .comparison-card {
  padding: 16px 14px;
}
#tagPriceSimulator .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;
}

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