@charset "UTF-8";
/* ==========================================================
   株式会社良美工業  top.css
   TOPページ (index.html) 専用のスタイル
   ( KV / 業務内容 / TOPのブログ一覧 )

   デザインカンプ幅: 1920px
   ブレークポイント
     PC            : 1025px 以上
     タブレット縦  : 768px 〜 1024px
     スマホ        : 767px 以下
   読み込み順: common.css の後に、このファイル(top.css)を読み込む
   ========================================================== */

/* ==========================================================
   PC
   ========================================================== */

/* ---------- kv ---------- */
.kv {
	position: relative;
	height: clamp(480px, 44.58vw, 856px);
	background: url(../images/top/kv01.jpg) center top/cover no-repeat;
}

.kv__catch {
	position: absolute;
	left: 0;
	top: 48.25%;
	width: 100%;
	height: 16.36%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	background: rgba(0, 33, 50, .8);
	color: #fff;
	font-size: clamp(28px, 2.29vw, 44px);
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.3;
	text-align: center;
	text-wrap: balance;
}

/* ---------- main ---------- */
.main {
	position: relative;
	background: url(../images/top/bg02.jpg) center top/1920px auto no-repeat var(--bg);
	overflow: hidden;
}

.main::before {
	/* 左の縦ロゴ文字 */
	content: "";
	position: absolute;
	left: 0;
	top: 55px;
	width: 185px;
	height: 1105px;
	background: url(../images/top/bg01.png) left top no-repeat;
	pointer-events: none;
}

.heading__ja--only {
	font-size: 30px;
	font-weight: 400;
	letter-spacing: .06em
}

.btnWrap {
	text-align: center
}

/* ---------- SERVICE ---------- */
.service {
	position: relative;
	padding-bottom: 86px
}

.service .heading {
	padding-top: 71px
}

.service__main {
	position: relative;
	width: min(1240px, calc(100% - 80px));
	margin: 37px auto 0;
	display: flex;
	align-items: flex-start;
}

.service__lead {
	position: relative;
	z-index: 1;
	flex: 0 0 43.548%;
	/* 540 / 1240 */
	align-self: stretch;
	margin: 20px 0;
	padding: 34px 60px 0 40px;
	background: var(--teal);
	color: #fff;
}

.service__lead::after {
	/* 右側の濃い帯 */
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 100%;
	background: var(--teal-dark);
}

.service__leadTitle {
	position: relative;
	padding-left: 20px;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.38;
	letter-spacing: .05em;
}

.service__leadTitle::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 8px;
	background: var(--yellow);
}

.service__leadText {
	margin-top: 24px;
	font-size: 18px;
	line-height: 2;
	letter-spacing: .05em;
	text-align: justify;
}

.service__photo {
	position: relative;
	z-index: 0;
	margin-left: -20px;
	flex: 1 1 0;
	min-width: 0;
	aspect-ratio: 3/2;
	border-radius: 36px;
	overflow: hidden;
}

.service__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.service__list {
	width: min(1120px, calc(100% - 80px));
	margin: 60px auto 0;
	display: flex;
	justify-content: space-between;
}

.service__list li {
	width: 22.857%
}

/* 256 / 1120 */
.service__list li h3 {
	position: relative;
	padding-top: 20px;
	text-align: center;
	font-size: clamp(19px, 1.3vw, 25px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .04em;
	height: 70px;
}

.service__list li h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(to right, var(--teal) 50%, var(--yellow) 50%);
}

.service__list li img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	border-radius: 30px
}

.service__list li p {
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	text-align: justify
}

.about .btnWrap {
	margin-top: 61px
}

/* ---------- BLOG ---------- */
.blog {
	position: relative;
	padding-bottom: 80px
}

.blog .heading {
	padding-top: 76px
}

.blog__list {
	width: min(1120px, calc(100% - 80px));
	margin: 46px auto 0;
	display: flex;
	justify-content: space-between;
}

.blog__list li {
	width: 28.571%
}

/* 320 / 1120 */
.blog__list img {
	width: 100%;
	height: auto;
	aspect-ratio: 320/260;
	border-radius: 40px;
	object-fit: cover
}

.blog__list h3 {
	margin-top: 14px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0
}

.blog__list p {
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.5;
	color: #444;
	letter-spacing: 0;
	text-align: justify
}

.blog__list a {
	display: block
}

.blog__list a:hover {
	opacity: .75
}

.blog .btnWrap {
	margin-top: 57px
}

/* ==========================================================
   PC: 幅が1366px以下のとき
   ========================================================== */
@media (max-width: 1366px) {

	.main::before {
		display: none
	}
}

/* ==========================================================
   PC: 幅が1280px以下のとき (1025px〜1280px)
   ========================================================== */
@media (max-width: 1280px) {

	.service__lead {
		padding: 28px 48px 28px 28px
	}

	.service__leadTitle {
		font-size: 21px
	}

	.service__leadText {
		margin-top: 16px;
		font-size: 14.5px;
		line-height: 1.85;
		letter-spacing: .03em
	}

	.service__list li p {
		font-size: 14px
	}

	.blog__list h3 {
		font-size: 17px
	}

	.blog__list p {
		font-size: 15px
	}
}

/* ==========================================================
   タブレット縦 (768px〜1024px)
   ========================================================== */
@media (max-width: 1024px) {

	/* kv */
	.kv {
		height: 520px;
		background-position: 58% center
	}

	.kv__catch {
		top: auto;
		bottom: 90px;
		height: auto;
		padding: 26px 30px;
		font-size: 30px;
		line-height: 1.5;
	}

	.heading__ja--only {
		font-size: 26px
	}

	.main {
		background-size: 1400px auto
	}

	.main::before {
		display: none
	}

	/* service */
	.service {
		padding-bottom: 60px
	}

	.service .heading {
		padding-top: 60px
	}

	.service__main {
		flex-direction: column;
		align-items: stretch;
		width: calc(100% - 80px);
		margin-top: 32px;
	}

	.service__photo {
		order: 1;
		flex: none;
		margin: 0;
		width: 100%;
		border-radius: 30px
	}

	.service__lead {
		order: 2;
		flex: none;
		align-self: auto;
		width: calc(100% - 24px);
		margin: -44px 0 0;
		padding: 32px 48px 36px 32px;
	}

	.service__leadTitle {
		font-size: 24px
	}

	.service__leadText {
		margin-top: 18px;
		font-size: 16px;
		line-height: 1.95;
		letter-spacing: .04em
	}

	.service__list {
		width: calc(100% - 80px);
		margin-top: 48px;
		flex-wrap: wrap;
		justify-content: space-between;
		row-gap: 40px;
	}

	.service__list li {
		width: calc(50% - 16px)
	}

	.service__list li h3 {
		font-size: 22px;
		height: 62px;
		padding-top: 17px
	}

	.service__list li img {
		border-radius: 24px
	}

	.service__list li p {
		font-size: 15px
	}

	.about .btnWrap {
		margin-top: 44px
	}

	/* blog */
	.blog {
		padding-bottom: 64px
	}

	.blog .heading {
		padding-top: 60px
	}

	.blog__list {
		width: calc(100% - 80px);
		margin-top: 36px;
		gap: 24px;
		justify-content: space-between
	}

	.blog__list li {
		width: calc((100% - 48px) / 3)
	}

	.blog__list img {
		border-radius: 28px
	}

	.blog__list h3 {
		font-size: 16px
	}

	.blog__list p {
		font-size: 14px
	}

	.blog .btnWrap {
		margin-top: 44px
	}
}

/* ==========================================================
   スマホ (〜767px)
   ========================================================== */
@media (max-width: 767px) {

	/* kv */
	.kv {
		height: 420px;
		background-position: 60% center
	}

	.kv__catch {
		bottom: 56px;
		padding: 18px 16px;
		font-size: 19px;
		line-height: 1.55;
		letter-spacing: .04em;
	}

	.heading__ja--only {
		font-size: 23px
	}

	.main {
		background-size: 900px auto
	}

	/* service */
	.service {
		padding-bottom: 48px
	}

	.service .heading {
		padding-top: 50px
	}

	.service__main {
		width: calc(100% - 40px);
		margin-top: 26px
	}

	.service__photo {
		border-radius: 20px
	}

	.service__lead {
		width: calc(100% - 12px);
		margin-top: -28px;
		padding: 22px 30px 26px 18px;
	}

	.service__lead::after {
		width: 12px
	}

	.service__leadTitle {
		padding-left: 14px;
		font-size: 19px;
		line-height: 1.45
	}

	.service__leadTitle::before {
		width: 6px
	}

	.service__leadText {
		margin-top: 14px;
		font-size: 14px;
		line-height: 1.9;
		letter-spacing: .02em
	}

	.service__list {
		width: calc(100% - 40px);
		margin-top: 36px;
		flex-direction: column;
		align-items: center;
		row-gap: 32px;
	}

	.service__list li {
		width: 100%;
		max-width: 340px
	}

	.service__list li h3 {
		font-size: 20px;
		height: 56px;
		padding-top: 15px
	}

	.service__list li img {
		border-radius: 20px
	}

	.service__list li p {
		font-size: 14px;
		margin-top: 12px
	}

	.about .btnWrap {
		margin-top: 32px
	}

	/* blog */
	.blog {
		padding-bottom: 48px
	}

	.blog .heading {
		padding-top: 50px
	}

	.blog__list {
		width: calc(100% - 40px);
		margin-top: 28px;
		flex-direction: column;
		align-items: center;
		gap: 32px;
	}

	.blog__list li {
		width: 100%;
		max-width: 340px
	}

	.blog__list img {
		border-radius: 24px
	}

	.blog__list h3 {
		font-size: 16px;
		margin-top: 12px
	}

	.blog__list p {
		font-size: 14px
	}

	.blog .btnWrap {
		margin-top: 36px
	}
}

