@charset "utf-8";
/* トップビジュアル専用CSS */

/* トップビジュアル */
.top {
  position: relative;
  padding: 80px 20px 30px;
  margin: 64px 0 0 0;
  /* 背景を工夫 - 和風グラデーション */
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 85, 46, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 77, 160, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #f9f9f6 0%, #ffffff 50%, #f5f8f5 100%);
  /* 和風パターンを追加 */
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 85, 46, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 77, 160, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(0, 85, 46, 0.02) 20px,
      rgba(0, 85, 46, 0.02) 40px
    );
}

/* メインコンテナ */
.top-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: stretch;
  height: auto;
}

/* スライダー部分（左側） */
.top-slider {
  position: relative;
  width: 40%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  height: 380px;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 400%;
  height: 100%;
  will-change: transform;
}

.slide {
  flex: 0 0 25%;
  position: relative;
  height: 100%;
  overflow: hidden;
  min-width: 25%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャプション - 常に左上に表示 */
.slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: 70%;
  color: #fff;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 12px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  font-weight: 600;
  border-radius: 0 0 8px 0;
  backdrop-filter: blur(4px);
  line-height: 1.3;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 30px);
  left: 15px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider-controls button {
  pointer-events: all;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* タイトル全体（右側） */
.top-title {
  width: 60%;
  text-align: center;
  padding: 35px 40px;
  position: relative;
  box-sizing: border-box;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* 囲み枠のスタイル */
  background: 
    linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #f0f8f0 100%);
  border: 3px solid transparent;
  border-radius: 25px;
  box-shadow: 
    0 15px 50px rgba(0, 85, 46, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  
  /* グラデーションボーダー */
  background-clip: padding-box;
}

/* グラデーションボーダーの実装 */
.top-title::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #00552E 0%, #004DA0 50%, #2424a4 100%);
  border-radius: 28px;
  z-index: -1;
}

/* カテゴリー部分（小） */
.tour-category {
  display: inline-block;
  background: linear-gradient(135deg, #00552E 0%, #004DA0 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 18px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  box-shadow: 
    0 4px 15px rgba(0, 85, 46, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* メインタイトル */
.top-title h1 {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
  justify-content: center;
}

/* サブタイトル（中） - 大きく目立たせる */
.sub-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #00552E;
  background: 
    linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
  padding: 16px 25px;
  border-radius: 15px;
  line-height: 1.3;
  border: 3px solid #00552E;
  box-shadow: 
    0 8px 25px rgba(0, 85, 46, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
  order: 1;

  min-width: fit-content;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* サブタイトルにアクセント効果を追加 */
.sub-title::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #00552E, #004DA0);
  border-radius: 17px;
  z-index: -1;
  opacity: 0.1;
}

/* メインタイトル（大） */
.main-title {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #00552E 0%, #004DA0 50%, #2424a4 100%);
  padding: 20px 30px;
  border-radius: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: 
    0 12px 35px rgba(0, 85, 46, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.1),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.1);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  order: 2;
  
  min-width: fit-content;
}

/* メインタイトルの装飾エフェクト */
.main-title::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.main-title:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* ハイライト要素 */
.tour-highlights {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0 0;
  flex-wrap: wrap;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(0, 85, 46, 0.1);
}

.highlight-item {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: #00552E;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 18px;
  box-shadow: 
    0 4px 12px rgba(0, 85, 46, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 2px solid #e8f5e8;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(0, 85, 46, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #f7faf7 0%, #e8f5e8 100%);
  border-color: #00552E;
}

/* 次のセクションとの適度な間隔 */
.top + * {
  margin-top: 20px;
}

/* 大画面対応 */
@media (min-width: 1401px) {
  .top-container {
    max-width: 1600px;
  }
}

/* タブレット対応 */
@media (max-width: 1200px) {
  .top-container {
    max-width: 1100px;
    gap: 40px;
  }
  
  .sub-title {
    font-size: 1.2rem;
    padding: 14px 22px;
  }
  
  .main-title {
    font-size: 1.7rem;
  }
  
  /* キャプションのフォントサイズを調整 */
  .slide-caption {
    font-size: 0.7rem;
    padding: 7px 10px;
    max-width: 65%;
  }
}

@media (max-width: 900px) {
  .top {
    padding: 60px 20px 25px;
  }
  
  .top-container {
    max-width: 850px;
    gap: 30px;
  }
  
  .top-slider {
    height: 320px;
  }
  
  .top-title {
    height: 320px;
    padding: 30px 25px;
  }
  
  .main-title {
    font-size: 1.5rem;
    padding: 16px 25px;
  }
  
  .sub-title {
    font-size: 1.1rem;
    padding: 12px 20px;
  }
  
  /* キャプション調整 */
  .slide-caption {
    font-size: 0.65rem;
    padding: 6px 9px;
    max-width: 70%;
    border-radius: 0 0 6px 0;
  }
}

/* スマホ対応 - 縦並びに、適度な上下スペース */
@media (max-width: 768px) {
  .top {
    padding: 50px 15px 25px;
    margin: 50px 0 15px 0;
  }
  
  .top-container {
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    align-items: center;
  }
  
  .top-slider {
    width: 100%;
    height: 280px;
    margin-bottom: 10px;
  }
  
  .top-title {
    width: 100%;
    height: auto;
    padding: 30px 25px;
    margin-top: 10px;
  }
  
  .tour-category {
    font-size: 0.8rem;
    padding: 8px 16px;
    margin-bottom: 20px;
  }
  
  .main-title {
    font-size: 1.4rem;
    padding: 18px 20px;
    white-space: normal;
    margin-bottom: 10px;
  }
  
  .sub-title {
    font-size: 1.1rem;
    padding: 15px 18px;
    white-space: normal;
    margin-bottom: 10px;
  }
  
  .highlight-item {
    font-size: 0.8rem;
    padding: 8px 14px;
    margin: 3px;
  }
  
  .tour-highlights {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  /* スマホでのキャプション */
  .slide-caption {
    font-size: 0.6rem;
    padding: 5px 8px;
    max-width: 75%;
    border-radius: 0 0 5px 0;
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 520px) {
  .top {
    padding: 40px 15px 20px;
    margin-bottom: 10px;
  }
  
  .top-container {
    max-width: 480px;
    gap: 25px;
  }
  
  .top-slider {
    height: 250px;
    margin-bottom: 8px;
  }
  
  .top-title {
    padding: 25px 20px;
    margin-top: 8px;
  }
  
  .main-title {
    font-size: 1.2rem;
    padding: 15px 18px;
  }
  
  .sub-title {
    font-size: 1rem;
    padding: 12px 16px;
    line-height: 1.4;
  }
  
  /* 最小画面でのキャプション */
  .slide-caption {
    font-size: 0.55rem;
    padding: 4px 7px;
    max-width: 80%;
    border-radius: 0 0 4px 0;
    backdrop-filter: blur(2px);
  }
}

/* 改行制御 */
.br-sm { display: none; }
@media (max-width:520px) { 
  .br-sm { display: inline; } 
}

/* プラン番号 */
.plan-number {
  position: absolute;
  top: -10px;
  left: 20px; /* 右から左に変更 */
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 15px;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* ツアー別色分け */
.tour-mindfulness .plan-number {
  background: linear-gradient(135deg, #00552E, #004DA0);
  box-shadow: 0 2px 8px rgba(0, 85, 46, 0.3);
}

.tour-mountain .plan-number {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.tour-kabuki .plan-number {
  background: linear-gradient(135deg, #8B0000, #DC143C);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .plan-number {
    top: -8px;
    left: 15px; /* 右から左に変更 */
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

@media (max-width: 520px) {
  .plan-number {
    top: -6px;
    left: 10px; /* 右から左に変更 */
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* 単一画像表示用 */
.top-image-single {
  position: relative;
  width: 40%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  height: 380px;
}

.top-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-image-single .image-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: 70%;
  color: #fff;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 12px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  font-weight: 600;
  border-radius: 0 0 8px 0;
  backdrop-filter: blur(4px);
  line-height: 1.3;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .top-image-single .image-caption {
    font-size: 0.7rem;
    padding: 7px 10px;
    max-width: 65%;
  }
}

@media (max-width: 900px) {
  .top-image-single {
    height: 320px;
  }
  
  .top-image-single .image-caption {
    font-size: 0.65rem;
    padding: 6px 9px;
    max-width: 70%;
    border-radius: 0 0 6px 0;
  }
}

@media (max-width: 768px) {
  .top-image-single {
    width: 100%;
    height: 280px;
    margin-bottom: 10px;
  }
  
  .top-image-single .image-caption {
    font-size: 0.6rem;
    padding: 5px 8px;
    max-width: 75%;
    border-radius: 0 0 5px 0;
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 520px) {
  .top-image-single {
    height: 250px;
    margin-bottom: 8px;
  }
  
  .top-image-single .image-caption {
    font-size: 0.55rem;
    padding: 4px 7px;
    max-width: 80%;
    border-radius: 0 0 4px 0;
    backdrop-filter: blur(2px);
  }
}