/* ================================
   スキルマッチベースボール - トップページスタイル
================================ */

/* ================================
   ヒーローセクション
================================ */
.hero { 
  margin-top: 80px; /* ヘッダーの高さ分のマージン */
  padding: var(--space-9xl) 0 var(--space-5xl); 
  background-color: var(--brand-color);
}
.hero__grid { 
  display: grid; 
  grid-template-columns: 1.2fr .8fr; 
  gap: var(--space-6xl); 
  align-items: center; 
}
.hero h1{
    color: #fff;
}
.hero p{
    color: #fff;
}

/* ph-box内の画像スライダー */
.ph-box { 
  background: var(--card); 
  border: 1px dashed var(--line-dashed); 
  border-radius: var(--radius); 
  min-height: 280px; 
  display: grid; 
  place-items: center; 
  color: var(--muted-lightest); 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.ph-box:active {
  cursor: grabbing;
}

.hero__image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero__image-slide.active {
  opacity: 1;
}

.hero__image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* スライダーインジケーター */
.hero__indicators {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero__indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero__indicator.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.note { 
  font-size: var(--text-sm); 
  color: var(--muted); 
}

/* ================================
   信頼バー - ループスクロール
================================ */
.trust-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.trust-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.trust-scroll__content {
  display: flex;
  gap: var(--space-2xl);
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.trust-scroll__content:hover {
  animation-play-state: paused;
}

.trust__item { 
  display: flex; 
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-xl); 
  border: 2px solid var(--brand-color);
  border-radius: 50px; 
  color: var(--brand-color);
  font-weight: 600; 
  white-space: nowrap; 
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  min-width: max-content;
}

.trust__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-color), #ff6b6b);
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.trust__item svg {
  color: var(--brand-color);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.trust__item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: white;
  border-color: transparent;
}

.trust__item:hover::before {
  opacity: 1;
}

.trust__item:hover svg {
  color: white;
}

/* ループスクロールアニメーション */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* スマホ用の調整 */
@media (max-width: 768px) {
  .trust-section {
    padding: var(--space-3xl) 0;
  }
  
  .trust__item {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 25px;
  }
  
  .trust-scroll__content {
    gap: var(--space-lg);
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  .trust__item {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
  }
  
  .trust-scroll__content {
    gap: var(--space-md);
    animation-duration: 15s;
  }
}

/* ================================
   機能・特徴
================================ */
#features .stack{
    gap: var(--space-8xl);
}
.features { 
  display: grid; 
  gap: var(--space-2xl); 
  grid-template-columns: repeat(2,1fr); 
}

.feature { 
  background: #FFEEEE; 
  border: 1px solid var(--brand-color); 
  border-radius: var(--radius); 
  padding: var(--space-6xl) var(--space-2xl); 
  display: grid; 
  gap: var(--space-md); 
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--brand-color);
  transition: transform 0.3s ease;
}

.feature:hover .icon {
  transform: scale(1.1);
}


.feature__icon { 
  width: 48px; 
  height: 48px; 
  border-radius: var(--radius-sm); 
  background: var(--card-lighter); 
  border: 1px dashed var(--line-dashed-light); 
}

/* ================================
   フロー・手順
================================ */
section#flow {
  background: var(--card-light);
}
#flow .stack{ 
  gap: var(--space-8xl);
}
.flow { 
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  counter-reset: step;
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.flow__item { 
  width: 100%;
  display: flex; 
  flex-direction: row;
  border: 2px solid var(--brand-color); 
  border-radius: var(--radius-lg);
  padding: var(--space-5xl) var(--space-4xl); 
  gap: var(--space-3xl); 
  align-items: center;
  background: #FFF;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.flow__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

/* ステップ番号 */
.flow__item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--brand-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--text-lg);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flow__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-lighter);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 2px solid var(--line-light);
  transition: all 0.3s ease;
}

.flow__item:hover .flow__icon {
  background: var(--brand-color);
  border-color: var(--brand-color);
  transform: scale(1.05);
}

.flow__icon svg {
  width: 100%;
  height: 100%;
  color: var(--brand-color);
  transition: color 0.3s ease;
}

.flow__item:hover .flow__icon svg {
  color: white;
}

.flow__content {
  display: grid;
  gap: var(--space-md);
  flex: 1;
}

.flow__item .h3 {
  margin: 0;
  color: var(--text-primary);
  font-weight: bold;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.flow__item .h3::after {
  content: attr(data-title);
  font-size: var(--text-sm);
  color: var(--brand-color);
  font-weight: normal;
  opacity: 0.8;
}

.flow__item .meta {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: var(--text-base);
}

/* ================================
   カード・リスト
================================ */
#coaches .stack{ 
  gap: var(--space-8xl);
}
.cards { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: var(--space-2xl); 
}

.card { 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: var(--bg); 
  box-shadow: var(--shadow); 
  display: grid; 
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--brand-color);
}

.card__media { 
  height: 200px; 
  background: var(--card-light); 
  border-bottom: 1px dashed var(--line-dashed-light); 
  display: grid; 
  place-items: center; 
  color: var(--muted-lightest); 
  font-size: var(--text-sm); 
  letter-spacing: .08em; 
}
.card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card__body { 
  padding: var(--space-xl); 
  display: grid; 
  gap: var(--space-sm); 
}

.card__body .h3 {
  margin: 0;
  color: var(--text-primary);
  font-weight: bold;
  font-size: var(--text-xl);
  line-height: 1.3;
}

.card__body .meta {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.4;
}

.card__body p.meta{
  height: 100px;
}

.card__body .btnrow {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  height: 40px;
}

.card__body .btn {
  flex: 1;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.meta { 
  color: var(--muted); 
  font-size: var(--text-base); 
}

/* ================================
   レビュー・口コミ
================================ */
#voice .stack{
  gap: var(--space-8xl);
}
.quotes { 
  display: grid; 
  grid-template-columns: repeat(3,1fr); 
  gap: var(--space-2xl); 
}

.quote { 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  padding: var(--space-2xl); 
  background: var(--bg); 
  display: grid; 
  gap: var(--space-sm); 
}
.quote__image{
  width: 60%;
  margin: 0 auto var(--space-md);
}
blockquote{
  font-size: var(--text-lg);
  font-weight: 700;
}
.quote__who { 
  color: var(--muted); 
  font-size: var(--text-lg); 
  font-weight: 700;
}

/* ================================
   料金セクション
================================ */
#pricing{
  background: var(--card-light);
}
#pricing .stack{
  gap: var(--space-8xl);
}
.pricing-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4xl);
  max-width: 1000px;
  margin: 0 auto;
}

.payment-method,
.pre-confirmation {
  background: #FFF;
  padding: var(--space-5xl);
  border-radius: var(--radius);
  border: 2px solid var(--line);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method:hover,
.pre-confirmation:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-method h3,
.pre-confirmation h3 {
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.payment-method .description,
.pre-confirmation .description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================================
   FAQ・よくある質問
================================ */
#faq .stack{
  gap: var(--space-8xl);
}

/* FAQアイテムのスタイル */
.faq_wrap{
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2xl);
}
.faq-item { 
  border: 2px solid var(--brand-color); 
  border-radius: var(--radius-full); 
  padding: var(--space-4xl) var(--space-5xl); 
  background: var(--bg); 
  margin-bottom: var(--space-lg);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question { 
  font-weight: 600; 
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-color);
  flex-shrink: 0;
}

.faq-item .meta {
  color: #000;
  line-height: 1.6;
  margin: 0;
}

/* ================================
   スマホ用レスポンシブ対応
================================ */
@media (max-width: 768px) {
  /* ヒーローセクションの調整 */
  .hero { 
    margin-top: 60px; /* スマホ用ヘッダーの高さ分のマージン */
    padding: var(--space-5xl) 0 var(--space-3xl); 
  }
  
  .hero__grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-3xl); 
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1.3;
  }
  
  .hero p {
    font-size: var(--text-base);
    line-height: 1.6;
  }
  
  /* ph-boxの調整 */
  .ph-box { 
    min-height: 200px; 
    border-radius: var(--radius-sm);
  }
  

  
  /* 機能・特徴の調整 */
  #features .stack {
    gap: var(--space-4xl);
  }
  
  .features { 
    grid-template-columns: 1fr; 
    gap: var(--space-lg);
  }
  
  .feature { 
    padding: var(--space-4xl) var(--space-lg); 
  }
  
  .feature .icon {
    width: 48px;
    height: 48px;
  }
  
  /* フロー・手順の調整 */
  #flow .stack { 
    gap: var(--space-4xl);
  }
  
  .flow { 
    gap: var(--space-2xl);
  }
  
  .flow__item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .flow__item::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .flow__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }
  
  .flow__item .h3 {
    font-size: var(--text-lg);
    justify-content: center;
  }
  
  .flow__item .h3::after {
    display: none;
  }
  
  .flow__item .meta {
    font-size: var(--text-sm);
    line-height: 1.6;
  }
  
  /* カード・リストの調整 */
  #coaches .stack { 
    gap: var(--space-4xl);
  }
  
  .cards { 
    grid-template-columns: 1fr; 
    gap: var(--space-lg);
  }
  
  .card__body { 
    padding: var(--space-lg); 
  }
  
  .card__body .h3 {
    font-size: var(--text-lg);
  }
  
  .card__body p.meta {
    height: auto;
    min-height: 60px;
  }
  
  .card__body .btnrow {
    flex-direction: column;
    height: auto;
    gap: var(--space-sm);
  }
  
  .card__body .btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
  }
  
  /* レビュー・口コミの調整 */
  #voice .stack {
    gap: var(--space-4xl);
  }
  
  .quotes { 
    grid-template-columns: 1fr; 
    gap: var(--space-lg);
  }
  
  .quote { 
    padding: var(--space-lg); 
    text-align: center;
  }
  
  .quote__image {
    width: 80px;
    margin: 0 auto var(--space-md);
  }
  
  blockquote {
    font-size: var(--text-base);
    line-height: 1.6;
  }
  
  .quote__who { 
    font-size: var(--text-base); 
  }
  
  /* 料金セクションの調整 */
  #pricing .stack {
    gap: var(--space-4xl);
  }
  
  .pricing-info {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .payment-method,
  .pre-confirmation {
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .payment-method h3,
  .pre-confirmation h3 {
    font-size: var(--text-lg);
  }
  
  .payment-method .description,
  .pre-confirmation .description {
    font-size: var(--text-base);
  }
  
  /* FAQの調整 */
  #faq .stack {
    gap: var(--space-4xl);
  }
  
  .faq_wrap {
    gap: var(--space-lg);
  }
  
  .faq-item { 
    padding: var(--space-3xl) var(--space-lg); 
    border-radius: var(--radius);
  }
  
  .faq-question { 
    font-size: var(--text-base);
    line-height: 1.4;
  }
  
  .faq-icon {
    width: 20px;
    height: 20px;
  }
  
  .faq-item .meta {
    font-size: var(--text-sm);
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  /* さらに小さい画面用の調整 */
  .hero { 
    margin-top: 50px; /* 小さい画面用ヘッダーの高さ分のマージン */
    padding: var(--space-4xl) 0 var(--space-2xl); 
  }
  
  .hero__grid { 
    gap: var(--space-2xl); 
  }
  
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  
  .hero p {
    font-size: var(--text-sm);
  }
  
  .ph-box { 
    min-height: 180px; 
  }
  

  
  .feature { 
    padding: var(--space-3xl) var(--space-md); 
  }
  
  .feature .icon {
    width: 40px;
    height: 40px;
  }
  
  .flow__item {
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-md);
  }
  
  .flow__icon {
    width: 50px;
    height: 50px;
  }
  
  .flow__item .h3 {
    font-size: var(--text-base);
  }
  
  .card__body { 
    padding: var(--space-md); 
  }
  
  .card__body .h3 {
    font-size: var(--text-base);
  }
  
  .card__body p.meta {
    min-height: 50px;
    font-size: var(--text-sm);
  }
  
  .quote { 
    padding: var(--space-md); 
  }
  
  .quote__image {
    width: 60px;
  }
  
  blockquote {
    font-size: var(--text-sm);
  }
  
  .quote__who { 
    font-size: var(--text-sm); 
  }
  
  .payment-method,
  .pre-confirmation {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .payment-method h3,
  .pre-confirmation h3 {
    font-size: var(--text-base);
  }
  
  .payment-method .description,
  .pre-confirmation .description {
    font-size: var(--text-sm);
  }
  
  .faq-item { 
    padding: var(--space-2xl) var(--space-md); 
  }
  
  .faq-question { 
    font-size: var(--text-sm);
  }
  
  .faq-icon {
    width: 18px;
    height: 18px;
  }
  
  .faq-item .meta {
    font-size: var(--text-xs);
  }
}