/* ===== リニューアル サンプル用（共通パーツ＋トップページ） ===== */
:root { --rn-p:#006BCB; --rn-pd:#00508f; --rn-pale:#e6f1fb; --rn-line:#bcd6ef; --rn-red:#d32f2f; }

/* ---- 共通：スマホのMENUボタンとメニュー ---- */
.rn-menu-btn { display:none; }
.rn-drawer { display:none; }
@media (max-width: 768px) {
  header .header-inner { padding: 10px 0 10px 14px; align-items: stretch; }
  .rn-menu-btn {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    width:68px; margin:-10px 0; background:var(--rn-pd); color:#fff; border:none;
    font:500 11px 'Noto Sans JP',sans-serif; letter-spacing:.06em; cursor:pointer;
  }
  .rn-menu-btn i { display:block; width:24px; height:2px; background:#fff; position:relative; margin-bottom:12px; }
  .rn-menu-btn i::before, .rn-menu-btn i::after { content:""; position:absolute; left:0; width:24px; height:2px; background:#fff; }
  .rn-menu-btn i::before { top:7px; } .rn-menu-btn i::after { top:14px; }
  .rn-drawer.open { display:block; position:fixed; inset:0; z-index:300; background:rgba(0,30,60,.45); }
  .rn-drawer-panel { position:absolute; top:0; right:0; width:82%; max-width:340px; height:100%; background:#fff; overflow-y:auto; padding:16px 0 90px; }
  .rn-drawer-close { display:block; margin:0 16px 8px auto; background:none; border:none; font-size:28px; color:var(--rn-pd); cursor:pointer; }
  .rn-drawer a { display:flex; align-items:center; justify-content:space-between; padding:14px 22px; border-bottom:1px solid #e5e7eb; color:var(--rn-pd); font-weight:700; text-decoration:none; font-size:15px; }
  .rn-drawer a::after { content:"›"; font-size:20px; color:var(--rn-p); }
  .rn-drawer .rn-drawer-sub { padding:16px 22px 6px; font-size:11px; letter-spacing:.2em; color:#6b7280; }
  .line-banner-fixed { display:none !important; }
}

/* ---- 共通：画面下の固定ボタン（スマホ） ---- */
.rn-cta { display:none; }
@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .rn-cta { display:flex; position:fixed; left:0; right:0; bottom:0; height:60px; z-index:200; box-shadow:0 -2px 10px rgba(0,0,0,.12); }
  .rn-cta a { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; color:#fff; font-size:15px; font-weight:700; text-decoration:none; }
  .rn-cta .rn-cta-tel { background:#2149c0; }
  .rn-cta .rn-cta-line { background:#06C755; }
  .rn-cta svg { width:20px; height:20px; fill:#fff; }
}

/* ---- トップ：メイン画像 ---- */
.rn-hero { position:relative; height:460px; overflow:hidden; background:#eef4fa; }
.rn-hero img { width:100%; height:100%; object-fit:cover; object-position:30% 60%; }
.rn-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.93) 58%, rgba(255,255,255,.97) 100%); }
.rn-hero-copy { position:absolute; z-index:1; top:50%; right:6%; transform:translateY(-50%); text-align:center; max-width:46%; }
.rn-hero-copy h1 { font-family:'Noto Serif JP',serif; font-weight:700; color:var(--rn-pd); font-size:32px; line-height:1.7; letter-spacing:.06em; }
.rn-hero-copy h1 span { display:block; }
.rn-hero-copy p { margin-top:14px; color:#374151; font-size:15px; line-height:1.9; }
.rn-hero-copy a { display:inline-block; margin-top:20px; border:2px solid var(--rn-pd); border-radius:40px; padding:9px 34px; font-weight:700; color:var(--rn-pd); background:#fff; text-decoration:none; transition:.2s; }
.rn-hero-copy a:hover { background:var(--rn-pd); color:#fff; }

/* ---- トップ：診療メニュー（アイコン付き） ---- */
.rn-menu { max-width:1100px; margin:32px auto 0; padding:0 24px; }
.rn-grid { display:grid; grid-template-columns:repeat(4,1fr); border:2px solid var(--rn-p); background:var(--rn-line); gap:1px; }
.rn-tile { display:flex; align-items:center; gap:12px; padding:0 16px; height:84px; background:linear-gradient(#fff,#f1f3f6); text-decoration:none; color:var(--rn-pd); transition:background .2s; }
.rn-tile:hover { background:var(--rn-pale); }
.rn-ic { flex:0 0 46px; height:46px; border-radius:50%; border:1.5px solid var(--rn-p); background:#fff; display:flex; align-items:center; justify-content:center; }
.rn-ic svg { width:26px; height:26px; fill:none; stroke:var(--rn-p); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.rn-tile b { flex:1; text-align:center; font-size:18px; font-weight:700; line-height:1.3; letter-spacing:.02em; }
.rn-tile b small { display:block; font-size:12px; }

/* ---- トップ：お知らせ枠（予防接種・予約不要） ---- */
.rn-notices { max-width:1100px; margin:32px auto 0; padding:0 24px; display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.rn-notices .hero-notice { margin:0; }
.rn-notices .hero-walkin { margin:0; }

/* ---- トップ：外来診療時間 ---- */
.rn-hours h3.rn-hours-title { text-align:center; color:var(--rn-pd); font-size:24px; font-weight:700; letter-spacing:.06em; margin-bottom:16px; }
.rn-hours h3.rn-hours-title::before, .rn-hours h3.rn-hours-title::after { content:""; display:inline-block; width:26px; height:2px; background:var(--rn-pd); vertical-align:middle; margin:0 12px; }
.rn-hours-box { border:2px solid var(--rn-pd); background:#fff; }
.rn-hours-head { background:var(--rn-pd); color:#fff; text-align:center; padding:12px 8px; font-size:15px; line-height:1.6; }
.rn-row { display:flex; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px dashed var(--rn-line); }
.rn-row:last-child { border-bottom:none; }
.rn-badge { flex:0 0 84px; text-align:center; border:2px solid var(--rn-p); color:var(--rn-p); border-radius:6px; font-weight:700; font-size:17px; padding:3px 0; background:#fff; }
.rn-badge.red { border-color:var(--rn-red); color:var(--rn-red); }
.rn-t { flex:1; text-align:center; }
.rn-t .big { font-size:26px; font-weight:700; color:var(--rn-pd); letter-spacing:.02em; line-height:1.4; }
.rn-t .note { font-size:13px; font-weight:700; color:var(--rn-red); }
.rn-t .redbig { font-size:21px; font-weight:700; color:var(--rn-red); }
.rn-spec { border:2px solid var(--rn-pd); border-top:none; background:#fff; }
.rn-spec-head { background:var(--rn-pale); color:var(--rn-pd); font-weight:700; text-align:center; padding:9px; font-size:15px; }
.rn-spec-body { padding:12px 18px; font-size:14px; line-height:1.9; color:#1f2937; }
.rn-spec-body .gen { font-size:13px; color:#4b5563; margin-bottom:6px; }
.rn-spec-body .dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:1px; }
.rn-spec-body .dates { margin-top:6px; padding:8px 12px; background:#f7f9fc; border-radius:6px; font-size:13px; }
.rn-spec-body .dates small { display:block; color:#6b7280; }
.rn-hours-foot { margin-top:14px; font-size:13px; line-height:1.8; color:#374151; }
.rn-hours-btns { display:flex; gap:10px; margin-top:12px; }
.rn-hours-btns a { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:12px 8px; border-radius:40px; color:#fff; font-weight:700; text-decoration:none; font-size:15px; }
.rn-hours-btns .tel { background:#2149c0; font-size:18px; letter-spacing:.03em; }
.rn-hours-btns .line { background:#06C755; }
.rn-hours-btns svg { width:18px; height:18px; fill:#fff; }

@media (max-width: 1024px) {
  .rn-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 768px) {
  .rn-hero { height:250px; }
  .rn-hero img { object-position:20% 60%; }
  .rn-hero::after { background:linear-gradient(90deg, rgba(255,255,255,0) 18%, rgba(255,255,255,.94) 50%, rgba(255,255,255,.97) 100%); }
  .rn-hero-copy { right:12px; max-width:56%; }
  .rn-hero-copy h1 { font-size:17px; line-height:1.75; letter-spacing:.04em; }
  .rn-hero-copy p { font-size:11.5px; margin-top:8px; line-height:1.7; }
  .rn-hero-copy a { margin-top:12px; padding:6px 20px; font-size:13px; }
  .rn-menu { margin-top:20px; padding:0 14px; }
  .rn-tile { height:66px; gap:8px; padding:0 10px; }
  .rn-ic { flex-basis:38px; height:38px; }
  .rn-ic svg { width:22px; height:22px; }
  .rn-tile b { font-size:15.5px; }
  .rn-tile b small { font-size:11px; }
  .rn-notices { grid-template-columns:1fr; padding:0 14px; margin-top:24px; gap:16px; }
  .rn-row { padding:12px 14px; }
  .rn-badge { flex-basis:76px; font-size:16px; }
  .rn-t .big { font-size:23px; }
  .rn-hours-btns { flex-direction:column; }
}

/* 共通の section 余白を打ち消す */
section.rn-hero { padding:0 !important; }
section.rn-menu, section.rn-notices { padding-top:0 !important; padding-bottom:0 !important; }
section.rn-notices { margin-bottom:48px; }

/* パソコン：お知らせ枠の余白をなくす（予約不要は横長の帯、予防接種は左右2列） */
@media (min-width: 769px) {
  .rn-notices { grid-template-columns: 1fr; gap: 16px; }
  .rn-notices .hero-walkin { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 20px; row-gap: 2px; padding: 16px 24px; text-align: center; }
  .rn-notices .hero-walkin p { margin: 0; }
  .rn-notices .hero-walkin .hero-walkin-note { flex-basis: 100%; }
  .rn-notices .hero-notice-vaccine { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 40px; row-gap: 14px; align-items: center; padding: 28px 40px; }
  .rn-notices .hero-notice-vaccine > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .rn-notices .hero-notice-vaccine > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .rn-notices .hero-notice-vaccine > :nth-child(3) { display: none; }
  .rn-notices .hero-notice-vaccine > :nth-child(4) { grid-column: 2; grid-row: 1; align-self: center; border-left: 1px solid rgba(255,255,255,.5); padding-left: 32px; }
  .rn-notices .hero-notice-vaccine > :nth-child(5) { grid-column: 2; grid-row: 2; justify-self: center; align-self: center; margin: 0; }
}
@media (min-width: 769px) {
  .rn-notices .hero-walkin { width: 100%; max-width: none; }
}

/* ---- メイン画像：アクセス・駐車場・皮膚科の強調 ---- */
.rn-hero-copy p.rn-access { margin-top:14px; font-size:16px; color:#374151; }
.rn-hero-copy p.rn-parking { margin-top:4px; }
.rn-hero-copy p.rn-parking b { display:inline-block; font-size:22px; font-weight:700; color:var(--rn-pd); border-bottom:3px solid #f5c400; line-height:1.4; letter-spacing:.04em; }
.rn-hero-copy a.rn-hifu-pill { margin-top:16px; display:inline-flex; flex-direction:column; align-items:center; gap:2px; padding:10px 28px; border:none; border-radius:14px; background:#d6336c; color:#fff; font-size:17px; font-weight:700; line-height:1.3; box-shadow:0 4px 12px rgba(214,51,108,.3); }
.rn-hero-copy a.rn-hifu-pill span { font-size:12.5px; font-weight:500; background:#fff; color:#d6336c; border-radius:20px; padding:1px 12px; }
.rn-hero-copy a.rn-hifu-pill:hover { background:#b8285a; color:#fff; }

/* ---- 診療メニュー：皮膚科タイルを強調 ---- */
.rn-tile.rn-tile-hifu { background:linear-gradient(#fff5f8,#fde4ec); color:#b8285a; }
.rn-tile.rn-tile-hifu:hover { background:#fbd3e0; }
.rn-tile-hifu .rn-ic { border-color:#d6336c; }
.rn-tile-hifu .rn-ic svg { stroke:#d6336c; }
.rn-tile-hifu b small { display:inline-block; margin-top:2px; background:#d6336c; color:#fff; border-radius:20px; padding:0 8px; font-size:11px; }

@media (max-width: 768px) {
  .rn-hero { height:270px; }
  .rn-hero-copy p.rn-access { margin-top:8px; font-size:12.5px; }
  .rn-hero-copy p.rn-parking b { font-size:17px; border-bottom-width:2px; }
  .rn-hero-copy a.rn-hifu-pill { margin-top:10px; padding:7px 16px; font-size:13.5px; border-radius:12px; }
  .rn-hero-copy a.rn-hifu-pill span { font-size:10.5px; padding:0 10px; }
  .rn-tile-hifu b small { font-size:10px; padding:0 7px; }
}

/* 3つの特徴カードを消したぶん、お知らせまでの空きを詰める */
section.rn-notices { margin-bottom:0; }
.rn-notices + .info-section, .info-section { padding-top:48px !important; }
@media (max-width: 768px) { .info-section { padding-top:36px !important; } }
section.rn-notices { padding-bottom:32px !important; }

/* ---- お知らせ：重要・Wi-Fiの枠をコンパクトに ---- */
.news-item.news-item-pinned { padding:12px 14px !important; margin-bottom:8px; }
.news-pinned-meta, .news-notice-meta { margin-bottom:4px !important; }
.news-pinned-head, .news-notice-head { font-size:15px !important; line-height:1.5 !important; margin-bottom:6px !important; }
.news-pinned-department { display:inline !important; margin:0 !important; }
.news-pinned-guidance, .news-notice-guidance { font-size:13px !important; line-height:1.6 !important; padding:6px 10px !important; }
.news-pinned-guidance .news-hours-time, .news-hours-time { font-size:22px !important; }
.news-hours-link { margin-top:4px !important; font-size:13px !important; }
.news-item-notice { padding:12px 14px !important; margin-bottom:12px !important; }
.news-notice-body { display:inline !important; }
.news-notice-guidance .news-notice-line, .news-notice-guidance .news-notice-body, .news-pinned-guidance .news-pinned-body { display:inline !important; margin:0 !important; padding:0 !important; }
.news-notice-guidance br { display:none; }
.news-card { padding-top:12px !important; padding-bottom:12px !important; }
.news-cards { gap:10px !important; }

/* ---- お知らせ：色は青＋赤（重要だけ）の2色に統一 ---- */
.rn-news-top { display:flex; flex-direction:column; gap:10px; margin-bottom:10px; }
.news-card { background:#fff !important; border:1px solid #dbe3ec !important; box-shadow:none !important; }
.news-card.rn-news-important { border-left:4px solid #c62828 !important; }
.news-label { background:#fff !important; color:var(--rn-p) !important; border:1px solid var(--rn-p); }
.rn-label-imp, .rn-label-new { display:inline-block; font-size:11px; font-weight:700; padding:1px 8px; border-radius:3px; line-height:1.6; margin-right:8px; letter-spacing:.05em; }
.rn-label-imp { background:#c62828; color:#fff; }
.rn-label-new { background:var(--rn-p); color:#fff; }
.rn-news-important .news-card-meta .news-card-date { margin:0; }
.news-card-title b { color:#c62828; font-weight:700; }
.rn-news-fold { display:block; padding:0 !important; }
.rn-news-fold summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; padding:12px 16px; }
.rn-news-fold summary::-webkit-details-marker { display:none; }
.rn-news-fold .news-card-arrow { transition:transform .2s; }
.rn-news-fold[open] .news-card-arrow { transform:rotate(90deg); }
.rn-fold-body { margin:0 16px 14px; padding:10px 12px; background:#f6f8fb; border-radius:4px; font-size:13.5px; line-height:1.8; color:#374151; }
.rn-news-fold summary .news-card-title { color:var(--text, #1f2937) !important; }
.rn-news-fold .news-card-body { flex:1; }

/* =====================================================
   サンプル全体を「青＋赤（重要だけ）」の2色にそろえる
   ===================================================== */
/* 重要バナー：紺地に白 */
.hours-change-banner { background:var(--rn-pd) !important; box-shadow:none !important; border-radius:0 !important; }
.hcb-main { background:rgba(255,255,255,.1) !important; border-color:rgba(255,255,255,.35) !important; }

/* 予防接種の枠：オレンジ → 白地に青 */
.rn-notices .hero-notice-vaccine { background:#fff !important; border:2px solid var(--rn-p) !important; box-shadow:none !important; color:var(--text,#1f2937) !important; }
.rn-notices .hnv-title { color:var(--rn-pd) !important; }
.rn-notices .hnv-status, .rn-notices .hnv-price { color:#1f2937 !important; }
.rn-notices .hnv-workplace { color:#1f2937 !important; text-decoration-color:#c62828 !important; }
.rn-notices .hnv-subsidy { background:var(--rn-pale) !important; box-shadow:none !important; }
.rn-notices .hnv-subsidy-lead, .rn-notices .hnv-subsidy-cities { color:var(--rn-pd) !important; }
.rn-notices .hnv-subsidy-note { color:#374151 !important; }
.rn-notices .hnv-divider { background:var(--rn-line) !important; }
.rn-notices .hero-notice-vaccine > :nth-child(4) { border-left-color:var(--rn-line) !important; }
.rn-notices .hnv-link { background:var(--rn-p) !important; border-color:var(--rn-p) !important; color:#fff !important; }
.rn-notices .hnv-link:hover { background:var(--rn-pd) !important; }

/* メイン画像：駐車場の下線を青に、皮膚科ボタンを紺に */
.rn-hero-copy p.rn-parking b { border-bottom-color:var(--rn-p) !important; }
.rn-hero-copy a.rn-hifu-pill { background:var(--rn-pd) !important; box-shadow:0 4px 12px rgba(0,80,143,.25) !important; }
.rn-hero-copy a.rn-hifu-pill span { color:var(--rn-pd) !important; }
.rn-hero-copy a.rn-hifu-pill:hover { background:var(--rn-p) !important; }

/* 診療メニュー：皮膚科タイルはピンク → 青の塗りで目立たせる */
.rn-tile.rn-tile-hifu { background:var(--rn-p) !important; color:#fff !important; }
.rn-tile.rn-tile-hifu:hover { background:var(--rn-pd) !important; }
.rn-tile-hifu .rn-ic { border-color:#fff !important; background:#fff !important; }
.rn-tile-hifu .rn-ic svg { stroke:var(--rn-p) !important; }
.rn-tile-hifu b small { background:#fff !important; color:var(--rn-p) !important; }

/* 専門外来の●：ピンク・オレンジ → 青・紺 */
.rn-spec-body .dot[style*="e91e63"] { background:var(--rn-p) !important; }
.rn-spec-body .dot[style*="f57c00"] { background:var(--rn-pd) !important; border:2px solid var(--rn-pale); }

/* ---- 案1・案2：皮膚科を先頭にして大きく ---- */
.rn-tile.rn-tile-wide { grid-column:span 2; grid-row:span 2; height:auto; min-height:169px; flex-direction:column; justify-content:center; gap:10px; padding:18px; }
.rn-tile-wide .rn-ic { flex:0 0 auto; width:64px; height:64px; }
.rn-tile-wide .rn-ic svg { width:36px; height:36px; }
.rn-tile-wide b { flex:0 0 auto; font-size:26px; letter-spacing:.08em; }
.rn-tile-wide b small { font-size:13px !important; padding:2px 12px !important; margin-top:6px; }
.rn-tile-wide b em { display:block; font-style:normal; font-weight:500; font-size:13px; letter-spacing:0; margin-top:8px; opacity:.95; }
@media (max-width: 1024px) {
  .rn-tile.rn-tile-wide { grid-row:span 1; min-height:0; }
}
@media (max-width: 768px) {
  .rn-tile.rn-tile-wide { flex-direction:row; justify-content:center; gap:14px; padding:14px 12px; }
  .rn-tile-wide .rn-ic { width:52px; height:52px; }
  .rn-tile-wide .rn-ic svg { width:30px; height:30px; }
  .rn-tile-wide b { flex:0 1 auto; font-size:21px; text-align:left; }
  .rn-tile-wide b small { font-size:11px !important; padding:1px 10px !important; margin-top:3px; }
  .rn-tile-wide b em { font-size:11px; margin-top:4px; }
}
.rn-hero-copy a.rn-hifu-pill { flex-direction:row !important; gap:6px !important; }
.rn-hero-copy a.rn-hifu-pill span.rn-arrow { background:none !important; color:#fff !important; padding:0 !important; font-size:1em !important; }

/* お知らせ一覧：どれも同じ「お知らせ」ラベルは外して、日付だけにする */
.news-cards .news-label { display:none !important; }

/* メニューのマスを押したときに出ていた下線を消す（共通CSSの nav a::after） */
.rn-grid a::after { display:none !important; }
