@charset "utf-8";

/* ############################################################################################################################
#    2025 リニューアル
#    v1 Headerファイル
############################################################################################################################ */
/* =======================================
  Header
======================================= */
.header {
  --header-black: #212121;

  --z-index-first: 1001;
  --z-index-second: 1000;
  --z-index-third: 999;
  --z-index-fourth: 998;

  &.media-top {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-index-fourth);
  }
}

.header__main {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px 24px 16px;
  background-blend-mode: multiply;

  .header__logo {
    width: min(74.35897436vw, 290px); // 290 / 390

    > img {
      width: 100%;
    }
  }
}

.header__fixed {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 8px 14px 16px;
  background: rgb(255, 255, 255, .8);
  backdrop-filter: blur(20px);
  transition: translate .3s ease;

  .header__logo {
    width: min(30.76923077vw, 120px); // 120 / 390
  }
}

.media-top .header__fixed {
  translate: 0 -100%;
  position: fixed;
  top: 0;
  z-index: var(--z-index-third);

  .is-scroll-up & {
    translate: 0;
  }
}

.header:not(.media-top) .header__fixed {
  &.clone {
    translate: 0 -100%;
    position: fixed;
    top: 0;
    z-index: var(--z-index-third);
  }

  .is-scroll-up & {
    translate: 0;
  }
}

.header__logo-link--search {
  display: grid;
  place-items: center;
  width: 55px;
  height: 41px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header .header__search-icon {
  width: 31px;
}

/* =======================================
  Menu
======================================= */
.header__menu {
  --header-menu-margin: 16px;

  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-index-second);
  background: rgb(255, 255, 255, .8);
  backdrop-filter: blur(20px);
}

/* Head */
.header__menu-head {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 7px var(--header-menu-margin);
  position: sticky;
  top: 0;
  left: 0;
  z-index: var(--z-index-first);
}

.header__menu-close {
  display: block;
  width: 53px;
  height: 41px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;

  /* ☓アイコン */
  &::before,
  &::after {
    content: "";
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--header-black);
    border-radius: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50%;
  }

  &::before {
    rotate: 30deg;
  }

  &::after {
    rotate: -30deg;
  }
}

/* SNS Area */
.header__sns {
  width: 100%;
  margin-top: 32px;
  padding-inline: var(--header-menu-margin);
  margin-inline: auto;
}

.header__sns-heading {
  margin-bottom: 6px;
  color: var(--header-black);
  font-family: var(--font-josefin-sans);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}

.header__sns-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 8px;
}

.header__sns-item {
  > a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;

    >img {
      width: var(--width);
      height: var(--height);
    }
  }
}

/* Content */
.header__menu-content {
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: var(--z-index-second);
  transition: opacity .2s ease-in-out, visibility .2s ease-in-out;

  /* Open */
  .is-open & {
    opacity: 1;
    visibility: visible;
    right: 0;
  }
}

/* Search */
.header__search {
  margin-top: 20px;
  padding-inline: var(--header-menu-margin);
}

.header__search-form {
  position: relative;
}

.header__search-input {
  width: 100%;
  margin-inline: auto;
  padding: 16px 0;
  font-size: 12px;
  font-size: 1.2rem;
  color: #888;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--header-black);
}

.header__search-submit {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0;
  background: url(/common/crea/images/v1/icon/search_black.png) no-repeat center / 16px 16px;
  border: none;
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
}

/* Nav */
.header__nav {
  display: grid;
  row-gap: 10px;
  margin-top: 30px;
  padding-inline: var(--header-menu-margin);
}

.header__toggle-summary {
  padding-block: 10px;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  position: relative;

  /* 開閉アイコン */
  &::before,
  &::after {
    content: "";
    display: block;
    margin-block: auto;
    background: var(--header-black);
    position: absolute;
    top: 0;
    bottom: 0;
    transition: rotate .3s ease;
  }

  &::before {
    width: 12px;
    height: 1px;
    right: 0;
  }

  &::after {
    width: 1px;
    height: 12px;
    right: 6px;
  }

  details[open] &::after {
    rotate: -90deg;
  }

  /* Safariで表示されるデフォルトの三角形アイコンを消す */
  &::-webkit-details-marker {
    display: none;
  }
}

.header__toggle-content {
  margin-top: 8px;
  overflow: hidden;
  will-change: height;
}

.header__toggle-content--half {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  column-gap: 10px
}

.header__nav-links {
  display: grid;
  row-gap: 12px;

  > li > a {
    color: #888;
    font-size: 12px;
    font-size: 1.2rem;
    font-weight: 500;
  }
}

/* Latest Issue */
.header__latest-issue {
  margin-top: 30px;
}

.header__latest-inner {
  display: grid;
  row-gap: 24px;
  margin-inline: auto;
}

.header__latest-media {
  display: grid;
  grid-template-columns: 45.8974359vw auto;
  column-gap: 24px;
  padding: 16px;
  background: #DDE9EE;
}

.header__latest-link {
  >img {
    width: 100%;
    height: auto;
  }
}

.header__latest-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 16px;

  p {
    font-weight: 500;

    > span {
      display: block;
    }
  }
}

.header__latest-text--sub {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  column-gap: 8px;
  font-size: 12px;
  font-size: 1.2rem;

  /* 記号 */
  &::before,
  &::after {
    content: "";
    display: block;
    width: 14px;
    height: 1px;
    background: var(--header-black);
  }

  &::before {
    rotate: 60deg;
  }

  &::after {
    rotate: -60deg;
  }
}

.header__latest-text--main {
  font-size: 14px;
  font-size: 1.4rem;
  text-align: center;
}

.header__latest-sub-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  margin-inline: auto;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;

  /* 記号 */
  &::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--header-black);
    border-right: 1px solid var(--header-black);
    rotate: 45deg;
  }
}

/* Spacial Link */
.header__spacial-link {
  width: calc(100% + var(--header-menu-margin));
  margin-top: 32px;
  margin-left: calc(var(--header-menu-margin) * -1);
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.header__spacial-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  > li {
    display: grid;
    place-items: center;
    width: 50%;
    height: 84px;
  }

  > li:nth-of-type(even) {
    border-left: 1px solid #e7e7e7;
  }

  > .header__spacial-list--full {
    width: 100%;
    height: 76px;
    border-top: 1px solid #e7e7e7;
    border-left: none;
  }
}

/* Mailmag */
.header__mailmag {
  width: calc(100% + var(--header-menu-margin));
  margin-top: 22px;
  margin-left: calc(var(--header-menu-margin) * -1);
  padding: 32px var(--header-menu-margin);
  background: #efe7e4;
  text-align: center;
}

.header__mailmag-title {
  font-size: 22px;
  font-size: 2.2rem;
  font-family: var(--font-figtree);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}

.header__mailmag-special-link {
  margin-top: 20px;
}

.header__mailmag-special-link > p {
  width: fit-content;
  margin-inline: auto;
  padding: 4px 12px;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;

  /* 吹き出しアイコン */
  &::after {
    content: "";
    display: block;
    width: 10px;
    height: calc(tan(60deg) * 10px / 2);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: #fff;
    position: absolute;
    right: 42px;
    bottom: -4px;
    rotate: 225deg;
  }
}

.header__mailmag-special-link > a {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-size: 1.4rem;

  /* 矢印 */
  &::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--header-black);
    border-right: 1px solid var(--header-black);
    rotate: 45deg;
  }
}

.header__mailmag-link {
  margin-top: 20px;
}

.header__mailmag-link > p {
  font-size: 12px;
  font-size: 1.2rem;
}

.header__mailmag-link > a {
  display: block;
  width: fit-content;
  margin-inline: auto;
  margin-top: 12px;
  padding: 10px 17px;
  border: 1px solid var(--header-black);
  border-radius: 50vh;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
}
