﻿*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(13px, 5.5vw, 18px);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: #fff;
  color: #333;
}

#hpEntryRoot {
  padding: 0.62em 0.77em;
}

.hp-entry-title-box {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.hp-entry-title {
  flex: 1;
  min-width: 0;
  border-left: 3px solid var(--hpAccent, #2b6cb0);
  padding-left: 6px;
  line-height: 1.4;
  font-size: 1.3rem;
  font-weight: bold;
  color: #444;
}

.hp-entry-title-sub {
  font-size: 1rem;
  color: #888;
  margin-bottom: 8px;
}

.hp-entry-day-group {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.hp-entry-day-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hp-entry-day-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #444;
  margin-bottom: 3px;
}
.hp-entry-day-label .hp-entry-day-sunday {
  color: #d32f2f;
}
.hp-entry-day-label .hp-entry-day-saturday {
  color: #1976d2;
}

.hp-entry-slot-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.hp-entry-slot-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--hpAccent, #2c5282);
  border-radius: 3px;
  padding: 2px 3px;
  font-size: 1.1rem;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.hp-entry-slot-ampm {
  font-size: 0.95rem;
  opacity: 0.8;
}

.hp-entry-slot-time {
  font-size: 1.2rem;
  font-weight: bold;
  white-space: pre;
}

.hp-entry-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  width: 100%;
  min-height: 3.9rem;
  text-align: center;
  margin-top: 10px;
  padding: 0.5em 0.92em;
  background: var(--hpBtnBg, #2b6cb0);
  color: var(--hpBtnText, #fff);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: ease 0.2s all;
}
@media (hover: hover) {
  .hp-entry-book-btn:hover {
    opacity: 0.5;
    color: var(--hpBtnText, #fff);
    text-decoration: none;
  }
}

.hp-entry-book-icon {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  transform: translateY(-0.12em);
}

.hp-entry-empty {
  color: #888;
  font-size: 1.1rem;
  margin-top: 6px;
}

.hp-entry-error {
  color: #c53030;
  font-size: 1.1rem;
  margin-top: 6px;
}

#hpEntryTodayRoot {
  padding: 0.62em 0.77em;
}

.hp-entry-today-root {
  padding: 2px 0;
}

.hp-entry-today-title {
  font-size: 1rem;
  font-weight: bold;
  color: #444;
  margin-bottom: 6px;
  border-left: 3px solid var(--hpAccent, #2b6cb0);
  padding-left: 6px;
}

.hp-entry-today-status {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.hp-entry-today-open {
  color: var(--hpAccent, #2c5282);
}

.hp-entry-today-full {
  color: #b71c1c;
}

.hp-entry-tel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.9rem;
  margin-top: 10px;
  padding: 0.35em 0.8em;
  background: var(--hpBtnBg, #2b6cb0);
  color: var(--hpBtnText, #fff);
  border: 2px solid transparent;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: ease 0.2s all;
}
@media (hover: hover) {
  .hp-entry-tel-box:hover {
    opacity: 0.5;
  }
}

.hp-entry-tel-label {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--hpBtnText, #fff);
  margin-bottom: 1px;
}

.hp-entry-tel-link {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: bold;
  color: var(--hpBtnText, #fff);
  text-decoration: none;
}
.hp-entry-tel-link:hover {
  text-decoration: none;
}

.hp-entry-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: var(--hpAccent, #2b6cb0);
  font-size: 0.95rem;
  padding: 1.4em 0;
}

.hp-entry-spinner {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid #e2e8f0;
  border-top-color: var(--hpAccent, #2b6cb0);
  border-radius: 50%;
  animation: hp-entry-spin 0.7s linear infinite;
}

.hp-entry-loading-text::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: hp-entry-dots 1.2s steps(1, end) infinite;
}

@keyframes hp-entry-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hp-entry-dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}
html.hp-entry-h {
  font-size: clamp(13px, 2.2vw, 18px);
}
html.hp-entry-h #hpEntryRoot {
  padding: 0.4em 0.77em;
}

.hp-entry-horizontal .hp-entry-title-box {
  margin-bottom: 2px;
}
.hp-entry-horizontal .hp-entry-title-sub {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.hp-entry-horizontal .hp-entry-day-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.hp-entry-horizontal .hp-entry-day-group {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 4px 4px;
  margin-bottom: 0;
  text-align: center;
}
.hp-entry-horizontal .hp-entry-day-group:last-of-type {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.hp-entry-horizontal .hp-entry-day-label {
  margin-bottom: 2px;
}
.hp-entry-horizontal .hp-entry-book-btn,
.hp-entry-horizontal .hp-entry-tel-box {
  margin-top: 4px;
  min-height: 0;
  height: 3.45rem;
}
.hp-entry-horizontal .hp-entry-tel-box {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}
.hp-entry-horizontal .hp-entry-slot-row {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hp-entry-horizontal .hp-entry-slot-item {
  flex: none;
  justify-content: center;
  padding: 1px 3px;
}

html.hp-entry-size-s {
  font-size: 13px;
}

html.hp-entry-size-m {
  font-size: 16px;
}

html.hp-entry-size-l {
  font-size: 18px;
}

html[class*=hp-entry-size-],
html[class*=hp-entry-size-] body {
  height: 100%;
}

html[class*=hp-entry-size-] #hpEntryRoot {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
html[class*=hp-entry-size-] .hp-entry-book-btn,
html[class*=hp-entry-size-] .hp-entry-tel-box {
  margin-top: auto;
}
html[class*=hp-entry-size-] .hp-entry-day-row,
html[class*=hp-entry-size-] .hp-entry-empty {
  margin-bottom: 6px;
}
html[class*=hp-entry-size-] .hp-entry-horizontal .hp-entry-day-row,
html[class*=hp-entry-size-] .hp-entry-horizontal .hp-entry-empty {
  margin-bottom: 4px;
}
html[class*=hp-entry-size-] .hp-entry-tel-link {
  font-size: 1.4rem;
}
html[class*=hp-entry-size-] .hp-entry-title-box {
  min-height: 3.64rem;
}
html[class*=hp-entry-size-] .hp-entry-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html[class*=hp-entry-size-] .hp-entry-today-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.hp-entry-other-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  padding: 0.46em 0.92em;
  background: none;
  border: 1px solid var(--hpAccent, #2b6cb0);
  color: var(--hpAccent, #2b6cb0);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}
.hp-entry-other-btn:hover {
  background: color-mix(in srgb, var(--hpAccent, #2b6cb0) 10%, #fff);
}
