/* ============================================
   Header
   ============================================ */
.site-header {
  position: relative;
  z-index: var(--z-header);
  background-color: transparent;
}

.header__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 0 20px;
  height: 60px;
}

/* Logo */
.header__logo-area {
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 70px;
  padding-left: 10px;
}

.header__logo-full {
  width: 300px;
  height: 110px;
  margin-top: 4px;
}

.header__logo-link:hover {
  opacity: 1;
}

.header__logo-icon {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
}

.header__logo-img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.header__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__clinic-org {
  font-size: 16px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: -4px;
}

.header__clinic-name {
  font-size: 30px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.header__clinic-branch {
  font-size: 23px;
  font-weight: var(--font-weight-regular);
  color: #3A1E08;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: -4px;
}

/* Right side */
.header__right {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 50px;
  height: 60px;
  background-color: #fff;
  border-bottom-left-radius: 15px;
  font-size: 18px;
  color: var(--color-text);
}

.header__address-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  display: flex;
}

.header__maintenance {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #e00;
  font-size: 18px;
  font-weight: 900;
  padding: 6px 24px;
  border: 2px solid #e00;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.1em;
  gap: 6px;
  position: relative;
}

.header__maintenance::after {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center center;
  width: 100%;
  height: 100%;
  border: 1px solid #e00;
  border-radius: 6px;
  opacity: 0;
  content: "";
  animation: maintenance-pulse 1s infinite linear;
}

@keyframes maintenance-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.2, 1.5); opacity: 0; }
}

.header__maintenance-sp {
  display: none;
}

/* CTA Group */
.header__cta-group {
  display: flex;
  height: 60px;
}

.header__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60px;
  transition: background-color var(--transition-fast);
}

.header__cta:hover {
  opacity: 1;
}

.header__cta--phone {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6px 20px;
  min-width: auto;
}

.header__cta--phone:hover {
  background-color: var(--color-primary-dark);
}

.header__cta-label {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  background-color: #FFE902;
  color: var(--color-text);
  padding: 0 45px;
  border-radius: var(--radius-full);
  margin-bottom: 0;
}

.header__cta-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__cta-icon {
  display: flex;
  align-items: center;
}

.header__cta-number {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}

.header__cta--reserve {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6px 16px;
  min-width: 80px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.header__cta--reserve:hover {
  background-color: var(--color-primary-dark);
}

.header__cta--line {
  background-color: #06c755;
  color: var(--color-white);
  padding: 0;
  width: 100px;
  min-width: auto;
  height: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__cta--line:hover {
  background-color: #05b34c;
}

.header__line-text {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  padding-right: 35px;
  padding-bottom: 5px;
}

.header__line-icon {
  position: absolute;
  bottom: 6px;
  right: 5px;
  z-index: 2;
  color: #06c755;
  display: flex;
}

.header__line-icon svg {
  margin-right: 5px;
}

.header__cta--line::before {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 0 0 50px;
  border-color: transparent transparent transparent #ffffff;
  transform: rotate(270deg);
}

/* Hamburger (mobile) */
.header__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background-color: #018E4A;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 52px;
  height: 52px;
  padding: 6px;
  color: var(--color-white);
}

.header__hamburger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__hamburger-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  margin-top: -2px;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.05em;
  color: var(--color-white);
}
