@charset "UTF-8";
/* ============================================================
   きしクリニック 共通スタイルシート
   このファイルが全ページ共通のデザイン定義です。
   ページ個別の <style> は原則置かないでください。
   ============================================================ */

/* ------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------ */
:root {
  /* 色 */
  --ink:        #2d3240;
  --ink-70:     #5b606c;
  --ink-50:     #878b94;
  --base:       #faf8f5;
  --base-deep:  #f2efe9;
  --line:       #e6e2dc;
  --sky-400:    #5cc2ec;
  --sky-500:    #29a8e0;
  --sky-600:    #1c8fc4;
  --coral-400:  #f0798c;
  --coral-500:  #e8536b;
  --white:      #fff;

  /* 書体 */
  --font-sans:  "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;
  --font-en:    "Times New Roman", serif;

  /* 本文の文字サイズ（全ページ共通のトーン） */
  --fs-body:    14px;   /* SP 本文 */
  --fs-body-lg: 15px;   /* PC 本文 */
  --fs-note:    13px;   /* 注釈 */

  /* レイアウト */
  --content:    1140px;
  --radius:     6px;
}

/* ------------------------------------------------------------
   2. ベース
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* キーボード操作時のフォーカス表示（医療機関サイトとして必須） */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ページ内リンクの着地位置を、固定ヘッダーの高さ分だけずらす */
.anchor-offset { scroll-margin-top: 88px; }
@media (min-width: 1024px) {
  .anchor-offset { scroll-margin-top: 196px; }
}

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------
   3. セクション見出し（英字ラベル＋和文）
   ------------------------------------------------------------ */
.sec-label {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--sky-500);
  margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------
   4. グローバルナビ（PC）
   ------------------------------------------------------------ */
.gnav > li { position: relative; }

.gnav > li > a {
  display: block;
  padding: 16px 10px;
  text-align: center;
  position: relative;
}

/* 和文は明朝でゆったりと */
.gnav .ja {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s ease;
}

/* 英文は頭大文字・非イタリックで、和文を支えるサブラベルに */
.gnav .en {
  display: block;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.3;
  color: var(--sky-500);
  margin-top: 7px;
  transition: opacity .2s ease;
}

/* ホバー時：和文を色変え＋下に細いラインを伸ばす */
.gnav > li > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 1px;
  background: var(--sky-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}
.gnav > li > a:hover .ja,
.gnav > li:focus-within > a .ja { color: var(--sky-500); }
.gnav > li > a:hover::after,
.gnav > li:focus-within > a::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .gnav > li > a::after { transition: none; }
}

.gnav .sub {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 36px -14px rgba(45, 50, 64, .22);
  padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.gnav > li:hover .sub,
.gnav > li:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.gnav .sub a {
  display: block; padding: 9px 14px; border-radius: 4px;
  font-size: 14px; white-space: nowrap;
}
.gnav .sub a:hover { background: var(--base); color: var(--sky-500); }

/* 現在地のハイライト。
   ヘッダーのHTMLは全ページ完全に同一で、<body data-nav="..."> の値だけで切り替えます。 */
body[data-nav="home"]     .gnav [data-nav-key="home"]     > a .ja,
body[data-nav="about"]    .gnav [data-nav-key="about"]    > a .ja,
body[data-nav="medical"]  .gnav [data-nav-key="medical"]  > a .ja,
body[data-nav="self-pay"] .gnav [data-nav-key="self-pay"] > a .ja,
body[data-nav="checkup"]  .gnav [data-nav-key="checkup"]  > a .ja,
body[data-nav="reserve"]  .gnav [data-nav-key="reserve"]  > a .ja,
body[data-nav="news"]     .gnav [data-nav-key="news"]     > a .ja,
body[data-nav="access"]   .gnav [data-nav-key="access"]   > a .ja {
  color: var(--sky-500);
}

/* 現在地は下線も出したままにする */
body[data-nav="home"]     .gnav [data-nav-key="home"]     > a::after,
body[data-nav="about"]    .gnav [data-nav-key="about"]    > a::after,
body[data-nav="medical"]  .gnav [data-nav-key="medical"]  > a::after,
body[data-nav="self-pay"] .gnav [data-nav-key="self-pay"] > a::after,
body[data-nav="checkup"]  .gnav [data-nav-key="checkup"]  > a::after,
body[data-nav="reserve"]  .gnav [data-nav-key="reserve"]  > a::after,
body[data-nav="news"]     .gnav [data-nav-key="news"]     > a::after,
body[data-nav="access"]   .gnav [data-nav-key="access"]   > a::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   5. 下層ページの見出し帯
   ------------------------------------------------------------ */
.page-head { position: relative; background-color: var(--ink); }
.page-head > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .4;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(45, 50, 64, .85) 0%, rgba(45, 50, 64, .55) 100%);
}
.page-head .inner { position: relative; z-index: 1; }

/* パンくず */
.crumbs {
  font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .7);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ------------------------------------------------------------
   6. 診療時間表（全ページ共通・唯一の定義）
   ------------------------------------------------------------ */
.hours {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 18px;
}
@media (min-width: 1024px) {
  .hours { padding: 32px; }
}

.hours-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.hours-table th,
.hours-table td {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.hours-table thead th {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hours-table thead th:first-child {
  color: var(--ink-70);
}
/* 日祝の列だけコーラル */
.hours-table thead th.is-holiday { color: var(--coral-500); }

/* 1列目（時間帯）は左寄せ・折り返さない */
.hours-table th:first-child,
.hours-table td:first-child {
  width: 34%;
  text-align: left;
  padding-left: 2px;
  white-space: nowrap;
  font-weight: 400;
  color: var(--ink);
}
.hours-table tbody tr:last-child th,
.hours-table tbody tr:last-child td { border-bottom: 0; }

/* 診療あり／なし */
.hours-table .is-open { color: var(--sky-500); }
.hours-table .is-off  { color: var(--ink-50); }

/* 注釈 */
.hours-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-70);
}
.hours-note + .hours-note { margin-top: 6px; }

/* 画面が狭くても横スクロールなしで収める */
@media (max-width: 400px) {
  .hours-table { font-size: 11.5px; }
  .hours-table th:first-child,
  .hours-table td:first-child { width: 33%; letter-spacing: -.02em; }
}
@media (min-width: 1024px) {
  .hours-table { font-size: 15px; }
  .hours-table th,
  .hours-table td { padding: 15px 4px; }
  .hours-table th:first-child,
  .hours-table td:first-child { width: 32%; padding-left: 12px; }
  .hours-note { font-size: 13px; }
}

/* ------------------------------------------------------------
   7. 汎用データ表（料金表・検査項目表など・全ページ共通）
   ------------------------------------------------------------ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--fs-body);
  line-height: 1.8;
}
.tbl th,
.tbl td {
  border: 1px solid var(--line);
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}
/* 見出し行 */
.tbl thead th {
  background: var(--base-deep);
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
/* 行見出し（左端の項目名） */
.tbl tbody th {
  background: var(--base);
  color: var(--ink);
  font-weight: 500;
}
.tbl td { color: var(--ink-70); }

/* 金額など右寄せしたいセル */
.tbl .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
/* 中央寄せしたいセル */
.tbl .center { text-align: center; }
/* 折り返したくないセル（薬剤名・ワクチン名など） */
.tbl .nowrap { white-space: nowrap; }
/* 1列目の幅を揃えたいとき */
.tbl--half tbody th, .tbl--half thead th:first-child { width: 50%; }
.tbl--third tbody th, .tbl--third thead th:first-child { width: 33%; }

@media (min-width: 1024px) {
  .tbl { font-size: var(--fs-body-lg); }
  .tbl th, .tbl td { padding: 15px 18px; }
}
/* 狭い画面で潰れないよう最低幅を確保（.tbl-wrap で横スクロール） */
.tbl--wide { min-width: 620px; }
.tbl--mid  { min-width: 480px; }

/* 表の下の注釈 */
.tbl-note {
  margin-top: 14px;
  font-size: var(--fs-note);
  line-height: 1.9;
  color: var(--ink-70);
}

/* ------------------------------------------------------------
   7-2. 本文中の箇条書き（院内掲示文など）
   ------------------------------------------------------------ */
.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-list > li {
  position: relative;
  padding-left: 1.4em;
  line-height: 1.9;
}
.doc-list > li + li { margin-top: .55em; }
.doc-list > li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky-500);
}

/* ------------------------------------------------------------
   8. 手順番号（01 / 02 / 03）
   ------------------------------------------------------------ */
.step-num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--sky-500);
}

/* ------------------------------------------------------------
   9. 写真の扱い
   ------------------------------------------------------------ */
/* 院長写真：顔が中心にくるトリミング */
.director-photo { object-fit: cover; object-position: 50% 16%; }

/* 院長写真の輪郭を有機的なブロブ形状にクリップ（トップページ） */
.blob-photo {
  clip-path: url(#directorBlobShape);
  filter: drop-shadow(0 24px 40px rgba(45, 50, 64, .16));
}

/* 機器のメーカー写真（白背景・小さい原寸）は切り抜かず全体を見せる */
.equip-photo {
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}

/* ------------------------------------------------------------
   10. 右側フローティングボタン／ページ上部へ
   ------------------------------------------------------------ */
.frail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 5px;
}
.frail a {
  width: 76px; padding: 15px 6px; border-radius: var(--radius) 0 0 var(--radius);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center;
  box-shadow: -4px 6px 18px -8px rgba(45, 50, 64, .4);
  transition: transform .2s ease, filter .2s ease;
}
.frail a:hover { transform: translateX(-5px); filter: brightness(1.07); }
.frail .fr-reserve { background: var(--sky-500); }
.frail .fr-tel     { background: var(--ink); }
.frail .fr-line    { background: #06c755; }
.frail .fr-access  { background: var(--coral-500); }
.frail svg { width: 23px; height: 23px; }
@media (max-width: 1023px) { .frail { display: none; } }

.to-top {
  position: fixed; right: 18px; bottom: 84px; z-index: 55;
  width: 46px; height: 46px; border-radius: 9999px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(45, 50, 64, .35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .to-top { right: 92px; bottom: 28px; } }

/* ------------------------------------------------------------
   11. トップページ メインビジュアル
   ------------------------------------------------------------ */
.hero {
  position: relative; height: 82vh; min-height: 520px; max-height: 780px;
  overflow: hidden; background: var(--ink);
}
@media (max-width: 1023px) { .hero { height: 76vh; min-height: 440px; } }

.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(45, 50, 64, .62) 0%, rgba(45, 50, 64, .34) 46%, rgba(45, 50, 64, .12) 100%),
    linear-gradient(0deg, rgba(45, 50, 64, .42) 0%, rgba(45, 50, 64, 0) 42%);
}

.hero-copy {
  font-family: var(--font-serif); color: var(--white);
  text-shadow: 0 2px 22px rgba(45, 50, 64, .45);
}
.hero-copy .lead { font-size: clamp(26px, 5.4vw, 54px); line-height: 1.55; font-weight: 600; letter-spacing: .05em; }
.hero-copy .sub  { font-size: clamp(13px, 1.6vw, 17px); line-height: 2.1; letter-spacing: .09em; margin-top: 22px; font-weight: 500; }
.hero-copy .rule { width: 46px; height: 1px; background: rgba(255, 255, 255, .75); margin: 26px 0 0; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 10px; z-index: 4;
}
.hero-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255, 255, 255, .55); transition: all .3s; }
.hero-dot.is-active { width: 28px; background: var(--white); }

.scroll-cue {
  position: absolute; right: 26px; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .9);
}
.scroll-cue span { font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 62px; background: rgba(255, 255, 255, .5); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; top: -62px; left: 0; width: 1px; height: 62px;
  background: var(--white); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -62px; } 60%, 100% { top: 62px; } }
@media (max-width: 1023px) { .scroll-cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: none; }
  .scroll-cue i::after { animation: none; }
}

/* 院長挨拶の背景（トップページ） */
.message-bg {
  position: relative;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(41, 168, 224, .09) 0%, rgba(41, 168, 224, 0) 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(232, 83, 107, .07) 0%, rgba(232, 83, 107, 0) 58%),
    var(--base);
}

/* ------------------------------------------------------------
   12. Instagram セクション（トップページ）
   医療機関としての落ち着きは保ちつつ、この一帯だけ彩度を上げる。
   ------------------------------------------------------------ */
:root {
  --ig-1: #f9ce34;   /* Instagram ブランドグラデーション */
  --ig-2: #ee2a7b;
  --ig-3: #6228d7;
  --ig-gradient: linear-gradient(135deg, var(--ig-1) 0%, var(--ig-2) 55%, var(--ig-3) 100%);
}

.insta {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(74% 120% at 6% 0%,   rgba(249, 206, 52, .13) 0%, rgba(249, 206, 52, 0) 58%),
    radial-gradient(72% 118% at 96% 4%,  rgba(238, 42, 123, .11) 0%, rgba(238, 42, 123, 0) 60%),
    radial-gradient(86% 120% at 78% 100%, rgba(98, 40, 215, .09) 0%, rgba(98, 40, 215, 0) 62%),
    var(--base);
}

/* 上端にブランドカラーの細いライン */
.insta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ig-gradient);
}

.insta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--ig-gradient);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(238, 42, 123, .55);
}
.insta-badge svg { width: 31px; height: 31px; }

.insta-handle {
  font-family: var(--font-en);
  letter-spacing: .08em;
}

/* 投稿写真のグリッド */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .insta-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.insta-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 24px -16px rgba(45, 50, 64, .5);
}
.insta-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .55s ease;
}
.insta-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ig-gradient);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s ease;
}
.insta-grid figure:hover img { transform: scale(1.06); }
.insta-grid figure:hover::after { opacity: .85; }

/* フォローボタン */
.insta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 9999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--ig-gradient);
  box-shadow: 0 16px 30px -14px rgba(238, 42, 123, .6);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.insta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 38px -14px rgba(238, 42, 123, .7);
}
.insta-btn svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .insta-grid img,
  .insta-grid figure::after,
  .insta-btn { transition: none; }
  .insta-grid figure:hover img { transform: none; }
  .insta-btn:hover { transform: none; }
}
