@charset "utf-8";

/* ===================================================
   ベース設定 & カラーパレット
   =================================================== */
:root {
  --aj-orange: #e05a10;       /* ブランドオレンジ */
  --aj-orange-light: #fff5ee; /* 薄いオレンジ背景 */
  --aj-teal: #008080;         /* ディープティール */
  --aj-bg-beige: #fef8f0;     /* ベースベージュ */
  --aj-text: #2c2c2c;
  --aj-text-sub: #555555;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ===================================================
   ファーストビュー (FV) メインレイアウト
   =================================================== */
/* 1. 全幅要素（画面横いっぱいに背景色とSVGを広げる） */
.fv-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 50px 0;
  background-color: var(--aj-bg-beige);
  overflow: hidden; /* アニメーションはみ出し防止 */
}

/* 2. コンテナ（幅1200px中央寄せ） */
.fv-container {
  position: relative;
  z-index: 2; /* 背景SVGより前面に表示 */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ===================================================
   中央背景：シンボルマーク (SVGアニメーション設定)
   =================================================== */
.fv-bg-symbol {
  position: absolute;
  top: 50vh;           /* スマホ版：画面中央ミドルに配置 */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;        /* スマホ用サイズ */
  max-width: 50vw;
  z-index: 1;
  pointer-events: none;
  animation: bgSvgSequence 2.0s ease-in-out forwards;
}

.fv-bg-symbol img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   左エリア：固定リード文章
   =================================================== */
.fv-lead-area {
  padding: 0 16px;
  opacity: 0; /* 初期は非表示 */
  transform: translateX(-30px);
  animation: slideInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.tag-badge {
  display: inline-block;
  background-color: var(--aj-orange-light);
  color: var(--aj-orange);
  border: 1px solid var(--aj-orange);
  font-size: 0.9rem; /* フォント調整 */
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.main-catch {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--aj-text);
  font-weight: 700;
  margin-bottom: 14px;
}

.main-catch .highlight {
  color: var(--aj-orange);
}

.lead-body {
  font-size: 0.95rem;
  color: var(--aj-text-sub);
  margin-bottom: 1.5em;
  line-height: 1.65;
}

/* ガイドカード & リスト */
.guide-card {
  background-color: #ffffff;
  border-left: 4px solid var(--aj-teal);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.guide-badge {
  font-size: 1.05rem; /* フォント調整（見やすく可読性アップ） */
  font-weight: 700;
  color: var(--aj-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.badge-arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.guide-card:hover .badge-arrow-icon {
  transform: translateX(3px);
}

/* チェックポイントリスト */
.guide-point-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-point-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem; /* フォント調整 */
  color: var(--aj-text);
  font-weight: 600;
  line-height: 1.4;
}

.guide-point-list li strong {
  color: var(--aj-teal);
  font-size: 0.9rem; /* フォント調整 */
  font-weight: 700;
  margin-right: 2px;
}

/* SVGチェックアイコン */
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.guide-point-list li:hover .check-icon {
  transform: scale(1.15);
}

/* ===================================================
   右エリア：チラ見せスライダー
   =================================================== */
.fv-slider-area {
  position: relative;
  width: 100%;
  opacity: 0; /* 初期は非表示 */
  transform: translateX(30px);
  animation: slideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide-card {
  min-width: 80%;
  padding: 0 8px;
  box-sizing: border-box;
  transition: opacity 0.45s ease, transform 0.45s ease;
  opacity: 0.45;
  transform: scale(0.92);
}

.slide-card.active {
  opacity: 1;
  transform: scale(1);
}

.card-inner {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

/* スライダーカード内のSTEPバッジ */
.card-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background-color: var(--aj-teal);
  color: #ffffff;
  font-size: 0.85rem; /* フォント調整 */
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.privacy-note {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-content {
  padding: 16px 18px 20px;
}

.card-catch {
  font-size: 1.05rem;
  color: var(--aj-orange);
  margin-bottom: 8px;
  line-height: 1.35;
  font-weight: 700;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--aj-text-sub);
  line-height: 1.55;
}

/* ナビゲーション矢印ボタン */
.img-nav-btn {
  position: absolute;
  top: 150px;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--aj-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-nav-btn:hover {
  background-color: var(--aj-orange);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(224, 90, 16, 0.35);
}

.nav-arrow-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.prev-btn:hover .nav-arrow-icon {
  transform: translateX(-2px);
}

.next-btn:hover .nav-arrow-icon {
  transform: translateX(2px);
}

.prev-btn {
  left: 8px;
}

.next-btn {
  right: 8px;
}

/* インジケータードット */
.dots-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cccccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background-color: var(--aj-orange);
  width: 22px;
  border-radius: 10px;
}

/* ===================================================
   キーフレーム（アニメーション）定義
   =================================================== */

/* 1. 背景SVG：表示 → フェードアウト消去 */
@keyframes bgSvgSequence {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    visibility: visible;
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.04);
    visibility: hidden;
  }
}

/* 2. 左エリア：スライドイン */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 3. 右エリア：スライドイン */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================================
   PC向け レスポンシブ (850px以上)
   =================================================== */
@media (min-width: 850px) {
  .fv-section {
    padding: 60px 0;
  }

  .fv-bg-symbol {
    top: 50%;          /* PC版は全体の垂直中央 */
    width: 260px;
  }

  .fv-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
  }

  .fv-lead-area {
    padding: 0;
  }

  .main-catch {
    font-size: 2rem;
  }

  .lead-body {
    font-size: 1.05rem;
  }

  .slide-card {
    min-width: 85%;
  }

  .card-img-wrap {
    height: 360px;
  }

  .img-nav-btn {
    top: 180px;
    width: 48px;
    height: 48px;
  }

  .nav-arrow-icon {
    width: 24px;
    height: 24px;
  }

  .prev-btn {
    left: 6px;
  }

  .next-btn {
    right: 6px;
  }
}
