/* 抜粋 */
.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;
  }
}

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

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

/* ホバー時に透過エフェクトを追加 */
.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;
  gap: 0.8em;
  font-size: var(--date-font-size, 14px);
  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;
}

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

.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.7;
  margin-block: var(--half-read);
}

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

/* 基本ボタン */
:is(.c-button, .c-button-fill) {
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: var(--button-min-width, 240px);
  height: var(--button-height, 50px);
  font-size: var(--button-font-size, 16px);
  color: var(--button-font-color, var(--color-main));
  font-weight: 500;
  padding: var(--button-padding, 0 20px);
  background: var(--button-bg-color, #fff);
  border: var(--button-border, 2px solid var(--color-main));
  border-radius: 5px;
  text-decoration: none !important;
  margin: var(--button-margin, initial);
}

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

@media (any-hover: hover) {

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

@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: 5px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 0.5px solid var(--color-border);
}

.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.05);
  }
}

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

.c-pagination :where(.nav-links > *) {
  display: grid;
  place-items: center;
  color: #606060;
  background: #e6e7e8;
  border: 1px solid #e6e7e8;
  border-radius: 5px;
}

.c-pagination :where(.nav-links > .dots) {
  border: none;
  background: none;
  font-size: 1em;
  color: #333333;
}

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

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

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

.c-category :where(a) {
  font-size: 12px;
  min-width: 100px;
  text-align: center;
  padding: 0.7em 0.9em;
  background-color: #fff;
  border: 0.5px solid var(--color-border);
  border-radius: 5px;
}

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

@media (max-width: 767px) {
  .c-category :where(a) {
    font-size: 11px;
    padding: 0.6em 0.8em;
  }
}

/* サービスアイコン */
.c-service-icon {
  display: block;
  width: 1em;
  height: 1em;
  background-image: var(--service-icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 追従表示 */
@media not all and (max-width: 991px) {
  .c-sticky {
    position: sticky;
    top: calc(var(--cw-header-bar-height, 0px) + 30px);
  }
}

/* 著者プロフィール */
.c-author {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.c-author-image {
  display: flex;
  font-size: 30px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  overflow: hidden;
  border: 0.5px solid var(--color-border);
}

.c-author-name {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {

  .c-author {
    gap: 7px;
  }

  .c-author-image {
    font-size: 20px;
  }

  .c-author-name {
    font-size: 12px;
  }
}

/* メインセクション */
.c-main-section {
  position: relative;
  padding: 45px 0px 45px 45px;
}

.c-main-section:before {
  content: "";
  position: absolute;
  inset: 0 clamp(calc(50% - 50vw), calc(50% - 50vw), 0px) 0 0;
  background-color: #fff;
  border: 0.5px solid var(--color-border);
  border-radius: 10px 0px 0px 10px;
}

.c-main-section-content {
  position: relative;
}

@media (max-width: 991px) {
  .c-main-section:before {
    inset: 0;
    border-radius: 10px;
  }
}

@media (max-width: 767px) {

  .c-main-section {
    padding: 30px 0px;
  }

  .c-main-section:before {
    inset-inline: -20px;
    border-radius: 0px;
    border-inline: none;
  }
}

/* ユーザー関連 */
.c-profile-header {
  display: grid;
  align-content: start;
  row-gap: 12px;
  font-size: 12px;
  font-weight: 600;
}

.c-profile-header-name {
  font-size: 22px;
}

.c-profile-image {
  height: 220px;
  border-radius: 5px;
  overflow: hidden;
}

.c-profile-category {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  padding: 10px 5px;
  color: #606060;
  background-color: #ffffff;
  border: 0.5px solid var(--color-border);
  border-radius: 3px;
}

.c-profile-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c-profile-sns-item {
  font-size: 30px;
  width: 1em;
  height: 1em;
  background-color: #ffffff;
  border: 0.5px solid var(--color-border);
  border-radius: 3px;
}

.c-profile-sns-item:before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  mask: no-repeat center / 0.5em;
  background-color: currentColor;
}

.c-profile-sns-item-x:before {
  mask-image: var(--icon--x);
}

.c-profile-sns-item-note:before {
  mask-image: var(--icon--note);
}

@media (any-hover: hover) {
  .c-profile-sns-item:hover {
    color: var(--color-main);
  }
}

@media (max-width: 767px) {
  .c-profile-header {
    font-size: 10px;
  }

  .c-profile-header-name {
    font-size: 20px;
  }

  .c-profile-image {
    height: 140px;
  }

  .c-profile-category {
    /* padding: 10px; */
  }

  .c-profile-sns {
    gap: 8px;
  }

  .c-profile-sns-item {
    font-size: 24px;
  }
}

/* 固定ページに利用 */
.c-page-title {
  font-size: 24px;
  line-height: 1.5;
  margin-block: var(--half-read);
}

.c-page-subtitle {
  font-size: 18px;
  line-height: 1.5;
  margin-block: var(--half-read);
}

.c-page-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-block: var(--half-read);
}

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

  .c-page-subtitle {
    font-size: 16px;
  }
}

/* box */
.c-page-box-wrap {
  display: grid;
  align-content: start;
  row-gap: 13px;
}

.c-page-box {
  padding: 25px;
  background-color: #f6f6f6;
  font-weight: 500;
}

.c-page-box-label {
  display: flex;
  align-items: center;
  column-gap: 1em;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.c-page-box-link {
  display: block;
  width: fit-content;
  margin-left: auto;
  font-size: 12px;
  color: var(--color-main);
  font-weight: 600;
  margin-top: 20px;
}

@media (max-width: 767px) {

  .c-page-box {
    padding: 20px;
  }

  .c-page-box-label {
    margin-bottom: 15px;
  }
}

/* リスト */
.c-page-box-list {
  list-style: disc;
  list-style-position: inside;
  font-size: 14px;
  background-color: #f6f6f6;
  font-weight: 500;
  line-height: 2.6;
  padding: calc(25px + var(--half-read)) 25px;
}

@media (max-width: 767px) {
  .c-page-box-list {
    line-height: 2;
    padding: calc(20px + var(--half-read)) 20px;
  }
}

/* メンバーの声 */
.c-page-quote {
  padding: 20px 20px 30px;
  background-color: #e0eefc;
  border-radius: 5px;
}

.c-page-quote-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 15px;
  margin-bottom: 25px;
}

.c-page-quote-header-image {
  font-size: 45px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 0.5px solid var(--color-border);
  overflow: hidden;
}

.c-page-quote-header-content {
  display: grid;
  align-content: center;
  row-gap: 10px;
}

.c-page-quote-header-content-name {
  font-size: 14px;
  font-weight: 600;
}

.c-page-quote-header-content-position {
  font-size: 11px;
  font-weight: 500;
}

.c-page-quote-header-content-icon {
  width: 30px;
  fill: var(--color-main);
  align-self: flex-start;
}

.c-page-quote-desc {
  font-size: 14px;
}

.c-page-quote-link {
  display: block;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-main);
  margin-left: auto;
  margin-top: 30px;
}

@media (max-width: 767px) {
  .c-page-quote {
    padding: 15px 15px 20px;
  }

  .c-page-quote-header {
    margin-bottom: 20px;
  }

  .c-page-quote-header-content-icon {
    width: 18px;
  }

  .c-page-quote-link {
    margin-top: 20px;
  }
}


/* 画面内に入った時のアニメーション */
.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;
}