@charset "UTF-8";
/*   
 *　Theme Name: Webstylix
    Description: Webstylix専用テーマ
    Version: 1.0.0
    Template: swell
*/
/* ========================================
   Creative Review風 投稿リスト
======================================== */
/* PC：4列 */
@media (min-width: 960px) {
.cr-post-grid .p-postList {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
}

/* ========================================
   カード全体
======================================== */
.cr-post-grid .p-postList__item {
  width: 100% !important;
  margin: 0 !important;
  /* 下だけ余白を小さく */
  padding: 0 14px 5px !important;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  box-sizing: border-box !important;
}

/* ========================================
   画像
======================================== */

.cr-post-grid .p-postList__thumb {
  margin-left: -14px !important;
  margin-right: -14px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: calc(100% + 28px) !important;
  max-width: none !important;
}

.cr-post-grid .p-postList__thumb img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  display: block !important;
}

/* ========================================
   本文部分
======================================== */

.cr-post-grid .p-postList__body {
  display: flex !important;
  flex-direction: column !important;
  height: 190px !important;
  padding-top: 14px !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
/* SWELLの日付・カテゴリーエリア */
.cr-post-grid .p-postList__meta {
  display: contents !important;
}

/* ========================================
   カテゴリー
======================================== */

.cr-post-grid .p-postList__cat {
  order: 1 !important;
  display: block !important;
  align-self: flex-start !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  color: #777 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: underline !important;
}


/* ========================================
   タイトル
======================================== */

.cr-post-grid .p-postList__title {
  order: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.cr-post-grid .p-postList__title a {
  color: #111 !important;
}


/* ========================================
   抜粋
======================================== */

.cr-post-grid .p-postList__excerpt {
  order: 3 !important;
  display: block !important;

  /* タイトルとの間隔を少し広げる */
  margin: 12px 0 0 !important;
  padding: 0 !important;
  color: #444 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}


/* ========================================
   日付
======================================== */

.cr-post-grid .p-postList__times,
.cr-post-grid .c-postTimes,
.cr-post-grid .c-postTimes__posted {
  order: 10 !important;
}


/* 日付をカードの一番下へ */
.cr-post-grid .c-postTimes {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 5px !important;
  padding-bottom: 0 !important;
  color: #777 !important;
  font-size: 12px !important;
}

.cr-post-grid .c-postTimes * {
  color: #777 !important;
}


/* ========================================
   黒背景でもカードは白
======================================== */

.has-background .cr-post-grid .p-postList__item,
.swell-block-fullWide .cr-post-grid .p-postList__item {
  background: #fff !important;
}


/* 黒背景でもカード内の文字は黒 */
.has-background .cr-post-grid .p-postList__title,
.has-background .cr-post-grid .p-postList__title a,
.has-background .cr-post-grid .p-postList__excerpt,
.has-background .cr-post-grid .p-postList__body,
.swell-block-fullWide .cr-post-grid .p-postList__title,
.swell-block-fullWide .cr-post-grid .p-postList__title a,
.swell-block-fullWide .cr-post-grid .p-postList__excerpt,
.swell-block-fullWide .cr-post-grid .p-postList__body {
  color: #111 !important;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767px) {
  .cr-post-grid .p-postList {
    grid-template-columns: 1fr !important;
  }

  .cr-post-grid .p-postList__body {
    height: 190px !important;
  }
}

/* ========================================
   日付をカード最下部に固定
======================================== */

.cr-post-grid .p-postList__body {
  position: relative !important;
}

.cr-post-grid .c-postTimes {
  position: absolute !important;
  left: 0 !important;
  bottom: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   カード内の文字を少し大きく
======================================== */

/* タイトル */
.cr-post-grid .p-postList__title {
  font-size: 18px !important;
}

/* 抜粋文 */
.cr-post-grid .p-postList__excerpt {
  font-size: 14px !important;
}

/* 日付 */
.cr-post-grid .c-postTimes {
  font-size: 13px !important;
}



/* 投稿リストブロックのカード型とサムネイル型を4列表示にする */
@media (min-width: 960px) {
  .-col4 .-type-card.-pc-col3 .p-postList__item, .-col4 .-type-thumb.-pc-col3 .p-postList__item{
    width: calc(100% / 4);
  }
}

/* カバーを画像本来の比率で表示 */
.original-ratio-cover {
	display: grid !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
}

/* 背景画像を通常の画像と同じように表示 */
.original-ratio-cover .wp-block-cover__image-background {
	position: relative !important;
	inset: auto !important;
	grid-area: 1 / 1;
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
	display: block !important;
}

/* 文字を画像の上に重ねる */
.original-ratio-cover .wp-block-cover__inner-container {
	grid-area: 1 / 1;
	position: relative !important;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
}



/* 区切り線：太さ・長さを自由に変更 */
.custom-separator {
	height: 10px !important;
	background: #333 !important;
	border: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.separator-short {
	width: 23% !important;
	max-width: none !important;
	height: 6px !important;
	border: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.separator-medium {
	width: 30% !important;
	max-width: none !important;
	height: 6px !important;
	border: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.separator-long {
	width: 36% !important;
	max-width: none !important;
	height: 6px !important;
	border: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* 投稿タイトル背景画像の縦横比 */
.l-topTitleArea {
	height: auto !important;
	aspect-ratio: 2.45 / 1 !important;
}

.l-topTitleArea__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

/* 投稿タイトル文字サイズ */
#top_title_area .c-postTitle__ttl {
	font-size: 40px !important;
}

/* 固定ページのタイトル文字サイズ */
.page .c-pageTitle {
	font-size: 40px !important;
}

/* アーカイブページだけPCで4列 */
@media (min-width: 960px) {

  .p-archiveContent > .p-postList.-type-card {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .p-archiveContent > .p-postList.-type-card > .p-postList__item {
    width: 25% !important;
  }
}

/* 強制固定（パララックス） */
.goodsite-sticky {
	position: sticky;
	top: 100px;
	align-self: flex-start;
}

@media (max-width: 767px) {
	.goodsite-sticky {
		position: static;
	}
}

/* Contactの正方形ボタン */
.contact-square {
	width: 190px;
	height: 190px;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0;
}

.contact-square a {
	color: #fff !important;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;

	/* 四角全体をクリック可能にする */
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 横の矢印 */
.contact-arrow {
	font-size: 90px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
}

/* 関連記事ブロックを左寄せ */
.p-blogCard {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ========================================
   WEB DESIGN：黒背景の投稿リスト
   タイトル・抜粋・日付の文字色を変更
======================================== */

.white-post-list .p-postList__title {
    color: #fff;
}

/* 投稿の抜粋文 */
.white-post-list .p-postList__excerpt {
    color: #ddd;
}

/* 投稿日 */
.white-post-list .p-postList__meta {
    color: #999;
}

/* ========================================
   横型投稿カード
======================================== */

/* カード全体 */
.blog-list-horizontal .p-postList__link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box !important;
}

/* 左：画像エリア */
.blog-list-horizontal .p-postList__thumb {
    width: 40% !important;
    flex: 0 0 40% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ★ SWELLの画像部分を正方形にする */
.blog-list-horizontal .c-postThumb__figure {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* 画像を正方形いっぱいに表示 */
.blog-list-horizontal .c-postThumb__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 右：文章 */
.blog-list-horizontal .p-postList__body {
    flex: 1 1 0 !important;
    width: auto !important;
    padding: 20px !important;
    margin: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

/* 文字を黒 */
.blog-list-horizontal .p-postList__body,
.blog-list-horizontal .p-postList__body * {
    color: #222 !important;
}

/* ========================================
   スマホ用：リッチカラム・サービスカード
   左画像を正方形にして左右を揃える
======================================== */

/* リッチカラム */
.service-card .swell-block-columns__inner {
    align-items: stretch !important;
}

/* 左右のカラム */
.service-card .swell-block-column {
    margin: 0 !important;
}

/* 左カラム：正方形 */
.service-card .swell-block-column:first-child {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

/* 左カラム内の画像ブロック */
.service-card .swell-block-column:first-child figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* 左の画像 */
.service-card .swell-block-column:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 右カラム */
.service-card .white-card {
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* 右カラム内の文章 */
.service-card .white-card p {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    color: #222 !important;
}

/* 文字色 */
.service-card .white-card,
.service-card .white-card * {
    color: #222 !important;
}

/*======================
 * H3デザインをH2にも適応
 * =====================*/
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
    padding: 0 .5em .5em;
}
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
    content: "";
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color_htag) 0%, var(--color_htag) 29.3%, rgba(150, 150, 150, .2) 29.3%, rgba(150, 150, 150, .2) 100%);
}
.post_content h2:before {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    z-index: 0;
}