/*--------------------------------------------------------------
# page css
--------------------------------------------------------------*/
/* 固定ページ共通レイアウト */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* 見出しスタイル */
.page-content h1,
.page-content h2,
.page-content h3 {
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #222;
}

.page-content h1 {
  font-size: 2rem;
  border-bottom: 3px solid #002147;
  padding-bottom: 0.4rem;
}

.page-content h2 {
  font-size: 1.6rem;
  border-left: 5px solid #002147;
  padding-left: 0.6rem;
}

.page-content h3 {
  font-size: 1.3rem;
  color: #444;
}

/* 段落・テキスト */
.page-content p {
  margin-bottom: 1.2rem;
}

/* リスト */
.page-content ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.page-content ul li {
  margin-bottom: 0.6rem;
  list-style: disc;
}

/* 画像表示 */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1rem auto;
}

/* 埋め込みマップ・動画 */
.page-content iframe {
  max-width: 100%;
  border: none;
  border-radius: 6px;
}

/* 区切りセクション */
.page-content section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.page-hero {
  position: relative;
  margin-top: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  height: 20rem;
  background-size: cover;        /* 中央部分を優先して拡大 */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(128, 128, 128, 0.3);
}

.page-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  z-index: 1;
}

/* タイトル下の画像＋テキスト横並び */
.title_desc_wrap {
    display: flex;
    align-items: stretch; /* 高さを揃える */
    gap: 20px;
}

.title_image {
    flex: 0 0 33%; /* 本文幅の1/3に固定 */
    min-height: 250px; /* 最低高さを確保（調整可能） */
}

.title_image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 中央トリミング */
    border-radius: 6px;
}

.title_text {
    flex: 1;
}


@media (max-width: 768px) {
    .title_desc_wrap {
        flex-direction: column;
    }
    .title_image img {
        max-width: 100%;
    }
}

/*--------------------------------------------------------------
# page table
--------------------------------------------------------------*/
/* テーブル全体 */
body.page .table-wrap table,
body.page .table-wrap .aligncenter {
  border-collapse: collapse;
  width: 100%;
}

/* セル */
body.page .table-wrap table th,
body.page .table-wrap table td,
body.page .table-wrap .aligncenter th,
body.page .table-wrap .aligncenter td {
  border: 1px solid #ccc;
  padding: 0.8rem 1rem;
  vertical-align: middle;
  text-align: left;
}

/* PC用：sticky有効 */
@media (min-width: 769px) {
  body.page .table-wrap table th:first-child,
  body.page .table-wrap table td:first-child,
  body.page .table-wrap .aligncenter th:first-child,
  body.page .table-wrap .aligncenter td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
  }

  body.page .table-wrap table thead th,
  body.page .table-wrap .aligncenter thead th {
    position: sticky;
    top: 0;
    z-index: 11;
  }
}

/* スマホ用：sticky解除 */
@media (max-width: 768px) {
  body.page .table-wrap table th:first-child,
  body.page .table-wrap table td:first-child,
  body.page .table-wrap .aligncenter th:first-child,
  body.page .table-wrap .aligncenter td:first-child,
  body.page .table-wrap table thead th,
  body.page .table-wrap .aligncenter thead th {
    position: static;
  }
}

/* ---- 固定ページ用：レスポンシブ表 + 左列固定（高い特異性） ---- */
body.page .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* スマホ調整（フォント等） */
@media (max-width: 768px) {
  body.page .table-wrap table,
  body.page .table-wrap .aligncenter {
    font-size: 0.94rem;
  }
}

/* 固定ページの表（横スクロール・左端固定対応） */
.page table {
    border-collapse: collapse;
    width: 100%;
    font-size: 1rem;
}

.page table th,
.page table td {
    border: 1px solid #ccc;
    padding: 0.8rem 1rem;
    vertical-align: middle;
    text-align: left;
}

/* 左端列（見出し列）背景色＆固定 */
.page table th:first-child,
.page table td:first-child {
    background-color: #e6f2fa;
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 2;
}

/* 見出し行の背景固定 */
.page table thead th {
    background-color: #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 3;
}

/* 横スクロール用ラッパ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# page s_table（料金表のみ）
--------------------------------------------------------------*/

/* PC表示：テーブル */
.s_table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.s_table th,
.s_table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

/* ヘッダー行 */
.s_table th {
  background: #f0f0f0;
  font-weight: bold;
}

/* 入校月セル（1列目のみ） */
.s_table td.month {
  background: #f5f5f5 !important;
  font-weight: bold;
}

/* 偶数行・教習コース列が青くならないようリセット */
.s_table table tr:nth-child(even) td,
.s_table table td:nth-child(2) {
  background: #fff !important;
  font-weight: normal !important;
  color: inherit !important;
}

/* 税込価格は太字 */
.s_table table td.total {
  font-weight: bold;
}

/* スマホ用カードはPCでは非表示 */
.s_table .card {
  display: none;
}

/* ---------- スマホ表示 ---------- */
@media (max-width: 768px) {
  /* PC用テーブルを隠す */
  .s_table table {
    display: none;
  }

  /* スマホ用カードを表示 */
  .s_table .card {
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
  }

  .s_table .card .month {
    background: #f5f5f5;
    font-weight: bold;
    padding: 8px;
    margin: -10px -10px 10px -10px;
    border-bottom: 1px solid #ccc;
  }

  .s_table .card .course {
    padding: 6px 0;
  }

  /* 税込価格とコースは太字 */
  .s_table .card .course,
  .s_table .card .total {
    font-weight: bold;
  }
}



/* ボタンデザイン */
.button {
  display: inline-block;
  background-color: #001f4d; /* 濃紺 */
  color: #fff;
  padding: 0.6em 1.5em;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  margin: 1.5em auto 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;       /* センタリング用にblock */
  width: max-content;   /* ボタン幅を中身に合わせる */
}

.button:hover {
  background-color: #159243; /* アクセントの緑 */
  color: #fff;
}

/* =============================
   お問い合わせページ用スタイル
============================= */

/* ===== お問い合わせフォーム inquiry 専用 ===== */

/* 全体調整 */
table.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

/* セル共通 */
table.inquiry th,
table.inquiry td {
  border: 1px solid #ccc;
  padding: 0.8rem;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}

/* 見出しセル */
table.inquiry th {
  background: #e6f2fa;
  font-weight: bold;
  width: 35%;
  position: relative;
}

/* 必須マーク */
table.inquiry th.required::after {
  content: " *必須";
  color: red;
  font-size: 0.85rem;
  margin-left: 0.3rem;
  font-weight: normal;
}

/* 入力セル */
table.inquiry td input[type="text"],
table.inquiry td input[type="email"],
table.inquiry td input[type="tel"],
table.inquiry td input[type="date"],
table.inquiry td textarea,
table.inquiry td select {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* テキストエリア（その他用） */
table.inquiry td textarea {
  min-height: 5em; /* 3〜5行分 */
  resize: vertical;
}

/* ラジオ・チェックボックス大きめ */
table.inquiry td input[type="radio"],
table.inquiry td input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 0.5rem;
}

/* スマホ表示 */
@media (max-width: 768px) {
  table.inquiry,
  table.inquiry thead,
  table.inquiry tbody,
  table.inquiry th,
  table.inquiry td,
  table.inquiry tr {
    display: block;
    width: 100%;
  }

  table.inquiry tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    background: #fff;
  }

  table.inquiry th {
    background: none;
    border: none;
    padding: 0.3rem 0;
    font-weight: bold;
  }

  table.inquiry td {
    border: none;
    padding: 0.5rem 0;
  }
}


/* ==============
   電話ボタン
=============== */
.tel-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  margin: 1.5rem auto;
}

.tel-button {
  display: block;
  background: #001f4d; /* 濃紺ベース */
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 0.8em 1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tel-button:hover {
  background: #159243; /* ホバー時に緑へ */
  color: #fff;
}

/* ==============
   プライバシーポリシー
=============== */
.privacy-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #222;
}

@media (max-width: 600px) {
  .privacy-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

