/*
 * SIM比較ラボ 固定ページ ID 285 専用ブランドヘッダー
 * Cocoonの共通ヘッダーは変更せず、このページでのみ視覚的に置き換える。
 */

body.page-id-285 #header,
body.page-id-285 #navi,
body.page-id-285 .mobile-header-menu-buttons {
  display: none;
}

body.page-id-285 .sl-brand-header,
body.page-id-285 .sl-brand-header *,
body.page-id-285 .sl-brand-header *::before,
body.page-id-285 .sl-brand-header *::after {
  box-sizing: border-box;
}

body.page-id-285 .sl-brand-header {
  position: relative;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid #d8e8dc;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(11, 59, 33, 0.06);
  color: #163523;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body.page-id-285 .sl-brand-header__inner {
  width: min(calc(100% - 48px), 1180px);
  min-height: 82px;
  margin-inline: auto;
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body.page-id-285 .sl-brand-header a {
  text-decoration: none;
}

body.page-id-285 .sl-brand-header a:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 3px;
}

body.page-id-285 .sl-brand-header__brand {
  min-width: max-content;
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  color: #0b3b21;
}

body.page-id-285 .sl-brand-header__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #198754, #0b3b21);
  box-shadow: 0 8px 20px rgba(11, 59, 33, 0.18);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.page-id-285 .sl-brand-header__wordmark strong,
body.page-id-285 .sl-brand-header__wordmark small {
  display: block;
}

body.page-id-285 .sl-brand-header__wordmark strong {
  color: #0b3b21;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.015em;
}

body.page-id-285 .sl-brand-header__wordmark small {
  margin-top: 5px;
  color: #496052;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.035em;
}

body.page-id-285 .sl-brand-header__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body.page-id-285 .sl-brand-header__nav a {
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #234434;
  background: #f4fbf6;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.page-id-285 .sl-brand-header__nav a:hover {
  color: #0b3b21;
  border-color: #b8ddc2;
  background: #e8f7ed;
  transform: translateY(-1px);
}

body.page-id-285 .sl-brand-header__nav .sl-brand-header__diagnosis {
  padding-inline: 17px;
  border-color: #166534;
  color: #ffffff;
  background: #166534;
  box-shadow: 0 8px 18px rgba(22, 101, 52, 0.2);
}

body.page-id-285 .sl-brand-header__nav .sl-brand-header__diagnosis:hover {
  color: #ffffff;
  border-color: #0b3b21;
  background: #0b3b21;
}

body.page-id-285 .sl-brand-header__diagnosis span {
  margin-left: 7px;
}

@media (max-width: 900px) {
  body.page-id-285 .sl-brand-header__inner {
    width: min(calc(100% - 32px), 760px);
    padding-block: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }

  body.page-id-285 .sl-brand-header__nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.page-id-285 .sl-brand-header__nav a {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 560px) {
  body.page-id-285 .sl-brand-header__inner {
    width: calc(100% - 24px);
    padding-block: 12px 14px;
  }

  body.page-id-285 .sl-brand-header__brand {
    grid-template-columns: 38px auto;
    gap: 9px;
  }

  body.page-id-285 .sl-brand-header__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.62rem;
  }

  body.page-id-285 .sl-brand-header__wordmark strong {
    font-size: 1.08rem;
  }

  body.page-id-285 .sl-brand-header__wordmark small {
    margin-top: 3px;
    font-size: 0.6rem;
  }

  body.page-id-285 .sl-brand-header__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.page-id-285 .sl-brand-header__nav a {
    min-width: 0;
    min-height: 44px;
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  body.page-id-285 .sl-brand-header__nav .sl-brand-header__diagnosis {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-285 .sl-brand-header__nav a {
    transition: none;
  }
}
