.custom-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #eee;
  padding: 0;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.custom-header-sp {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  height: 60px;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #eee;
  padding: 0;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.custom-sub-header {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #eee;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  top: 0;
  left: 0;
}

.header-container {
  max-width: 1328px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
}

.header-logo img {
  height: clamp(32px, 14.572px + 2.266vw, 48px);
  margin-left: 10px;
}

.header-nav {
  margin-left: 20px;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.header-nav ul li a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 560;
  font-size: clamp(8px, -0.714px + 1.133vw, 16px);
  transition: opacity 0.3s;
  display: block;
  line-height: 1.2;
  text-align: center;
}

.header-nav ul li a:hover {
  opacity: 0.6;
}

.header-sns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

.header-sns img {
  width: clamp(32px, 8.037px + 3.116vw, 54px);
  height: clamp(32px, 8.037px + 3.116vw, 54px);
  border-radius: 12px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* sp */
/* ハンバーガーボタン本体 */
.header-hamburger {
  width: 42px;
  height: 42px;
  background-color: #b32223;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1001;
}

/* 線の共通 */
.hamburger-button {
  position: relative;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.bar.top {
  transform: translateY(-10px);
}

.bar.middle {
  transform: translateY(-50%);
}

.bar.bottom {
  transform: translateY(10px);
}

.hamburger-button.open .top {
  transform: rotate(45deg);
}

.hamburger-button.open .middle {
  opacity: 0;
}

.hamburger-button.open .bottom {
  transform: rotate(-45deg);
}

/* メニューの見た目 */
.sp-menu {
  position: fixed;
  top: 60px; /* ← ヘッダー高さ分 */
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 2;

  /* 初期はヘッダーの下から上に引っ込んだ位置 */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none; /* 非表示時クリック無効 */
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.sp-menu.open {
  transform: translateY(0); /* ヘッダー下から表示 */
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
}

.sp-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-menu li {
  padding: 16px 20px;
  border-bottom: 1px solid #b32223;
  font-size: 20px;
  font-weight: 400;
  color: #000000 !important;
}

.header-logo-sp img {
  height: 32px;
  margin-left: 20px;
  max-width: 100%;
}

.header-sns-sp {
  display: flex;
  gap: 10px;
  margin-right: 10px;
}
.sp-menu a {
  text-decoration: none;
  color: #000000 !important;
}

.header-sns-sp img {
  width: 40px;
  max-width: 100%;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.3);
}

.header-container-sp {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 60px;
  max-width: 100%;
  z-index: 1;
}

.header-sp {
  display: none;
}

@media screen and (max-width: 830px) {
  .header-pc {
    display: none;
  }
  .header-sp {
    display: block;
  }
  .riat-breadcrumb {
    line-height: 2 !important;
  }
}
