@charset "utf-8";
/* ############################################################################################################################
#    2025 リニューアル
#    v1 Headerファイル
############################################################################################################################ */
/* =======================================
  Header
======================================= */
.header {
  --header-width: 1254px;
  --header-black: #212121;

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

  width: 100%;
  // background: #fff;
}

.header__main {
  margin-bottom: -18px;
  padding: 20px 56px 0;
  position: relative;
  z-index: var(--z-index-fourth);

  .header__logo {
    width: 384px;
    height: 89px;
  }
}

.header__main-inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  width: var(--header-width);
  margin-inline: auto;
}

.header__fixed {
  width: 100%;
  padding: 12px 56px 12px;
  background: rgb(255, 255, 255, .8);
  backdrop-filter: blur(20px);
  transition: translate .3s ease;

  .header__logo {
    width: 140px;
    height: 32px;
  }
}

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

  .is-passed & {
    translate: 0;
  }
}

/* トップページ以外の body でヘッダーメニューが開いているとき */
body:not(#temp-01-top):has(.header__menu.is-open) {
  padding-top: 65px; /* ヘッダーの高さ */
}

.header:not(.media-top) {
  background: rgb(255, 255, 255, .8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  left: 0;
  z-index: var(--z-index-third);

  .header__menu {
    height: 100vh;
  }

  &:has(.header__menu.is-open) {
    position: fixed;
    backdrop-filter: none;
  }

  .header__fixed {
    background-color: transparent;
    backdrop-filter: none;
  }
}

.header__fixed-inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  width: var(--header-width);
  margin-inline: auto;
}

/* =======================================
  Nav
======================================= */
.header__nav {
  display: flex;
  align-items: flex-start;
}

.header__nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: flex-end;

  > li > a {
    font-size: 14px;
    font-size: 1.4rem;
  }
}

.header__nav-special-links {
  display: flex;
  column-gap: 24px;
  align-items: center;
  margin-top: 5px;
  margin-left: 32px;
}

.header__nav-search {
  width: 77px;
  height: 41px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header__main {
  .header__nav-links {
    width: 350px;
  }

  .header__nav-search {
    margin-top: -5px;
    margin-left: 8px;
  }
}

.header__fixed {
  .header__nav {
    align-items: center;
  }

  .header__nav-search {
    margin-left: 16px;
  }
}

.header__menu-icon {
  pointer-events: none;
}


/* =======================================
  Humberger Menu
======================================= */
.header__menu {
  --header-menu-margin: 56px;
  --header-menu-content-width: calc(var(--header-width) + var(--header-menu-margin));

  display: none;
  width: 100vw;
  height: 100%;
  background: rgb(255, 255, 255, .8);
  backdrop-filter: blur(40px);
  overflow-y: auto;
  /*overflow-x: hidden;*/
  position: fixed;
  z-index: var(--z-index-second);
  left: 0;
  top: 0;
}

/* Content */
.header__menu-content {
  opacity: 0;
  visibility: hidden;
  translate: 100% 0;
  transition: opacity .2s ease-in-out, visibility .2s ease-in-out;

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

.header__menu-content-inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  grid-template-areas: 
    "head head"
    "nav side"
  ;
  width: var(--header-menu-content-width);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--header-menu-margin);
  position: relative;
  z-index: 2;
}

/* Head */
.header__menu-head {
  grid-area: head;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: var(--z-index-first);
}

.header__menu-close {
  display: block;
  width: 33px;
  height: 20px;
  margin-bottom: 30px;
  margin-inline: auto 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;

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

  &::before {
    rotate: 30deg;
  }

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

/* Nav */
.header__menu-navs {
  grid-area: nav;
  margin-top: 56px;
  padding-bottom: 32px;
}

.header__menu-nav {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  grid-template-rows: repeat(2, auto);
  gap: 48px;
  grid-template-areas:
    "article series features side-nav"
    "talk comic fortune .";
}

.header__menu-nav-item {
  height: fit-content;

  /* 記事 */
  &:nth-of-type(1) {
    grid-area: article;
  }

  /* 連載 */
  &:nth-of-type(2) {
    grid-area: series;
  }

  /* 特集 */
  &:nth-of-type(3) {
    grid-area: features;
  }

  /* トーク&セッション */
  &:nth-of-type(4) {
    grid-area: talk;
  }

  /* コミック&エッセイルーム */
  &:nth-of-type(5) {
    grid-area: comic;
  }

  /* 占い */
  &:nth-of-type(6) {
    grid-area: fortune;
  }
}

.header__menu-nav-side {
  display: flex;
  flex-direction: column;
  gap: 48px;
  grid-area: side-nav;
}

.header__menu-nav-heading {
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--header-black);
}

.header__menu-nav-links {
  display: grid;
  row-gap: 12px;
  margin-top: 24px;
}

.header__menu-nav-links > li > a {
  display: block;
  width: fit-content;
  color: #6d6d6d;
  font-size: 12px;
  font-size: 1.2rem;
}

.header__menu-nav-links--other {
  margin-top: 32px;
}

/* Side */
.header__menu-side {
  grid-area: side;
  width: 400px;
  margin-top: 56px;
  margin-inline: 86px calc(var(--header-menu-margin) * -1);
  padding-bottom: 32px;
}

/* Search form */
.header__menu-form {
  width: 320px;
  margin-inline: auto;
  position: relative;
}

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

.header__menu-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%;
}

/* Latest Issue */
.header__menu-latest-issue {
  margin-top: 48px;
}

.header__menu-latest-media {
  display: grid;
  grid-template-rows: repeat(3, auto);
  row-gap: 16px;
  padding: 40px;
  background: #DDE9EE;
}

.header__menu-latest-heading {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  margin-inline: auto;
  font-size: 12px;
  font-size: 1.2rem;
  font-weight: 500;

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

  &::before {
    rotate: 60deg;
  }

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

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

.header__menu-latest-text {
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;

  > span {
    display: block;
  }
}

.header__menu-latest-sub-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  margin-top: 24px; 
  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;
  }
}

/* Special Link */
.header__menu-spacial-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;

  > li + li {
    margin-top: 32px;
  }

  >li:last-of-type {
    margin-top: 16px;
  }
}

/* SNS */
.header__menu-sns {
  width: 330px;
  margin-top: 40px;
  margin-inline: auto;
}

.header__menu-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__menu-sns-list {
  display: flex;
  column-gap: 8px;
}

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

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

/* Mailmag */
.header__menu-mailmag {
  // grid-column: 1 / 3;
  // grid-row: 3 / 4;
  min-width: var(--content-width);
  padding-block: 40px;
  background: #efe7e4;
}

.header__menu-mailmag-inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  grid-template-areas: 
    "mailmag-title mailmag-link"
    "mailmag-text mailmag-special-link"
  ;
  width: var(--header-menu-content-width);
  margin-inline: auto;
  padding-inline: var(--header-menu-margin);
}

.header__menu-mailmag-title {
  grid-area: mailmag-title;
  font-size: 24px;
  font-size: 2.4rem;
  font-family: var(--font-figtree);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}

.header__menu-mailmag-text {
  grid-area: mailmag-text;
  margin-top: 10px;
  font-size: 14px;
  font-size: 1.4rem;
}

.header__menu-mailmag-link {
  grid-area: mailmag-link;
  display: block;
  width: fit-content;
  min-width: 228px;
  margin-inline: auto;
  padding: 10px 17px;
  border: 1px solid var(--header-black);
  border-radius: 50vh;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

.header__menu-mailmag-special-link {
  grid-area: mailmag-special-link;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  margin-top: 24px;
  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;
  }
}
