@import url("_reset.css");
@import url("_vars.css");

html {
  width: 100%;
  font-size: 13px;
  scroll-behavior: smooth;
  background-color: #c2ec8b;
}


body {
  font-family: var(--base-font);
  line-height: 1.5;
  color: #231815;
  width: 100%;
  font-feature-settings: "palt";
  word-wrap: break-word;
}

a {
  text-decoration: underline;
  outline: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

p:not(:last-child) {
  margin-bottom: 0.6em;
}



main {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding-bottom: 50px;
  overflow: clip;
}
/* セクションフェードイン */
.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

/* オンラインショップ */

.lineup {
  margin-top: 15%;
  padding: 0 5%;
  position: relative;
  .logo {
    width: 55%;
    margin: 0 auto;

    .title02 {
      display: block;
      width: 40%;
      margin: 0 auto;
    }
  }

  .headline {
    font-family: var(--serif-font);
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    position: relative;

    /* margin-bottom: 20px; */
    @media (min-width: 481px) {
      font-size: 24px;
    }

    &::before,
    &::after {
      content: '';
      position: absolute;
      width: 25%;
      top: 50%;
      border-top: 2px dotted #fff;
    }

    &::before {
      left: 0;
    }

    &::after {
      right: 0;
    }
  }

  .headline.online {
    margin-top: 20px;
    &::before,
    &::after {
      content: '';
      position: absolute;
      width: 15%;
      top: 50%;
      border-top: 2px dotted #fff;
    }
  }

  .item {
    border: 3px solid #fff;
    padding: 0 15px 15px;
    position: relative;
    margin-top: 70px;
    &.animation {
      .illust {
        img {
          opacity: 0;
          scale: .7;
        }
      }

 
    }

    .title {
      height: 28px;
      text-align: center;
      transform: translateY(-50%);

      img {
        height: 100%;
      }
    }

  }
}

/*オンラインストア追加分*/
.lineup .item.store {
  margin-top: 15px;
  background-color: #bdffaa;
  display: flex;
  justify-content: space-between;flex-wrap: wrap;
  padding: 15px 15px;
}
.store01,.store02,.store03,.store04,.store05{
  opacity: 0;
  transition: all .8s cubic-bezier(.85, 2.35, .71, 1);
  filter: drop-shadow(3px 3px 3px #aaa);
}
.lineup .store>div{
  width: 49%;
  background: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.store {
      &.active{
        .store01{
          opacity: 1;
          transition-delay: .2s;
        }
        .store02{
          opacity: 1;
          transition-delay: .4s;
        }
        .store03{
          opacity: 1;
          transition-delay: .6s;
        }
        .store04{
          opacity: 1;
          transition-delay: .8s;
        }
        .store05{
          opacity: 1;
          transition-delay: 1s;
        }
      }
}
.store.active .store01:hover,.store.active .store02:hover,.store.active .store03:hover,.store.active .store04:hover,.store.active .store05:hover{filter: drop-shadow(1px 1px 1px #aaa);transition-delay: 0.001s;}
 /*会社概要*/
.company{padding: 0 5%;margin: 40px 0;}
.company .inner{background: #fff;padding: 10px;border-radius: 20px;}
.company table{padding: 10px;}
.company .headline {
  font-family: var(--serif-font);
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  position: relative;
  margin-bottom: 15px;
  @media (min-width: 481px) {
    font-size: 24px;
  }

  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 25%;
    top: 50%;
    border-top: 2px dotted #fff;
  }
  &::before {
    left: 0;
  }
&::after {
    right: 0;
  }
}

 .company table {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
  font-size: 13px;
  @media (min-width: 481px) {
    font-size: 1.15rem;
  }
}
.company table th,  .company table td {
  border: 2px solid #fff;
  background-color: #fff7d4;
  border-radius: 0 10px 10px 0;
  padding: 1em;
  align-content: center;
}
.company table th {
  background-color: #231815;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 10px 0 0 10px;
  width: 20%;
  min-width: 4em;
  position: relative;
}
.company table th::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left: 10px solid #231815;
  z-index: 2;
}
 .company table th::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-left: 12px solid #fff;
  z-index: 1;
}
/*
@media (min-width: 481px) {}
@media (hover: hover) and (pointer: fine) {}
*/

/**************************************
ハンバーガーメニュー
************************************/
/* Nav styles */
.menu ul {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  left: -100vw; /* Slide-in from the left */
  width: 100vw;
  height: 100vh; /* Full view height */
  z-index: 10;
  font-family: var(--serif-font);
  font-weight: 800;
}
.menu li {
  background-image: linear-gradient(60deg, #90f183 0%, #90f183 100%);
  border-bottom: 1px solid #3b3b3b;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  height: calc(100vh / 5); /* 5つのメニューアイテムの場合 */
  width: 100%; /* フル幅 */
  position: relative; /* aタグを位置決めするために必要 */
}

.menu li a {
  position: absolute; /* 親要素のサイズに合わせる */
  top: 0; /* 上端に合わせる */
  left: 0; /* 左端に合わせる */
  width: 100%; /* 親要素の幅いっぱいに広げる */
  height: 100%; /* 親要素の高さいっぱいに広げる */
  display: flex; /* 中央にテキストを配置 */
  justify-content: center;
  align-items: center;
  color: #333;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s; /* アニメーションを追加 */
}

.menu li a:hover {
  background-image: linear-gradient(60deg, rgba(240, 196, 121, 0.3) 0%, rgba(245, 195, 129, 0.3) 100%); /* 背景色を薄く */
}



/* メニューのアニメーション */
.menu li {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu.open li {
  transform: translateX(100vw); /* 開く時のスライドイン */
}

/* 上から順番に遅延を設定 0.25足していく*/
.menu li:nth-of-type(1) {
  transition-delay: 0s;
}

.menu li:nth-of-type(2) {
  transition-delay: 0.025s;
}

.menu li:nth-of-type(3) {
  transition-delay: 0.05s;
}

.menu li:nth-of-type(4) {
  transition-delay: 0.075s;
}

.menu li:nth-of-type(5) {
  transition-delay: 0.1s;
}

.menu li:nth-of-type(6) {
  transition-delay: 0.125s;
}

.menu li:nth-of-type(7) {
  transition-delay: 0.15s;
}

.menu li:nth-of-type(8) {
  transition-delay: 0.175s;
}
.menu li:nth-of-type(9) {
  transition-delay: 0.2s;
}
.menu li:nth-of-type(10) {
  transition-delay: 0.225s;
}
.menu li:nth-of-type(11) {
  transition-delay: 0.275s;
}
/* スマホサイズ時の閉じるアニメーション */
@media (max-width: 768px) {
  /* メニューが閉じる時に上から順番に戻る */
  .menu.open li:nth-of-type(1) {
    transition-delay: 0s;
  }

  .menu.open li:nth-of-type(2) {
    transition-delay: 0.025s;
  }

  .menu.open li:nth-of-type(3) {
    transition-delay: 0.05s;
  }

  .menu.open li:nth-of-type(4) {
    transition-delay: 0.075s;
  }

  .menu.open li:nth-of-type(5) {
    transition-delay: 0.1s;
  }

  .menu.open li:nth-of-type(6) {
    transition-delay: 0.125s;
  }

  .menu.open li:nth-of-type(7) {
    transition-delay: 0.15s;
  }

  .menu.open li:nth-of-type(8) {
    transition-delay: 0.175s;
  }
  .menu li:nth-of-type(9) {
    transition-delay: 0.2s;
  }
  
  .menu li:nth-of-type(10) {
    transition-delay: 0.225s;
  }
  .menu li:nth-of-type(11) {
    transition-delay: 0.275s;
  }
}
@media (max-width: 1000px) {
  .menu ul {
    flex-direction: column;
  }
}

.hamburger {
  background-color: #fff;
  border-radius: 50%;
  position: fixed;
  top: 20px;
  right: 20px;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  z-index: 999;
}

.hamburger:focus {
  outline: 0;
}

.hamburger .line {
  background-color: #000;
  display: block;
  margin: 5px auto;
  height: 2px;
  width: 20px;
  transition: all 0.1s ease-in;
}

.hamburger.open .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.padded-section {
  scroll-margin-top: 150px; /* スクロール時の余白を確保 */
}

@media (max-width: 768px) {
  .padded-section {
      scroll-margin-top: 120px;
  }
}



/* バナー */

.banner{
  padding: 0 5%;
  margin: 40px 0;
}
.banner .inner{
  background: #fff;
  padding: 10px;
  border-radius: 20px;
}