/* カスタマイズ用CSS */
:root {
  /* ---- カラー ---- */
  --color-primary:    #EEF2EE;   /* メインカラー（例：緑系） */
  --color-secondary:  #E98585;   /* アクセントカラー */
  --color-text:       #707070;   /* 本文テキスト */
  --color-text-sub:   #467D61;   /* サブテキスト */
  --color-bg:         #FBFBFB;   /* 背景 */
  --color-bg-sub:     #EEF2EE;   /* サブ背景（グレー帯など） */
  --color-border:     #CFD8D0;   /* 罫線 */

  /* ---- フォント ---- */
  --font-family-base: "Zen Kaku Gothic New", sans-serif;
  --font-family-sub: "Zen Old Mincho", serif;
  --font-size-base:   16px;
  --font-size-sm:     14px;
  --font-size-lg:     32px;
  --font-weight-bold: 700;

  /* ---- レイアウト ---- */
  --container-width:  1200px;    /* コンテンツ最大幅 */
  --gutter:           24px;      /* 基本余白 */
}

body {
  color: var(--color-text);
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
}

/* 共通ヘッダー */
body {
  .common--headerNav--wrap {
    .common--headerNav {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: space-between;
    }
    .common--headerNav__right {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 16px;
      flex-shrink: 0;
    }
    .common--headerNav__search {
      flex-shrink: 0;
    }
  }
  /* 検索トグル */
  .my-headerSearch {
    position: relative;
  }

  .my-headerSearch__icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .my-headerSearch__drawer {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 8px;
    white-space: nowrap;
    z-index: 100;
  }
  @media (max-width: 500px) {
    .my-headerSearch__drawer {
      right: 50%;
      transform: translateX(50%);
    }
  }

  .my-headerSearch__drawer.is-open {
    display: block;
  }

  .my-headerSearch__keyword {
    display: flex;
    align-items: center;
    gap: 4px;
  }
   @media (max-width: 500px) {
    .my-headerSearch__keyword {
      flex-direction: column;
    }
  }

  .my-headerSearch__keyword input {
    border: 1px solid var(--color-border);
    padding: 6px 10px;
    font-size: var(--font-size-sm);
  }

  .my-headerSearch__submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .my-headerSearch__submitBtn {
    background: var(--color-text-sub);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 6px 14px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
  }
  .my-headerSearch__category select {
    border: 1px solid var(--color-border);
    padding: 6px 8px;
    font-size: var(--font-size-sm);
    background: #fff;
  }
.my-headerSearch__icon img {
  width: 24px;
  height: 24px;
  display: block;
}
/* アイコンと文言 */
 .ec-headerNav__item {
  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    span.ec-headerNav__itemLink {
      display: block;
      font-size: var(--font-size-sm);
    }
  }
 }
}
/* header.twig body */

@media (max-width: 500px) {
  .common--headerNav--wrap .common--headerNav .common--headerNav__right {
    gap: 8px;
  }
  .common--headerNav--wrap .common--headerNav .common--headerNav__right .ec-headerNav__itemLink {
    font-size: 12px;
  }
  .common--headerNav--wrap .common--headerNav span.ec-headerNav__itemLink {
    font-size: 12px;
  }
  .common--headerNav--wrap .common--headerNav .ec-headerRole__cart .ec-cartNavi {
    padding: 0;
    margin-right: 16px;
  }
}


/* topic.twig */
/* トピックスライダー */
.ec-topicRole__list {
  display: block !important;
  position: relative;
}

/* スライド間gap */
.ec-topicRole__list .slick-slide {
  margin-right: 24px;
}

.ec-topicRole__list .slick-list {
  margin-right: -24px;
}

/* ナビボタン */
.ec-topicRole__list .slick-prev,
.ec-topicRole__list .slick-next {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  background-color: rgba(207, 216, 208, 0.6) !important;
  border-radius: 50%;
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ec-topicRole__list .slick-prev { left: 4px; }
.ec-topicRole__list .slick-next { right: 4px; }

.ec-topicRole__list .slick-prev:before,
.ec-topicRole__list .slick-next:before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8FA290;
  border-top: 2px solid #8FA290;
  position: absolute;
  top: 50%;
  left: 50%;
}

.ec-topicRole__list .slick-next:before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.ec-topicRole__list .slick-prev:before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.ec-topicRole {
  max-width: 736px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
  .ec-secHeading__en {
    color: #C5D1C5;
    font-size: var(--font-size-lg);
    font-style: italic;
  }
  .ec-topicRole__list {
    .ec-topicRole__listItem {
      width: 160px!important;
      a {
       display: block;
       width: 160px;
       height: 160px;
       overflow: hidden;
       img {
         width: 100%;
         height: 100%;
         object-fit: cover;
     }
    }
    p.ec-topicRole__listItemTitle {
      margin-top: .5rem;
    }
    }
  }
}
/* TOP共通 各項目タイトル */
.ec-role {
  .ec-secHeading {
    .ec-secHeading__en {
      color: #C5D1C5;
      font-family: "Sorts Mill Goudy", serif;
      font-weight: 400;
      font-style: italic;
      font-size: 40px;
      letter-spacing: 0;
      text-align: center;
    }
    .ec-secHeading__ja {
      display: block;
      margin-top: 0;
      font-size: var(--font-family-base);
      text-align: center;
    }
  }
}
@media screen and (max-width: 500px) {
.ec-headerNavSP {
  display: none;
}
}

/* TOPアイキャッチ eyecatch.twig */
.ec-role {
  .ec-eyecatchRole {
    display: block;
    .ec-eyecatchRole__intro {
      text-align: center;
    }
  }
  .pc__no {
    display: none;
  }
}
@media (max-width: 500px) {
  .ec-role {
    .ec-eyecatchRole {
      .ec-eyecatchRole__introTitle {
        text-align: left;
      }
      .ec-eyecatchRole__introDescription {
        text-align: justify;
      }
    }
      .pc__no {
    display: block;
  }
  }
}



/* category.twig */
.ec-categoryRole {
  background-color: transparent;
  .ec-role {
    .ec-categoryRole__list {
      margin-top: 1.5rem;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1.5rem;
      .ec-categoryRole__listItem {
        margin: 0;
        width: calc((100% - 1.5rem * 3) / 4);
        border: 1px solid #707070;
        a {
          display: flex;
          width: 100%;
          height: 3.75rem;
          padding: .8rem;
          align-items: center;
          font-size: var(--font-size-sm);
          justify-content: center;
          text-align: center;
        }
      }
    }
  }
}

@media (max-width: 767px) {
  .ec-categoryRole {
    .ec-role {
      .ec-categoryRole__list {
        gap: 1rem;
        .ec-categoryRole__listItem {
          width: calc((100% - 1rem) / 2);
        }
      }
    }
  }
}

/* プライバシーポリシー */
.ec-role {
  ul {
    list-style: none;
    padding-left: 0;
    li {
      + li {
        margin-top: 1rem;
      }
    }
  }
  .ec-off1Grid {
    display: block;
    + .ec-off1Grid {
      margin-top: 2rem!important;
    }
    .ec-off1Grid__cell {
      .ec-text {
          margin-top: 1rem;
        + ul {
          margin-top: 1rem;
        }
      }
    }
  }
}

/* このサイトについて about.twig */
.ec-role {
  .ec-off1Grid {
    .ec-off1Grid__cell {
      &.ec-about_box {
        margin-top: 2.5rem;
        h2 {
          font-size: var(--font-size-lg);
          font-family: "Sorts Mill Goudy", serif;
          font-weight: 400;
          font-style: italic;
          span {
            font-size: var(--font-size-base);
          }
        }
        .ec-about__section {
          margin-top: 2.5rem;
          h3 {
            font-size: 1.5rem;
            font-family: "Sorts Mill Goudy", serif;
            font-weight: 400;
            font-style: italic;
            + p {
              margin-top: 1rem;
              color: var(--color-text-sub);
            }
          }
          .ec-about__sectxt {
            margin-top: 1rem;
          }
          dl {
            margin-top: 1rem;
            dt {
              &::before {
                display: inline-block;
                content: '';
                margin-right: 8px;
                width: 1.5rem;
                height: 1px;
                background-color: var(--color-border);
                vertical-align: middle;
              }
            }
            dd {
              margin-top: .8rem;
            }
          }
        }
      }
    }
  }
}