
/* =====================================================
   Plan Page – redesigned
===================================================== */

/* ---- Hero ---- */
.plan-hero-wrap {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  margin-top: 0px;
  position: relative;
  overflow: hidden;
}
.plan-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center;
  background: #0d1b35;
}
.plan-hero-bg {
  position: absolute; inset: 0;
  background-image: url('/images/mainbnr-plan.webp');
  background-size: cover; background-position: center 40%;
}
.plan-hero-overlay {
  position: absolute; inset: 0;
  /* 左側テキスト周辺だけ暗くし、右側の写真は活かす */
  background: linear-gradient(
    100deg,
    rgba(5, 15, 35, .72) 0%,
    rgba(5, 15, 35, .55) 38%,
    rgba(5, 15, 35, .18) 65%,
    transparent 100%
  );
}
.plan-hero-inner {
  position: relative; z-index: 2;
  max-width: 1170px; margin: 0 auto;
  padding: 58px 24px 52px; width: 100%;
}
.plan-hero-badge {
  display: inline-block;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
.plan-hero h1 {
  font-size: 38px; font-weight: 800; color: #fff;
  line-height: 1.25; margin: 0 0 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 4px 16px rgba(0,0,0,.6);
}
.plan-hero-sub {
  font-size: 16px; color: #fff;
  margin: 0 0 28px; max-width: 500px; line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.plan-hero-prices {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.plan-hero-price-badge {
  background: rgba(0,0,0,.40); border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-weight: 800; font-size: 18px;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.plan-hero-price-badge small { font-size: 11px; font-weight: 400; opacity: .8; display: block; }
@media(max-width:767px){
  .plan-hero { min-height: 260px; }
  .plan-hero-inner { padding: 40px 15px; }
  .plan-hero h1 { font-size: 26px; }
}

/* ---- Intro ---- */
.plan-intro { padding: 40px 0 20px; }
.plan-intro-inner {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.plan-intro-text { flex: 1; min-width: 260px; }
.plan-intro-text h2 { font-size: 17px; font-weight: 700; color: #1e293b; margin: 0 0 12px; line-height: 1.6; }
.plan-intro-text ul { padding-left: 20px; margin: 0; }
.plan-intro-text ul li { font-size: 14px; color: #475569; margin-bottom: 6px; }
.plan-intro-img { width: 200px; flex-shrink: 0; }
@media(max-width:767px){ .plan-intro-img { display: none; } }

/* ---- Section title ---- */
.plan-section-title {
  font-size: 20px; font-weight: 800; color: #0f172a;
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.plan-section-title::before {
  content: ''; display: block;
  width: 4px; height: 22px; background: #1a3a6b; border-radius: 2px;
}
/* 短期セクション用：オレンジ縦棒 */
.plan-section-title.orange::before { background: #ea580c; }

/* ---- Plan cards ---- */
.plan-cards-section { padding: 48px 0; }
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width:767px){ .plan-cards-grid { grid-template-columns: 1fr; } }

.plan-card {
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-decoration: none;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  text-decoration: none;
}
.plan-card-top {
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff;
}
.plan-card-name {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  opacity: .85; background: rgba(255,255,255,.15); padding: 3px 10px; border-radius: 20px;
}
.plan-card-price-wrap {
  display: flex; align-items: flex-end; gap: 2px; margin: 8px 0 4px;
}
.plan-card-dollar { font-size: 22px; font-weight: 700; line-height: 1; padding-bottom: 10px; }
.plan-card-amount { font-size: 62px; font-weight: 900; line-height: 1; }
.plan-card-mo { font-size: 14px; opacity: .8; padding-bottom: 8px; }
.plan-card-rows { flex: 1; }
.plan-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  min-height: 52px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13.5px;
}
.plan-card-row:last-child { border-bottom: none; }
.plan-card-row-label {
  color: #475569; font-weight: 600;
  display: flex; flex-direction: row; align-items: flex-start; gap: 6px;
}
.plan-card-row-label > i {
  margin-top: 2px; flex-shrink: 0; width: 14px; text-align: center;
}
.plan-card-row-label-text {
  display: flex; flex-direction: column; gap: 1px;
}
.plan-card-row-label .row-sub {
  font-size: 10.5px; color: #94a3b8; font-weight: 400;
  min-height: 14px;
}
.plan-card-row-val { font-weight: 700; color: #1e293b; flex-shrink: 0; font-size: 14px; }
.plan-card-row-val.green { color: #16a34a; }
.plan-card-row-val.check i { color: #16a34a; font-size: 16px; }
/* 非対応行 */
.plan-card-row-val.na {
  color: #cbd5e1; font-weight: 500; font-size: 13px;
}
.plan-card-cta {
  margin: 16px; padding: 13px;
  border-radius: 10px; text-align: center;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  border: 2px solid; display: block;
  transition: all .15s; text-decoration: none;
}
.plan-card-cta:hover { text-decoration: none; opacity: .88; }
.plan-card-popular {
  background: linear-gradient(90deg,#fef3c7,#fde68a);
  text-align: center;
  padding: 6px; font-size: 12px; font-weight: 800; color: #92400e;
  letter-spacing: .05em;
}
/* $30 ライトプラン用バッジ: 青系 */
.pc2 .plan-card-popular {
  background: linear-gradient(90deg,#dbeafe,#bfdbfe);
  color: #1e40af;
}
/* $45 ビジネスプラン用バッジ: 緑系 */
.pc3 .plan-card-popular {
  background: linear-gradient(90deg,#dcfce7,#bbf7d0);
  color: #166534;
}
/* $60 プレミアムプラン用バッジ: ピンク系 */
.pc4 .plan-card-popular {
  background: linear-gradient(90deg,#fce7f3,#fbcfe8);
  color: #9d174d;
}

/* plan color variants */
.pc2 .plan-card-top { background: linear-gradient(145deg,#2aa8e8,#1a3a6b); }
.pc2 .plan-card-cta { color: #fff; background: linear-gradient(135deg,#2aa8e8,#1a3a6b); border-color: transparent; }
.pc2 .plan-card-cta:hover { background: #1a3a6b; }
.pc2:hover { border-color: #2aa8e8; }

.pc3 .plan-card-top { background: linear-gradient(145deg,#34d399,#16a34a); }
.pc3 .plan-card-cta { color: #fff; background: linear-gradient(135deg,#34d399,#16a34a); border-color: transparent; }
.pc3 .plan-card-cta:hover { background: #16a34a; }
.pc3:hover { border-color: #16a34a; }

.pc4 { border: 2px solid #ec4899; box-shadow: 0 4px 20px rgba(236,72,153,.18); }
.pc4 .plan-card-top { background: linear-gradient(145deg,#f472b6,#be185d); }
.pc4 .plan-card-cta { color: #fff; background: linear-gradient(135deg,#f472b6,#be185d); border-color: transparent; }
.pc4 .plan-card-cta:hover { background: #be185d; }
.pc4:hover { border-color: #be185d; box-shadow: 0 16px 40px rgba(236,72,153,.28); }

/* ---- Family plan banner ---- */
.plan-family-banner {
  display: flex; align-items: center; gap: 20px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.plan-family-icon {
  font-size: 32px; color: #1a3a6b; flex-shrink: 0;
}
.plan-family-text { flex: 1; min-width: 200px; }
.plan-family-text h4 {
  font-size: 15px; font-weight: 800; color: #1a3a6b;
  margin: 0 0 4px;
}
.plan-family-text p {
  font-size: 13px; color: #475569; margin: 0; line-height: 1.6;
}
.plan-family-price {
  text-align: center; flex-shrink: 0;
}
.plan-family-price .price-num {
  font-size: 28px; font-weight: 800; color: #1a3a6b; line-height: 1;
}
.plan-family-price .price-label {
  font-size: 11px; color: #64748b; margin-top: 3px;
}

/* ---- Notes ---- */
.plan-notes {
  font-size: 12.5px; color: #94a3b8;
  background: #f8fafc; border-radius: 10px;
  padding: 16px 20px; margin-top: 8px;
}
.plan-notes li { margin-bottom: 6px; }

/* ---- Short-term SIM section ---- */
.plan-short-section { padding: 0 0 52px; }
.plan-short-inner {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.plan-short-header {
  background: linear-gradient(135deg, #1a3a6b, #1e91d0);
  padding: 20px 28px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.plan-short-header-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.plan-short-header-text { flex: 1; min-width: 200px; }
.plan-short-header-text h3 {
  color: #fff; font-size: 17px; font-weight: 800;
  margin: 0 0 4px; line-height: 1.4;
}
.plan-short-header-text p {
  color: rgba(255,255,255,.85); font-size: 13px; margin: 0;
}
.plan-short-body {
  padding: 24px 28px;
  display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start;
}
.plan-short-features {
  flex: 1; min-width: 220px;
}
.plan-short-features ul {
  margin: 0; padding: 0; list-style: none;
}
.plan-short-features ul li {
  font-size: 13.5px; color: #1e293b;
  padding: 5px 0 5px 22px; position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.plan-short-features ul li:last-child { border-bottom: none; }
.plan-short-features ul li::before {
  content: '\f00c';
  font-family: FontAwesome;
  position: absolute; left: 0; top: 6px;
  color: #1e91d0; font-size: 12px;
}
.plan-short-features ul li strong { color: #1a3a6b; }
.plan-short-periods {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}
.plan-short-period-tag {
  background: #f0f7ff; border: 1.5px solid #bfdbfe;
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #1a3a6b;
}
.plan-short-cta-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; flex-shrink: 0; min-width: 180px;
}
.plan-short-price-hint {
  text-align: center;
  font-size: 12px; color: #1e293b;
  background: #eff6ff; border-radius: 8px;
  padding: 8px 14px; font-weight: 600;
  border: 1px solid #bfdbfe;
}
.plan-short-price-hint span {
  display: block; font-size: 22px; font-weight: 800; color: #1a3a6b;
}
.plan-short-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1a3a6b, #1e91d0);
  color: #fff; text-decoration: none;
  border-radius: 10px; padding: 13px 26px;
  font-size: 14px; font-weight: 800;
  text-align: center; width: 100%;
  transition: opacity .18s, transform .15s;
  box-shadow: 0 4px 14px rgba(26,58,107,.25);
}
.plan-short-btn:hover {
  opacity: .9; transform: translateY(-1px);
  text-decoration: none; color: #fff;
}
.plan-short-btn .fa { margin-right: 6px; }
.plan-short-note {
  font-size: 11.5px; color: #64748b; text-align: center;
  line-height: 1.5;
}
@media(max-width:767px){
  .plan-short-header { padding: 16px 18px; }
  .plan-short-body { padding: 18px 18px; gap: 20px; }
  .plan-short-cta-wrap { width: 100%; }
  .plan-short-btn { width: 100%; }
}

/* ---- Data usage table ---- */
.plan-data-section { padding: 48px 0 64px; }
.plan-data-table {
  width: 100%; border-collapse: collapse;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  font-size: 14px;
}
.plan-data-table thead th {
  background: #1a3a6b; color: #fff;
  padding: 14px 20px; font-weight: 700; text-align: center;
  letter-spacing: .04em;
}
.plan-data-table thead th:first-child { text-align: left; }
.plan-data-table tbody td {
  padding: 12px 20px; border-bottom: 1px solid #e8edf4;
  text-align: center; color: #475569;
}
.plan-data-table tbody td:first-child { text-align: left; font-weight: 500; color: #1e293b; }
.plan-data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.plan-data-table tbody tr:hover td { background: #eff6ff; transition: background .12s; }
