:root {
  --font-family-base: "Noto Sans JP","游ゴシック体", YuGothic, "Arial", "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}

:root {
  --MainWhite: #fff;
  --MainBlack: #000;
  --MainGray: #b7bcbc;
  --base-font-size: 16;
  --min-width-default: 320px;
  --max-width-default: 1920px;
  --min-width-md: 769px;
}

.en {
  font-family: "EB Garamond", serif;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  font-feature-settings: "palt";
  overflow-x: hidden;
  -webkit-appearance: none;
  background: var(--MainWhite);
  font-size: 62.5%;
}
body {
  font-family: var(--font-family-base);
  font-weight: 400;
  color: var(--MainBlack);
  line-height: 2;
  overflow-y: hidden;
  /* bodyにデフォルト値を設定する */
  --clamp-viewport-min: 320;
  --clamp-viewport-max: 1200;
  --clamp-min: 14;
  --clamp-max: 16;
}

*,
::before,
::after {
  --clamp-root-font-size: 10;
  --clamp-slope: calc(
    (var(--clamp-max) - var(--clamp-min)) /
      (var(--clamp-viewport-max) - var(--clamp-viewport-min))
  );
  --clamp-y-axis-intersection: calc(
    var(--clamp-min) - (var(--clamp-slope) * var(--clamp-viewport-min))
  );
  --clamp-preffered-value: calc(
    var(--clamp-y-axis-intersection) * (1rem / var(--clamp-root-font-size)) +
      (var(--clamp-slope) * 100vi)
  );
  --clamp: clamp(
    calc(var(--clamp-min) * (1rem / var(--clamp-root-font-size))),
    var(--clamp-preffered-value),
    calc(var(--clamp-max) * (1rem / var(--clamp-root-font-size)))
  );

  font-size: var(--clamp);
}
main {
  flex: 1;
}
body {
  overflow-x: hidden;
}
a,
button {
  cursor: pointer;
  @include Transition;
  &::before,
  &::after {
    @include Transition;
  }
  &:hover {
   
    &::before,
    &::after {
      @include Transition;
    }
  }
}
/* section {
  padding: 0 0 85px 0;
}
@media (width >= 768px) {
  section {
    padding: 120px 0;
  }
} */

/* コンテナの共通スタイル */
.l-container-s,
.l-container-mm,
.l-container-m,
.l-container,
.l-container-l {
  margin: 0 auto;
}

/* 幅70%のコンテナ */
.l-container-s {
  width: 70%;
  max-width: var(--width-content-s);
}

/* 幅80%のコンテナ */
.l-container-mm,
.l-container-m {
  width: 80%;
  max-width: var(--width-content);
}

/* 幅90%のコンテナ */
.l-container,
.l-container-l {
  width: 90%;
}

/* 特定の最大幅を持つコンテナ */
.l-container {
  max-width: 1160px;
}

.l-container-l {
  max-width: var(--width-content-l);
}

/* サムネイルデフォルト
------------------------------------------------------------*/
.thumbnail {
  span {
    display: block;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* レイアウトまわり
------------------------------------------------------------*/
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
  gap: 20px;
}

@media (width >= 769px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 3fr));
  }
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-reverse {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row-reverse;
}

@media (width >= 576px) {
  .flex-reverse {
    display: flex;
    justify-content: flex-end;
  }
}

.flex-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: column;
}

.flex-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* レスポンシブまわり
------------------------------------------------------------*/
.sp-none {
  display: none;
}
@media (width >= 769px) {
  .sp-none {
    display: block;
  }
}
.pc-none {
  display: block;
}
@media (width >= 769px) {
  .pc-none {
    display: none;
  }
}

/* カラーまわり
------------------------------------------------------------*/


/* テキストまわり
------------------------------------------------------------*/
.fwb {
  font-weight: 600;
}
.fwm {
  font-weight: 500;
}
.tac {
  text-align: center;
}
.tal {
  text-align: left;
}
.tar {
  text-align: right;
}

/* ページネーション
------------------------------------------------------------*/
.pagination {
  margin-top: 100px;
  .nav-links {
    position: relative;
    .page-numbers {
      position: relative;
      margin-left: 20px;
      @include EBGaramond;
      @include fz(20);
      &::before {
        content: "";
        background: $MainBlack;
        width: 1px;
        height: 20px;
        position: absolute;
        top: 2px;
        bottom: 0;
        left: -12px;
        margin: auto;
      }
      &:nth-child(1),
      &.next,
      &.prev,
      &.prev + a {
        margin-left: unset;
      }
      &:nth-child(1),
      &.prev + a {
        &::before {
          display: none;
        }
      }
    }
    .next,
    .prev,
    .prev-post > a,
    .next-post > a {
      position: absolute;
      top: -60px;
      width: 120px;
      text-align: center;
      display: inline-block;
      &::before {
        content: "";
        position: absolute;
        background: $MainBlack;
        bottom: 0;
        left: 0;
        right: 0;
        top: unset;
        margin: auto;
        width: 120px;
        height: 1px;
        display: block !important;
        @include Transition;
      }
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 2px;
        height: 10px;
        background: $MainBlack;
        @include Transition;
      }
    }
    .next,
    .next-post > a {
      right: calc(50% - 150px);
      @include md {
        right: calc(50% - 180px);
      }
      &::after {
        transform: skewX(60deg);
        right: 6px;
      }
    }
    .prev,
    .prev-post > a {
      left: calc(50% - 150px);
      @include md {
        left: calc(50% - 180px);
      }
      &::after {
        transform: skewX(-60deg);
        left: 6px;
      }
    }
  }
}

/*----------------------------
scroll 画像 ｜
----------------------------*/

.img-path-Right {
  --inset-top: 0;
  --inset-right: 0;
  --inset-bottom: 0;
  --inset-left: 100%;
  clip-path: inset(
    var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left)
  );
  transition: 0.6s ease-in;
  &.is-visible {
    --inset-left: 0;
  }
}

.img-path-Left {
  --inset-top: 0;
  --inset-right: 100%;
  --inset-bottom: 0;
  --inset-left: 0%;
  clip-path: inset(
    var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left)
  );
  transition: 0.6s ease-in;
  &.is-visible {
    --inset-right: 0;
  }
}
.img-path-Top {
  --inset-top: 100%;
  --inset-right: 0;
  --inset-bottom: 0;
  --inset-left: 0%;
  clip-path: inset(
    var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left)
  );
  transition: 0.6s ease-in;
  &.is-visible {
    --inset-top: 0;
  }
}

.img-path-Bottom {
  --inset-top: 0;
  --inset-right: 0;
  --inset-bottom: 100%;
  --inset-left: 0;
  clip-path: inset(
    var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left)
  );
  transition: 0.6s ease-in;
  &.is-visible {
    --inset-bottom: 0;
  }
}

/* clampの計算
------------------------------------------------------------*/
.c-width {
  width: clamp(
    300px,
    calc(300px + (600 - 300) * ((100vw - 320px) / (1920 - 320))),
    600px
  );
}

.c-margin {
  margin: clamp(
    10px,
    calc(10px + (30 - 10) * ((100vw - 320px) / (1920 - 320))),
    30px
  );
}

.c-padding {
  padding: clamp(
    15px,
    calc(15px + (40 - 15) * ((100vw - 320px) / (1920 - 320))),
    40px
  );
}

/* 共通
------------------------------------------------------------*/

img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: auto;
  vertical-align: top;
}

:root {
  --leading-trim: calc((1em - 1lh) / 2);
}
h1,
h2,
h3,
h4,
h5,
h6,
dt,
dd,
table,
th,
td,
span {
  /* margin-block: calc((1em - 1lh) / 2); */
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
span{
  letter-spacing: .1em;
}