/* =========================================================
   HQ Background: Layout
   key: header-thick
   name: ヘッダー｜少し厚めの縦幅
   group: set
   type: layout
   layer: header
   value:
   selector:
   ========================================================= */

/* =========================================================
   Header Layout
   ========================================================= */

#fixed_header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  width: 100%;

  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(20, 24, 28, .08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .04);

  backdrop-filter: blur(10px);
}

.l-header__inner {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.l-header__logo {
  flex: 0 0 auto;
  margin: 0;
}

.l-header__logoLink {
  display: block;
  text-decoration: none;
}

.l-header__logoImage {
  display: block;
  width: auto;
  height: 56px;
}

.l-header__nav {
  flex: 1 1 auto;
}

.l-header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.l-header__menu > li > a {
  position: relative;

  min-height: 80px;
  padding: 0 16px;

  display: flex;
  align-items: center;

  color: var(--ciel-ink, #1d252c);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;

  transition:
    color .2s ease,
    background-color .2s ease;
}

.l-header__menu > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;

  height: 2px;

  background: currentColor;
  opacity: .65;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform .2s ease;
}

.l-header__menu > li > a:hover {
  color: var(--ciel-gold, #8a6338);
  background: rgba(120, 86, 48, .06);
}

.l-header__menu > li > a:hover::after {
  transform: scaleX(1);
}

.l-header__spToggle {
  display: none;
}

.l-header__spNav {
  display: none;
}

.l-header__spMenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__actions {
  display: none;
}

.l-header__toggle,
.l-header__phone {
  appearance: none;
  border: 0;
  background: none;

  width: 60px;
  height: 70px;
  padding: 0;

  color: var(--ciel-ink, #1d252c);
  text-decoration: none;

  cursor: pointer;
}

.l-header__toggleIcon {
  display: block;
}

.l-header__toggleIcon--close {
  display: none;
}

/* =========================================================
   SP Layout
   ========================================================= */

@media (max-width: 767px) {

  :root {
    --header-sp-height: 70px;
    --header-sp-side: 76px;
    --header-sp-blue: #211a83;
    --header-sp-red: #ed0012;
  }

  #fixed_header {
    background: #ffffff;
  }

  .l-header__inner {
    position: relative;

    width: 100%;
    min-height: var(--header-sp-height);
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0;
  }

  .l-header__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    margin: 0;

    transform: translate(-50%, -50%);
  }

  .l-header__logoImage {
    display: block;
    width: auto;
    height: 42px;
    max-width: calc(100vw - (var(--header-sp-side) * 2) - 24px);
  }

  .l-header__nav {
    display: none;
  }

  .l-header__actions {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: block;

    width: 100%;
    height: var(--header-sp-height);

    pointer-events: none;
  }

  .l-header__toggle,
  .l-header__phone {
    position: absolute;
    top: 0;

    width: var(--header-sp-side);
    height: var(--header-sp-height);
    padding: 0;
    border: 0;

    color: #ffffff;
    text-decoration: none;

    pointer-events: auto;
  }

  .l-header__toggle {
    left: 0;
    background: var(--header-sp-blue);
  }

  .l-header__toggle::after {
    content: "Menu";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;

    display: block;

    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .03em;
    text-align: center;
  }

  .l-header__phone {
    right: 0;

    display: grid;
    place-items: center;

    background: var(--header-sp-red);
    font-size: 30px;
  }

  .l-header__phone .c-icon,
  .l-header__phone svg,
  .l-header__phone img {
    display: block;
    width: 30px;
    height: 30px;
  }

  .l-header__toggleIcon {
    position: absolute;
    left: 50%;
    top: 22px;

    display: block;

    transform: translate(-50%, -50%);
  }

  .l-header__toggleIcon--open {
    width: 30px;
    height: 3px;

    background: #ffffff;
    border-radius: 999px;

    box-shadow:
      0 -9px 0 #ffffff,
      0  9px 0 #ffffff;
  }

  .l-header__toggleIcon--close {
    display: none;

    width: 32px;
    height: 32px;

    background: transparent;
    box-shadow: none;
  }

  .l-header__toggleIcon--close::before,
  .l-header__toggleIcon--close::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 32px;
    height: 3px;

    background: #ffffff;
    border-radius: 999px;
  }

  .l-header__toggleIcon--close::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .l-header__toggleIcon--close::after {
    transform: translateY(-50%) rotate(-45deg);
  }

  .l-header__spToggle:checked ~ .l-header__actions .l-header__toggleIcon--open {
    display: none;
  }

  .l-header__spToggle:checked ~ .l-header__actions .l-header__toggleIcon--close {
    display: block;
  }

  .l-header__spNav {
    position: fixed;
    top: var(--header-sp-height);
    left: 0;
    right: 0;
    z-index: 9998;

    display: none;

    background: rgba(255, 255, 255, .98);
    border-top: 1px solid rgba(20, 24, 28, .08);
    border-bottom: 1px solid rgba(20, 24, 28, .08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  }

  .l-header__spToggle:checked ~ .l-header__spNav {
    display: block;
  }

  .l-header__spMenu {
    display: block;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .l-header__spMenu > li {
    border-bottom: 1px solid rgba(20, 24, 28, .08);
  }

  .l-header__spMenu > li:last-child {
    border-bottom: 0;
  }

  .l-header__spMenu > li > a {
    display: block;
    padding: 18px 24px;

    color: var(--ciel-ink, #1d252c);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .08em;
    text-decoration: none;

    background: #ffffff;

    transition:
      color .2s ease,
      background-color .2s ease;
  }

  .l-header__spMenu > li > a:hover {
    color: var(--ciel-gold, #8a6338);
    background-color: rgba(120, 86, 48, .06);
  }
}
