@charset "UTF-8";
/* CSS Document */

.works-header{
	width: 100%;
	/*border-top: 1px solid #999;*/
}
.works-header .inner{
	padding-top: 30px;
	padding-bottom: 30px;
}
.works-header h1{
	font-size: 1.8rem;
	line-height: 1.4;
	font-weight: 500;
	font-feature-settings: "palt" 1;
}
@media (min-width:768px){
	.works-header h1{
		font-size: 2.6rem;
	}
}

.works-gallery-bg{
	background: #EDEDED;
}

.works-gallery-wrap {
	/*max-width: 1100px;*/ /* デザインに合わせて調整 */
	margin: 0 auto 40px;
}
/* メインスライダー */
.works-main-slider {
	max-width: 1060px;
	aspect-ratio: 4 / 3; /* アスペクト比を固定（例：16:10） */
	margin-bottom: 12px;
	overflow: hidden;
	background: #EDEDED;
}
.works-main-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* サムネイルスライダー */
.works-thumb-slider {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}
/* 2. 中身（ラッパー）：枚数が少ない時に中央寄せにする */
.works-thumb-slider .swiper-wrapper {
	display: flex !important;
	justify-content: center !important;
}
/* サムネイルの各枠 */
.works-thumb-slider .swiper-slide {
	width: 70px; /* ★お好みの幅を指定 */
	aspect-ratio: 4 / 3; /* ★これで強制的に正方形（1:1）になります */
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.3s;
	overflow: hidden; /* はみ出し防止 */
	border-radius: 0px; /* お好みで角丸に */
}
/* 中の画像 */
.works-thumb-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* ★画像が潰れずに綺麗にトリミングされます */
}
/* 選択中のスタイル */
.works-thumb-slider .swiper-slide-thumb-active {
	opacity: 1;
}
/* ★4. これが超重要！最後のスライドの右余白を消して真の中央にする */
.works-thumb-slider .swiper-wrapper .swiper-slide:last-child {
	margin-right: 0 !important;
}
/* --- ドット（pagination）の基本位置調整 --- */
.works-main-slider .swiper-pagination {
	bottom: 10px; /* 画像下部からの位置 */
}
/* 左右矢印の色変え デフォのスタイルを上書き*/
.swiper-button-next, .swiper-button-prev{
	color: #FFF!important;
	text-shadow: 0px 0px 10px #000000;
}

/* --- 768px以上（PC時） --- */
@media screen and (min-width: 768px) {
	/* PCではドットを隠す */
	.works-main-slider .swiper-pagination {
		display: none;
	}
}
/* --- 768px未満（スマホ時） --- */
@media screen and (max-width: 767px) {
	/* スマホではサムネイルを隠す */
	.works-thumb-slider {
		display: none;
	}
	/* メインスライダーのはみ出しを許可し、下部にドット用の余白を作る */
	.works-main-slider {
		overflow: visible; /* ★はみ出しを許可 */
		margin-bottom: 50px; /* ★ドットが収まる分の余白を下に確保 */
	}
	/* ドットの位置を枠外（マイナス値）へ押し出す */
	.works-main-slider .swiper-pagination {
		bottom: -35px; /* ★お好みの位置に調整してください */
	}
	/* スマホでは左右矢印も邪魔なら隠す（お好みで） */
	.works-main-slider .swiper-button-next, .works-main-slider .swiper-button-prev {
		display: none;
	}
	/* ドットの基本スタイル調整 */
	.works-main-slider .swiper-pagination-bullet {
		background: #333; /* ドットの色（未選択時） */
		opacity: 0.3;
	}
	/* 選択中のドット */
	.works-main-slider .swiper-pagination-bullet-active {
		background: #519480; /* 選択時の色（ブランドカラー等） */
		opacity: 1;
	}
}

.works-summary h2{
	font-size: 2rem;
	background: #F0F0F0;
	padding: 0.75em 1.00em;
	margin: 4em 0 1.5em;
	position: relative;
	font-weight: 500;
}
.works-summary h2::before{
	content:'';
	display: block;
	background: #006717;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 5px;
	height: 100%;
	z-index: 0;
}

.works-summary > div h2:first-child {
  margin-top: 0;
}


.works-summary__entry{
	margin: 0 0 4em;
}
.works-summary__entry {
	font-size: 1.6rem;
	line-height: 1.5;
}

.works-summary__spec{
	font-size: 1.6rem;
	width: 100%;
}
.works-summary__spec tr{
	border-top: 1px solid #ACACAC;
}
.works-summary__spec tr:last-child{
	border-bottom: 1px solid #ACACAC;
}
.works-summary__spec th,
.works-summary__spec td{
	padding: 0.75em 1em;
}
.works-summary__spec th{
	font-weight: 500;
	background: #F0F0F0;
	white-space: nowrap;
	width: 1%;
	border-right: 1px solid #ACACAC;
}


/*========================================
	実績投稿 前後ナビ
========================================*/
/*ナビのラップ*/
.works-post-nav{
	border: 1px solid #ACACAC;
	margin: 0;
	font-size: 1.4rem;
	position: relative;
	margin-top: 75px;
}
/*中央の分割線*/
.works-post-nav::after{
	content: '';
	display: block;
	width: 1px;
	height: 100%;
	background: #ACACAC;
	position: absolute;
	top: 0;
	left: 50%;
}
/*flex*/
.works-post-nav .nav-links{
	display: flex;
	margin: 0;
}
/*flex子要素を同じ幅に*/
.works-post-nav .nav-links > div{
	flex: 1;
}
/*子要素の中のaをブロック要素に*/
.works-post-nav a{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 35px;
	height: 100%;
	position: relative;
}
.works-post-nav a:hover{
	background: #F0F0F0;
}
/*左右でpaddingを調整*/
.nav-previous a{
	padding-left: 50px;
}
.nav-next a{
	padding-right: 50px;
}

/*矢印アイコン*/
.works-post-nav a::before{
	font-family: 'Material Symbols Outlined';
	color: #ACACAC;
	font-size: 2rem;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.nav-previous a::before{
	content: '\e5e0';
	left: 12%;
}
.nav-next a::before{
	content: '\e5e1';
	right: 12%;
}

/*次の実績・前の実績*/
.nav-title{
	display: none;
}
@media (min-width:768px){
	/*次の実績・前の実績*/
	.nav-label{
		display: none;
	}
	.nav-title{
		display: inline;
	}
	/*左右でpaddingを調整*/
	.nav-previous a{
		padding-left: 70px;
	}
	.nav-next a{
		padding-right: 70px;
	}
	.nav-previous a::before{
		left: 7%;
	}
	.nav-next a::before{
		right: 7%;
	}
}

/*========================================
	片方しか記事がない場合の補正（最終決定版）
========================================*/

/* 次の実績（右側）しか存在しない場合（最新の記事にいるとき） */
.works-post-nav .nav-links > .nav-next:first-child {
	width: 50%;
	margin-left: 50%; /* 親要素の後半50%の位置に強制配置 */
	flex: none;      /* flex: 1 による幅100%拡大を無効化 */
}

/* 前の実績（左側）しか存在しない場合（最古の記事にいるとき） */
.works-post-nav .nav-links > .nav-previous:last-child {
	width: 50%;
	margin-right: 50%; /* 親要素の前半50%の位置に留める */
	flex: none;       /* flex: 1 による幅100%拡大を無効化 */
}


/*========================================
	実績一覧へ戻るボタン
========================================*/

.works-back-btn a{
	display:block;
	text-align: center;
	border: 1px solid #ACACAC;
	width: fit-content;
	margin: 30px auto 0;
	padding: 1em 2em;
	border-radius: 9999px;
}
.works-back-btn a:before{
	content: '\e896';
	font-family: 'Material Symbols Outlined';
	font-size: 22px;
	line-height: 0;
	vertical-align: -5px;
	margin: 0 0.5em 0 0;
	color:  #999;
}
.works-back-btn a:hover{
	background: #F0F0F0;
}


/**/

/* Section Separator---------------------------------------------------------

　archive-works

----------------------------------------------------------------------------*/

.works-tabs{
  font-size: 1.2rem;
  padding-inline: 20px;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
  gap: 0 0.5em;
}
.works-tabs li{
  color: #898989;
}
.works-tabs li:not(:last-child):after {
  content: '|';
  margin-left: 0.5em;
  color: #CCC;
}
.works-tabs li a[aria-current="page"] {
  font-weight: 600;
  color: var(--main-color);
}
@media (min-width:768px){
  .works-tabs{
    font-size: 1.4rem;
  }
}


/* 一覧を囲むグリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* スマホは1列 */
  gap: 32px 32px; /* 上下の余白 左右の余白 32px 24px; */
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0 20px;
}

/* タブレットサイズ（768px以上）：2列 */
@media (min-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PCサイズ（1024px以上）：3列 */
@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カード全体 */
.works-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時の挙動 */
.works-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* サムネイル画像枠 */
.works-card__img {
  aspect-ratio: 4 / 3; /* 16:9 の縦横比に固定 */
  overflow: hidden;
  background-color: #f0f0f0;
}

.works-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の比率を崩さずトリミング */
  transition: transform 0.3s ease;
}

.works-card a:hover .works-card__img img {
  transform: scale(1.05); /* ホバー時に画像を少し拡大 */
}

/* テキストエリア */
.works-card__body {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* タイトル */
.works-card__title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  /* 2行を超えるテキストは「…」で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
	font-feature-settings: "palt" 1;
}

.works-card__meta{
	display: flex;
	justify-content: space-between;
	margin: 0 0 0.75em;
}

.works-card__cat{
	display: flex;
	gap: 0 0.5em;
}
.works-card__cat li{
	background: #EAEAEA;
	color: #4C4C4C;
	font-size: 1.2rem;
	line-height: 2;
	padding: 0px 10px;
	border-radius: 9999px;
}
.works-card__date{
	font-size: 1.4rem;
	color: #454545;
}
