@charset "UTF-8";

/*メインイメージ▼*/

.mainImg {
	background-image: url("../../img/work/work_main.png");
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	max-width: 100%;
	height: 200px;
	object-fit: contain;
}

.mainImg-title {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%);
	color: #F3F3F3;
	font-size: 1.8rem;
	padding-bottom: 5px;
}

.subtitle {
	display: block;
	color: #fff;
	font-size: 0.8rem;
	border-top: 1px solid #1131C4;
	text-align: center;
	margin-top: 5px;
	padding-top: 5px;
}

/*コンテンツ▼*/

#inner {
	min-width: 360px;
	margin: 50px auto;
	width: 96%;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gallery-item img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
}

/* スマホ用にコンパクトで可読性の高いサイズに固定 */
.gallery-title {
  font-size: 1.125rem; /* 18px 程度 */
  line-height: 1.35;
  margin-bottom: 16px;
  padding-left: 12px;
  padding-right: 12px;
}

/* カード内タイトル（スマホではやや大きめで読みやすく） */
figure.card .title {
  font-size: 1rem; /* 16px */
  line-height: 1.4;
  margin-bottom: 6px;
  padding-right: 12px;
  padding-left: 12px;
}

/* メタ情報（小さめだが可読） */
figure.card .meta {
  font-size: 0.9rem; /* 14.4px */
  line-height: 1.4;
  color: #6b7280;
  padding-right: 12px;
  padding-left: 12px;
}

/* figcaption の上下余白をやや増やしてタッチしやすく */
figure.card figcaption {
  padding-top: 12px;
  padding-bottom: 14px;
}

/* 行折返しと長テキスト対策 */
.title, .meta {
  word-break: break-word;
  overflow-wrap: break-word;
}