/*
 * pricing.css — transer.io 料金ページ専用スタイル
 * 共通スタイルは app.css を参照
 */

html { scroll-behavior: smooth; }
body { background: var(--bg); }

/* ── ナビ ── */
.pricing-nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.pricing-nav-logo {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  letter-spacing: -.02em; text-decoration: none;
}
.pricing-nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.pricing-nav-links a { color: rgba(255,255,255,.75); font-size: .88rem; text-decoration: none; transition: color .2s; }
.pricing-nav-links a:hover { color: #fff; }
.pricing-nav-cta {
  background: var(--blue); color: #fff !important;
  padding: .42rem 1.1rem; border-radius: 7px;
  font-weight: 600; font-size: .86rem !important;
}
.pricing-nav-cta:hover { background: var(--blue-h) !important; }

/* ── ヒーロー ── */
.pricing-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3558 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.pricing-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.pricing-hero h1 span { color: #60A5FA; }
.pricing-hero p {
  font-size: 1rem; color: rgba(255,255,255,.7);
  max-width: 520px; margin: 0 auto 2rem; line-height: 1.8;
}

/* ── 無料トライアルバナー ── */
.trial-banner {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  border-radius: 12px;
  padding: .85rem 1.5rem;
  color: #fff;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.trial-badge {
  background: #2563EB;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.trial-banner strong { color: #93C5FD; }

/* ── メインコンテンツ ── */
.pricing-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── セクションタイトル ── */
.section-label {
  font-size: .75rem; font-weight: 700;
  color: var(--blue); letter-spacing: .12em;
  text-transform: uppercase; text-align: center;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; color: var(--navy);
  text-align: center; margin-bottom: .75rem;
  line-height: 1.3;
}
.section-desc {
  font-size: .95rem; color: var(--txt2);
  text-align: center; max-width: 560px;
  margin: 0 auto 3rem; line-height: 1.8;
}

/* ── 選ばれる理由カード ── */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.reason-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.reason-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.reason-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
}
.reason-tag {
  display: inline-block;
  background: var(--blue-lite);
  color: var(--blue);
  font-size: .72rem; font-weight: 700;
  padding: .18rem .6rem; border-radius: 100px;
  letter-spacing: .04em; margin-bottom: .75rem;
}
.reason-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: .5rem;
}
.reason-desc {
  font-size: .88rem; color: var(--txt2); line-height: 1.75;
}
.reason-vs {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--txt3); line-height: 1.6;
}
.reason-vs strong { color: var(--txt); }

/* ── 比較表 ── */
.compare-wrap { overflow-x: auto; margin-bottom: 5rem; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem; min-width: 600px;
}
.compare-table th {
  padding: .85rem 1.1rem;
  font-size: .8rem; font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.compare-table th:first-child { text-align: left; color: var(--txt3); }
.compare-table th:not(:first-child) { text-align: center; min-width: 120px; }
.col-transer {
  background: var(--blue-lite);
  color: var(--blue) !important;
  border-radius: 8px 8px 0 0;
}
.compare-table td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--txt2);
}
.compare-table td:first-child { font-weight: 500; color: var(--txt); }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:hover td { background: #FAFBFF; }
.compare-table tr:hover td.td-transer { background: #E0EEFF; }
.td-transer { background: #EFF6FF; }
.mark-good { color: var(--green); font-size: 1rem; font-weight: 700; }
.mark-mid  { color: var(--amber); font-size: .85rem; }
.mark-bad  { color: var(--red);   font-size: 1rem; }

/* ── プラン ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  transition: transform .2s;
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card.popular {
  border: 2px solid var(--blue);
  box-shadow: 0 4px 28px rgba(37,99,235,.13);
}
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .22rem .9rem; border-radius: 100px;
  white-space: nowrap; letter-spacing: .03em;
}
.plan-name { font-size: .9rem; font-weight: 600; color: var(--txt2); margin-bottom: .4rem; }
.plan-price {
  font-size: 2.4rem; font-weight: 900;
  color: var(--navy); line-height: 1; margin-bottom: .3rem;
}
.plan-price sub { font-size: 1rem; font-weight: 400; color: var(--txt2); vertical-align: baseline; }
.plan-limit {
  font-size: .85rem; color: var(--txt2);
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.plan-limit strong { color: var(--navy); }
.plan-feats { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.plan-feats li { font-size: .88rem; color: var(--txt2); display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.plan-feats li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.plan-feats li.over { color: var(--txt3); }
.plan-feats li.over::before { content: '+'; color: var(--amber); }

.btn-plan {
  width: 100%; padding: .78rem; border-radius: 9px;
  font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-plan-out { background: var(--white); border: 2px solid var(--blue); color: var(--blue); }
.btn-plan-out:hover { background: var(--blue-lite); }
.btn-plan-fill { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-plan-fill:hover { background: var(--blue-h); }

/* ── 超過課金の説明 ── */
.overage-note {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 5rem;
  font-size: .88rem;
  color: var(--txt2);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.75;
}
.overage-note strong { color: var(--navy); }
.overage-note a { color: var(--blue); }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .75rem; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 1rem 1.25rem; text-align: left;
  font-family: inherit; font-size: .93rem; font-weight: 600;
  color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg); }
.faq-q.open { background: var(--blue-lite); color: var(--blue); }
.faq-chevron { font-size: .75rem; color: var(--txt3); transition: transform .25s; flex-shrink: 0; }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  display: none; padding: 0 1.25rem 1rem;
  font-size: .9rem; color: var(--txt2); line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-a.open { display: block; }

/* ── CTA ── */
.pricing-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3558 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.pricing-cta h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.pricing-cta p { font-size: .95rem; color: rgba(255,255,255,.68); margin-bottom: 1.75rem; line-height: 1.7; }
.btn-cta-primary {
  display: inline-block; background: var(--blue); color: #fff;
  padding: .82rem 2.4rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transition: background .2s, transform .15s;
  border: none; cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn-cta-primary:hover { background: var(--blue-h); transform: translateY(-1px); }

/* ── フッター ── */
.pricing-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.75rem 2.5rem;
}
.pricing-footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255,255,255,.38);
}
.pricing-footer-links { display: flex; gap: 1.5rem; }
.pricing-footer-links a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.pricing-footer-links a:hover { color: rgba(255,255,255,.8); }

/* ── レスポンシブ ── */
@media (max-width: 640px) {
  .pricing-nav { padding: 0 1.25rem; }
  .pricing-body { padding: 2.5rem 1.25rem 4rem; }
  .trial-banner { flex-direction: column; gap: .4rem; text-align: center; }
}
