/* --------------------------------------------
   基本設定 + グローバル背景アニメーション
-------------------------------------------- */

/* すべてのページに適用（front-pageクラスがなくても動作） */
body {
  font-family: "Noto Sans JP", sans-serif;
  background: #0a1628;
  line-height: 1.8;
  color: #333;
  position: relative;
  overflow-x: hidden;
}

/* 動的背景キャンバス */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #1a2740 50%, #0f1d35 100%);
  z-index: -2;
}

#global-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
}


/* --------------------------------------------
   バナーカルーセル
-------------------------------------------- */

.banner-carousel-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.banner-carousel-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.banner-carousel-inner {
  position: relative;
  width: 100%;
  /* アスペクト比 1200:400 = 3:1 */
  padding-bottom: 33.33%;
  background: #f0f0f0;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: block;
  text-decoration: none;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slide:hover img {
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

/* ナビゲーションドット */
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.banner-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #fff;
}

/* 前へ・次へボタン */
.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #2b4a73;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-prev:active,
.banner-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .banner-carousel-section {
    margin: 30px auto;
  }

  .banner-carousel-inner {
    padding-bottom: 50%; /* スマホは 2:1 */
  }

  .banner-prev,
  .banner-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .banner-prev {
    left: 10px;
  }

  .banner-next {
    right: 10px;
  }

  .banner-dots {
    bottom: 15px;
    gap: 8px;
  }

  .banner-dot {
    width: 10px;
    height: 10px;
  }

  .banner-dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .banner-carousel-inner {
    padding-bottom: 60%; /* 極小画面は 5:3 */
  }
}

/* セクション共通 */
.section-block {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.section-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3d72b4, #5fa8d3, #3d72b4);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: 24px 24px 0 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-block h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, #2b4a73 0%, #3d72b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 24px;
  letter-spacing: 0.02em;
}

.section-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 60%;
  background: linear-gradient(180deg, #3d72b4, #5fa8d3);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(61, 114, 180, 0.5);
}


/* --------------------------------------------
   HEROセクション - カルーセル対応
-------------------------------------------- */

.top-hero {
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: block !important;
  opacity: 1 !important;
}

.hero-slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.6), rgba(61, 114, 180, 0.3));
}

.hero-slide.active {
  display: flex;
  opacity: 1;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-inner {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-inner h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.03em;
}

.hero-inner p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 32px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* HEROドットナビゲーション */
.hero-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 32px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3d72b4, #5fa8d3);
  border-color: rgba(255, 255, 255, 0.9);
}

/* CTAボタン - プレミアムデザイン */
.hero-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #3d72b4 0%, #5fa8d3 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(61, 114, 180, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.hero-btn::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.hero-btn:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

.hero-btn::after,
.btn-primary::after {
  content: "▶";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.hero-btn:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(61, 114, 180, 0.5);
}

.hero-btn:hover::after,
.btn-primary:hover::after {
  transform: translateX(4px);
}

/* スマホサイズ調整 */
@media (max-width: 768px) {
  .hero-inner {
    padding: 40px 28px;
  }
  .hero-inner h1 {
    font-size: 1.8rem;
  }
  .section-block h2 {
    font-size: 1.7rem;
  }
  .hero-dots {
    bottom: 20px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  .hero-dot.active {
    width: 24px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-btn,
  .btn-primary {
    padding: 16px 30px;
    font-size: 1rem;
  }
}


/* --------------------------------------------
   必須10記事（first10）
-------------------------------------------- */

.first10-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.first10-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #1a2b47;
  border: 1px solid rgba(61, 114, 180, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.first10-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(61, 114, 180, 0.2);
  border-color: rgba(61, 114, 180, 0.3);
}

.thumb-wrap {
  width: 100%;
  aspect-ratio: 1200 / 630;
  background: linear-gradient(135deg, #f2f5f9 0%, #e8ecf3 100%);
  overflow: hidden;
  position: relative;
}

.thumb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 114, 180, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.first10-card:hover .thumb-wrap::before {
  opacity: 1;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.first10-card:hover .thumb-wrap img {
  transform: scale(1.1);
}

.first10-title {
  font-size: 1rem;
  line-height: 1.5;
  padding: 18px;
  font-weight: 600;
  color: #2b4a73;
}

.first10-more {
  margin-top: 40px;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .first10-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .first10-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .first10-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------
   悩み別ナビ - 自動カルーセル
-------------------------------------------- */

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  width: 100%;
  overflow-x: hidden;
}

.trouble-card {
  display: block;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(61, 114, 180, 0.15);
  padding-bottom: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.trouble-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3d72b4, #5fa8d3);
  transition: left 0.3s ease;
}

.trouble-card:hover::before {
  left: 0;
}

.trouble-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(61, 114, 180, 0.25);
  border-color: rgba(61, 114, 180, 0.3);
}

.trouble-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #f2f5f9 0%, #e8ecf3 100%);
}

.trouble-thumb img.trouble-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.trouble-card h3 {
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2b4a73;
}

/* スライドアニメーション - モダンなクロスフェード+ズーム効果 */
.trouble-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trouble-img.slide-in {
  opacity: 0;
  transform: scale(1.1);
  z-index: 1;
}

.trouble-img.slide-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  z-index: 2;
}

.trouble-img.slide-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  z-index: 1;
}

/* SP対応 */
@media (max-width: 768px) {
  .trouble-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .trouble-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------
   グリッドカード
-------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.grid-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(61, 114, 180, 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(61, 114, 180, 0.15);
  border-color: rgba(61, 114, 180, 0.3);
}

.grid-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #2b4a73;
  font-weight: 700;
}

.grid-card ul {
  padding-left: 20px;
}
.grid-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}


/* --------------------------------------------
   フロー（横スクロール）
-------------------------------------------- */

.flow-cards-section {
  margin: 80px 0;
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.flow-title {
  font-size: 2rem;
  margin-bottom: 35px;
  font-weight: 700;
  background: linear-gradient(135deg, #2b4a73 0%, #3d72b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow-cards-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 15px 0 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 114, 180, 0.3) transparent;
}

.flow-cards-wrapper::-webkit-scrollbar {
  height: 6px;
}

.flow-cards-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.flow-cards-wrapper::-webkit-scrollbar-thumb {
  background: rgba(61, 114, 180, 0.4);
  border-radius: 3px;
}

.flow-card {
  flex: 0 0 240px;
  height: 140px;
  background: linear-gradient(135deg, #3d72b4 0%, #5fa8d3 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.flow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 70%);
  transform: rotate(45deg);
  animation: flowShine 3s infinite;
}

.flow-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flow-card-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.flow-card-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes flowShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.flow-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(61, 114, 180, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.flow-card:hover .flow-card-icon {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.flow-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.flow-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(61, 114, 180, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.flow-dots .dot.active {
  width: 28px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #3d72b4, #5fa8d3);
}


/* --------------------------------------------
   無料チェックリスト
-------------------------------------------- */

.checklist-section {
  margin: 80px auto;
  padding: 60px 30px;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.checklist-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #2b4a73 0%, #3d72b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-left: 24px;
  position: relative;
}

.checklist-section .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 60%;
  background: linear-gradient(180deg, #3d72b4, #5fa8d3);
  border-radius: 3px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.checklist-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(61, 114, 180, 0.1);
}

.checklist-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.checklist-label {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.checklist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(61, 114, 180, 0.25);
}

.checklist-card:hover img {
  transform: scale(1.05);
}

.checklist-card:hover .checklist-label {
  background: linear-gradient(to top, rgba(61, 114, 180, 0.95), rgba(61, 114, 180, 0.6));
}

@media (max-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checklist-label {
    font-size: 1rem;
  }
}


/* --------------------------------------------
   スマホ最適化
-------------------------------------------- */

@media (max-width: 600px) {
  .section-block {
    padding: 50px 16px;
    margin-bottom: 24px;
  }
  
  .top-hero h1 {
    font-size: 1.8rem;
  }
  
  .section-block h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }
  
  .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
  }
}