/* 法人トップ専用：目的別の入口カード・外来案内帯・スマホ固定バー（配色は法人カラーのみ） */

/* ヒーロー：入口カードが入るため高さ上限を外す */
.hero { max-height: none; }
.hero-in { width: 100%; padding: 3.5rem 1.5rem 4.5rem; }
.hero__lead { margin-bottom: 1.75rem; }

/* スマホ：説明文（1982年の開院から〜）を隠し、見出しを1行15字が収まる大きさにして入口カードを最初の画面に近づける */
@media (max-width: 768px) {
  .hero__lead { display: none; }
  .hero__title { font-size: 5.6vw; line-height: 1.5; margin-bottom: 1.5rem; }
}

/* ===== 目的別の入口カード ===== */
.entry { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 880px; }
.entry-card {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.25rem 1.4rem;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  color: var(--c-text);
}
.entry-card--clinic { border-top: 5px solid var(--c-primary); }
.entry-card--care { border-top: 5px solid var(--c-accent); }
.entry-card__head { display: flex; align-items: center; gap: .8rem; }
.entry-card__icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary-light);
}
.entry-card--care .entry-card__icon { background: #FDF0E7; }
.entry-card__icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--c-primary-dark);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.entry-card--care .entry-card__icon svg { stroke: #9A4A17; }
.entry-card__label { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.entry-card__sub { font-size: .8rem; color: #4A5568; line-height: 1.6; }
.entry-card__tel {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  font-size: 1.4rem; font-weight: 700; color: var(--c-primary-dark); letter-spacing: .02em;
}
.entry-card__tel svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.entry-card__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
/* 2枚のカードでボタンの縦位置を揃えるため、ボタン列をカード下端に寄せる */
.entry-card__btns { margin-top: auto; padding-top: 1rem; }
.entry-btn {
  flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .7rem .75rem;
  font-size: .9rem; white-space: nowrap; font-weight: 700; border: 2px solid transparent; border-radius: var(--r);
  transition: background .2s, color .2s;
}
.entry-btn svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.entry-btn--primary { background: var(--c-primary); color: #fff; }
.entry-btn--primary:hover { background: var(--c-primary-dark); }
.entry-card--care .entry-btn--primary { background: #B4551B; }
.entry-card--care .entry-btn--primary:hover { background: #9A4A17; }
.entry-btn--outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.entry-btn--outline:hover { background: var(--c-primary-light); }
.entry-card--care .entry-btn--outline { color: #9A4A17; border-color: #B4551B; }
.entry-card--care .entry-btn--outline:hover { background: #FDF0E7; }

/* ===== 住吉医院（外来）の案内帯 ===== */
/* スマホ：診療時間・休診日を同じ大きさの2枠に並べ、どちらも2行で揃える。PC：横一列 */
.clinic-bar { background: var(--c-primary-dark); color: #fff; }
.clinic-bar__in {
  max-width: var(--max-w); margin: 0 auto; padding: 1rem 1.5rem 1.1rem;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem 1rem;
}
.clinic-bar__name { font-size: .9rem; font-weight: 700; }
.clinic-bar__more { justify-self: end; font-size: .8rem; font-weight: 700; color: #fff; text-decoration: underline; }
.clinic-bar__list { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.clinic-bar__item {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .65rem .75rem; background: rgba(255,255,255,.1); border-radius: var(--r);
}
.clinic-bar__item dt {
  align-self: flex-start; padding: 0 .5rem; font-size: .72rem; font-weight: 700; line-height: 1.7;
  color: var(--c-primary-dark); background: #fff; border-radius: 4px;
}
.clinic-bar__item dd { display: flex; flex-direction: column; font-size: .85rem; font-weight: 500; line-height: 1.6; }
.clinic-bar__line { white-space: nowrap; }

/* ===== スマホ固定バー ===== */
.top-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; background: var(--c-primary-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.top-cta__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: 56px; font-size: .7rem; font-weight: 700; color: #fff; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.2);
}
.top-cta__item:last-child { border-right: none; }
.top-cta__item svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }

@media (min-width: 769px) {
  .hero-in { padding: 4.5rem 1.5rem 5rem; }
  .entry { grid-template-columns: 1.15fr 1fr; gap: 1.25rem; }
  .entry-card { padding: 1.5rem 1.6rem 1.6rem; }
  .clinic-bar__in { display: flex; gap: 1.5rem; padding: .85rem 1.5rem; }
  .clinic-bar__list { display: flex; gap: 1.75rem; }
  .clinic-bar__item { flex-direction: row; align-items: center; gap: .6rem; padding: 0; background: none; }
  .clinic-bar__item dt { align-self: center; }
  .clinic-bar__item dd { flex-direction: row; gap: .5rem; }
  .clinic-bar__line + .clinic-bar__line::before { content: "／"; margin-right: .5rem; opacity: .7; }
  .clinic-bar__more { margin-left: auto; }
  .top-cta { display: none; }
  body { padding-bottom: 0; }
}
