/* ============================================================
   information-page.css
   診察のご案内ページ専用スタイル
   style.min.css の後に読み込む
   ============================================================ */

/* ──────────────────────────────────────────
   全体背景
   ────────────────────────────────────────── */
.l-main {
  background-color: #f4f7f7;
}

/* ──────────────────────────────────────────
   アンカーナビゲーション
   ────────────────────────────────────────── */
.p-page-link {
  background: #fff;
  border-bottom: 1px solid #e0eaea;
  padding: 10px 0 8px;
  margin-bottom: 0;
  position: sticky;
  top: 60px;
  z-index: 80;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media screen and (min-width: 768px) {
  .p-page-link {
    top: 70px;
    padding: 14px 0;
  }
}

/* ── デフォルト（PC含む全幅）：折り返し表示 ── */
.p-page-link__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding: 4px 12px 6px;
  justify-content: flex-start;
}

@media screen and (min-width: 768px) {
  .p-page-link__list {
    justify-content: center;
    padding: 4px 0;
  }
}

/* ── スマートフォンのみ：1行横スクロール
   pointer:coarse = タッチ操作デバイス（スマホ・タブレット）限定 ── */
@media screen and (max-width: 767px) and (pointer: coarse) {
  .p-page-link__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .p-page-link__list::-webkit-scrollbar {
    display: none;
  }

  /* 右端フェードで「続きあり」を示す */
  .p-page-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    z-index: 1;
  }
}

/* ナビボタン */
.p-page-link__item {
  margin: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .p-page-link__item {
    font-size: 1.4rem;
    flex-shrink: 1;
  }
}

.p-page-link__item .c-button01--reverse {
  background-color: cadetblue;
  color: #fff;
  border: 1.5px solid cadetblue;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: none;
}

.p-page-link__item .c-button01--reverse:hover {
  background-color: #fff;
  color: cadetblue;
  border-color: cadetblue;
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────
   セクション共通
   ────────────────────────────────────────── */
.l-main section.p-page02 {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

/* カードラッパー */
.p-page02__inner.style_border,
.p-page02__inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 100, 100, 0.07);
  border: none;
  padding: 28px 20px 24px;
  margin: 20px auto;
  width: 92%;
  max-width: 900px;
}

@media screen and (min-width: 768px) {
  .p-page02__inner.style_border,
  .p-page02__inner {
    padding: 36px 36px 28px;
    margin: 28px auto;
  }
}

/* l-container との組み合わせで幅が狭くならないよう調整 */
.p-page02.l-container {
  padding-left: 0;
  padding-right: 0;
}

/* ──────────────────────────────────────────
   セクション H2 タイトル
   ボタン（cadetblue塗り）と区別するため
   白背景＋左アクセントバー＋cadetblue文字 に変更
   ────────────────────────────────────────── */
.p-page02__title.c-heading03.c-heading03--bg {
  /* レイアウト */
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-width: unset;
  margin-bottom: 28px;
  overflow: visible;

  /* 見た目：塗りなし・下線スタイル */
  background: none;
  border-radius: 0;
  border-left: 6px solid cadetblue;
  border-bottom: 2px solid rgba(95,158,160,0.2);
  padding: 10px 16px 10px 18px;
  color: #1a5050;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: none;
  box-shadow: none;
}

/* ::before ::after は使わない */
.p-page02__title.c-heading03.c-heading03--bg::before,
.p-page02__title.c-heading03.c-heading03--bg::after {
  display: none;
}

@media screen and (min-width: 768px) {
  .p-page02__title.c-heading03.c-heading03--bg {
    font-size: 2.1rem;
    padding: 12px 20px 12px 20px;
    margin-bottom: 32px;
  }
}

/* ──────────────────────────────────────────
   コンテンツエリア (p-page02__body)
   ────────────────────────────────────────── */
.p-page02__body {
  padding: 0;
  margin-bottom: 0;
}

.p-page02__body.style_border {
  border-bottom: 1px solid #eaeeee;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.p-page02__body.style_border:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .p-page02__body.style_border {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}

/* ──────────────────────────────────────────
   サブ見出し H3
   ────────────────────────────────────────── */

/* c-heading01 用（インラインの下線スタイルを上書き） */
.p-page02__body h3.p-page02__sub-title.c-heading01,
.p-page02__body h3.c-heading01 {
  display: block;
  width: 100%;
  color: darkcyan;
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: none;
  border-left: 3px solid cadetblue;
  padding: 4px 0 4px 12px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 768px) {
  .p-page02__body h3.p-page02__sub-title.c-heading01,
  .p-page02__body h3.c-heading01 {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }
}

/* c-heading03 用 */
.p-page02__body h3.p-page02__sub-title.c-heading03,
.p-page02__body h3.c-heading03 {
  display: block;
  width: 100%;
  color: darkcyan;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: left;
  border-left: 3px solid cadetblue;
  padding: 4px 0 4px 12px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  background: none;
}

/* c-heading03::before を非表示 */
.p-page02__body h3.c-heading03::before {
  display: none;
}

@media screen and (min-width: 768px) {
  .p-page02__body h3.p-page02__sub-title.c-heading03,
  .p-page02__body h3.c-heading03 {
    font-size: 1.8rem;
  }
}

/* ──────────────────────────────────────────
   本文テキスト
   ────────────────────────────────────────── */
.p-page02__body p {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 12px;
}

.p-page02__body p:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .p-page02__body p {
    font-size: 1.6rem;
    line-height: 2;
    margin-bottom: 14px;
  }
}

/* ──────────────────────────────────────────
   リスト (c-list02)
   ────────────────────────────────────────── */
.p-page02__body .c-list02 {
  margin: 8px 0 12px 0;
  padding: 0;
}

.p-page02__body .c-list02__item {
  font-size: 1.5rem;
  padding: 4px 0 4px 2px;
  line-height: 1.8;
}

@media screen and (min-width: 768px) {
  .p-page02__body .c-list02__item {
    font-size: 1.6rem;
  }
}

/* ──────────────────────────────────────────
   CTAボタン (.p-page02__button)
   ────────────────────────────────────────── */
.p-page02__button.c-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 56px;
  max-width: 420px;
  width: 90%;
  margin: 24px auto 8px;
  padding: 14px calc(2rem + 16px + 1rem) 14px 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.08em;
  background-color: cadetblue;
  color: #fff;
  border: 2px solid cadetblue;
  box-shadow: 0 3px 10px rgba(95,158,160,0.25);
  transition: all 0.25s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.p-page02__button.c-button:hover {
  background-color: #fff;
  color: cadetblue;
  border-color: cadetblue;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(95,158,160,0.2);
}

@media screen and (min-width: 768px) {
  .p-page02__button.c-button {
    font-size: 1.7rem;
    min-height: 60px;
    max-width: 480px;
  }
}

/* ──────────────────────────────────────────
   診療時間表・外来担当医表
   ────────────────────────────────────────── */

/* p-timetable のヘッダー行を見やすく */
.p-page02__inner .p-timetable__item-head {
  background-color: rgba(95,158,160,0.14);
  color: #1a4f50;
  font-weight: 700;
  font-size: 1.4rem;
}

@media screen and (min-width: 768px) {
  .p-page02__inner .p-timetable__item-head {
    font-size: 1.6rem;
  }
}

.p-page02__inner .p-timetable__item-head--satur {
  color: #0043ba;
  background-color: rgba(0,80,220,0.08);
}

.p-page02__inner .p-timetable__item-head--holi {
  color: #960043;
  background-color: rgba(200,0,60,0.07);
}

.p-page02__inner .p-timetable__item {
  font-size: 1.35rem;
  background-color: #fff;
}

@media screen and (min-width: 768px) {
  .p-page02__inner .p-timetable__item {
    font-size: 1.5rem;
  }
}

.p-page02__inner .p-timetable__item span {
  color: cadetblue;
  font-weight: 700;
}

/* 受付時間テキスト */
.p-page02__inner > div:not(.p-page02__body):not(.p-timetable) {
  font-size: 1.4rem;
  color: #555;
  margin-top: 12px;
  line-height: 2;
}

/* ──────────────────────────────────────────
   外来担当医表 (p-timetable2) 全面リデザイン
   ────────────────────────────────────────── */
.p-page02__inner .p-timetable2 {
  display: grid;
  grid-template-columns: minmax(40px, 56px) repeat(6, 1fr);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d4e8e8;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
  .p-page02__inner .p-timetable2 {
    font-size: 1.5rem;
  }
}

/* ヘッダー行 */
.p-page02__inner .p-timetable2__item-head {
  background: linear-gradient(135deg, #3d8f91 0%, #5f9ea0 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.p-page02__inner .p-timetable2__item-head:last-of-type {
  border-right: none;
}

.p-page02__inner .p-timetable2__item-head--satur {
  background: linear-gradient(135deg, #2b6fa8 0%, #4488c8 100%);
  color: #fff;
}

/* データセル */
.p-page02__inner .p-timetable2__item {
  padding: 10px 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0eeee;
  border-top: none;
  border-left: none;
  line-height: 1.5;
  min-height: 48px;
  background: #fff;
  color: #333;
  font-weight: 500;
  transition: background 0.15s;
}

/* 偶数行（午後）にごく淡い背景 */
.p-page02__inner .p-timetable2__item:nth-child(n+8) {
  background-color: #f7fafa;
}

/* 時間ラベル列（午前 / 午後） */
.p-page02__inner .p-timetable2__item:nth-child(8),
.p-page02__inner .p-timetable2__item:nth-child(15) {
  background-color: rgba(95,158,160,0.08);
  color: #1a5050;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

/* 右端の土曜列セルに淡い青 */
.p-page02__inner .p-timetable2__item:nth-child(7n) {
  background-color: rgba(35,100,200,0.05);
}

/* 「手術」セルは薄いオレンジでマーキング */
/* ※ 手術セルは::after擬似要素ではなくCSS変数・直接サポートが難しいため
      JS非依存でテキストにスタイルを当てる代わりにHTMLにclassを追加することを推奨
      ここでは nth-child による大まかな対応のみ */

/* 月・火・木午後 = grid内 col2,col3,col5 row3 ≒ 手術セル */
.p-page02__inner .p-timetable2__item:nth-child(16),
.p-page02__inner .p-timetable2__item:nth-child(17),
.p-page02__inner .p-timetable2__item:nth-child(19) {
  color: #b07040;
  background-color: rgba(255, 160, 80, 0.07) !important;
  font-weight: 600;
}

/* 土曜午後（休診）*/
.p-page02__inner .p-timetable2__item:nth-child(21) {
  color: #aaa;
  font-style: italic;
  background-color: #f5f5f5 !important;
}

/* ──────────────────────────────────────────
   テーブル (c-table02)
   ────────────────────────────────────────── */
.p-page02__body .c-table02 {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.p-page02__body .c-table02 th {
  background-color: cadetblue;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 12px 14px;
}

.p-page02__body .c-table02 td {
  background-color: #fff;
  color: #333;
  font-size: 1.5rem;
  padding: 12px 14px;
  border-bottom: 1px solid #eaeeee;
}

@media screen and (min-width: 768px) {
  .p-page02__body .c-table02 th,
  .p-page02__body .c-table02 td {
    font-size: 1.7rem;
    padding: 14px 18px;
  }
}

/* ──────────────────────────────────────────
   セクション間の区切り余白（l-container）
   ────────────────────────────────────────── */
.l-main section.p-page02 + section.p-page02 {
  margin-top: 0;
}
