/* ベース設定 */
html {
  font-size: 100%;
}


body {
    font-family: 'Segoe UI', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    min-height: 200vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url('road.png');*/
    /*background-size: 700px 500px;*/
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1; /* 背景がコンテンツの後ろに表示される */
}

a {
  text-decoration: none;
}

p {
  font-size: 1.3rem;
}

li {
  list-style: none;
  font-size: 1.2rem;
}

/* ヘッダーとナビゲーション */
header {
  padding: 5px 0;
  max-width: 100%;
}

header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white; /* 背景を明示的に設定すると見やすくなります */
  z-index: 1000; /* 他の要素より上に表示 */
}

header nav.scrolled {
  background-color: #ff7f50;
  color: #ddd;
}

/* ハンバーガー初期状態（デスクトップでは非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  gap: 6px;
  margin: 0 auto 10px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #ff7f50;
  border-radius: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;            /* 縦方向の位置を中央揃え */
  gap: 60px;                      /* メニュー同士の間隔 */
  margin: 10px 50px;               /* 左右に少し余白 */
  padding: 0;
}

nav ul li {
  font-size: 16px;
  color: #424040;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav ul li a {
  color: #424040; /* または black */
  text-decoration: none; /* 下線を消したい場合 */
  transition: color 0.3s ease; /* hoverアニメーションを継続する場合 */
}

/* ロゴは固定的に左に配置 */
header nav ul li:first-child {
  margin-right: auto;
}

nav ul li a:hover {
  color: #ff7f50; /* ホバー時にオレンジ色にする */
  text-decoration: underline;
}


nav ul li:hover {
  color: #ff7f50;
  text-decoration: underline;
}

.logo {
    height: 40px; /* 文字サイズに合わせて調整（例：16pxフォントなら40px程度がバランス良） */
    width: auto;  /* 横幅は自動調整で縦横比を維持 */
    vertical-align: middle; /* 文字と垂直方向に揃える */
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    text-align: center;
    background-color: #f0a4a4;
    padding: 10px 0;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================
   ベース設定
========================= */
#streaming-img {
  position: relative;
  top: 0;
  bottom: -100px;
  background-image: url(img/road2.png);
  background-repeat: repeat-x;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 600px;
  overflow: hidden; /* carがはみ出さないように */
}

/* タイトル領域 */
.streaming-title {
  width: 100%;
  height: auto;
}

#streaming-img h1 {
  position: absolute;
  top: 15%;
  left: 20%;
  transform: translate(0%, 0%);
  font-size: 4em;
  color: #ff7f50;
  text-shadow: 0px 4px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* span強調 */
#streaming-img h1 span {
  color: #fff;
  background-color: #ff7f50;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: bold;
  text-shadow: 0 2px 2px rgba(0,0,0,0.3);
}

/* サブタイトル */
#streaming-img h1 .subtitle {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  color: #ff7f50;
  margin-top: 10px;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

/* 車の画像 */
#car img {
  position: absolute;
  bottom: 20px;
  left: 80%;
  transform: translateX(-50%);
  z-index: 2;
  width: 200px;
  height: auto;
  animation: floatCar 3s ease-in-out infinite;
}

/* 車アニメーション */
@keyframes floatCar {
  0%, 100% { transform: translateX(-50%) translateY(0); }
}

/* =========================
   📱 レスポンシブ対応
========================= */

/* タブレット（〜768px） */
@media screen and (max-width: 768px) {
  #streaming-img {
    height: 450px;
  }

  #streaming-img h1 {
    top: 12%;
    left: 10%;
    font-size: 1.8em;
    text-align: left;
  }

  #streaming-img h1 .subtitle {
    font-size: 0.8em;
  }

  #car img {
    width: 150px;
    left: 70%;
    bottom: 10px;
  }
}

/* スマホ（〜480px） */
@media screen and (max-width: 480px) {
  #streaming-img {
    height: 380px;
    background-position: bottom;
  }

  #streaming-img h1 {
    top: 10%;
    left: 8%;
    font-size: 1.8em;
    text-align: left;
    line-height: 1.3;
  }

  #streaming-img h1 span {
    padding: 0 6px;
    border-radius: 4px;
    font-size: 1em;
  }

  #streaming-img h1 .subtitle {
    font-size: 0.7em;
    margin-top: 6px;
  }

  #car img {
    width: 120px;
    left: 65%;
    bottom: 5px;
  }
   
}




.highlight-bar {
  background-color: #ff7f50;
  height: 60px;         /* 高さはお好みで調整可能 */
  width: 100%;
  margin: 0;
  padding: 0;
}


h1 {
  text-align: center;
  color: #ff7f50;
  font-size: 28px;
  margin: 40px 0 20px;
}

/* メインコンテンツ */
.top-hero {
  width: auto;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  font-size: 24px;
  color: #ff7f50;
  margin-top: 40px;
  border-bottom: 2px solid #ff7f5033;
  padding-bottom: 8px;
}

h3 {
  font-size: 20px;
  color: #333;
  margin-top: 20px;
}

p {
  font-size: 16px;
  margin: 12px 0;
}

/* セカンダリーナビ（対象者） */
main nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 20px 0;
}

main nav ul li {
  background-color: #fff0e6;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #cc5200;
}

/* メディアボックス */
.media-top {
  flex: 1;
  min-width: 150px;
  padding: 2px 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.media-top img {
  height: auto;
  width: 100%;
  border-radius: 8px;
}

/* 横並びにするための共通設定 */
.media-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* media-main（テキスト＋画像）を横並び */
.media-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* media-title の中の h3 要素を横並びに */
.media-title {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* media-textpoint の中の h3 を横並びに */
.media-textpoint {
    
    gap: 1.5rem;
    flex-wrap: wrap;
}

.media-textpoint h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.media-textpoint h3 span {
  display: block;
  font-size: 3rem;
  color: #d30707;
  margin-top: 0.3rem;
}


.media-main img {
    height: auto;
    width: 70%;
}

/* media-sab（経歴＋資格）を横並びに */
.media-sab {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.media-sab > div {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #ddd; /* 縦の区切り線 */
    padding-right: 1rem;
}

.media-sab > div:last-child {
    border-right: none; /* 最後の要素には縦線を消す */
}

.media-sab h3 {
    text-align: center;
}

.media-sab p {
    text-align: left;
    width: 100%;
    max-width: 300px;
}



.media-text h3 {
    margin: 0.5rem 0;
}



/* -------------------------------
   レスポンシブ：タブレット（〜1024px）
---------------------------------*/
@media screen and (max-width: 1024px) {
  .media-main {
      flex-direction: column;   /* 縦並びに変更 */
      align-items: center;
      gap: 1.5rem;
  }

  .media-textpoint {
      justify-content: center;
  }

  .media-mainimage {
      width: 70%;
  }
}



/* -------------------------------
   小型スマホ（〜480px）
---------------------------------*/
@media screen and (max-width: 480px) {
  .media-textpoint h3 span {
      font-size: 1.8rem;
  }

  .media-mainimage img {
      max-width: 180px;  /* 最大サイズを制限 */
  }

  /* ★ テキストと画像を縦並びにする */
.media-main {
  display: flex;              /* Flexboxで横並び */
  flex-direction: row;        /* 左右に並べる */
  align-items: center;        /* 上下中央揃え */
  justify-content: center;    /* 全体を中央に配置 */
  text-align: left;           /* テキストは左寄せ */
  gap: 2rem;                  /* テキストと画像の間に余白 */
}

  .media-text {
      margin-bottom: 1.5rem;   /* テキスト下に余白 */
  }

  #streaming-img {
      font-size: 0.8rem;
  }
  
  main h2, footer h2, .footer-content p {
      font-size: 1.8rem;
  }
}


/*特徴*/
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 14px;
  padding: 20px;
  font-family: "Noto Sans JP", sans-serif;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

/* ヘッダー */
.table-container thead th {
  color: #0f172a;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.table-container thead th:last-child {
  border-right: none;
}

/* 項目列 */
.table-container td:first-child {
  background: #f1f5f9;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

/* 出張教習列（強烈におすすめ） */
.table-container td.highlight-column {
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: 8px;
  color: #9a3412;
  font-weight: 700;
  padding: 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(249,115,22,0.15);
}



/* 教習所列（普通） */
.table-container td:last-child {
  background: #fff;
  color: #4b5563;
  text-align: center;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

/* 行ホバー */
.table-container tbody tr:hover td {
  background: #fef2f2;
  transition: 0.2s ease;
}

/* スマホ対応 */
@media (max-width: 700px) {
  .table-container {
    padding: 12px;
  }
  .table-container table {
    min-width: 560px;
  }
  .table-container td, 
  .table-container th {
    font-size: 13px;
    padding: 10px;
  }
}


/* レッスンの流れ - タイムライン */
.timeline {
  position: relative;
  margin-left: 3rem;
  padding-left: 2rem;
  max-width: 800px;
}

/* 縦の線 */
.timeline::before {
  content: '';
  position: absolute;
  left: 0.25rem;   /* マーカーに揃える */
  top: 1.1rem;     /* ← 最初のマーカー中心より下から始める */
  bottom: 0;
  width: 2px;
  background: #ccc;
}

/* 各アイテム */
.timeline-item {
  position: relative;
  margin-block: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 丸マーカー */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #666;
  border-radius: 50%;
  z-index: 1;
}

/* 最後のアイテムで線を止める */
.timeline-item:last-child::after {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 0.9rem;
  bottom: 0;
  width: 2px;
  background: #fff; /* 背景色 */
  z-index: 2;
}


/* 日付 */
.timeline-date {
  font-weight: bold;
  color: #555;
}

/* コンテンツ */
.timeline-content {
  margin: 0.5rem 0 0 0.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);

  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-content h3 { margin: 0; }
.timeline h3, .timeline p { margin: 5px; }

/* アイコン */
.aico {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}

/* モバイル */
@media (max-width: 600px) {
  .timeline {
    margin-left: 1.5rem;
    padding-left: 1rem;
  }

  .timeline-item::before {
    left: -1.3rem;
  }

  /* ★ アイコンとh3は横並び、pは次の行に */
  .timeline-content {
    display: flex;
    flex-wrap: wrap;           /* 折り返しを有効に */
    align-items: center;
    gap: 0.4rem;
    text-align: left;
  }

  .timeline-content h3 {
    margin: 0;
    flex: 1 1 auto;            /* h3が横に伸びる */
  }

  .timeline-content p {
    width: 100%;               /* 強制的に次の行へ */
    margin: 0.3rem 0 0 2.2rem; /* アイコン分だけ下げる（左インデント） */
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .aico {
    width: 28px;
    height: 28px;
    object-fit: cover;
    flex-shrink: 0;
  }
}




/* 利用者の感想 */
.wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC: 2列 */
  gap: 1rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.quote {
  font-size: 1rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}

.meta {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.badge {
  display: inline-block;
  background-color: #e0e0e0;
  color: #333;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  margin-top: 0.5rem;
  margin-right: auto; /* ★ 左寄せにする */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .wrap {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
}


/* ===== プランカードエリア ===== */
.plan-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.plan-card {
  border: 1px solid #ffd8b0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 300px;
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card h2 {
  text-align: center;
  font-size: 18px;
  color: #ff7f50;
  margin-bottom: 10px;
}

.price {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-bottom: 12px;
}

.price.strike {
  text-decoration: line-through;
  color: #999;
}
.strike {
  text-decoration: line-through;
  color: #999;
}

.price-sale-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sale {
  font-size: 20px;
  color: #e65c00;
  font-weight: bold;
  margin-bottom: 12px;
}

.plan-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.plan-card ul li {
  font-size: 14px;
  margin-bottom: 4px;
}

.plan-card.ladies {
  background-color: #fff7f0;
  border: 1px solid #E27447;
}

.plan-card.ladies h2 {
  color: #E27447;
}

.plan-card.ladies .reserve-btn {
  background-color: #E27447;
}

.plan-card.ladies .reserve-btn:hover {
  background-color: #c85f3b;
}


.note {
  font-size: 13px;
  color: #555;
  margin-bottom: 15px;
}

.reserve-btn {
  display: inline-block;
  background-color: #ff7f50;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.reserve-btn:hover {
  background-color: #e65c00;
}

.btn-wrap {
  text-align: center;
  margin-top: 15px;
}

.plan-detail {
  text-align: center;
  margin-top: 10px;
}

footer {
    background-color: #f4f4f4; /* 背景色はお好みで */
    padding: 20px;
    font-family: sans-serif;
}

.footer-overlay {
    max-width: 1200px;
    margin: 0 auto;
}



.footer-nav ul {
    display: flex; 
    justify-content: flex-end; 
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
    gap: 20px; /* リンク間のスペース */
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.footer-content {
    text-align: left;
    margin-bottom: 20px;
    line-height: 2;
    color: #333;
}

.footer-SNS ul {
    display: flex; 
    justify-content: flex-start;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
    gap: 20px; /* リンク間のスペース */
}

.footer-SNS a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.footer-copy {
    text-align: center; /* 中央寄せ */
    font-size: 14px;
    color: #777;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .media-box {
    flex-direction: column;
    align-items: center;
  }

  .media-text {
    width: 100%;
  }

  main nav ul {
    flex-direction: column;
    gap: 8px;
  }
}


