/* 抜粋 */
.c-line-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp);
  height: var(--line-clamp-h, calc(1lh * var(--line-clamp)));
  max-height: calc(1lh * var(--line-clamp));
  overflow: hidden;
  word-break: break-all;
  margin-block: var(--half-read);
}

/* 横スクロール */
.c-scroll-x {
  overflow: var(--scroll-x-overflow, initial);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.c-scroll-x::-webkit-scrollbar {
  display: none;
}

.c-scroll-x:before,
.c-scroll-x:after {
  content: var(--scroll-x-inline-content, none);
  min-inline-size: var(--scroll-inline-margin, 1px);
}

/* 表示切り替え */
@media not all and (max-width: 767px) {
  .c-hidden-pc {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .c-hidden-sp {
    display: none !important;
  }
}

/* cover */
.c-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TODO: マスター */
.c-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ホバー時に透過エフェクトを追加 */
.c-hover {
  transition: opacity 0.3s ease;
}

@media (any-hover: hover) {

  .c-hover:hover,
  a:hover .c-hover {
    opacity: 0.5;
  }
}

/* 日付 */
.c-date {
  display: flex;
  flex-wrap: wrap;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  gap: 0.8em;
  font-size: var(--date-font-size, 18px);
  color: var(--date-font-color, inherit);
  line-height: 1;
}

.c-date--updated {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto;
  gap: 0.3em;
}

.c-date--updated:before {
  content: '';
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: var(--icon--updated) no-repeat center / 1.2em;
}

@media (max-width: 767px) {
  .c-date {
    font-size: 16px;
  }
}

/* セクションヘッダー */
.c-section-header {
  display: grid;
  align-content: start;
  row-gap: 25px;
}

@media (max-width: 767px) {
  .c-section-header {
    row-gap: 15px;
  }
}

/* セクション タイトル */
.c-section-title {
  color: #CCCCCC;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-weight: normal;
  font-size: 120px;
  margin-block: -0.2em;
  margin-left: -0.05em;
}

@media (max-width: 767px) {
  .c-section-title {
    font-size: 60px;
  }
}

/* セクション サブタイトル */
.c-section-subtitle {
  font-size: 16px;
  font-weight: bold;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5em;
}

.c-section-subtitle::before {
  content: var(--section-subtitle-content, '');
  width: 1em;
  height: 1em;
  font-size: 13px;
  background: var(--section-subtitle-bg-color, var(--main-color));
  border-radius: 50%;
  margin-top: 1px;
}

@media (max-width: 767px) {
  .c-section-subtitle {
    font-size: 12px;
  }

  .c-section-subtitle::before {
    font-size: 11px;
  }
}

/* セクション説明文 */
.c-section-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-block: var(--half-read);
}

@media (max-width: 767px) {
  .c-section-desc {
    font-size: 14px;
  }
}

/* 基本タイトル */
.c-title {
  text-align: center;
}

.c-title-en {
  font-family: "Archivo", sans-serif;
}



.c-title-main {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.8;
  margin-block: var(--half-read);
}

.c-title-sub {
  font-size: 12px;
  margin-top: 15px;
}

/* 基本説明文 */
.c-desc {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-block: var(--half-read);
}

@media (max-width: 767px) {
  .c-desc {
    font-size: 14px;
  }
}

/* 基本ボタン */
/* TODO: マスターに白抜きボタンを追加 */
:is(.c-button, .c-button-fill, .c-button-outline) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: fit-content;
  min-width: var(--button-min-width, min(100%, 340px));
  height: var(--button-height, 45px);
  font-size: var(--button-font-size, 13px);
  color: var(--button-font-color, var(--main-color));
  font-weight: bold;
  padding: var(---button-padding, 0 20px 1px 20px);
  background: var(--button-bg-color, #fff);
  border: var(--button-border, 1px solid var(--main-color));
  border-radius: calc(infinity * 1px);
  text-decoration: none !important;
  margin: var(--button-margin, initial);
}

/* 塗りつぶしボタン */
.c-button-fill {
  --button-bg-color: var(--main-color);
  --button-font-color: #fff;
  --button-border: none;
  --button-hover-bg-color: var(--main-color-d);
  --button-hover-border: none;
}

/* 白抜き */
.c-button-outline {
  --button-font-color: #fff;
  --button-bg-color: transparent;
  --button-border: 1px solid currentColor;
  --button-hover-bg-color: #fff;
  --button-hover-font-color: var(--sub-color);
  --button-hover-border: 1px solid var(--sub-color);
}

@media (any-hover: hover) {

  :is(.c-button, .c-button-fill, .c-button-outline):hover {
    color: var(--button-hover-font-color, #fff);
    background: var(--button-hover-bg-color, var(--main-color));
    border: var(--button-hover-border, 1px solid var(--main-color));
  }
}

@media (max-width: 767px) {
  :is(.c-button, .c-button-fill) {
    /* font-size: var(--button-font-size-sp, 14px); */
  }
}

/* ホバーアニメーション */
.c-thumbnail {
  aspect-ratio: var(--thumbnail-aspect-ratio, 16 / 9);
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
}

.c-thumbnail:not(:has(.c-thumbnail-image)) {
  background: #ddd;
}

.c-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1);
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  will-change: transform;
}

@media (any-hover: hover) {
  :where(a, .c-thumbnail):hover .c-thumbnail-image {
    transform: scale(1.1);
  }
}

/* ページネーション */
.c-pagination :where(.nav-links) {
  display: grid;
  grid-template-columns: repeat(auto-fit, 60px);
  grid-template-rows: 30px;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-family: "Archivo", sans-serif;
  text-align: center;
}

.c-pagination :where(.nav-links > *) {
  display: grid;
  place-items: center;
  color: #fff;
  background: #CCCCCC;
  border-radius: 30px;
}

.c-pagination :where(.nav-links > .dots) {
  border: none;
  font-size: 30px;
  color: #e5e6e7;
  background-color: transparent;
}

.c-pagination :where(.nav-links > .current) {
  color: #ffffff;
  background: var(--main-color);
}

@media (any-hover: hover) {
  .c-pagination :where(.nav-links > a:hover) {
    background: var(--bg-color);
  }
}

@media (max-width: 767px) {
  .c-pagination :where(.nav-links) {
    grid-template-columns: repeat(auto-fit, 42px);
    grid-template-rows: 24px;
    gap: 8px;
    font-size: 10px;
  }
}

/* カテゴリー */
.c-category {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c-category :where(a) {
  min-width: 100px;
  font-size: 12px;
  text-align: center;
  padding: 10px 20px;
  color: var(--main-color);
  background-color: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 25px;
}


@media (any-hover: hover) {
  .c-category :where(a):hover {
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--main-color);
  }
}

/* 画面内に入った時のアニメーション */
.c-inview-fadein {
  transform: translate3d(0, 50px, 0);
  opacity: 0;
  transition: opacity 2s ease 0.2s, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

body.is-ready .c-inview-fadein.is-active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* ループテキスト */
/* TODO: マスター */
.c-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-inline: calc(50% - 50vw);
  z-index: 1;
}

.c-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.c-marquee-item {
  flex: 0 0 auto;
  font-size: 120px;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-weight: normal;
  margin-block: -0.15em;
  color: var(--main-color);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .c-marquee-item {
    font-size: 60px;
  }
}

/* シェイプ */
.c-shape-top,
.c-shape-btm {
  height: clamp(70px, 16vw, 220px);
  clip-path: polygon(87.5% 0, 0% 100%, 100% 100%);
  background-color: #F0F2F6;
  margin-inline: calc(50% - 50vw);
}

.c-shape-btm {
  clip-path: polygon(12.5% 100%, 0 0, 100% 0);
}

/* 調整用マージン */
/* TODO: マスター */
.c-mb {
  margin-block: var(--mb-pc, initial);
}

@media (max-width: 767px) {
  .c-mb {
    margin-block: var(--mb-sp, initial);
  }
}

/* TODO: マスター */
.c-italic {
  font-style: italic;
}

.c-archivo {
  font-family: "Archivo", sans-serif;
}