@import 'general/reset-2.css';
@import 'general/fixes.css';
@import '_default-body-text.css';
@import '_template-parts.css';
@import '../../node_modules/swiper/swiper-bundle.css';
@import '../../node_modules/swiper/modules/effect-fade.css';

/* パーツ */
@import './_utils.css';
@import './parts/_global-header.css';
@import './parts/_global-footer.css';
@import './parts/_big-menu.css';

@font-face {
  font-family: Schema-Bold;
  font-weight: normal;
  src: url('../font/schema/Schema-Bold.woff2') format('woff2');
}

body {
  /* 基本 */
  font-family: "MFW-MiGoMB1Std-DeBold";
  /* ところどころ */
  /* font-family: "MFW-FutoGoB101Pr6N-Bold"; */

  /* 文字詰めは、全体でかなも約物も全て詰めておいて、adjust-kerning.jsで調整 */
  font-feature-settings: 'pkna' 1, 'palt' 1;

  --margin: 60px;
  --term-color-others: #B8A24E;

  @media (max-width: 1200px) {
    --margin: 5vw;
  }
  @media (max-width: 999px) {
    --margin: 24px;
  }

  &.noscroll {
    overflow: hidden;
  }
}

a {
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid #D9D9D9 !important;
  height: 0;
  margin: 60px 0 0 0;
  @media (max-width: 999px) {
    margin-top: 24px;
  }
}

.relatedContents {
  > h2 {
    border-top: 1px solid #D9D9D9;
    border-bottom: 1px solid #D9D9D9;
    padding: 71px var(--margin);
    font-size: 20px;
    letter-spacing: 1.6px;
    line-height: 1.8;
    text-align: center;
    color: #969696;
    @media (max-width: 1200px) {
      text-align: left;
    }
    @media (max-width: 999px) {
      font-size: 14px;
      letter-spacing: 1.68px;
      text-align: center;
      padding: 34px var(--margin);
    }
    /* single-magazine で プロジェクト名に改行が入る場合があるので、ここで消す */
    br {
      display: none;
    }
  }
  .w1200 {
    @media (max-width: 1200px) {
      width: 100%;
    }
  }
}

main {
  .breadcrumbs {
    margin: 44px var(--margin) 55px;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 1.56px;
    @media (max-width: 999px) {
      margin: 19px 16px 68px;
      font-size: 11px;
    }
    a {
      text-decoration: none;
      color: inherit;
    }
    > * + * {
      margin-left: 10px;
    }
    br {
      display: none;
    }
  }

  section.main {
    margin: 0 var(--margin);
    min-height: 400px;
    margin-bottom: 80px;
  }

  /* 共通のグリッド */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px var(--margin);
    &.info {
      row-gap: 30px;
    }
  }

  section.description {
    margin: 70px var(--margin);
    font-family: "MFW-FutoGoB101Pr6N-Bold";
    &[data-grid-columns="2"] {
      p {
        grid-column: 1 / -1;
      }
    }
    p {
      grid-column: 1 / calc(var(--grid-columns) / 2 + 1);

      font-size: 16px;
      line-height: 2.3;
      letter-spacing: 1.92px;
      @media (max-width: 999px) {
        font-size: 15px;
        letter-spacing: 1.8px;
      }
    }
  }

  ul.items {
    a {
      text-decoration: none;
      color: inherit;
    }
  }
}

.chiMenu {
  position: fixed;
  bottom: 47px;
  right: 47px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  @media (max-width: 999px) {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }
  &:hover {
    opacity: 0.7 !important;
    @media (max-width: 999px) {
      opacity: 1 !important;
    }
  }
  .icon {
    @media (max-width: 999px) {
      width: 74px;
      height: auto
    }
  }
  .label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    font-family: "MFW-FutoGoB101Pr6N-Bold";
    color: #fff;
    font-size: 9.803px;
    line-height: 1;
    width: 59px;
    height: 24px;
    border-radius: 12px;
    @media (max-width: 999px) {
      font-size: 12px;
      width: 60px;
      height: 23px;
      border-radius: 6px 6px 0 0;
    }
    .menu {
      display: inline;
    }
    .close {
      display: none;
    }
  }
}
body[data-global-header-visibility="false"]:not([data-global-footer-visibility="true"]) {
  .chiMenu {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }
}
body:has(.bigMenu.show) {
  .chiMenu {
    opacity: 1;
    pointer-events: auto;
    .menu {
      display: none;
    }
    .close {
      display: inline;
    }
  }
}

html[lang="en"] {
  .relatedContents {
    > h2 {
      letter-spacing: 0.6px;
    }
  }

  main {
    .breadcrumbs {
      letter-spacing: 0.39px;
      > * + * {
        margin-left: 4px;
      }
    }

    section.description {
      margin-top: 74px;
      p {
        line-height: 2.1;
        letter-spacing: 0.32px;
      }
    }
  }
}


@media (max-width: 999px) {
  html[lang="en"] {
    main {
      .breadcrumbs {
        margin-bottom: 28px;
        letter-spacing: 0.33px;
      }
      section.description {
        margin-top: 0;
        margin-bottom: 42px;
        p {
          letter-spacing: 0.3px;
        }
      }
    }
  }
}

.borderItems {
  .item:not(:last-child) {
    border-bottom: 1px solid #D9D9D9;
  }
}