/* Lighter warm tones, smaller desktop portraits and complete room views. */
:root {
  --ink: #63564c;
  --brown: #8c715e;
  --muted: #756a61;
  --sand: #f7f3ee;
  --line: #e4d9ce;
  --main-color: var(--brown);
  --main-dark: var(--ink);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --section-bg: var(--sand);
  --border-color: var(--line);
}
.n-reserve,
.n-bottom-bar a:last-child {
  background: #e6d9cb;
  color: var(--ink);
}
.n-reserve:hover { background: #ddccbb; }
.button-dark:hover { background: #7a6251; }
.n-footer { background: var(--sand); }
.inner-page .page-intro { background: var(--sand); }

/* Let visitors see the whole room instead of enlarging a window crop. */
.clinic-scene {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  min-height: 0;
  background: var(--sand);
  color: var(--ink);
}
.clinic-scene > img {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  z-index: auto;
}
.clinic-scene .scene-shade { display: none; }
.clinic-scene .scene-copy {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 50px clamp(26px, 3.5vw, 64px) 75px;
}
.clinic-scene .scene-copy .eyebrow { color: #856e59; }
.clinic-scene .scene-copy h2 {
  font-size: clamp(25px, 2.4vw, 36px);
  letter-spacing: .08em;
}
.clinic-scene .scene-copy > p:last-child { font-size: 13px; }
.clinic-scene .scene-caption {
  left: clamp(26px, 3.5vw, 64px);
  right: auto;
  bottom: 25px;
  font-size: 8px;
  color: var(--muted);
}
.home .stay-story .stay-large,
.home .stay-story .photo-detail-row .image-zoom { aspect-ratio: 3 / 2; }

/* A full-room photograph remains large without cropping away its furniture. */
.inner-page .visual-hero.room-hero { background: var(--sand); color: var(--ink); }
.inner-page .room-hero .hero-photo-wrap { left: 34%; width: 66%; }
.inner-page .room-hero .hero-photo-wrap img { object-fit: contain; object-position: center; }
.inner-page .room-hero::before { background: none; }
.inner-page .room-hero .page-title { color: var(--ink); text-shadow: none; max-width: 32%; }
.inner-page .room-hero .page-title > span { display: inline-block; }
.inner-page .room-hero .hero-badge,
.inner-page .room-hero .hero-caption { color: var(--muted); text-shadow: none; }
.inner-page .room-hero .hero-caption {
  left: max(56px, calc((100vw - 1160px) / 2));
  right: auto;
  max-width: 28%;
}

@media (min-width: 768px) {
  .home .n-doctor { padding: 85px 0; }
  .home .doctor-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(45px, 6vw, 90px);
  }
  .home .doctor-image {
    justify-self: center;
    width: min(100%, 330px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0;
  }
  .home .doctor-image img { height: 100%; object-position: 50% 25%; }
  .home .doctor-copy { padding: 0; }
  .inner-page .visual-hero.portrait-hero { background: var(--sand); color: var(--ink); }
  .inner-page .portrait-hero .hero-photo-wrap {
    inset: 55px max(32px, calc((100vw - 1160px) / 2)) 55px auto;
    width: 320px;
    height: calc(100% - 110px);
    aspect-ratio: auto;
  }
  .inner-page .portrait-hero .hero-photo-wrap img { object-fit: contain; object-position: center; }
  .inner-page .portrait-hero::before { background: none; }
  .inner-page .portrait-hero .page-title { color: var(--ink); text-shadow: none; }
  .inner-page .portrait-hero .hero-badge,
  .inner-page .portrait-hero .hero-caption { color: var(--muted); text-shadow: none; }
}
@media (max-width: 767px) {
  .clinic-scene { display: flex; flex-direction: column; }
  .clinic-scene > img { width: 100%; height: auto; }
  .clinic-scene .scene-copy { width: 100%; padding: 34px 22px 20px; }
  .clinic-scene .scene-copy h2 { font-size: 29px; }
  .clinic-scene .scene-copy > p:last-child { margin-top: 18px; }
  .clinic-scene .scene-caption { position: static; align-self: flex-start; margin: 0 22px 28px; }
  .inner-page .room-hero .hero-photo-wrap { inset: 0 0 auto; width: 100%; height: 65%; }
  .inner-page .room-hero .page-title { max-width: 100%; }
  .inner-page .room-hero .hero-caption { left: 22px; right: 22px; max-width: none; }
}

/* 2026-11-27 スマホ下部の固定バー：全面茶色で半分ずつ */
.n-bottom-bar { grid-template-columns: 1fr 1fr; background: var(--brown); border-top: 0; }
.n-bottom-bar a, .n-bottom-bar a:last-child { background: var(--brown); color: #fff; font-size: 13px; letter-spacing: .08em; }
.n-bottom-bar a + a { border-left: 1px solid rgba(255,255,255,.55); }

/* 2026-11-27 改行は文節単位（js/clinic.js が区切りを入れる） */
.jp-wrap, .jp-wrap :is(h1,h2,h3,h4,p,li,td,th,a,span,dt,dd,summary,figcaption,small,strong) { word-break: keep-all !important; overflow-wrap: anywhere !important; line-break: strict; }
.jp-wrap :is(td,th), .jp-wrap :is(td,th) * { overflow-wrap: break-word !important; }
.jp-wrap :is(h1,h2,h3,h4,.page-intro-heading,.h-topics-text) { text-wrap: balance; }
.jp-wrap :is(p,li,dd) { text-wrap: pretty; }
@media (max-width: 767px) {
  .inner-page .hours-table :is(th,td) { font-size: 11px; padding-inline: 2px; letter-spacing: 0; }
  .inner-page .schedule-table th { font-size: 12px; padding-inline: 6px; letter-spacing: 0; }
}

/* 冒頭の見出し：タブレットは1段組み、スマホは意味の切れ目で改行して収まる大きさに */
@media (max-width: 1023px) {
  .inner-page .page-intro .n-wrap { display: block; }
  .inner-page .page-intro-heading { margin-bottom: 22px; text-align: left; }
}
@media (max-width: 767px) {
  .inner-page .page-intro-heading { font-size: clamp(17px, 4.9vw, 21px); letter-spacing: .03em; }
  .inner-page .page-intro-heading br.pc-br { display: inline !important; }
  .sched-table-cs :is(th,td) { font-size: 11px !important; letter-spacing: 0; }
}
.jp-wrap .nw { white-space: nowrap !important; }
@media (min-width: 768px) and (max-width: 1099px) {
  .inner-page .visual-hero .page-title { font-size: 30px !important; }
}
/* 入院ページ冒頭：スマホでは写真を横いっぱいに、見出しは写真の下に重ならず置く */
@media (max-width: 767px) {
  .inner-page .page-hero.visual-hero.room-hero { height: auto !important; display: block; }
  .inner-page .room-hero .hero-photo-wrap { position: static; width: 100%; height: 200px; }
  .inner-page .room-hero .hero-photo-wrap img { object-fit: cover; }
  .inner-page .room-hero .hero-copy { position: static; padding-top: 22px !important; padding-bottom: 24px !important; }
}

/* 箇条書きの記号はすべて「・」にそろえる（番号付きの手順はそのまま） */
.inner-page main :is(.card-list,.facility-card-list,.care-card-list,.prep-list,.class-meta,.pp-list,.sched-list,ul[style*="disc"]) { list-style: none !important; }
.inner-page main :is(.prep-list,ul[style*="disc"]) { padding-left: 0 !important; margin-left: 0 !important; }
.inner-page main :is(.card-list,.facility-card-list,.care-card-list,.prep-list,.class-meta,.pp-list,.sched-list,ul[style*="disc"]) > li { position: relative; padding-left: 1.2em !important; }
.inner-page main :is(.card-list,.facility-card-list,.care-card-list,.prep-list,.class-meta,.pp-list,.sched-list,ul[style*="disc"]) > li::before {
  content: "・" !important; position: absolute; left: 0; top: 0;
  width: auto; height: auto; background: none; border-radius: 0;
  font: inherit; color: inherit;
}

/* スマホで縦に長くなりすぎないように、写真と余白を詰める */
@media (max-width: 767px) {
  .inner-page main :is(.class-card-img,.facility-card-img,.card-photo,.meal-card-img) { height: 150px !important; min-height: 0 !important; aspect-ratio: auto !important; overflow: hidden; }
  .inner-page main :is(.class-card-img,.facility-card-img,.card-photo,.meal-card-img) img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .inner-page main :is(.class-card-body,.facility-card-body,.meal-card-body,.care-card,.policy-card,.access-card) { padding: 16px 14px !important; }
  .inner-page main :is(.class-grid,.facility-grid,.card-grid,.meal-grid,.care-cards-grid,.access-grid,.policy-grid,.prep-grid) { gap: 14px !important; }
  .inner-page main :is(.class-card-desc,.facility-card-desc,.card-body p,.meal-card-desc,.care-card-desc) { line-height: 1.8 !important; margin-bottom: 8px !important; }
  .inner-page main .section-block { padding-top: 36px !important; padding-bottom: 36px !important; }
}
