/* 診療時間・担当医表（page-hours.php）のページの CSS
   元：医院\nishinippori-scratch\HTML\診療時間・担当医表_PC_1604-212757\公開用\css\style.css の base（診療時間表）・s01（FV・パンくず）・s02（表・注記・カレンダー）。
   ヘッダー・固定ボタン・TOP ボタン・予約の帯（s03）・フッター（s04）は共通の部品なので、ここには書かない。
   .hours-table はフッターの表と名前がぶつからないよう .nn-main--hours の中だけで効かせる */

.nn-main--hours {
  --c-text: #514c46;
  --c-bg: #fbf7f4;
  --c-white: #ffffff;
  --c-line: #ece5dc;
  --c-table-head: #faf9f5;
  --c-accent: #e8a477;
  --c-accent-deep: #e88f54;
  --c-female: #f498ae;
  --c-male: #a1c3ed;
  --c-gray: #939393;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho B1", "Noto Serif JP", serif;
  --font-en: "Source Serif 4", "Noto Serif JP", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --inner: 1120px;

  display: block;
  width: 100%;
  overflow-x: clip;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-spacing-trim: space-all;
}
:where(.nn-main--hours) *, :where(.nn-main--hours) *::before, :where(.nn-main--hours) *::after { box-sizing: border-box; }
:where(.nn-main--hours) img { max-width: 100%; height: auto; display: block; }
:where(.nn-main--hours) a { color: inherit; }

/* 診療時間表（担当医の名前入り） */
.nn-main--hours .hours-table {
  --ht-head-size: 16px;
  --ht-head-pad: 7px;
  --ht-time-size: 18px;
  --ht-cell-size: 16px;
  --ht-row-h: 68px;
  --ht-first: 34.375%;
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 0;
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
  border-radius: 5px 5px 0 0;
  color: var(--c-text);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}
.nn-main--hours .hours-table th,
.nn-main--hours .hours-table td {
  border: 0;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 0 4px;
  vertical-align: middle;
  font-weight: 500;
  text-align: center;
}
.nn-main--hours .hours-table thead th {
  background: var(--c-table-head);
  padding-block: var(--ht-head-pad);
  font-size: var(--ht-head-size);
  line-height: 1;
}
.nn-main--hours .hours-table thead th:first-child { width: var(--ht-first); border-top-left-radius: 5px; }
.nn-main--hours .hours-table thead th:last-child { border-top-right-radius: 5px; }
.nn-main--hours .hours-table tbody th,
.nn-main--hours .hours-table tbody td { background: var(--c-white); height: var(--ht-row-h); }
.nn-main--hours .hours-table tbody th { font-size: var(--ht-time-size); line-height: 1.2; }
.nn-main--hours .hours-table tbody td { font-size: var(--ht-cell-size); line-height: 1; letter-spacing: 0; }
.nn-main--hours .hours-table .is-female { color: var(--c-female); }
.nn-main--hours .hours-table .is-male { color: var(--c-male); }
.nn-main--hours .hours-table .is-off { color: var(--c-gray); }
@media (max-width: 767px) {
  .nn-main--hours .hours-table { --ht-head-size: 13px; --ht-time-size: 13px; --ht-cell-size: 12px; --ht-row-h: 56px; --ht-first: 30%; }
  .nn-main--hours .hours-table th,
  .nn-main--hours .hours-table td { padding-inline: 2px; }
}

/* ===== s01 FV・パンくず ===== */
.s01 { position: relative; }
.s01 ul, .s01 ol { list-style: none; margin: 0; padding: 0; }
.s01 p { margin: 0; }
.s01 a { text-decoration: none; }

.s01-hero { position: relative; display: flex; align-items: center; height: 500px; overflow: hidden; }
.s01-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 63.5%;
}
.s01-hero::after { content: ""; position: absolute; inset: 0; background: rgba(102, 80, 65, 0.2); }
.s01-hero-text {
  position: relative;
  z-index: 1;
  margin-left: max(var(--gutter), 50% - 560px);
  color: var(--c-white);
  text-shadow: 0 0 7.6px #715a5a;
}
.s01-hero-en { font-family: var(--font-en); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: 0.05em; }
.s01-hero-title {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
}
.s01-hero-dot { margin-inline: -0.27em; }

.s01-crumb-wrap {
  position: relative;
  z-index: 1;
  height: 135px;
  margin-top: -27px;
  padding-top: 20px;
  border-radius: 30px 30px 0 0;
  background: var(--c-bg);
}
.s01-crumb { width: min(var(--inner), 100% - var(--gutter) * 2); margin-inline: auto; }
.s01-crumb-list { display: flex; align-items: center; gap: 10px; height: 64px; }
.s01-crumb-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px;
  transition: opacity 0.3s ease-out;
}
.s01-crumb-sep { display: flex; }
.s01-crumb-list span { color: var(--c-gray); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: 0.1em; }
@media (hover: hover) {
  .s01-crumb-home:hover { opacity: 0.7; }
}
@media (max-width: 767px) {
  .s01-hero { height: 234px; }
  .s01-hero-en { font-size: 16px; }
  .s01-hero-title { margin-top: 10px; font-size: 26px; }
  .s01-crumb-wrap { height: 70px; margin-top: -20px; padding-top: 12px; border-radius: 20px 20px 0 0; }
  .s01-crumb-list { height: 48px; gap: 8px; }
  .s01-crumb-home img { width: 20px; height: 20px; }
  .s01-crumb-list span { font-size: 12px; }
}

/* ===== s02 表・注記・カレンダー ===== */
.s02 { padding: 49px 0 120px; }
.s02 p { margin: 0; }
.s02-inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: min(var(--inner), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.s02-block { display: flex; flex-direction: column; }
.s02-head {
  position: relative;
  margin: 0 0 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c-gray);
  color: var(--c-accent-deep);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.s02-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 2px;
  border-radius: 0 0 50px 50px;
  background: var(--c-accent-deep);
}

.nn-main--hours .s02-table tbody tr:last-child th,
.nn-main--hours .s02-table tbody tr:last-child td { height: 65px; }
.s02-table tbody th { letter-spacing: 0.05em; }

.s02-legend {
  display: flex;
  gap: 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
.s02-legend li { margin: 0; }
.s02-legend li::before { content: "●"; margin-right: 2px; }
.s02-legend-f::before { color: var(--c-female); }
.s02-legend-m::before { color: var(--c-male); }

.s02 .s02-note {
  max-width: 960px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.s02-cal {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1120 / 570;
  border-radius: 2.5px;
  overflow: hidden;
}
.s02-cal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-ece298d0ec2c16f1) center / cover no-repeat;
  opacity: 0.2;
}
.s02-cal img { position: relative; width: 100%; height: auto; }

@media (max-width: 1024px) {
  .nn-main--hours .s02-table { --ht-first: 26%; --ht-time-size: 16px; }
}
@media (max-width: 767px) {
  .s02 { padding: 30px 0 60px; }
  .s02-inner { gap: 60px; width: calc(100% - 40px); }
  .s02-head { margin-bottom: 24px; padding-top: 16px; font-size: 20px; }
  .nn-main--hours .s02-table { --ht-first: 26%; --ht-time-size: 11px; --ht-cell-size: 10px; --ht-head-size: 11px; --ht-row-h: 40px; }
  .nn-main--hours .s02-table tbody tr:last-child th,
  .nn-main--hours .s02-table tbody tr:last-child td { height: 40px; }
  /* 2人のマスは名前を2行に（中黒は出さない） */
  .s02-table td > span { display: block; }
  .s02-table td > span.is-off,
  .s02-table .s02-sep { display: none; }
  .nn-main--hours .s02-table td { line-height: 1.2; }
  .s02-legend { font-size: 12px; }
  .s02 .s02-note { font-size: 14px; }
}
