/* =========================================
   css/sougo_bace.css
   PDF配色ベース＋C-4全部盛りデザイン
========================================= */

/* リセット・基本 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", "游ゴシック体",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 70px 0;
}

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 600;
  color: #003366;
}

/* リンク・ボタン */
a {
  color: #005bac;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* CTAボタン */
.cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin: 8px 6px 0 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta.primary {
  background-color: #005bac;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 91, 172, 0.35);
}

.cta.secondary {
  background-color: #e0e6f0;
  color: #003366;
}

.cta.primary:hover,
.cta.secondary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  text-decoration: none;
}

/* 背景装飾（丸・波） */
.bg-deco {
  position: fixed;
  z-index: -2;
  pointer-events: none;
}

.bg-deco--circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,91,172,0.18), transparent 70%);
  top: -60px;
  right: -40px;
}

.bg-deco--wave {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 0 0, rgba(0,91,172,0.08), transparent 60%);
  bottom: -200px;
  left: -120px;
}

/* 見出し下の飾り線 */
.section-underline {
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #005bac, #00a0e9);
  margin-bottom: 20px;
}

/* ============================
   ファーストビュー
============================ */
.fv {
  position: relative;
  background: linear-gradient(135deg, #e6edf7 0%, #ffffff 40%, #e6edf7 100%);
  padding: 90px 0 80px;
  overflow: hidden;
}

.fv-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.fv-text .label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #ffffff;
  background-color: #005bac;
  border-radius: 999px;
  margin-bottom: 12px;
}

.fv-text h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.fv-text .sub {
  font-size: 0.95rem;
  color: #444444;
  margin-bottom: 18px;
}

.fv-illustration {
  position: absolute;
  right: 3%;
  bottom: -20px;
  width: 360px;
  max-width: 42%;
  z-index: 2;
  pointer-events: none;
  animation-delay: 0.3s;
}

.fv-illustration img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(135deg, #ffffff, #e6edf7);
  filter:
    drop-shadow(0 16px 32px rgba(0,0,0,0.25))
    drop-shadow(0 0 26px rgba(0,91,172,0.35))
    brightness(1.06);
}

/* 斜めブロック */
.fv-diagonal {
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 140%;
  height: 160px;
  background: linear-gradient(135deg, rgba(0,91,172,0.12), transparent);
  transform: rotate(-4deg);
  z-index: -1;
}

/* ============================
   新制度に伴う見直し
============================ */
.background {
  background-color: #f7f8fb;
}

.background h2 {
  text-align: left;
  margin-bottom: 6px;
}

.bg-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 32px;
  align-items: center;
}

.bg-visual-box {
  border-radius: 14px;
  border: 1px solid #c5d0e3;
  background: linear-gradient(135deg, #ffffff 0%, #e6edf7 100%);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bg-visual-title {
  font-size: 0.9rem;
  color: #005bac;
  margin-bottom: 8px;
}

.bg-visual-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
}

.bg-visual-icon {
  font-size: 2.4rem;
  margin-top: 10px;
}

.bg-visual-box::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(0,91,172,0.08);
  bottom: -60px;
  right: -40px;
}

.bg-text p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 4px solid #005bac;
  background-color: #ffffff;
  font-size: 0.9rem;
  color: #444444;
}

/* ============================
   教材カード イラスト枠 最終版
============================ */
.item-illust {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #ffffff, #f0f4fa);
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 26px rgba(0,0,0,0.06),
    0 10px 22px rgba(0,0,0,0.12);
}

.item-illust img {
  width: 88%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}


/* ============================
   教材ラインナップ
============================ */
.lineup {
  background-color: #ffffff;
}

.lineup h2 {
  text-align: left;
  margin-bottom: 6px;
}

.lineup-lead {
  font-size: 0.95rem;
  color: #444444;
  margin-bottom: 26px;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.item {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 20px;
  border: 1px solid #dde3f0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.item::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,91,172,0.12), transparent 70%);
  opacity: 0.7;
}

.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.item-icon {
  font-size: 1.4rem;
}

.item-title {
  font-size: 1.05rem;
  margin: 0;
}

.item-tag {
  font-size: 0.8rem;
  color: #b22222;
  margin-bottom: 8px;
}

.item-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.item-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.item-price {
  font-size: 0.9rem;
  color: #333333;
}

/* タイトル色の差別化＋帯 */
.item-header.drill {
  border-left: 4px solid #005bac;
  padding-left: 8px;
}

.item-header.hantei {
  border-left: 4px solid #00897b;
  padding-left: 8px;
}

.item-header.practice {
  border-left: 4px solid #f57c00;
  padding-left: 8px;
}

.item-header.kaisetsu {
  border-left: 4px solid #7b1fa2;
  padding-left: 8px;
}

/* ============================
   アニメーション最終版
============================ */

/* ズームイン強化 */
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

/* スライドアップ強化 */
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(36px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* スライド左右も強化 */
@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(-36px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  0% { opacity: 0; transform: translateX(36px); }
  100% { opacity: 1; transform: translateX(0); }
}


/* ============================
   教材の役割マップ
============================ */
.role-map {
  background: linear-gradient(135deg, #f7f8fb 0%, #ffffff 60%, #f7f8fb 100%);
}

.role-map h2 {
  margin-bottom: 6px;
}

.role-map .flow {
  font-size: 0.9rem;
  color: #444444;
  margin-bottom: 22px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dde3f0;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.role-label {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 4px;
}

.role-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #003366;
}

/* ============================
   旧制度版について
============================ */
.old-version {
  background-color: #ffffff;
}

.old-version h2 {
  margin-bottom: 6px;
}

.old-version p {
  font-size: 0.95rem;
}

/* ============================
   教育機関向けのポイント
============================ */
.merit {
  background-color: #f7f8fb;
}

.merit h2 {
  margin-bottom: 10px;
}

.merit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.merit-item {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dde3f0;
  padding: 14px 10px;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* ============================
   FAQ
============================ */
.faq {
  background-color: #ffffff;
}

.faq h2 {
  margin-bottom: 10px;
}

details {
  background-color: #f7f8fb;
  border-radius: 8px;
  border: 1px solid #dde3f0;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #003366;
}

details p {
  margin-top: 8px;
}

/* ============================
   フッターCTA
============================ */
.cta-footer {
  position: relative;
  background: linear-gradient(135deg, #003366 0%, #005bac 60%, #002244 100%);
  color: #ffffff;
  text-align: center;
  padding: 60px 0 50px;
  overflow: hidden;
}

.cta-footer h2 {
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-footer p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.cta-footer .cta.primary {
  background-color: #ffffff;
  color: #003366;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cta-footer-diagonal {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 140%;
  height: 160px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  transform: rotate(4deg);
  opacity: 0.7;
}

/* ============================
   アニメーション（C-4強め＋時間差）
============================ */

/* フェードイン */
.ani-fade {
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ズームイン */
.ani-zoom {
  opacity: 0;
  transform: scale(0.94);
  animation: zoomIn 1s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

/* スライドイン（上） */
.ani-slide-up {
  opacity: 0;
  transform: translateY(26px);
  animation: slideUp 0.9s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* スライドイン（左） */
.ani-slide-left {
  opacity: 0;
  transform: translateX(-26px);
  animation: slideLeft 0.9s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(-26px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* スライドイン（右） */
.ani-slide-right {
  opacity: 0;
  transform: translateX(26px);
  animation: slideRight 0.9s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes slideRight {
  0% { opacity: 0; transform: translateX(26px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* 時間差クラス */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================
   レスポンシブ
============================ */
@media (max-width: 960px) {
  .bg-grid {
    grid-template-columns: 1fr;
  }

  .lineup-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fv {
    padding: 70px 0 50px;
  }

  .fv-text h1 {
    font-size: 1.4rem;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .merit-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 50px 0;
  }
}