@charset "utf-8";

/* =============================================================
   こころの元気クリニック — モダンリファインメント レイヤー
   （既存のスタイルを上書きせず、プロ品質の質感を加える層）
   ・画像／文言は一切変更なし
   ・メインカラーはオレンジのまま
   ・雰囲気は保ちつつ、余白・タイポ・影・動きを整える
   ============================================================= */

/* -------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------- */
:root {
  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #ffdcb0;
  --orange-300: #ffc078;
  --orange-400: #ffa53d;
  --orange:     #ff9102;   /* 既存メインカラー */
  --orange-600: #f57f00;
  --orange-700: #e26e00;

  --ink:        #33322e;   /* 温かみのある濃いグレー */
  --ink-soft:   #5c5a55;
  --muted:      #7d7a73;
  --line:       #ece7df;   /* 温色寄りの罫線 */
  --surface:    #ffffff;
  --surface-2:  #fbf8f3;   /* ほんのり温かい背景 */

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(51, 50, 46, .05);
  --shadow-sm: 0 2px 8px rgba(51, 50, 46, .06), 0 1px 2px rgba(51, 50, 46, .04);
  --shadow-md: 0 8px 24px rgba(51, 50, 46, .08), 0 2px 6px rgba(51, 50, 46, .05);
  --shadow-lg: 0 18px 48px rgba(224, 110, 0, .16), 0 6px 16px rgba(51, 50, 46, .08);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------------------------------------
   2. ベース・タイポグラフィ
   ------------------------------------------------------------- */
body {
  font-family: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background-color: var(--surface);
  letter-spacing: .02em;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { line-height: 1.9; }

h1, h2, h3, h4, h5, h6,
.card-title, .clinic-name, .heading {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: .03em;
}

/* リンクの標準色は白のまま（既存仕様）だが、本文リンクは読みやすく */
.card-text a,
.online-procedure-content a,
.online-notification a,
.news-list a[href] .title {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s var(--ease);
}
.card-text a:hover,
.online-procedure-content a:hover { color: var(--orange-600); }

/* 選択ハイライトもブランドカラーで */
::selection { background: var(--orange-200); color: var(--ink); }

/* スクロールバー（対応ブラウザ） */
* { scrollbar-color: var(--orange-300) transparent; }

/* -------------------------------------------------------------
   3. ヘッダー
   ------------------------------------------------------------- */
.header-box {
  border-bottom: 1px solid var(--line);
}
.clinic-name {
  color: var(--ink) !important;
  font-weight: 700;
  letter-spacing: .04em;
}
.header-logo img,
img.header-logo {
  border-radius: 10px;
}
.header-contact .small {
  color: var(--muted);
  letter-spacing: .05em;
}
.header-contact .font-weight-bold {
  color: var(--ink);
  letter-spacing: .02em;
}

/* -------------------------------------------------------------
   4. ナビゲーション（追従バー＋洗練されたホバー）
   ------------------------------------------------------------- */
.navbar-box {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 16px rgba(224, 110, 0, .18);
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-600) 100%) !important;
}
.navbar-box .navbar { background: transparent !important; }

.navbar-nav .nav-link {
  position: relative;
  padding: 14px 6px !important;
  letter-spacing: .06em;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
/* 下線がスッと伸びるモダンなホバー */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .28s var(--ease);
}
.navbar-nav .nav-link:hover::after { width: 60%; }
.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
}

/* モバイルの操作ボタン（電話／オンライン／メニュー）を上質に */
.navbar-box .btn-orange-light,
.navbar-box .btn-orange-medium,
.navbar-box .btn-orange-dark {
  transition: filter .2s var(--ease), transform .05s var(--ease);
  letter-spacing: .04em;
}
.navbar-box .btn-orange-light:active,
.navbar-box .btn-orange-medium:active,
.navbar-box .btn-orange-dark:active { transform: scale(.98); }

/* -------------------------------------------------------------
   5. ヒーロー（メイン画像）
   ------------------------------------------------------------- */
.main-top-image-container {
  position: relative;
  isolation: isolate;
}
/* 文字を読みやすくする上品なグラデーション */
.main-top-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(30, 22, 10, .05) 0%,
              rgba(30, 22, 10, .0) 35%,
              rgba(30, 22, 10, .45) 100%);
  z-index: -1;
}
.main-top-text {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: heroRise 1s var(--ease) both;
}
.main-top-text h1 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .05em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  margin-bottom: .35em;
}
.main-top-text p {
  font-weight: 500;
  letter-spacing: .06em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  margin-bottom: .2em;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   6. セクションのリズムと背景
   ------------------------------------------------------------- */
section { position: relative; }

/* 交互の背景を温かいオフホワイトに */
.bg-light { background-color: var(--surface-2) !important; }

/* -------------------------------------------------------------
   7. 見出し（左のバーをブランドカラーに刷新）
   ------------------------------------------------------------- */
.heading {
  border-left: none;
  padding: 0 0 0 18px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  line-height: 1.4;
}
.heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.05em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-600));
}
.announce-link {
  color: var(--orange-700) !important;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s var(--ease);
}
.announce-link:hover { opacity: .7; }

/* -------------------------------------------------------------
   8. カード全般
   ------------------------------------------------------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  background: var(--surface);
  overflow: hidden;
}
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }

.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
}

.card-title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .03em;
}
.card-text { color: var(--ink-soft); }

/* 診療案内カードの丸画像を上品な土台に載せる */
.card-img-box {
  padding-top: 1.5rem;
}
.card-img-top.rounded-circle {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto;
  padding: 22px;
  background: radial-gradient(circle at 50% 40%, var(--orange-50), #fff 78%);
  border: 1px solid var(--orange-100);
  box-shadow: inset 0 0 0 6px #fff, var(--shadow-xs);
}

/* 診療案内カードの高さを行内で揃える（列をflex化してカードを縦に伸ばす） */
#sec3 .row > [class*="col-"] { display: flex; }
#sec3 .row > [class*="col-"] > .card { width: 100%; }

/* 「その他注意事項」など左寄せカードのリスト */
#sec3 .card ul.text-left { padding-left: 1.1rem; }
#sec3 .card ul.text-left li { margin-bottom: .5rem; color: var(--ink-soft); }
#sec3 .card ul.text-left li::marker { color: var(--orange); }
/* リンクではない案内文（href無しの<a>）を本文色に、実リンク「こちら」はオレンジに */
#sec3 .card ul.text-left li a { color: var(--ink-soft); }
#sec3 .card ul.text-left li a[href] {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
#sec3 .card ul.text-left li a[href]:hover { color: var(--orange-600); }

/* -------------------------------------------------------------
   9. ボタン（オレンジ）
   ------------------------------------------------------------- */
.btn { letter-spacing: .04em; }

/* ※ .bg-orange はナビバー・フッターにも使われる汎用クラスのため、
   ボタン装飾はボタン要素（a.btn / button.btn）のみに限定する */
a.btn.bg-orange,
button.btn.bg-orange {
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange) 55%, var(--orange-600) 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(224, 110, 0, .28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
a.btn.bg-orange:hover,
button.btn.bg-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 110, 0, .36);
  filter: saturate(1.05);
  color: #fff !important;
}

/* アウトラインボタン（スタッフ紹介） */
.btn-outline-primary {
  border-color: var(--orange) !important;
  color: var(--orange-700) !important;
  border-radius: 999px;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.btn-outline-primary:hover {
  background: var(--orange) !important;
  color: #fff !important;
  border-color: var(--orange) !important;
  box-shadow: 0 6px 16px rgba(224, 110, 0, .28);
}

/* -------------------------------------------------------------
   10. お知らせ一覧
   ------------------------------------------------------------- */
.news-list .item a {
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.news-list .item:first-child a { border-top: none; }
.news-list .item a:hover {
  background: var(--orange-50);
  transform: translateX(2px);
}
.news-list .item .date {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
}
.news-list .item .category span {
  background: var(--orange) !important;
  border-radius: 999px;
  padding: 5px 12px !important;
  font-weight: 600;
  letter-spacing: .05em;
  width: auto;
}
.news-list .item .title { color: var(--ink); }
.news-list .item a:hover .title { color: var(--orange-700); }

/* 重要なお知らせ（保険証） */
.temporary {
  background: linear-gradient(135deg, var(--orange-50), #fff5e6);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.temporary-title { letter-spacing: .04em; }
.temporary-button {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(224, 110, 0, .25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.temporary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(224, 110, 0, .32); }
.temporary-button a { color: #fff; }

/* -------------------------------------------------------------
   11. メッセージ／「このような方へ」の文章ボックス
   ------------------------------------------------------------- */
#sec2 .bg-white,
#sec4 .bg-white {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  opacity: 1 !important;
  background-color: #fff !important;
  color: var(--ink-soft) !important;
  line-height: 2;
}
#sec2 img.img-fluid {
  border-radius: var(--radius) !important;
  border: none !important;
  box-shadow: var(--shadow-md) !important;
}

/* -------------------------------------------------------------
   12. ギャラリー
   ------------------------------------------------------------- */
#sec5 .card {
  border-radius: var(--radius) !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
#sec5 .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}
.gallery-img { border-radius: 12px; }

/* モーダル（追従ヘッダー z-index:1030 や戻るボタン z-index:1040 より前面に） */
.image-modal { z-index: 3000 !important; }
.modal-content { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.image-modal .close { z-index: 3001; }

/* -------------------------------------------------------------
   13. 院長挨拶
   ------------------------------------------------------------- */
#sec6 .card { border-radius: var(--radius) !important; box-shadow: var(--shadow-md) !important; }
#sec6 .card img { border-radius: 12px; }
#sec6 h3 span { color: var(--orange-700); font-size: .85em; letter-spacing: .06em; }
#sec6 .list-unstyled li { color: var(--ink-soft); }

/* -------------------------------------------------------------
   14. スタッフ紹介
   ------------------------------------------------------------- */
.staff-card { border-radius: var(--radius) !important; box-shadow: var(--shadow-sm) !important; }
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }
.avatar-circle {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600)) !important;
  box-shadow: 0 6px 16px rgba(224, 110, 0, .3);
  letter-spacing: .04em;
}
.staff-card .badge.bg-primary { background: var(--orange) !important; }
.staff-card .badge.bg-success { background: var(--orange-600) !important; }
.staff-card .badge { border-radius: 999px; letter-spacing: .04em; }
.staff-card h4.text-primary { color: var(--orange-700) !important; }
#sec7 .text-muted.d-inline-block { color: var(--muted) !important; letter-spacing: .04em; }

/* -------------------------------------------------------------
   15. 診療時間・アクセスの表
   ------------------------------------------------------------- */
#sec8 table,
#sec9 table {
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
#sec8 table th,
#sec8 table td,
#sec9 table th,
#sec9 table td {
  border-color: var(--line) !important;
  vertical-align: middle;
}
/* 見出し行・見出し列を淡いオレンジに */
#sec8 table tr:first-child th,
#sec8 table th[scope="row"] {
  background: var(--orange-50);
  color: var(--ink);
  font-weight: 700;
}
#sec9 table th[scope="row"].bg-light {
  background: var(--orange-50) !important;
  color: var(--ink);
  font-weight: 700;
}
/* 診療あり「●」を控えめなブランドカラーに */
#sec8 table td { color: var(--orange-600); font-weight: 700; }

.map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
   16. フッター & トップへ戻るボタン
   ------------------------------------------------------------- */
.footer-copyright.bg-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-600)) !important;
  letter-spacing: .06em;
}

/* 追従するトップへ戻るボタン */
footer > .rounded-circle.bg-orange {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600)) !important;
  box-shadow: 0 8px 20px rgba(224, 110, 0, .4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
footer > .rounded-circle.bg-orange:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px rgba(224, 110, 0, .5);
}

/* -------------------------------------------------------------
   17. オンライン診療ページ 専用の仕上げ
   ------------------------------------------------------------- */
.online-notification {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff3e6, #ffe9d4);
  border: 1px solid var(--orange-200);
  box-shadow: var(--shadow-xs);
  align-items: center;
}
.online-notification p { border-left-color: var(--orange-600); color: var(--ink); }

.online-procedure-content.card { border-radius: var(--radius) !important; }
.online-procedure-title {
  color: var(--orange-700) !important;
  font-weight: 700;
  letter-spacing: .03em;
}
.online-procedure-content .notice {
  border-radius: var(--radius-sm) !important;
}
.badge-warning { background: var(--orange) !important; color: #fff !important; border-radius: 999px; }
.bg-lightgray { background-color: #eef4ff !important; }

/* 注意事項・確認事項のバッジがはみ出さないよう、内容に応じた幅にする */
.badge-fixed-width {
  width: auto !important;
  min-width: 96px;
  padding: .4em .9em !important;
  white-space: nowrap;
  box-sizing: border-box;
}
/* 注意事項・確認事項の行間を詰める（項目内の折り返し行を狭く） */
.online-procedure-content .notice ul li {
  line-height: 1.55;
  margin-bottom: .5rem !important;
}
.online-procedure-content .notice ul li .mobile-block { line-height: 1.55; }

/* -------------------------------------------------------------
   18. 読み込み時のセクション演出（AOS 未使用ページ向けの控えめな補助）
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .main-top-text,
  * { animation: none !important; }
  .card-hover:hover,
  .staff-card:hover,
  #sec5 .card:hover { transform: none; }
}

/* -------------------------------------------------------------
   19. レスポンシブ微調整
   ------------------------------------------------------------- */
@media (max-width: 767.98px) {
  body { letter-spacing: .01em; line-height: 1.8; }
  .main-top-text h1 { line-height: 1.4; }
  .card-img-top.rounded-circle { width: 160px; height: 160px; }
  .navbar-nav .nav-link { padding: 12px 6px !important; text-align: center; }
  .navbar-nav .nav-link:hover { background: transparent; }
  footer > .rounded-circle.bg-orange { right: 16px; bottom: 16px; }
}
