

/* =========================================================
   Header
========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  background-color: rgba(255, 255, 255, 0.96);
  color: #675748;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

.header,
.header * {
  box-sizing: border-box;
}


/* =========================================================
   Inner
========================================================= */

.header__inner {
  position: relative;
  width: 100%;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.2vw, 34px);

  display: flex;
  align-items: center;

  gap: clamp(16px, 2vw, 36px);
}


/* =========================================================
   Brand
========================================================= */

.header__brand {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  min-width: 0;

  color: inherit;
  text-decoration: none;
}

.header__logo-wrap {
  flex: 0 0 auto;
  display: block;
}

.header__logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.header__site-name {
  display: flex;
  flex-direction: column;

  min-width: 0;

  line-height: 1.1;
}

.header__site-name-jp,
.header__site-name-en {
  display: block;
  white-space: nowrap;
}

.header__site-name-jp {
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 400;
}

.header__site-name-en {
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 400;
}


/* =========================================================
   PC Navigation
========================================================= */

.header__navigation {
  flex: 1 1 auto;

  min-width: 0;
  margin-left: auto;
}

.header__navigation-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  min-width: 0;
  margin: 0;
  padding: 0;

  list-style: none;

  gap: clamp(14px, 2.2vw, 42px);
}

.header__navigation-item {
  flex: 0 1 auto;
  min-width: 0;
}

.header__navigation-link {
  display: block;

  color: #675748;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.2s ease;
}

a.header__navigation-link:hover {
  opacity: 0.65;
}


/* =========================================================
   CTA
========================================================= */

.header__cta {
  flex: 0 0 auto;

  min-width: 0;

  padding:
    clamp(9px, 0.8vw, 13px)
    clamp(15px, 1.6vw, 28px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border-radius: 999px;

  background-color: #d98686;
  color: #fff;

  font-size: clamp(12px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.3;

  text-decoration: none;
  white-space: nowrap;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.header__cta:hover {
  opacity: 0.85;
}

.header__cta-label {
  min-width: 0;
}

.header__cta-icon {
  flex: 0 0 auto;

  display: block;

  width: 16px;
  height: 16px;

  object-fit: contain;
}


/* =========================================================
   SP menu
========================================================= */

.header__menu-checkbox,
.header__menu-button,
.header__sp-navigation {
  display: none;
}


/* =========================================================
   PC narrow adjustment
   768px以上でも横幅によって崩れないよう縮小
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

  .header__inner {
    gap: clamp(8px, 1.2vw, 16px);
    padding-right: 14px;
    padding-left: 14px;
  }

  .header__navigation-list {
    gap: clamp(8px, 1.5vw, 18px);
  }

  .header__navigation-link {
    font-size: clamp(14px, 1.25vw, 14px);
  }

  .header__cta {
    padding:
      9px
      clamp(10px, 1.5vw, 18px);

    font-size: clamp(11px, 1.25vw, 14px);
  }

  .header__site-name-jp {
    font-size: clamp(17px, 2vw, 22px);
  }

  .header__site-name-en {
    font-size: clamp(12px, 1.5vw, 16px);
  }
}


/* =========================================================
   SP
========================================================= */

@media (max-width: 767px) {

  .header {
    min-width: 0;
  }

  .header__inner {
    min-height: 64px;
    padding: 0 12px;

    gap: 8px;
  }


  /* -------------------------
     Brand
  ------------------------- */

  .header__brand {
    flex: 0 1 auto;
    max-width: clamp(52px, 18vw, 82px);
    margin-right: auto;
  }

  .header__logo {
    width: auto;
    max-width: 100%;
    max-height: 56px;
  }

  /*
   * 添付SPデザインでは
   * 左側はロゴ主体のためサイト名を非表示。
   */
  .header__site-name {
    display: none;
  }


  /* -------------------------
     PC navigation
  ------------------------- */

  .header__navigation {
    display: none;
  }


  /* -------------------------
     CTA
  ------------------------- */

  .header__cta {
    flex: 0 1 auto;

    max-width: calc(100% - 110px);

    padding: 8px clamp(10px, 3.5vw, 18px);

    font-size: clamp(11px, 3.15vw, 14px);

    overflow: hidden;
  }

  .header__cta-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__cta-icon {
    width: 14px;
    height: 14px;
  }


  /* -------------------------
     Checkbox
  ------------------------- */

  .header__menu-checkbox {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
  }


  /* -------------------------
     Hamburger
  ------------------------- */

  .header__menu-button {
    position: relative;

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-left: 2px;

    cursor: pointer;
  }

  .header__menu-line {
    display: block;

    width: 22px;
    height: 1px;

    background-color: #675748;

    transform-origin: center;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }


  /* -------------------------
     Hamburger animation
  ------------------------- */

  .header__menu-checkbox:checked
  + .header__menu-button
  .header__menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header__menu-checkbox:checked
  + .header__menu-button
  .header__menu-line:nth-child(2) {
    opacity: 0;
  }

  .header__menu-checkbox:checked
  + .header__menu-button
  .header__menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }


  /* -------------------------
     SP navigation
  ------------------------- */

  .header__sp-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    z-index: 999;

    display: block;

    max-height: 0;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    background-color: rgba(255, 255, 255, 0.98);

    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .header__menu-checkbox:checked
  ~ .header__sp-navigation {
    max-height: 600px;

    visibility: visible;
    opacity: 1;
  }

  .header__sp-navigation-list {
    margin: 0;
    padding: 12px 20px 20px;

    list-style: none;
  }

  .header__sp-navigation-item {
    margin: 0;

    border-bottom: 1px solid rgba(103, 87, 72, 0.15);
  }

  .header__sp-navigation-link {
    display: block;

    width: 100%;
    padding: 14px 4px;

    color: #675748;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    text-decoration: none;
  }
}


/* =========================================================
   Very small SP
========================================================= */

@media (max-width: 374px) {

  .header__inner {
    padding-right: 8px;
    padding-left: 8px;

    gap: 5px;
  }

  .header__brand {
    max-width: 50px;
  }

  .header__cta {
    max-width: calc(100% - 96px);

    padding-right: 9px;
    padding-left: 9px;

    font-size: 11px;
  }

  .header__menu-button {
    flex-basis: 32px;

    width: 32px;
    height: 36px;
  }

  .header__menu-line {
    width: 20px;
  }
}