@charset "utf-8";

.header {
  position: relative;
  z-index: 100;
}
.header .hd-inr {
  padding: 40px 64px;
}

.header .hd-logo {
  max-width: 420px;
}

.header .hd-logo .hd-logo-pc {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.header .hd-logo .hd-logo-sp-white {
  display: none;
}

.header .hd-logo .hd-logo-sp {
  display: none;
}

.header .hd-right {
  gap: 16px;
}
.header .hd-right.hd-right-sp {
  display: none;
}
.header .cont-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.header .phone {
  gap: 8px;
}
.header .phone img {
  width: 30px;
  height: 30px;
}

.header .phone .phone-icon {
  display: block;
}
.header .phone .phone-icon-white {
  display: none;
}

.header .phone a {
  font-family: var(--font-jost);
  font-size: var(--fs-xxl);
  color: var(--color-blue-light);
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.header .hours {
  font-size: var(--fs-xs);
}

.header .hours .hours-time {
  font-family: var(--font-jost);
  font-size: var(--fs-md);
  line-height: 1;
}

.header .sns {
  gap: 4px;
}

.header .sns .sns-item {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header .cont-btn {
  gap: 4px;
}
.header .cont-btn a {
  padding: 16px 24px;
  background-color: var(--color-blue);
  text-align: center;
  color: var(--color-white);
  font-size: var(--fs-sm);
  line-height: 1;
  letter-spacing: 0.1em;
}

.header .cont-btn a:last-child {
  background-color: var(--color-blue-light);
}

/* スクロール*/

.header.is-scrolled .hd-logo {
  position: fixed;
  display: block;
  top: 8px;
  left: 40px;
  z-index: 100;
}

.header.is-scrolled .hd-logo .hd-logo-pc {
  display: none;
}
.header.is-scrolled .hd-logo .hd-logo-sp {
  display: block;
}
.header.is-scrolled .header.is-scrolled .bg-logo {
  display: block;
}
.header.is-scrolled .hd-nav {
  position: fixed;
  top: 0;
  padding-top: 16px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}
.header.is-scrolled .hd-nav-list {
  padding-top: 16px;
}

@media screen and (max-width: 960px) {
  .header.is-scrolled .hd-nav-list {
    padding-top: 40px;
    padding-left: 80px;
  }
}
@media screen and (max-width: 768px) {
  .header.is-scrolled-sp {
    background-color: rgba(255, 255, 255, 0.5);
  }
  .header.is-scrolled-sp .hd-inr {
    padding-top: 24px;
    padding-bottom: 16px;
  }
  .header.is-scrolled .hd-logo {
    position: initial;
  }
}

@media screen and (max-width: 600px) {
  .header.is-scrolled-sp .hd-inr {
    padding-top: 16px;
    padding-bottom: 8px;
  }
}

/* サイドバー */
.header .cont-btn-side {
  display: none;
}
.header.is-scrolled .cont-btn-side {
  display: flex;
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  z-index: 105;
  gap: 8px;
}

.header.is-scrolled .cont-btn-side a {
  padding-right: 16px;
  padding-left: 20px;
  border-radius: 15px 0 0 15px;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.2);
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 152px;
}

.header.is-scrolled .cont-btn-side a img {
  width: 21px;
  height: auto;
  object-fit: contain;
  margin-left: 0.3em;
}
.header.is-scrolled .cont-btn-side a span {
  font-size: var(--fs-xs);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
  color: var(--color-white);
}

.header.is-scrolled .cont-btn-side a:first-of-type {
  background-color: var(--color-blue);
}

.header.is-scrolled .cont-btn-side a:last-of-type {
  background-color: var(--color-blue-light);
}

@media screen and (max-width: 1100px) {
  .header .hd-logo {
    max-width: 360px;
  }
  .header .hd-right {
    gap: 8px;
  }
  .header .phone img {
    width: 24px;
    height: 24px;
  }
}
@media screen and (max-width: 1000px) {
  .header .hd-inr {
    padding: 40px 5%;
  }
}

@media screen and (max-width: 960px) {
  .header .hd-inr {
    align-items: center;
  }
  .header .hd-logo {
    max-width: 320px;
  }

  .header .cont-btn a {
    padding: 12px 16px;
  }
  .header .hd-logo {
    max-width: 144px;
  }
  .header .hd-logo .hd-logo-sp {
    display: block;
    height: auto;
    object-fit: contain;
  }
  .header .hd-logo .hd-logo-pc {
    display: none;
  }
  .header .sns .sns-item {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  .header .hd-right {
    padding-right: calc(5% + 24px);
  }

  .header .cont-btn {
    display: none;
  }
  .header .sns {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .header .hd-inr {
    padding: 24px 5%;
  }
  .header .hd-logo {
    max-width: 64px;
  }
  .header .hd-right {
    gap: 4px;
    padding-right: calc(5% + 32px);
  }
  .header .cont-info {
    gap: 0 8px;
  }
  .header .phone {
    gap: 4px;
  }
  .header .phone img {
    width: 16px;
    height: 16px;
  }
  .header .phone a {
    font-size: var(--fs-md);
    pointer-events: auto;
  }
  .header .hours {
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: right;
  }
  .header .hours .hours-time {
    font-size: var(--fs-base);
  }

  .header .sns .sns-item {
    width: 24px;
    height: 24px;
  }
  .header .cont-btn-side,
  .header.is-scrolled .cont-btn-side {
    bottom: 0;
    top: auto;
    transform: translateY(0);
    gap: 0;
    flex-direction: row;
    width: 100%;
    border-radius: 0;
  }
  .header .cont-btn-side a,
  .header.is-scrolled .cont-btn-side a {
    height: auto;
    width: 50%;
    padding: 12px 0;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    flex-direction: row;
  }

  .header .cont-btn-side a img {
    margin-left: 0;
  }
  .header .cont-btn-side a span,
  .header.is-scrolled .cont-btn-side a span {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    line-height: 1;
    font-size: var(--fs-sm);
  }
}

/* ハンバーガーメニュー */
.header .nav-toggle {
  height: 11px;
  width: 38px;
  cursor: pointer;
  position: absolute;
  display: none;
  transform: translateY(-50%);
  right: 5%;
  background-color: initial;
  border: none;
  z-index: 101;
}
.header .nav-toggle span {
  display: block;
  left: 0;
  box-sizing: border-box;
  position: absolute;
  background-color: var(--color-blue-dark);
  width: 100%;
  height: 1px;
  transition: all 0.2s ease;
}
.header .nav-toggle span:nth-child(1) {
  transform: translateY(-2px) rotate(-180deg);
}

.header .nav-toggle span:nth-child(2) {
  transform: translateY(6px) rotate(180deg);
}

/* 開閉 */
.header .nav-toggle.is-active span {
  background-color: var(--color-white);
}

.header .nav-toggle.is-active span:nth-child(1) {
  transform: translateY(-50%) rotate(18deg);
  transition: all 0.2s;
}

.header .nav-toggle.is-active span:nth-child(2) {
  transform: translateY(-50%) rotate(-18deg);
  transition: all 0.2s;
}

@media screen and (max-width: 768px) {
  .header .nav-toggle {
    display: block;
  }
}

/* サブナビゲーション */
/* ホバーでサブメニュー表示 */
.header .hd-nav-item.has-sub > .hd-nav-sublist {
  position: absolute;
  display: none;
}
.header .hd-nav-item.has-sub:hover > .hd-nav-sublist {
  display: block;
  width: max-content;
  top: 100%;
  left: 50%;
  z-index: 201;
  padding: 24px 40px;
  background-color: var(--color-white);
  transition: opacity 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.header .hd-nav-item.has-sub > .hd-nav-sublist:hover {
  opacity: 1;
  display: block;
  z-index: 201;
}

.header .hd-nav-item.has-sub:hover > .hd-nav-sublist .hd-nav-subitem {
  padding-bottom: 16px;
}
.header
  .hd-nav-item.has-sub:hover
  > .hd-nav-sublist
  .hd-nav-subitem:last-of-type {
  padding-bottom: 0;
}

.hd-nav-item.has-sub:hover > .hd-nav-sublist {
  display: block;
}
.header .hd-nav-item.has-sub:hover > .hd-nav-sublist .hd-nav-subitem a {
  position: relative;
  padding-left: 1.2em;
}
.header .hd-nav-item.has-sub:hover > .hd-nav-sublist .hd-nav-subitem a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  font-size: 0.5em;
  color: var(--color-blue);
}

/* ナビゲーション */

.header .hd-nav-list {
  justify-content: center;
}

.header .hd-nav-item {
  position: relative;
  padding-bottom: 16px;
}

.header .hd-nav-item > a {
  position: relative;
  width: 100%;
  height: 100%;
  padding-right: 40px;
  padding-left: 40px;
  border-right: 1px solid var(--color-black);
}
.header .hd-nav-item:first-of-type > a {
  padding-left: 0;
}
.header .hd-nav-item:last-of-type > a {
  padding-right: 0;
  border-right: none;
}
.header .hd-nav-item > a span {
  position: relative;
}

.header .hd-nav-item > a span::before {
  content: "●";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -50%);
  color: var(--color-blue);
  opacity: 0;
  transition: opacity 0.2s;
}

/* 現在ページ */
.header .hd-nav-item.current-menu-item > a span::before {
  opacity: 1;
}

.header .sp-nav-bg {
  display: none;
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  z-index: 101;
}

@media screen and (max-width: 1100px) {
  .header .hd-nav-item > a {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media screen and (max-width: 960px) {
  .header .hd-nav-item > a {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media screen and (max-width: 768px) {
  .header .hd-nav {
    display: none;
  }
}

/* spメニュー */
.header .hd-nav-sp {
  display: none;
}

.header .sp-nav-sublist {
  overflow: hidden;
  max-height: 0;
}
.header .sp-nav-sublist-inr {
  opacity: 0;
  overflow: clip;
  transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
}

.header .hd-nav-sublist-toggle {
  display: none;
}

.header::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* 背景は透明 or お好みで */
  background: linear-gradient(
    90deg,
    rgba(0, 128, 200, 1) 0%,
    rgba(1, 64, 153, 1) 100%
  );
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  pointer-events: none;
  z-index: 100;
  opacity: 1;
}

.header.open::after {
  transform: translateX(0);
}

.header:not(.open)::after {
  opacity: 0;
}

.header.open {
  overflow-y: auto;
  height: 100%;
  z-index: 101;
}
.header.closing::after {
  background: linear-gradient(
    90deg,
    rgba(0, 128, 200, 1) 0%,
    rgba(1, 64, 153, 1) 100%
  );
  transform: translateX(100%);
  z-index: 100;
}
.header.open .hd-inr {
  z-index: 102;
  position: relative;
}

.header.open .hd-logo {
  max-width: 240px;
  z-index: 101;
}

.header.open.is-scrolled .hd-logo .hd-logo-sp {
  display: none;
}
.header.open .hd-logo-pc,
.header.open .hd-logo-sp {
  display: none;
}
.header.open .hd-logo-sp-white {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.header.open .hd-right .cont-info {
  display: none;
}

.header.open .hd-right .cont-btn {
  flex-direction: row;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: initial;
  z-index: 150;
  gap: initial;
}

.header.open .hd-right .cont-btn a {
  width: 50%;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header.open .hd-nav {
  display: none;
}

.header.open .hd-nav-sp {
  display: block;
  position: relative;
  padding-top: 24px;
  padding-bottom: 160px;
  padding-right: 5%;
  padding-left: 5%;
  z-index: 102;
  overflow-y: auto;
}

.header.open .sp-nav-list {
  padding-bottom: 40px;
}

.header.open li a {
  border-bottom: 1px solid transparent;
  transition: color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}

.header.open li a:hover {
  color: var(--caolor-white);
  border-bottom: 1px solid var(--color-white);
  border-color: var(--color-white);
}

.header.open .sp-nav-item {
  color: var(--color-white);
  font-size: var(--fs-md);
  padding: 8px 0;
  position: relative;
}

/* サブメニュー */
.header .sp-nav-sublist {
  overflow: hidden;
  max-height: 0;
  font-size: var(--fs-base);
  padding-left: 0.5em;
  padding-top: 0.5em;
  transition: line-height 0.3s ease-out, opacity 0.1s linear,
    visibility 0.1s linear;
}
.header.open .sp-nav-sublist {
  max-height: 500px;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out,
    visibility 0s linear;
}

.header.open .sp-nav-sublist-toggle {
  position: absolute;
  right: 5%;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 1.6em;
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
}
.header.open .sp-nav-sublist-toggle span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
}

.header.open .sp-nav-sublist-toggle span:nth-child(2) {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.header.open
  .sp-nav-item.has-sub.sub-open
  .sp-nav-sublist-toggle
  span:nth-child(2) {
  transform: rotate(0);
}

.header.open .sp-cont-info {
  color: var(--color-white);
  border-top: 1px solid hsla(0, 0%, 95%, 0.5);
  border-bottom: 1px solid hsla(0, 0%, 95%, 0.5);
  padding-top: 24px;
  padding-bottom: 24px;
}

.header.open .sp-cont-info .phone a {
  pointer-events: auto;
  color: var(--color-white);
  font-size: var(--fs-xxl);
}

.header.open .sp-cont-info .phone img {
  width: 24px;
  height: 24px;
}

.header.open .sp-cont-info .hours {
  line-height: 1.5;
  text-align: left;
  padding-bottom: 8px;
}

.header.open .sp-cont-info .hours .hours-time {
  font-size: var(--fs-md);
}

.header.open .sns-sp {
  gap: 6px;
  padding-bottom: 8px;
}

.header.open .sns-sp .sns-sp-item {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header.open .sp-nav-privacy-link {
  font-size: var(--fs-sm);
  font-weight: 400;
}

.header.open .sp-nav-privacy-link:hover {
  color: var(--color-white);
  opacity: 0.8;
}

.header.open .sp-nav-bg {
  display: block;
  z-index: 101;
}
