@charset "utf-8";
/* CSS Document */

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
root設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

*:root {
  /*幅1200xの時に1文字10pxとなる値 最小値10px*/
  font-size: 10px;
  /* font-size: 10px; */
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1;
  color: #262626;
  /*自動カーニング*/
  font-feature-settings: "palt";
  /*両端揃え*/
  text-align: justify;
  /* ---------- */
  /* 変数 */

  /* 色 */
  --color-base: #262626;
  --color-green: #2fc07b;
  --color-green-hover: #0aad0a;
  --color-green-other: #6ebd33;
  --color-pagebackground: #f9f8f4;
}

@media screen and (max-width: 768px) {
  /*幅768pxの時に1文字10pxとなる値*/
  *:root {
  }
}

@media screen and (max-width: 480px) {
  /*幅390pxの時に1文字10pxとなる値*/
  *:root {
    font-size: 2.5641vw;
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
スムーズスクロール
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.7rem;
  @media screen and (max-width: 480px) {
    scroll-padding-top: 4.8rem;
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
noscript
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

noscript {
  display: block;
  font-size: var(--fsize_m);
  padding: 1em;
  background-color: #ff0;
  text-align: center;
  line-height: 2;
  position: relative;
  z-index: 10000000;
  width: auto;
  color: #000;
  word-break: keep-all;
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
font設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

.font-en {
  font-family: "Barlow", sans-serif;
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
表示制御
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/*PCで消す*/
.pc_hide {
  display: none !important;

  @media screen and (max-width: 480px) {
    display: block !important;
  }
}

/*SPで消す*/
@media screen and (max-width: 480px) {
  .sp_hide {
    display: none !important;
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
リンク設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/*リンク*/

a {
  text-decoration: none;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--color-base);

  &:visited {
    color: #555;
  }

  &:hover {
    opacity: 0.8;
    color: var(--color-green-hover);
  }

  &:active {
    opacity: 0.5;
  }
}

/*リンクカラー指定*/
a.text_color-base {
  color: var(--color-base);
}

/*PCでリンクを殺す*/
@media screen and (min-width: 481px) {
  a.disabled {
    pointer-events: none;
    color: var(--color-base);
    &:hover,
    &:active,
    &:visited {
      opacity: 1 !important;
    }
  }
}

/*SPでリンクを殺す*/
@media screen and (max-width: 480px) {
  a.sp_disabled {
    pointer-events: none;

    &:hover,
    &:active {
      opacity: 1 !important;
    }
  }
}

/*--------------------*/
/* 矢印 */
.yajirushi {
  position: relative;
  &::after,
  &::before {
    content: "";
    display: block;
    position: absolute;
    box-sizing: border-box;
  }
}
/*--------------------*/
/* 三角 */
.sankaku_wrap {
  .sankaku {
    padding-right: 1.2em;
    position: relative;
    box-sizing: border-box;
    &::after {
      content: "";
      display: block;
      position: absolute;
      box-sizing: border-box;
      width: 0.6em;
      aspect-ratio: 1/1;
      border-right: 2px solid #000;
      border-bottom: 2px solid #000;
      right: 0.2em;
      top: 50%;
      transition: all 0.2s ease-in-out;
    }
  }
  &.bottom {
    .sankaku {
      &::after {
        transform: translate(0, -60%) rotate(45deg);
      }
    }
  }
  /* ホバー */
  &:hover {
    .sankaku {
      &::after {
        transform: translate(0, -30%) rotate(-135deg);
      }
    }
  }
}

/*--------------------*/
/* ボタン */
.button {
  display: block;
  position: relative;
  /* 基本 */
  &.button-base {
    border-radius: 0.3rem;
    background-color: #404040;
    display: block;
    align-items: center;
    color: #fff;
    padding: 2.1rem 4.7rem 2.1rem 2.9rem;
    &.small {
      padding: 1.4rem 4.7rem 1.4rem 2rem;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      width: 1.5rem;
      aspect-ratio: 15/16;
      background-image: url(../img/common/icon-yajirushi-white.svg);
      background-repeat: no-repeat;
      background-size: contain;
      top: 50%;
      right: 1.7rem;
      transform: translateY(-50%);
    }
    &::before {
      content: "";
      display: block;
      position: absolute;
      top: 50%;
      right: 4.7rem;
      width: 1px;
      height: 1.8rem;
      background-color: #adadad;
      transform: translate(50%, -50%);
    }
    .text {
      display: inline-block;
      padding-right: 1em;
      color: #fff;
      font-size: 1.5rem;
      line-height: 1.47;
      position: relative;
    }

    &:hover {
      background-color: var(--color-green-hover);
      opacity: 1;
    }
  }
  /* テキストのみ */
  &.button-text {
    display: inline-block;
    color: var(--color-base);
    font-size: 1.6rem;
    line-height: 1.75;
    padding: 0.375em 2em 0.375em 0.5em;
    border-bottom: 1px solid var(--color-base);
    @media screen and (max-width: 480px) {
      font-size: 1.4rem;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      width: 0.9375em;
      aspect-ratio: 15/16;
      background-image: url(../img/common/icon-yajirushi-base.svg);
      background-repeat: no-repeat;
      background-size: contain;
      top: 50%;
      right: 0.3125em;
      transform: translateY(-50%);
    }
    &.hover-green:hover {
      color: var(--color-green-hover);
      border-color: var(--color-green-hover);
      opacity: 1;
      &::after {
        background-image: url(../img/common/icon-yajirushi-green.svg);
      }
    }
  }
  /* 角丸 */
  &.button-kadomaru {
    border-radius: 999px;
  }
}
a:hover {
  .button-text.hover-green {
    color: var(--color-green-hover);
    border-color: var(--color-green-hover);
    opacity: 1;
    &::after {
      background-image: url(../img/common/icon-yajirushi-green.svg);
    }
  }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ページトップボタン設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

.pagetop_jump {
  position: fixed;
  right: 0.5rem;
  bottom: 0.5rem;
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
  z-index: 100;
  width: 4rem;
  height: 4rem;
  @media (max-width: 480px) {
    bottom: 8rem;
  }
  &.on {
    visibility: visible;
    opacity: 1;
  }

  a {
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    position: relative;
    font-size: 0;

    &::after {
      content: "";
      position: absolute;
      display: block;
      top: 50%;
      left: 50%;
      width: 1rem;
      height: 1rem;
      border: 1px solid #fff;
      border-bottom: none;
      border-left: none;
      transform: translate(-50%, -25%) rotate(-45deg);
    }

    /*PC版のみhoverを付与*/

    @media screen and (min-width: 769px) {
      &:hover {
        opacity: 0.7;
        transition: 0.2s;
      }
    }
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
画像
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

img {
  width: 100%;
  height: auto;

  &.ojf_cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
  }

  &.ojf_contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
  }
}

.ojf_cover_wrap {
  > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
  }
}

.ojf_contain_wrap {
  > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ローディング画面
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
  .loader {
    position: relative;
    width: min(20%, 120px);
    aspect-ratio: 1/1;
    &::before {
      content: "";
      background-image: url(../img/common/logo-meatcrest.webp);
      background-size: contain;
      background-position: center center;
      background-repeat: no-repeat;
      display: block;
      position: absolute;
      top: calc(50% - 4px);
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      aspect-ratio: 1/1;
    }
    div.progress {
      position: absolute;
      bottom: 0;
      height: 4px;
      width: 100%;
      --c: no-repeat linear-gradient(var(--color-green) 0 0);
      background: var(--c), var(--c), #ccc;
      background-size: 60% 100%;
      animation: l16 3s infinite;
    }
  }
}
@keyframes l16 {
  0% {
    background-position:
      -150% 0,
      -150% 0;
  }
  66% {
    background-position:
      250% 0,
      -150% 0;
  }
  100% {
    background-position:
      250% 0,
      250% 0;
  }
}

#loading-screen {
  &.fade-out {
    opacity: 0;
  }
}
#page_wrap {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  &.visible {
    opacity: 1;
  }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ページ設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

#page_wrap {
  /*--------------------*/
  /* ページ全体の幅 */
  min-width: 320px;
  /* header.cssの#headerの高さと連動 */
  padding-top: 15.1rem;
  background-color: var(--color-pagebackground);
  @media screen and (max-width: 480px) {
    /* header.cssの#headerの高さと連動 */
    padding-top: 7.1rem;
  }
}
body.home {
  #page_wrap {
    padding-top: 0;
  }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
404
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/
body.error404 {
  section.pagenotfound {
    h1 {
      font-size: 2.8rem;
      line-height: 2;
      text-align: center;
      margin: 2em 1em;
    }

    p {
      font-size: 1.6rem;
      line-height: 2;
      text-align: center;
      margin: 1em 0;
    }
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
パン屑設定
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/*パン屑*/
.pankuzu_wrap {
  margin: 1.6rem auto 7.2rem;
  max-width: 1344px;
  @media screen and (max-width: 1024px) {
    margin-bottom: 4.8rem;
  }
  .pankuzu {
    font-size: 1.2rem;
    line-height: 1.75;
    letter-spacing: 0.02em;
    a {
      color: #b3c1cf;
      text-decoration: underline;
      &:visited {
        color: #9caab9;
      }
    }
  }
}
