/* =====================================================
   pages/ipass.css — ITパスポート対策講座ページ固有スタイル
   ===================================================== */

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30,58,95,.92) 0%, rgba(74,144,217,.88) 60%, rgba(124,184,240,.85) 100%), image-set(url('../images/books.webp') type('image/webp'), url('../images/books.jpg') type('image/jpeg')) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero .inner { max-width: 800px; text-align: center; position: relative; z-index: 1; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 5px 18px; border-radius: 50px; font-size: .78em; font-weight: 600;
  margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: "Zen Maru Gothic", sans-serif; font-size: 2.2em; color: #fff;
  line-height: 1.35; margin-bottom: 16px; font-weight: 900; text-wrap: balance;
}
.hero h1 .accent { color: #f5c542; }
.hero-lead { color: rgba(255,255,255,.8); font-size: 1em; margin-bottom: 32px; line-height: 1.9; }
.btn-hero {
  display: inline-block; background: var(--accent); color: #fff; padding: 15px 44px;
  border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1em;
  box-shadow: 0 4px 16px rgba(240,160,80,.35);
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-hero:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ===== Target ===== */
.target { padding: 80px 0; background: #fff; }
.target-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.target-card {
  background: var(--bg-alt); border-radius: 16px; padding: 36px 28px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.target-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.target-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.target-icon.hs { background: #e3f5ec; color: #27ae60; }
.target-icon.univ { background: #e8f0fd; color: var(--secondary); }
.target-icon.adult { background: #fdf0e3; color: var(--accent); }
.target-card h3 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1.05em; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.target-card p { font-size: .88em; color: var(--text-light); line-height: 1.8; }

/* ===== Features ===== */
.features { padding: 80px 0; background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid #eaeff5; border-radius: 16px; padding: 36px 28px;
  text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.feature-icon.blue { background: #e8f0fd; color: var(--secondary); }
.feature-icon.green { background: #e3f5ec; color: #27ae60; }
.feature-icon.orange { background: #fdf0e3; color: var(--accent); }
.feature-card h3 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1.02em; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: .88em; color: var(--text-light); line-height: 1.8; }

/* ===== Synergy ===== */
.synergy { padding: 80px 0; background: #fff; }
.synergy-content { max-width: 800px; margin: 0 auto; }
.synergy-lead { text-align: center; font-size: 1em; color: var(--text); margin-bottom: 32px; line-height: 2; }
.synergy-lead strong { color: var(--secondary); }
.synergy-table-wrap { overflow-x: auto; }
.synergy-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.synergy-table th, .synergy-table td { border: 1px solid #eaeff5; padding: 12px 16px; font-size: .88em; }
.synergy-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--primary); text-align: center; }
.synergy-table tbody td { color: var(--text-light); }
.synergy-table tbody td:first-child { font-weight: 600; color: var(--text); }
.synergy-table .check { text-align: center; color: #27ae60; font-weight: 700; font-size: 1.1em; }

/* ===== Curriculum ===== */
.curriculum { padding: 80px 0; background: var(--bg-alt); }
.cur-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.cur-card {
  background: #fff; border-radius: 14px; padding: 28px 24px;
  border-left: 4px solid var(--secondary); box-shadow: var(--shadow);
}
.cur-card .cur-phase { font-size: .72em; font-weight: 700; color: var(--secondary); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.cur-card h3 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1em; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.cur-card p { font-size: .86em; color: var(--text-light); line-height: 1.8; }
.cur-note { text-align: center; margin-top: 28px; font-size: .88em; color: var(--text-light); }

/* ===== Pricing ===== */
.pricing { padding: 80px 0; background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.price-card {
  background: var(--bg-alt); border-radius: 16px; padding: 36px 28px; text-align: center;
  border: 1px solid #eaeff5; position: relative; transition: transform .25s ease;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.recommended { border: 2px solid var(--secondary); }
.price-card.recommended::before {
  content: "おすすめ"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: #fff; font-size: .72em; font-weight: 700;
  padding: 3px 16px; border-radius: 50px;
}
.price-card h3 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1.05em; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.price-card .price-target { font-size: .78em; color: var(--text-light); margin-bottom: 14px; }
.price-card .price { font-size: 2em; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.price-card .price small { font-size: .36em; font-weight: 500; color: var(--text-light); }
.price-card .price-detail { font-size: .8em; color: var(--text-light); margin-top: 6px; line-height: 1.7; }
.price-card .price-per { font-size: .88em; color: var(--secondary); font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.price-note { text-align: center; margin-top: 24px; font-size: .84em; color: var(--text-light); line-height: 1.8; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ===== Subsidy ===== */
.subsidy { padding: 48px 0; background: var(--bg-alt); }
.subsidy-box {
  max-width: 700px; margin: 0 auto; background: #fff; border-radius: 14px;
  padding: 28px 32px; border-left: 5px solid #27ae60; box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
}
.subsidy-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #e3f5ec; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.subsidy-body h3 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1em; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.subsidy-body p { font-size: .86em; color: var(--text-light); line-height: 1.8; }

/* ===== FAQ (ipass-specific) ===== */
.faq { padding: 80px 0; background: var(--bg-alt); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid #eaeff5; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 24px; font-weight: 700; color: var(--primary); font-size: .95em;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  background: #fff; user-select: none; width: 100%; text-align: left; border: none;
}
.faq-q::before {
  content: "Q"; background: var(--secondary); color: #fff; width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .76em; font-weight: 700; flex-shrink: 0;
}
.faq-q::after { content: "+"; margin-left: auto; font-size: 1.3em; color: var(--text-light); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 24px 0 60px;
  font-size: .88em; color: var(--text-light); line-height: 1.85;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 18px 60px; }

/* ===== CTA ===== */
.cta {
  padding: 68px 20px; text-align: center;
  background: linear-gradient(135deg, rgba(30,58,95,.9), rgba(74,144,217,.88)), image-set(url('../images/desk.webp') type('image/webp'), url('../images/desk.jpg') type('image/jpeg')) center/cover no-repeat;
}
.cta h2 { font-family: "Zen Maru Gothic", sans-serif; font-size: 1.5em; color: #fff; margin-bottom: 8px; font-weight: 800; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: .92em; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn-cta-primary {
  display: inline-block; background: var(--accent); color: #fff; padding: 15px 44px;
  border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.05em;
  box-shadow: 0 4px 16px rgba(240,160,80,.3);
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-cta-line {
  display: inline-block; background: var(--line); color: #fff; padding: 15px 44px;
  border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.05em;
  transition: background-color .3s ease, transform .3s ease;
}
.btn-cta-line:hover { background: #05a848; }
.cta-note { color: rgba(255,255,255,.7); font-size: .8em; }
.cta-note a { color: #fff; text-decoration: underline; }

/* ===== Footer (ipass-specific override) ===== */
footer {
  background: var(--primary); color: #6a7a9e;
  padding: 36px 20px; font-size: .8em; text-align: center;
}
footer a { color: #8a9ac0; text-decoration: none; }
footer .footer-links { margin-bottom: 10px; }
footer .footer-links a { margin: 0 10px; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .3s ease, transform .3s ease;
  z-index: 180; box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 1.6em; }
  .target-grid, .features-grid { grid-template-columns: 1fr; }
  .cur-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .subsidy-box { flex-direction: column; text-align: center; }
}
