@charset "utf-8";

:root {
  --rem: 1rem / 16;
  --black: #000;
  --white: #fff;
  --main: #00a84d;
  --sub: #e1efe8;
  --sub1: #c4a24e;
  --sub2: #e08884;
  --sub3: #71adc3;
  --sub4: #18b2a7;
  --text: #333;
}

/* *************************************
header
************************************* */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  background-color: var(--white);
  width: 100%;
  height: calc(140 * var(--rem));
  transition: height 0.3s ease-out;
  @media (width < 768px) {
    height: calc(60 * var(--rem));
  }
}

.header.is-active {
  filter: drop-shadow(0px 5px 10px rgb(0 0 0 / 0.2));
}

.header__inner {
  padding-inline-start: calc(10 * var(--rem));
}

.header__top {
  display: flex;
  gap: calc(16 * var(--rem));
  padding-inline-start: calc(10 * var(--rem));
  height: calc(90 * var(--rem));
  transition: height 0.3s ease-out;
  @media (width < 768px) {
    height: calc(60 * var(--rem));
    gap: calc(5 * var(--rem));
    padding-inline: calc(10 * var(--rem));
  }
}

.header__logo {
  display: grid;
  place-content: center;
  padding-block: calc(8 * var(--rem));
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--rem));
}

.header__logo-icon {
  width: calc(75 * var(--rem));
  transition: width 0.3s ease-out;
  @media (width < 768px) {
    width: calc(46 * var(--rem));
  }
}

.header__logo-icon img {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__logo-text {
  font-size: calc(30 * var(--rem));
  font-weight: 500;
  font-family: 'Zen Maru Gothic', sans-serif;
  transition: font-size 0.3s ease-out;
  letter-spacing: 0.15em;
  @media (width < 768px) {
    font-size: calc(22 * var(--rem));
  }
}

.header__logo-text span {
  /* color: var(--main); */
}

.header__logo-sub {
  font-size: calc(20 * var(--rem));
  font-weight: 500;
  font-family: 'Zen Maru Gothic', sans-serif;
  transition: font-size 0.3s ease-out;
  letter-spacing: -0.05em;
  @media (width < 768px) {
    font-size: calc(14 * var(--rem));
    letter-spacing: 0.0em;
  }
}

.header__top-wrap {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: calc(40 * var(--rem));
  height: inherit;
  @media (width < 768px) {
    gap: 0;
  }
}

.header__top-nav {
  height: inherit;
}

.header__top-list {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  height: inherit;
  @media(max-width: 767px) {
    display: none;
  }
}

.header__top-item {
  height: inherit;
}

.header__top-btn {
  display: grid;
  place-content: center;
  padding-inline: calc(24 * var(--rem));
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  height: inherit;
  background-color: #2c3e50;
  @media (width < 768px) {
    padding-inline: calc(10 * var(--rem));
  }
}

.header__top-btn span {
  @media (width < 768px) {
    display: none;
  }
}

.header__top-btn::before {
  content: '';
  display: inline-block;
  width: 1.4lh;
  aspect-ratio: 1;
  background: url(../images/common/icon_memo.svg) no-repeat center / contain;
  margin-inline: auto;

  @media (width < 768px) {
    width: 0.8lh;
  }
}
.header__top-item:nth-child(2) .header__top-btn {
  background-color: var(--main);
}
.header__top-item:nth-child(3) .header__top-btn {
  background-color: var(--sub4);
}
.header__top-item:nth-child(2) .header__top-btn::before {
  background: url(../images/common/icon_mail.svg) no-repeat center / contain;
}
.header__top-item:nth-child(3) .header__top-btn::before {
  background: url(../images/common/icon_member.svg) no-repeat center / contain;
}

.header__hamburger {
  display: none;
  @media (width < 768px) {
    display: block;
  }
}

.header__modal {
  display: contents;
  @media (width < 768px) {
    display: block;
    position: fixed;
    top: calc(60 * var(--rem));
    left: 0;
    right: 0;
    height: 100svh;
    visibility: hidden;
    opacity: 0;
    transition:
      visibility 0.3s ease-out,
      opacity 0.3s ease-out;
  }
}

.header__modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* 下段 */
.header__bottom {
  background-color: var(--sub);
  @media (width < 768px) {
    height: inherit;
    padding: calc(40 * var(--rem)) calc(20 * var(--rem)) calc(80 * var(--rem));
    overflow: auto;
  }
}

.header__bottom-list {
  padding-inline: calc(16 * var(--rem));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-block: calc(10 * var(--rem));
  @media (width < 768px) {
    grid-template-columns: 1fr;
  }
}

.header__bottom-item {
  position: relative;
  @media (width < 768px) {
    position: static;
  }
}

.header__bottom-item > a {
  display: grid;
  place-content: center;
  height: calc(30 * var(--rem));
  border-left: 1px solid var(--main);
  letter-spacing: 0.05em;
  font-weight: 500;
  @media (width < 768px) {
    border-left: none;
    border-bottom: 1px solid var(--main);
    padding-block: calc(24 * var(--rem)) calc(4 * var(--rem));
    padding-inline: calc(16 * var(--rem));
    display: block;
    height: auto;
  }
}

.header__bottom-item:first-child > a {
  color: var(--main);
  text-transform: uppercase;
}

.header__bottom-item:last-child > a {
  border-right: 1px solid var(--main);
  @media (width < 768px) {
    border-right: none;
  }
}

.header__bottom-child-list {
  position: absolute;
  top: calc(100% + calc(10 * var(--rem)));
  left: 0;
  right: 0;
  background-color: var(--white);
  clip-path: inset(0% 0% 100% 0%);
  transition: clip-path 0.3s ease-out;
  @media (width < 768px) {
    position: static;
    clip-path: inset(0% 0% 0% 0%);
    margin-block-start: calc(8 * var(--rem));
  }
}

.header__bottom-item:hover .header__bottom-child-list {
  clip-path: inset(0% 0% 0% 0%);
}

.header__bottom-child-item {
}

.header__bottom-child-item > a {
  display: block;
  padding-block: calc(10 * var(--rem));
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  transition:
    color 0.3s ease-out,
    background-color 0.3s ease-out;
  @media (width < 768px) {
    background-color: var(--sub);
  }

  @media (width < 768px) {
    text-align: left;
    padding-inline: calc(32 * var(--rem));
  }
}

.header__bottom-child-item:last-child > a {
  border-bottom: none;
}

@media (any-hover: hover) {
  .header__bottom-child-item > a:hover {
    background-color: var(--main);
    color: var(--white);
    opacity: 1;
  }
}
@media(min-width:768px) {
  .header__bottom-item:nth-child(7) ,.header__bottom-item:nth-child(8),.header__bottom-item:nth-child(9){
    display: none;
  }
}

/* is-small */
.header.is-small {
  height: calc(110 * var(--rem));
}

.header.is-small .header__top {
  height: calc(60 * var(--rem));
}

.header.is-small .header__logo-icon {
  width: calc(50 * var(--rem));
}

.header.is-small .header__logo-text {
  font-size: calc(20 * var(--rem));
  letter-spacing: 0.2em;
}

.header.is-small .header__logo-sub {
  font-size: calc(14 * var(--rem));
  letter-spacing: -0.05em;
}

/* *************************************
search-form
************************************* */
.search-form {
  position: relative;
  @media (width < 768px) {
    display: none;
  }
}

.search-form::before {
  content: '';
  display: inline-block;
  width: 1lh;
  aspect-ratio: 1;
  background: url(../../library/images/common/icon_search.svg) no-repeat center / contain;
  position: absolute;
  top: 50%;
  left: 7%;
  transform: translate(0, -50%);
}

.search-form input {
  min-width: calc(200 * var(--rem));
  border: 2px solid var(--main);
  border-radius: 100vmax;
  line-height: 1;
  text-align: center;
  line-height: normal;
  padding-block-start: calc(15 * var(--rem));
  background-color: var(--white);
}

.search-form input::placeholder {
  color: var(--main);
  line-height: 1;
  letter-spacing: 0.05em;
}
