@charset "utf-8";

/* ==========================================================================
   LP専用スタイル (css/campaign.css)
   ========================================================================== */

/* 全体レイアウト補助 */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

@media (max-width: 800px) {
  section {
    padding: 40px 0;
  }
}

/* 共通セクション見出し */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-sub-title {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-main-title {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

@media (max-width: 800px) {
  .section-main-title {
    font-size: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   ① ヒーローエリア
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(0, 40, 100, 0.75), rgba(0, 40, 100, 0.75)), url('../img/camp2608-main.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.hero-sub-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffde59;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-period-badge span {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 800px) {
  .hero-section {
    padding: 50px 15px;
  }
  .hero-sub-title {
    font-size: 1rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-period-badge span {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}

/* --------------------------------------------------------------------------
   ② リード文
   -------------------------------------------------------------------------- */
.lead-section {
  background-color: #f8f9fa;
}

.lead-box {
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lead-target {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-align: center;
}

.lead-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

@media (max-width: 800px) {
  .lead-box {
    padding: 20px;
  }
  .lead-target {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   ③ 3大特典
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.benefit-card {
  flex: 1 1 calc(50% - 10px);
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.benefit-card-full {
  flex: 1 1 100%;
}

.benefit-header {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.benefit-number {
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.benefit-body {
  padding: 20px;
  flex-grow: 1;
}

.benefit-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.highlight-red {
  color: var(--color-accent);
}

.benefit-list {
  background-color: #f4f6f9;
  padding: 12px 15px;
  border-radius: 6px;
}

.benefit-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #cccccc;
  font-size: 0.95rem;
}

.benefit-list li:last-child {
  border-bottom: none;
}

.benefit-list strong {
  color: var(--color-accent);
}

.benefit-desc-large {
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 5px;
}

.benefit-note {
  font-size: 0.85rem;
  color: #666666;
  text-align: center;
  margin-top: 15px;
}

@media (max-width: 800px) {
  .benefit-card {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------------------------------
   ④ シミュレーション
   -------------------------------------------------------------------------- */
.simulation-section {
  background-color: #f0f4f8;
}

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sim-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--color-primary);
}

.sim-card-highlight {
  border-top-color: var(--color-accent);
  background-color: #fffdf5;
}

.sim-tag {
  display: inline-block;
  background-color: #666666;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.sim-card-highlight .sim-tag {
  background-color: var(--color-accent);
}

.sim-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.sim-details {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.sim-total {
  background-color: #f8f9fa;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  border-radius: 4px;
}

.sim-total span {
  color: var(--color-accent);
  font-size: 1.25rem;
}

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

/* --------------------------------------------------------------------------
   ⑤ 概要テーブル & CTA
   -------------------------------------------------------------------------- */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.overview-table th,
.overview-table td {
  border: 1px solid #dddddd;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.overview-table th {
  background-color: #f4f6f9;
  color: var(--color-primary-dark);
  width: 22%;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.overview-table td small {
  color: #666666;
}

.cta-container {
  margin-top: 20px;
}

.cta-btn-main {
  background-color: var(--color-accent) !important;
  font-size: 1.2rem !important;
  padding: 20px 40px !important;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3) !important;
}

.cta-btn-main::before {
  background-color: var(--color-accent-hover) !important;
}

@media (max-width: 800px) {
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .overview-table th {
    background-color: var(--color-primary);
    color: #ffffff;
  }
  .cta-btn-main {
    font-size: 1rem !important;
    padding: 16px 20px !important;
  }
}

/* ==========================================
   通常の名刺プラン案内セクション
   ========================================== */
.plan-guide-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.plan-guide-container {
  max-width: 1100px;
  margin: 0 auto;
}

.plan-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #002864;
  margin-bottom: 16px;
}

.plan-lead {
  max-width: 1000px;
  margin: 0 auto 12px auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
  text-align: center;
}

/* ★キャンペーン対象についての注記（赤字でわかりやすく追加） */
.plan-campaign-notice {
  font-size: 0.875rem;
  color: #e60012;
  font-weight: bold;
  margin-bottom: 35px;
  text-align: center;
}

/* 3プランのカードグリッド配置 */
.plan-cards-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

/* 各プランカード */
.plan-card {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.plan-card:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ★オーダーメイドカード用の薄い背景・境界線調整 */
.plan-card.is-custom {
  background-color: #fafafa;
  border-color: #d0d0d0;
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.plan-badge.speed {
  background-color: #e60012;
  color: #ffffff;
}

.plan-badge.cost {
  background-color: #164906;
  color: #ffffff;
}

.plan-badge.off-campaign {
  background-color: #777777;
  color: #ffffff;
}

.plan-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111111;
  text-align: center;
}

.plan-desc {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.plan-spec-list {
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px dashed #dddddd;
  padding-top: 15px;
  margin-bottom: 20px;
}

/* ★オーダーメイド用の注記テキスト */
.custom-notice-text {
  font-size: 0.8rem;
  color: #e60012;
  background-color: #eeeeee;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
}

/* カード内ボタン */
.plan-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  background-color: #00286E;
  color: #ffffff !important;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
}

.plan-btn.btn-custom {
  background-color: #555555;
}

.plan-btn.btn-custom:hover {
  background-color: #333333;
}

/* 総合案内ボタンのセンタリングコンテナ */
.guide-btn-wrapper {
  text-align: center;
  width: 100%;
  margin-top: 30px;
}

.btn-main-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border: 2px solid #00286E;
  background-color: #ffffff;
  color: #00286E !important;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  margin: 0 auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-main-guide:hover {
  background-color: #00286E;
  color: #ffffff !important;
}

/* スマホ表示対応 */
@media (max-width: 800px) {
  .plan-cards-grid {
    flex-direction: column;
  }
  .btn-main-guide {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   スマートフォン・タブレット最適化 (レスポンシブ対応)
   ========================================================================== */

@media (max-width: 800px) {

  /* --- 1. 全体コンテナの幅調整 --- */
  .campaign-container,
  .inner-container,
  .plan-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* --- 2. メインビジュアル / ヒーローエリア --- */
  .hero-inner,
  .main-visual {
    padding: 30px 15px !important;
  }
  
  .main-copy {
    font-size: 1.6rem !important; /* スマホで見やすい文字サイズに調整 */
    line-height: 1.3 !important;
  }
  
  .sub-copy {
    font-size: 1.1rem !important;
  }

  /* --- 3. 三大特典カード（3列→1列に変換） --- */
  .benefits-grid,
  .benefits-container {
    display: flex !important;
    flex-direction: column !important; /* 縦並びに固定 */
    gap: 16px !important;
  }

  .benefit-card {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* --- 4. ケース別シミュレーション（4列→1列に変換） --- */
  .simulation-grid,
  .card-grid {
    display: flex !important;
    flex-direction: column !important; /* 縦並びに固定 */
    gap: 16px !important;
  }

  .simulation-card,
  .case-card {
    width: 100% !important;
  }

  /* --- 5. 通常名刺プラン案内（3列→1列に変換） --- */
  .plan-cards,
  .plan-card-wrapper {
    display: flex !important;
    flex-direction: column !important; /* 縦並びに固定 */
    gap: 20px !important;
  }

  .plan-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .plan-lead {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    font-size: 0.95rem !important;
  }

  /* --- 6. テーブル類（スマホスクロールまたは崩れ防止） --- */
  .summary-table,
  table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important; /* はみ出る場合は横スクロール化 */
    white-space: normal !important;
  }

  .summary-table th,
  .summary-table td {
    display: block !important; /* テーブルをブロック化して1列にする場合 */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .summary-table th {
    background-color: var(--color-primary);
    color: #ffffff;
    text-align: center !important;
  }

  /* --- 7. CTAボタン類の幅いっぱい表示 --- */
  .btn-cta,
  .btn-main-guide,
  .view-all-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px 10px !important;
    font-size: 1rem !important;
    text-align: center !important;
  }
}