@charset "utf-8";

/* =========================================================
   PC STYLES (>= 769px)
========================================================= */

/* Reset / Base */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:"Noto Sans JP",sans-serif; }
img{ max-width:100%; height:auto; display:block; }

.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.subpage__w{
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 50px;
  background: #ffff;
  border-radius: 10px;
	}
/* Header */
.site-header{ position:relative; background:#fff; text-align:center; }
.header-top{ font-size:14px; color:#333; padding:10px 0; }
.header-logo img{ width:420px; height:auto; display:block; margin:10px auto; }

/* Main Visual */
.mainvisual{
  position: relative;
  background: url("../images/mainvisual.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 40px 20px 150px;
}
.mainvisual-inner{ margin:0 auto; position:static; }

/* Hero: vertical copy (right-top fixed) */
.lead-vertical{
  position:absolute; top:24px; right:24px;
  writing-mode:vertical-rl; text-orientation:mixed;
  display:flex; gap:12px; z-index:40; transform-origin:top right;
}
.lead-box{
  background: #fff;
  color: #0b5eae;
  font-weight: 800;
  padding: 20px 14px 0;
  line-height: 1.8;
  font-size: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  margin: 0;
  border-radius: 0;
  letter-spacing: .1em;
}

/* Hero: main/sub copy boxes */
.mainvisual .catch .lead{
  display:inline-block; background:#fff; color:#0b5eae;
  padding:16px 22px; line-height:1.7; font-weight:800; font-size:1.8rem;
  border-radius:0; box-shadow:0 6px 18px rgba(0,0,0,.08); margin:0;
}
.mainvisual .catch .lead + .lead{ margin-top:12px; }
.mainvisual .catch .sub{
  display: inline-block;
  margin-top: 16px;
  background: #0b5eae;
  color: #fff;
  padding: 25px 80px;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.6;
  border-radius: 0;
  letter-spacing: .1em;
  border-radius: 10px;
}

/* Features (banner images, fade-in) */
.features{ display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin-top:2.5em; }
.feature-item{
  margin:0; padding:0; background:transparent; border-radius:0; box-shadow:none;
  max-width:420px; width:100%; opacity:0; transform:translateY(20px); animation:fadeInUp 1.2s ease forwards;
}
.feature-item:nth-child(1){ animation-delay:.2s; }
.feature-item:nth-child(2){ animation-delay:.6s; }
.feature-item img{ display:block; width:100%; height:auto; border-radius:12px; }
@keyframes fadeInUp{ from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

/* Section Title (common) */
.section-title{
  position: relative;
  margin: 0 0 60px;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .1em;
  font-family: "Kosugi Maru", sans-serif;
}
.section-title::after{
  content:""; display:block; width:60px; height:4px; margin:20px auto 0;
  border-radius:999px; background:linear-gradient(90deg,#7cc6ff,#0b5eae);
}

/* Doctor Section */
.doctor-section{ padding:80px 0 0; background:transparent; }
.doctor-card{
  max-width: 560px;
  margin: 0 auto;
  padding: 50px 28px;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  text-align: center;
  background: #fff;
}
.doctor-card__role{
  font-size: 25px;
  letter-spacing: .12em;
  font-weight: 500;
  margin-bottom: 12px;}
.doctor-card__name{
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: .06em;
  font-weight: 600;
  color: #111827;
}

.doctor19{ margin-top:48px; display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.doctor20{
  border-radius: 12px;
  padding: 40px;
  background: #f6f6f6;
}
.doctor7 h3{ margin:0 0 24px; font-size:20px; font-weight:500; letter-spacing:.06em; color:#0a4e9c; text-align: center;}
.doctor21{ margin-top:10px; }
.doctor22{ position:relative; padding-left:22px; }
.doctor22 + .doctor22{ margin-top:10px; }
.doctor22::before{
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b5eae;
}

.doctor22:last-child::after{ display:none; }
.doctor24{ font-size:15px; line-height:1.7; }

.doctor8{
  margin-top: 60px;
  background: #f6f6f6;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 50px 60px;
  /* box-shadow: 0 8px 24px rgba(16,24,40,.06); */
	}

.doctor27 h3{
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 32px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
  justify-content: center;
  color: #0a4e9c;
}
.doctor27 h3 p{ font-size:12px; letter-spacing:.2em; color:#6b7280; margin:0; }
.doctor8 p{ font-size:17px; line-height:2; color:#1f2937; margin:0; }
.doctor26{
  margin-top: 8px;
  text-align: right;
  font-weight: 500;
  /* color: #0b5eae; */
  font-size: 24px;
  font-family: "Noto Serif JP", serif;
}
.doctor26-clinic{
  margin-top: 18px;
  margin-bottom: 0;
  text-align: right;
  font-weight: 400;
  letter-spacing: .04em;
  font-size: 16px;
	font-family:"Noto Sans JP",sans-serif;
}

/* Timetable */
.timetable-section{ padding:60px 0; background:transparent; }
.medical1{ text-align:center; font-size:28px; font-weight:800; letter-spacing:.05em; margin:0; }
.toptimetable8{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}
.toptimetable8 thead th{
  background: #3070ac;
  color: #ffffff;
  font-weight: 500;
  font-size: 20px;
  padding: 24px 12px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #e6ecf5;
  letter-spacing: .1em;
}
.toptimetable8 tbody th{
  background: #f7f7f7;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid #dcdcdc;
  white-space: nowrap;
  font-size: 18px;
}
.toptimetable8 td{ text-align:center; padding:12px 10px; border-bottom:1px solid #dcdcdc; }
.toptimetable8 tr:last-child th, .toptimetable8 tr:last-child td{ border-bottom:none; }
.txt_blue{ color:#0b5eae; font-weight:800; }
.toptimetable19{ color:#94a3b8; font-weight:700; }
.toptimetable16{ opacity:.6; }
.toptimetable20{
  margin-top: 25px;
  text-align: center;
  color: #dd3a3a;
  font-size: 18px;
  letter-spacing: .02em;
}

/* Access */
.access-section{ background:#fdfcf8; padding:60px 0 0; }
.map-illust img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* box-shadow: 0 8px 24px rgba(16,24,40,.06); */
  border: 1px solid #ccc;

}
.gm_w{ width:100%; margin-bottom: 40px; }
.gm_w iframe{
  width:100%; height:60vh; min-height:320px; max-height:520px; border:0;
  border-radius:12px;
}
.outlinetbl{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #dfdfdf;
  overflow: hidden;
}
.outlinetbl th, .outlinetbl td{
  padding: 25px 20px;
  border-bottom: 1px solid #dfdfdf;
}
.outlinetbl tr:last-child th, .outlinetbl tr:last-child td{ border-bottom:none; }
.outlinetbl th{
  width: 20%;
  min-width: 100px;
  white-space: nowrap;
  background: #f9f9f9;
font-size: 17px;
  font-weight: 500;
  text-align: revert;
}
.outlinetbl td{ color:#1f2937;font-size: 17px; }

/* Footer */
.site-footer{ background:#fdfcf8; padding:0 0 0; }
.footer-inner{ text-align:center; padding: 70px 0 60px;}
.footer-logo img{ width:420px; max-width:60vw; height:auto; margin:0 auto; display:block; }
.copyright{ margin-top:24px; background:#0b5eae; color:#fff; text-align:center; font-size:13px; letter-spacing:.02em; padding:14px 10px; }

/* Background wrapper (Doctor + Timetable share one sky image + overlay) */
.bg-sky-wrap{
  position:relative; background:url("../images/bg-sky.jpg") center top/cover no-repeat; isolation:isolate;
}
.bg-sky-wrap::before{ content:""; position:absolute; inset:0; background:rgba(255,255,255,.52); pointer-events:none; z-index:0; }
.bg-sky-wrap > section{ position:relative; z-index:1; background:transparent !important; }

/* =========================================================
   SMARTPHONE STYLES (<= 768px)
========================================================= */
@media (max-width:768px){

  /* Base containers */
  .subpage__w{
	
	  max-width: 95%;
  margin: 0 auto;
  padding: 50px 20px;
  background: #fff;
  border-radius: 10px;
	
	}

  /* Header */
  .header-top{ padding:8px 0; }
  .header-logo img{ width:60%; margin:8px auto; }

  /* Main Visual */
  .mainvisual{ padding:100px 16px; overflow:hidden; }
  .lead-vertical{
    top:12px; right:10px;
    transform:scale(.8);
  }
  .lead-box{
	  font-size: 1.8rem;
  padding: 18px 12px 0;
  line-height: 1.7;
	}

  .mainvisual .catch .lead{
    padding:12px 16px; font-size:1.4rem;
  }
  .mainvisual .catch .lead + .lead{ margin-top:10px; }
  .mainvisual .catch .sub{
    margin-top:14px; padding:8px 12px; font-size:.95rem;
  }

  /* Features (2-up grid) */
  .features{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:2em; }
  .feature-item{ max-width:none; }

  /* Section Title */
  .section-title{ font-size:22px; margin-bottom:38px; }

  /* Doctor Section */
  .doctor-section{ padding:56px 0 0; }
  .doctor-card{ padding:38px 20px; }
  .doctor-card__name{ font-size:34px; }

  .doctor19{ margin-top:24px; grid-template-columns:1fr; gap:20px; }
  .doctor20{ padding:30px; }
  .doctor7 h3{ font-size:20px; margin:0 0 22px; }
  .doctor21{ margin-top:8px; }
  .doctor24{ font-size:16px; line-height:1.8; }

  .doctor8{
	  margin-top: 60px;
  background: #f6f6f6;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 30px 30px;
	}
  .doctor27 h3{ gap:10px; margin:0 0 34px; font-size:20px; }
  .doctor8 p{ font-size:16px; }
  .doctor26{ margin-top:6px; }
  .doctor26-clinic{ margin-top:26px; margin-bottom:0; }

  /* Timetable */
  .timetable-section{ padding:56px 0; }
  .medical1{ font-size:22px; }
  .toptimetable8 thead th{ font-size:15px; padding:12px 10px; }
  .toptimetable8 tbody th{ font-size:15px; }
  .toptimetable8 td{ font-size:15px; }
  .toptimetable20{ margin-top:22px; font-size:16px; }

  /* Access */
  .access-section{ padding:56px 0 0; }
  .gm_w iframe{ height:45vh; max-height:480px; }
  .outlinetbl th{ width:34%; min-width:110px;font-size: 16px; }
.outlinetbl td {
  color: #1f2937;
  font-size: 16px;
}
  /* Footer */
  .site-footer{ padding:0 0 0; }
  .footer-logo img{ width:60%; }
  .copyright{ font-size:12px; padding:12px 8px; }

  /* iPhone safe area (optional) */
  .lead-vertical{ right:calc(10px + env(safe-area-inset-right)); }
}



/* === 縦書きキャッチ：横並び強制（最終上書き） === */
.lead-vertical{
  display: flex !important;       /* 横並び */
  flex-direction: row !important;  /* 横方向 */
  gap: 12px !important;
  writing-mode: horizontal-tb !important; /* 親は横書きに戻す */
}

.lead-vertical .lead-box{
  writing-mode: vertical-rl !important;   /* 子だけ縦書き */
  text-orientation: mixed !important;
  display: block !important;              /* 余計なインライン挙動を排除 */
  margin: 0 !important;                   /* 以前の列間用マージンをリセット */
}

/* 列間は gap で管理するため無効化 */
.lead-vertical .lead-box + .lead-box{
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* ============================
   SP重なり回避＆縦並び（最後に追記）
============================ */
@media (max-width: 768px){

  /* 縦書きのぶん上側に余白を確保（数値は見た目に合わせて調整可） */
  .mainvisual{
    padding-top: calc(100px + var(--lead-vertical-space));
    /* 右上固定の縦書きと被らないように */
  }

  /* 特長バナー：縦に1枚ずつ */
  .features{
    display: grid !important;
    grid-template-columns: 1fr !important; /* ← 縦並び */
    gap: 12px;
    margin-top: 16px; /* 余白微増 */
    justify-items: center;
  }
  .feature-item{
    max-width: 360px;   /* 横幅を抑えて中央に */
    width: 100%;
  }

  /* 念のため：縦書きは右上固定のまま */
  .lead-vertical{
  top: 22px;
  right: 10px;
  transform: scale(.8);
  right: calc(10px + env(safe-area-inset-right));
  z-index: 40;
  }
}



/* ヒーロー縦書き：右→左の読順にし、左列だけ1文字分下げる */
.lead-vertical{
  flex-direction: row-reverse !important;  /* 右列＝先頭、左列＝2番目 */
}

/* 左側の列（= 2番目）を上から1文字分だけ下げる */
.lead-vertical .lead-box:nth-child(2){
  transform: translateY(1em);              /* 1文字分のオフセット */
}

/* SPでも同様（必要なら少しだけ量を減らす） */
@media (max-width: 768px){
  .lead-vertical .lead-box:nth-child(2){
    transform: translateY(0.9em);
  }
}


figure {
  display: block;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  unicode-bidi: isolate;
}

.map-illust{
margin-bottom: 40px;
}


.bnr-recruit{
width: 486px;
margin: 35px 0 0 0;
z-index: 100;
}

.mainvisual{
width: 100%;
}


.bnr-recruit img:hover{
opacity: .8;
}

@media (max-width: 768px){
  .bnr-recruit{
    width: 100%;
  }

.bnr-recruit img{
  width: 90%;
  max-height: 200px;
  margin: 0 auto;
}

.footer-inner{ text-align:center; padding: 60px 0 60px;}


}


/* ===== Hero vertical copy (final-clean) ===== */
/* 右上固定・2本を横並び。日本語の読順（右→左）で表示 */
.lead-vertical{
  position:absolute; top:24px; right:24px;
  display:flex; gap:12px;
  flex-direction: row-reverse;          /* 右列が先、左列が後＝右→左で読む */
  writing-mode: horizontal-tb;          /* 親は横書き（子だけ縦書きにする） */
  text-orientation: mixed;
  z-index:40; transform-origin: top right;
}

/* 各ボックスは縦書き */
.lead-vertical .lead-box{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display:block;
  background:#fff;
  color:#0b5eae;
  font-weight:800;
  letter-spacing:.1em;
  line-height:1.8;
  padding:20px 14px 0;
  font-size:2rem;                   /* PCサイズ */
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border-radius:0;
  margin:0;
}

/* 左側の列（= 2番目）を1文字分だけ下げる */
.lead-vertical .lead-box:nth-child(2){
  transform: translateY(1em);
}

/* SP調整：少し縮小、フォント微調整。位置は右上固定のまま */
@media (max-width:768px){
  .lead-vertical{ top:12px; right: calc(10px + env(safe-area-inset-right)); transform: scale(.8); }
  .lead-vertical .lead-box{ font-size:1.8rem; padding:18px 12px 0; }
  .lead-vertical .lead-box:nth-child(2){ transform: translateY(.9em); }
}


/* ===== SP重なり回避 & 特長バナーを縦並び ===== */
@media (max-width:768px){
  /* 縦書きぶんの余白をメインビジュアルの上側に確保（見た目で調整可） */
  .mainvisual{ padding-top: calc(100px + var(--lead-vertical-space)); }

  /* 特長バナーは1カラムで縦並び＋中央寄せ */
  .features{
    display:grid !important;
    grid-template-columns: 1fr !important;
    gap:12px;
    margin-top:16px;
    justify-items:center;
  }
  .feature-item{ max-width:360px; width:100%; }
}





/* ==== PC既定：右上に固定＆縦書き2本を横並び（右→左） ==== */
@media (min-width: 769px){
  .mainvisual{ position: relative; }
  .lead-vertical{
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    flex-direction: row-reverse;   /* 読み順：右→左 */
    writing-mode: horizontal-tb;   /* 親は横書き、子で縦書きにする */
    z-index: 40;
    transform-origin: top right;
  }
  .lead-vertical .lead-box{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: block;
  }
}

/* ==== スマホ：フロー内＆中央、横並び（1→2の順で横に並ぶ） ==== */
@media (max-width: 768px){

  /* 位置：絶対配置を解除して通常フローに（①→②→③の順がそのまま出る） */
  .lead-vertical{
    position: static !important;
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 12px !important;
    flex-direction: row !important;       /* 横並び */
    writing-mode: horizontal-tb !important; /* 親は横書き */
    transform: none !important;
    margin-bottom: 14px;                   /* 下に少し余白 */
  }

  /* 子要素は縦書きのまま */
  .lead-vertical .lead-box{
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    display: block !important;
    transform: none !important;            /* 以前の translateY をいったんリセット */
  }

  /* 左側(2つ目)だけ1文字分下げる演出を続ける場合はこちら */
  .lead-vertical .lead-box:nth-child(2){
    transform: translateY(.9em) !important;
  }

  /* かぶり回避：ヒーロー余白をスマホ用に調整（既存の余白上書き） */
  .mainvisual{
    padding-top: 24px !important;          /* 縦書きがフローに入るので大きな上パディングは不要 */
  }

  /* 特長バナーは縦並び or 2列いずれでもOK。ご指定があれば切替可 */
  /* 縦並びにする場合 */
  .features{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    justify-items: center;
  }
  .feature-item{ max-width: 360px; width: 100%; }
}

/* ===== SP：ヒーローのキャッチを横書き・横並びに強制 ===== */
@media (max-width: 768px){

  /* 親は通常フロー/中央寄せのままでもOK。横並びを明示 */
  .lead-vertical{
    position: static !important;
    display: flex !important;
    flex-direction: row !important;       /* ← 左→右に横並び */
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 12px !important;
    writing-mode: horizontal-tb !important; /* 親は横書き */
    transform: none !important;
    margin-bottom: 14px !important;
  }

  /* 子ボックスは“横書き”に変更（縦書きを解除） */
  .lead-vertical .lead-box{
    writing-mode: horizontal-tb !important;  /* ← 横書きへ */
    text-orientation: initial !important;
    display: block !important;
    transform: none !important;               /* ずらし解除 */
    font-size: 1.2rem !important;             /* 読みやすいサイズ */
    line-height: 1.6 !important;
    padding: 10px 12px !important;
  }

  /* 以前の「左列を1文字下げ」演出は横書きでは不要なので無効化 */
  .lead-vertical .lead-box:nth-child(2){
    transform: none !important;
  }

  /* 縦書きがフローに入るため、上の余白は通常値に */
  .mainvisual{
    padding-top: 24px !important;
  }
}


/* ===== SP: ヒーローコピーを横書き2行に ===== */
@media (max-width: 768px){
  /* 縦書きブロックを通常フローにして中央寄せ */
  .lead-vertical{
    position: static !important;
    display: block !important;
    writing-mode: horizontal-tb !important;
    text-align: center !important;
    margin: 0 0 14px !important;
    transform: none !important;
  }
  /* 各ボックスは横書き・ブロック化して“行”として扱う */
  .lead-vertical .lead-box{
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    display: block !important;          /* ← これで改行 */
    margin: 0 auto !important;
    max-width: 680px;                    /* 任意の上限 */
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    padding: 10px 12px !important;
    transform: none !important;          /* ずらし無効 */
  }
  .lead-vertical .lead-box + .lead-box{
    margin-top: 8px !important;          /* 1行目→2行目の間隔 */
  }

  /* ===== SP: サブコピー帯を幅80%に拡大 ===== */
  .mainvisual .catch .sub{
  display: block !important;
  width: 70% !important;
  max-width: 720px;
  margin: 12px auto 0 !important;
  font-size: 4.5vw !important;
  line-height: 1.6 !important;
  padding: 20px 16px !important;
  border-radius: 10px;
  }
}


/* ===== SP：キャッチ2行の左寄せ＆内容幅フィット、2行目インデント ===== */
@media (max-width: 768px){
  .lead-vertical{
    position: static !important;
    display: block !important;
    writing-mode: horizontal-tb !important;
    text-align: left !important;      /* 左寄せ */
    margin: 0 0 12px !important;
    transform: none !important;
  }

  .lead-vertical .lead-box{
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    display: inline-block !important; /* ← 内容幅にフィット */
    width: auto !important;
    max-width: 100%;
    background: #fff;
    color: #0b5eae;
    font-weight: 800;
    line-height: 1.6;
    padding: 10px 12px;               /* 文字周りの白囲み */
    margin: 0 0 8px 0 !important;     /* 行間 */
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }

  /* 2行目のみ、左端から少し余白（インデント） */
  .lead-vertical .lead-box:nth-child(2){
    margin-left: 0.8em !important;    /* お好みで 0.6–1.2em で調整可 */
  }
}


/* ===== SP：特長バナーを横並び（2カラム）に ===== */
@media (max-width: 768px){
  .features{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  justify-items: center;
  align-items: stretch;
  margin-top: 30px;
  }
  .feature-item{
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .feature-item img{
    display: block;
    width: 100%;
    height: auto;
  }
}

.hero-pc{

}

.hero-pc img{
    width: 660px;
}

.hero-sp{
display: none;
}




/* ===== SP：特長バナーを横並び（2カラム）に ===== */
@media (max-width: 768px){
.wrap {
    position: relative;
overflow-x: hidden; /* 横スクロール防止 */
}
.hero-pc{
display: none;

}


.hero-sp{
display: block;
text-align: center;
}


.hero-sp img{
width: 98%;
margin: 0 auto;
}




}

/* ===== SP：アクセス情報テーブルを幅100%・縦並びに ===== */
@media (max-width: 768px){
  .outlinetbl,
  .outlinetbl tbody,
  .outlinetbl tr,
  .outlinetbl th,
  .outlinetbl td {
    display: block !important;     /* ブロック化して縦積み */
    width: 100% !important;        /* 各セル幅を100%に */
    box-sizing: border-box;
  }

  .outlinetbl tr {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
  }

  .outlinetbl th {
    font-weight: 800;
    padding: 10px 12px;
    border: none;
  }

  .outlinetbl td {
    padding: 20px;
    border: none;
  }
	
/* style.css の @media (max-width: 768px) { ... } の中に追加・修正 */

/* --- ▼▼▼ 以下のように修正・追記 ▼▼▼ --- */

.toptimetable8 {
  table-layout: fixed; /* テーブルの幅を固定し、列幅を均等に割り振る */
  width: 100%; /* テーブルの幅を親要素に合わせる */
}

.toptimetable8 thead th,
.toptimetable8 tbody th {
  white-space: normal; /* セル内での改行を許可する */
}

.toptimetable8 thead th {
  font-size: 14px;     /* 文字サイズを少し小さく */
  padding: 10px 4px;  /* 左右の余白を詰める */
  letter-spacing: normal; /* 文字間隔を詰める */
}

.toptimetable8 tbody th {
  font-size: 13px;     /* 文字サイズを少し小さく */
  padding: 10px 5px;  /* 左右の余白を詰める */
}

.toptimetable8 td {
  font-size: 16px;     /* 「●」や「─」のサイズは維持 */
  padding: 10px 2px;  /* 左右の余白を詰める */
}

/* --- ▲▲▲ ここまで修正・追記 ▲▲▲ --- */
}








/* 追加・上書き（PC：メインビジュアルを100vhに） */
@media (min-width: 769px){
  .mainvisual{
    padding: 0 20px;       /* 既存の下150pxパディングを無効化 */
    display: flex;         /* 中央寄せ */
    align-items: center;
    justify-content: center;
  }
}

/* PC：100vh時の上下余白を対称に（低解像度対策） */
@media (min-width: 769px){
  .mainvisual{
    height: 770px;
    display: flex;
    justify-content: center;
    align-items: flex-start;  /* 上寄せ */
		padding-top: 30px;
  }
}


/* ===== SP: メインビジュアルを100vhに ===== */
@media (max-width: 768px){
.mainvisual{
padding-top: 0 !important;
padding-bottom: 0 !important;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
}


/* ===== SP：ヒーロー画像（hero-sp）を上寄せ＋上余白 ===== */
@media (max-width: 768px){
  .mainvisual{
    /* 既存の中央寄せを上寄せに切替 */
    justify-content: flex-start !important;  /* ← 縦方向 上寄せ */
    padding: 40px 0 60px !important;            /* ← 最上部からの余白 */
  }

  .hero-sp{
    display: block;           /* 念のため明示 */
    text-align: center;
  }

  .hero-sp img{
    width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}
