﻿/* guide.css */

/* -----------------------
  Hero（guide共通）
------------------------ */
/* school 用の背景差し替えだけ */
.hero.school {
  background-image: url("../images/guide/hero_school.jpg");
}

/* group 用の背景差し替えだけ */
.hero.youth {
  background-image: url("../images/guide/hero_youth.jpg");
}

/* company ページ用 Hero */
.hero.company {
  background-image: url("../images/guide/hero_corporate.jpg");
}

/* family ページ用 Hero */
.hero.family {
  background-image: url("../images/guide/hero_family.jpg");
}

/* -----------------------
  特徴カード
------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: 0.3s;
}

/* hover はOK（見た目のみ） */
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* -----------------------
  写真グリッド
------------------------ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.photo-box {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  overflow: hidden;
}

.photo-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  padding: 12px;
  font-size: 0.95rem;
}

/* -----------------------
  タイムライン
------------------------ */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  margin-left: 60px;
}

.timeline-item {
  position: relative;
  /* margin-left: 80px; */
  padding: 16px 24px 16px 24px; /* PC用：左に円分スペース確保 */
  border-left: 6px solid var(--accent);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.step-number {
  position: absolute;
  left: -50px; /* PCは左側に固定 */
  top: 16px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: var(--accent);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* -----------------------
  モバイル対応（スマホ縦レイアウト）
------------------------ */
@media (max-width: 700px) {
  .feature-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    margin-left: unset;
  }

  .timeline-item {
    padding: 16px 16px 16px 16px; /* 左パディングを削除して横幅最大化 */
    border-left: none; /* 左線を消す */
    border-top: 6px solid var(--accent); /* 上線に変更して縦方向に */
    border-radius: 8px;
  }
  .timeline-item h3 {
    display: inline-block;
    margin-left: 0.2rem;
    font-size: 1.2rem;
  }

  .timeline-item p {
    margin-top: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .step-number {
    position: relative; /* 左固定解除 */
    left: auto;
    top: auto;
    display: inline-block;
    margin-bottom: 8px; /* テキストとの間隔 */
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.9rem;
  }
}

/* -----------------------
  次のステップ（学校向けCTA）
------------------------ */
.next-step {
  margin-top: 80px;
}

.next-step-card {
  background: #f7f9f6; /* フッターより明るい */
  border: 1px solid #dde3dc;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.next-step-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #2f5d3a; /* メインカラー */
}

.next-step-lead {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 28px;
}

.next-step-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* モバイル */
@media (max-width: 700px) {
  .next-step-card {
    padding: 28px 20px;
  }
}

/* -----------------------
  次のステップ ボタン改善
------------------------ */
.next-step-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.next-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 240px;
  padding: 18px 24px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

/* 主ボタン */
.next-step-btn.primary {
  background: #2f5d3a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 93, 58, 0.35);
}
.next-step-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 93, 58, 0.45);
}

/* 副ボタン */
.next-step-btn.secondary {
  background: #fff;
  color: #2f5d3a;
  border: 2px solid #2f5d3a;
}
.next-step-btn.secondary:hover {
  background: #f3f6f4;
}

/* ボタン内テキスト */
.next-step-btn .btn-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.next-step-btn .btn-note {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
}

/* モバイル */
@media (max-width: 700px) {
  .next-step-btn {
    width: 100%;
    max-width: 360px;
  }
}

/* =======================
  family.html 専用
======================= */

/* ラベル共通 */
.page-family .card-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

/* 1泊 */
.page-family .card-label.stay-1 {
  background: #e6f2ec; /* 薄い緑 */
  color: #2f5d3a;
}

/* 2泊 */
.page-family .card-label.stay-2 {
  background: #fff3cd; /* 薄い黄 */
  color: #8a6d1d;
}

/* 3泊以上 */
.page-family .card-label.stay-3 {
  background: #efe6dc; /* 落ち着いた茶 */
  color: #6b4a2d;
}

.page-family .timeline {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* family.html：カード余白調整 */
.page-family .timeline-item {
  margin-bottom: 60px;
  padding: 24px;
  border-left: none;
  border-top: 6px solid var(--accent);
  word-break: normal;
  overflow-wrap: break-word;
}
.page-family .timeline-item {
  ol {
    list-style: inside decimal;
  }
}

/*
  ▼ミドルサイズ（タブレット）=============================================================================
*/
@media (max-width: 1059px) {
  /* school 用の背景差し替えだけ */
  .hero.school {
    background-image: url("../images/guide/hero_school_md.jpg");
  }

  /* group 用の背景差し替えだけ */
  .hero.youth {
    background-image: url("../images/guide/hero_youth_md.jpg");
  }

  /* company ページ用 Hero */
  .hero.company {
    background-image: url("../images/guide/hero_corporate_md.jpg");
  }

  /* family ページ用 Hero */
  .hero.family {
    background-image: url("../images/guide/hero_family_md.jpg");
  }
}

/*▲ミドルサイズ ここまで    =============================================================================*/

/*
  ▼スモールサイズ（スマホ）=============================================================================
*/
@media (max-width: 700px) {
}
/*▲スモールサイズ ここまで ============================================================================*/
