.m-hospital {
  --hp-primary: #2489f3;
  --hp-primary-dark: #1a6fd1;
  --hp-primary-soft: #eef5ff;
  --hp-primary-line: #d6e6fb;
  --hp-text: #1f2937;
  --hp-text-sub: #4b5563;
  --hp-text-muted: #8b95a1;
  --hp-line: #e5e8eb;
  --hp-bg-soft: #f7f9fb;
  --hp-radius: 12px;
  --hp-radius-sm: 8px;
  --hp-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);

  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 16px 16px 28px;
  box-sizing: border-box;
  color: var(--hp-text);
  font-size: 16px;
  letter-spacing: -0.02em;
  -webkit-user-select: text;
  user-select: text;
}
.m-hospital h2,
.m-hospital h3,
.m-hospital p {
  margin: 0;
}
.m-hospital a {
  color: inherit;
  text-decoration: none;
}
.m-hospital .section-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text);
}
.m-hospital .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m-hospital .section-heading .section-title {
  margin-bottom: 0;
}
.m-hospital .text-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--hp-text-muted);
  cursor: pointer;
}

.m-gallery .gallery-main {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: var(--hp-bg-soft);
  cursor: pointer;
}
.m-gallery .gallery-main.is-static {
  cursor: default;
}
.m-gallery .gallery-main img,
.m-gallery .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-gallery .gallery-thumb-wrap {
  position: relative;
  margin-top: 8px;
}
.m-gallery .gallery-thumbs {
  width: 100%;
  margin: 0;
}
.m-gallery .gallery-thumb {
  position: relative;
  height: 72px;
  overflow: hidden;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-bg-soft);
  cursor: pointer;
}
.m-gallery .gallery-caption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 1px 6px;
  background: rgba(17, 24, 39, 0.6);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-info .hospital-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m-info .hospital-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.m-info .hospital-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.m-info .hospital-like-btn,
.m-info .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--hp-primary);
  cursor: pointer;
}
.m-info .hospital-like-btn img,
.m-info .share-btn .icon-share {
  width: 18px;
  height: 18px;
  font-size: 18px;
}
.m-info .share-menu-wrap {
  position: relative;
}
.m-info .share-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}
.m-info .share-menu-wrap.open .share-menu {
  display: flex;
  flex-direction: column;
}
.m-info .share-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--hp-text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.m-info .share-menu-item img {
  width: 18px;
  height: 18px;
}
.m-info .hospital-address {
  margin-top: 8px;
  color: var(--hp-text-sub);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  background: var(--hp-bg-soft);
  padding: 10px;
  border-radius: var(--hp-radius);
}
.m-info .info-line {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.m-info .hospital-info-title {
  flex: 0 0 64px;
  color: var(--hp-text-muted);
  font-weight: 600;
}
.m-info .hospital-notice,
.m-info .hospital-request {
  margin-top: 10px;
}
.m-info .hospital-notice {
  box-sizing: border-box;
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--hp-primary-line);
  border-radius: var(--hp-radius);
  background: var(--hp-primary-soft);
}
.m-info .notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.m-info .notice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-primary-dark);
}
.m-info .notice-preview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hp-text-sub);
  font-size: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.m-info .hospital-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hp-primary-line);
  border-radius: var(--hp-radius);
  background: var(--hp-primary-soft);
  cursor: pointer;
}
.m-info .hospital-request-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.m-info .hospital-request-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hp-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.m-info .hospital-request.is-requested {
  border-color: var(--hp-line);
  background: var(--hp-bg-soft);
  cursor: default;
}
.m-info .hospital-request.is-requested .hospital-request-action {
  background: #e8eef5;
  color: var(--hp-text-muted);
}
.m-hospital.has-entry-bar {
  padding-bottom: 120px;
}
.m-hospital.has-entry-bar .hospital-request {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height-mobile) - 2px);
  z-index: 98;
  width: 100%;
  max-width: 500px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--hp-primary);
  box-shadow: 0 -2px 10px rgba(17, 24, 39, 0.08);
  transform: translateX(-50%);
}
.m-hospital.has-entry-bar .hospital-request-title {
  color: #fff;
}
.m-hospital.has-entry-bar .hospital-request-action {
  flex: 0 0 auto;
  background: #fff;
  color: var(--hp-primary);
}
.m-hospital.has-entry-bar .hospital-request.is-requested {
  background: #e8eef5;
  border: 0;
}
.m-hospital.has-entry-bar .hospital-request.is-requested .hospital-request-title {
  color: var(--hp-text-muted);
}

.m-hospital .hospital-event-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 16px;
  border-radius: var(--hp-radius);
  background-color: var(--third-normal);
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.m-hospital .hospital-event-banner-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 16px 0 6px;
}
.m-hospital .hospital-event-banner-copy strong {
  font-size: 18px;
  font-weight: 600;
}
.m-hospital .hospital-event-banner-copy span {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.m-hospital .hospital-event-banner-cta {
  width: fit-content;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fff;
  color: #1a6fd1;
  font-size: 13px;
  font-weight: 800;
}
.m-hospital .hospital-event-banner-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  overflow: hidden;
}
.m-hospital .hospital-event-banner-visual img {
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: top center;
}

.m-events .event-scroll {
  position: relative;
  margin-top: 12px;
}
.m-hospital .scroll-next {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
  line-height: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
.m-hospital .scroll-next::after {
  content: none;
}
.m-hospital .scroll-next img {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  transform: rotate(-90deg);
}
.m-hospital .scroll-next[hidden],
.m-hospital .scroll-next.swiper-button-disabled {
  display: none;
}
.m-events .event-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.m-events .event-list.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.m-events .event-list::-webkit-scrollbar {
  display: none;
}
.m-events .event-list > li,
.m-events .event-card {
  flex: 0 0 150px;
  width: 150px;
  max-width: none;
}
.m-events .event-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-events .event-image {
  width: 150px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-bg-soft);
}
.m-events .event-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.m-events .event-name {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--hp-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.m-checkup .checkup-content,
.m-intro .intro-content,
.m-medical .medical-content {
  padding: 16px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
}
.m-checkup .checkup-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-checkup .checkup-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-checkup .checkup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.m-checkup .checkup-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.m-checkup .checkup-item-icon img {
  width: 100%;
  height: 100%;
}
.m-checkup .checkup-item-title {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.m-checkup .checkup-item-title.normal {
  color: var(--primary-strong, #2489f3);
}
.m-checkup .checkup-item-title.pink {
  color: var(--secondary-normal, #e25b8a);
}
.m-checkup .checkup-empty,
.m-intro .intro-content {
  color: var(--hp-text-sub);
  font-size: 15px;
  line-height: 1.7;
}
.m-intro .intro-content {
  background: var(--hp-bg-soft);
}

.m-medical .medical-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.m-medical .box-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}
.m-medical .medical-table {
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
}
.m-medical .medical-row {
  display: grid;
  grid-template-columns: 1fr 88px;
}
.m-medical .medical-row > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hp-line);
  font-size: 15px;
}
.m-medical .medical-row > div:last-child {
  text-align: center;
}
.m-medical .medical-row:last-child > div {
  border-bottom: 0;
}
.m-medical .medical-header > div {
  background: var(--hp-bg-soft);
  font-weight: 600;
}
.m-medical .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-medical .tag {
  padding: 4px 10px;
  border: 1px solid var(--hp-primary-line);
  border-radius: 999px;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  font-size: 15px;
  font-weight: 600;
}

.m-hours .hours-toggle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
  box-shadow: var(--hp-shadow);
  cursor: pointer;
}
.m-hours .hours-toggle-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.m-hours .hours-toggle-status {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  font-size: 15px;
  font-weight: 600;
}
.m-hours .hours-toggle-status.is-closed {
  background: var(--hp-bg-soft);
  color: var(--hp-text-muted);
}
.m-hours .hours-toggle-status.is-lunch {
  background: #fff7e6;
  color: #d97706;
}
.m-hours .hours-toggle-content {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 600;
}
.m-hours .hours-break {
  color: var(--hp-text-muted);
  font-weight: 400;
}
.m-hours .hours-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--hp-radius);
  background: var(--hp-bg-soft);
  font-size: 16px;
}
.m-hours .hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.m-hours .hours-row.lunch-time {
  color: var(--hp-text-muted);
}

.m-map .location-map {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-bg-soft);
}
.m-place .info-box + .info-box {
  margin-top: 16px;
}
.m-place .box-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}
.m-place .address-row p,
.m-place .transit-row {
  padding: 14px 16px;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-bg-soft);
  font-size: 16px;
  line-height: 1.5;
}
.m-place .transit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-place .transit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.m-place .transit-row strong {
  flex: 0 0 auto;
  color: var(--hp-primary);
}
.m-place .transit-row span {
  text-align: right;
}

.m-hospital .notice-modal,
.m-hospital .gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
}
.m-hospital .notice-modal.active,
.m-hospital .gallery-modal.active {
  display: flex;
}
.m-hospital .notice-modal-dim,
.m-hospital .gallery-modal-dim {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}
.m-hospital .notice-modal-dialog,
.m-hospital .gallery-modal-dialog {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 80vh;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: #fff;
}
.m-hospital .notice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.m-hospital .notice-modal-close,
.m-hospital .gallery-modal-close {
  border: 0;
  background: none;
  color: var(--hp-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.m-hospital .gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}
.m-hospital .gallery-modal-close img {
  display: block;
  width: 100%;
  height: 100%;
}
.m-hospital .notice-modal-body {
  overflow-y: auto;
  max-height: 60vh;
  color: var(--hp-text-sub);
  font-size: 16px;
  line-height: 1.6;
}
.m-hospital .gallery-modal-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  min-height: 420px;
  height: auto;
  max-height: 100%;
  padding: 52px 0 16px;
  border-radius: 0;
  overflow: hidden;
}
.m-hospital .gallery-modal-view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
}
.m-hospital .gallery-modal-view > img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 280px;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 0;
  background: var(--hp-bg-soft);
}
.m-hospital .gallery-modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}
.m-hospital .gallery-modal-prev {
  left: 8px;
}
.m-hospital .gallery-modal-next {
  right: 8px;
}
.m-hospital .gallery-modal-arrow img {
  display: block;
  width: 22px;
  height: 22px;
}
.m-hospital .gallery-modal-prev img {
  transform: rotate(90deg);
}
.m-hospital .gallery-modal-next img {
  transform: rotate(-90deg);
}
.m-hospital .gallery-modal-list {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 16px 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.m-hospital .gallery-modal-list::-webkit-scrollbar {
  display: none;
}
.m-hospital .gallery-modal-thumb {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 6px 14px;
  border: 1px solid var(--hp-line);
  border-radius: 50px;
  background: #fff;
  color: var(--hp-text);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
}
.m-hospital .gallery-modal-thumb.is-active {
  border-color: var(--app-third);
  background: var(--app-third);
  color: #fff;
}

.hospital-data-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e07a00;
  border-radius: 8px;
  background: #fff1dc;
  color: #6a3200;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.hospital-data-note strong {
  width: fit-content;
  padding: 2px 10px;
  border-radius: 50px;
  background: #e07a00;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.m-youtube {
  width: 100%;
}
.m-youtube .youtube-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: #000;
}
.m-youtube .youtube-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
