@charset "UTF-8";

/* HEADER */

#header {
  position: relative;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease;
}

#header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header a {
  color: #fff;
  font-family: noto-sans-extracondensed, sans-serif;
  font-weight: 400;
  font-style: normal;
}

header a:hover {
  opacity: 0.8;
}

.header__logo {
  margin: auto;
}

.header__logo img {
  object-fit: contain;
}

.header__outer {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: #1A2B4F;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  width: 1080px;
  max-width: 90%;
  height: 100%;
  margin: 0 auto;
}

.header__menu {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.header__menu li {
  flex-basis: 130px;
  line-height: .8rem;
  white-space: nowrap;
}

.header__menu a {
  font-size: 1rem;
  font-weight: 600;
  display: block;
  padding: 16px 16px 10px;
}

.header__menu a::after {
  content: "";
  display: block;
  position: relative;
  top: 8px;
  width: 0%;
  height: 1px;
  background: #F0ECBA;
  transition: .3s;
}

.header__menu a:hover::after {
  width: 100%;
}

.header__menu a:hover {
  color: #F0ECBA;
}

.header__menu span {
  font-size: .6rem;
  font-weight: 400;
}

.header__menu span::before {
  content: "\A";
  white-space: pre-wrap;
}

.header__menu.cat span::after {
  content: "\A";
  white-space: pre-wrap;
}

.header__menu.cat span {
  position: relative;
  top: -10px;
  letter-spacing: 1px;
}

.header__outer.cat {
  width: 100%;
  height: 48px;
  background: #1A2B4F;
}

.header__menu.cat {
  justify-content: flex-start;
  align-items: flex-end;
}

.header__menu.cat a {
  padding: 0 16px;
  height: 48px;
  font-size: 12px;
}

.header__menu.cat a span {
  position: relative;
  top: -4px;
  line-height: 1px;
  font-weight: 600;
}

header .cat .active {
  background: #F0ECBA;
  color: #1A2B4F;
}

header .icon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 80px;
  color: #fff;
}

.search-icon span {
  cursor: pointer;
  transition: .3s;
  margin-right: 16px;
}

.search-icon span:hover {
  opacity: 0.8;
}

/* モーダル全体のスタイル */
.search-modal {
  display: none;
  /* 初期は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2222;
}

/* モーダルのコンテンツ部分 */
.search-modal-content {
  max-width: 100%;
  width: 100%;
}

.search-modal-close {
  position: absolute;
  top: 30%;
  left: 50%;
  translate: -50% 0;
  font-size: 40px;
  cursor: pointer;
  color: #fff;
}

.searchform {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 640px;
  max-width: 80%;
}

.searchform div {
  display: flex;
  justify-content: space-around;
}

.search-modal input[type=submit] {
  margin-left: 8px;
  background-color: #1A2B4F;
  border: 1px solid #ccc;
  color: #fff;
  width: 20%;
  height: 40px;
  line-height: 40px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.search-modal input[type=submit]:hover {
  background: none;
  cursor: pointer;
}

.search-modal input[type=text] {
  padding: 8px 16px;
  border: 1px solid #ccc;
  width: 80%;
  height: 40px;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 768px) {
  .header__menu.pc {
    display: none;
  }

  .header__outer {
    height: 64px;
  }

  .header__inner {
    position: relative;
  }

  .header__logo {
    position: absolute;
    top: 54%;
    left: 50%;
    translate: -50% -50%;
    z-index: 6;
  }

  header .icon {
    position: absolute;
    top: 24px;
    right: 0;
    z-index: 6;
  }

  .cat .header__inner {
    max-width: 100%;
  }

  .header__outer.cat {
    height: 40px;
  }

  .header__menu.cat a {
    height: 40px;
    line-height: 10px;
    font-size: 0.6rem;
  }

  .header__menu.cat a span {
    font-size: 0.4rem;

  }

  .menu {
    position: absolute;
    top: 24px;
    left: 0;
    width: 28px;
    height: 11px;
    z-index: 10;
  }

  .menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    z-index: 10;
  }

  .menu span:nth-of-type(1) {
    top: 0px;
  }

  .menu span:nth-of-type(2) {
    bottom: 0px;
  }

  .menu.active span:nth-of-type(1) {
    top: 5px;
    left: -1px;
    width: 30px;
    rotate: 45deg;
  }

  .menu.active span:nth-of-type(2) {
    top: 5px;
    left: -1px;
    width: 30px;
    rotate: -45deg;
  }

  #nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5;
    width: 100%;
    height: 100vh;
    opacity: 0;
    background-color: #1A2B4F;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
  }

  #nav.active {
    right: 0;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  #nav ul {
    position: relative;
    top: 80px;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    letter-spacing: 1px;
  }

  #nav ul li {
    position: relative;
    transition: all 0.2s ease-in-out;
    line-height: 360%;
  }

  #nav ul li a {
    position: relative;
    display: block;
    padding: 0 24px;
    color: #fff;
    font-weight: 600;
  }

  #nav ul li a span {
    font-size: 0.64rem;
    margin-left: 8px;
  }

  #nav ul li a i {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    right: 24px;
    font-size: 11px;
  }
}

@media screen and (min-width: 768px) {
  .menu {
    display: none;
  }
}





/* 読み込み直後 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #efefef;
  z-index: 3333;
}

.loading_wrap {
  display: block;
  position: fixed;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  width: 240px;
  height: 5px;
  z-index: 999;
}

.spinner {
  margin: auto;
  width: 32px;
  height: 32px;
  animation: sp-anime 1.0s infinite linear;
}

@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}

.prog-bar {
  width: 100%;
  height: 6px;
  background: #F0ECBA;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.prog-bar .bar {
  height: 100%;
  height: 6px;
  background: #1A2B4F;
  border-radius: 50px;
  position: absolute;
  animation: progress 1s normal;
  animation-fill-mode: forwards;
}

@keyframes progress {
  0% {
    width: 0
  }

  100% {
    width: 100%
  }
}


.logo_fadein {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #1A2B4F;
  z-index: 1001;
}

.logo_fadein img {
  position: fixed;
  width: 200px;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  display: none;
}