/*
Theme Name:   Twenty Seventeen 飾東電機
Template:     twentyseventeen
Description:  飾東電機株式会社（shikito.net）用の Twenty Seventeen 子テーマ。親テーマに直接加えていたカスタマイズを移したもの。
Version:      1.1.0
Text Domain:  twentyseventeen-shikito
*/

/*
 * 親テーマの基本スタイルは assets/css/parent-style.css（2026年9月時点の shikito.net の style.css の写し）から読み込む。
 * このファイルには、今後の子テーマ独自の追加スタイルを書く。
 */

/* ==========================================================================
   トップページ リニューアル案（.shikito-top 内だけに効く）
   ========================================================================== */

body:has(.shikito-top) .custom-header-media {
	display: none;
}

body:has(.shikito-top) .site-content {
	padding-top: 0;
}

.shikito-top {
	--st-navy: #1d2b3a;
	--st-red: #b3262d;
	--st-ink: #1a1a1a;
	--st-sub: #444;
	--st-line: #d9d6d0;
	--st-soft: #f4f2ee;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	color: var(--st-ink);
	line-height: 1.8;
}

.shikito-top * {
	box-sizing: border-box;
}

.shikito-top a {
	box-shadow: none;
}

.shikito-top .st-in {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.shikito-top .st-btn {
	display: inline-block;
	background: var(--st-red);
	color: #fff;
	border-radius: 6px;
	padding: 12px 22px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
}

.shikito-top .st-btn:hover,
.shikito-top .st-btn:focus {
	color: #fff;
	opacity: .88;
}

.shikito-top .st-btn--ghost {
	background: transparent;
	border: 2px solid #fff;
}

.shikito-top .st-btn--navy {
	background: var(--st-navy);
}

/* ヒーロー */
.shikito-top .st-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: center;
	background: var(--st-navy) url(https://shikito.net/wp-content/uploads/2021/06/DJI_0002-1-1536x1024.jpg) center 60% / cover no-repeat;
}

.shikito-top .st-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 24, 34, .9) 0%, rgba(15, 24, 34, .65) 55%, rgba(15, 24, 34, .15) 100%);
}

.shikito-top .st-hero .st-in {
	position: relative;
	width: 100%;
	color: #fff;
	padding-top: 56px;
	padding-bottom: 56px;
}

.shikito-top .st-badge {
	display: inline-block;
	border: 2px solid #fff;
	border-radius: 999px;
	padding: 3px 16px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .05em;
}

.shikito-top .st-hero h2 {
	color: #fff;
	font-size: 46px;
	line-height: 1.35;
	font-weight: 700;
	margin: 16px 0 12px;
	letter-spacing: .02em;
}

.shikito-top .st-hero p {
	font-size: 18px;
	margin: 0 0 24px;
	max-width: 560px;
}

.shikito-top .st-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.shikito-top .st-tel {
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
	white-space: nowrap;
}

/* 数字 */
.shikito-top .st-nums {
	background: var(--st-navy);
	color: #fff;
}

.shikito-top .st-nums ul {
	list-style: none;
	margin: 0 auto;
	padding: 0 20px;
	max-width: 1080px;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	text-align: center;
}

.shikito-top .st-nums li {
	padding: 24px 6px;
	border-right: 1px solid rgba(255, 255, 255, .2);
}

.shikito-top .st-nums li:last-child {
	border-right: 0;
}

.shikito-top .st-nums b {
	display: block;
	font-size: 32px;
	line-height: 1.2;
}

.shikito-top .st-nums small {
	font-size: 16px;
}

.shikito-top .st-nums span {
	font-size: 14px;
	opacity: .92;
}

/* セクション */
.shikito-top .st-sec {
	padding: 64px 0;
}

.shikito-top .st-sec--soft {
	background: var(--st-soft);
}

.shikito-top .st-sec h3 {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: var(--st-ink);
	margin: 0 0 4px;
	padding: 0;
	letter-spacing: .02em;
	text-transform: none;
}

.shikito-top .st-en {
	text-align: center;
	color: var(--st-red);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .18em;
	margin: 0 0 28px;
}

.shikito-top .st-grid3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.shikito-top .st-card {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	overflow: hidden;
}

.shikito-top .st-card img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	max-width: none;
}

.shikito-top .st-card div {
	padding: 16px 18px 20px;
}

.shikito-top .st-card h4,
.shikito-top .st-work h4,
.shikito-top .st-plant h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--st-ink);
	margin: 0 0 6px;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
}

.shikito-top .st-card p,
.shikito-top .st-work p,
.shikito-top .st-plant p {
	margin: 0;
	font-size: 15px;
	color: var(--st-sub);
}

.shikito-top .st-work {
	background: #fff;
	border-top: 4px solid var(--st-red);
	padding: 18px 20px;
}

.shikito-top .st-center {
	text-align: center;
	margin-top: 28px;
}

.shikito-top .st-flow {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	counter-reset: st-step;
}

.shikito-top .st-flow li {
	background: #fff;
	border: 2px solid var(--st-navy);
	border-radius: 8px;
	padding: 16px 12px;
	text-align: center;
	font-weight: 700;
	font-size: 17px;
}

.shikito-top .st-flow li::before {
	counter-increment: st-step;
	content: "STEP " counter(st-step);
	display: block;
	color: var(--st-red);
	font-size: 13px;
	letter-spacing: .1em;
}

.shikito-top .st-flow small {
	display: block;
	font-weight: 400;
	font-size: 14px;
	color: var(--st-sub);
}

.shikito-top .st-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.shikito-top .st-plant img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
	max-width: none;
	margin-bottom: 12px;
}

/* 採用 */
.shikito-top .st-recruit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: #fff3f1;
}

.shikito-top .st-recruit img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	max-width: none;
}

.shikito-top .st-recruit > div {
	padding: 44px 40px;
}

.shikito-top .st-recruit .st-en {
	text-align: left;
	margin: 0;
}

.shikito-top .st-recruit h3 {
	text-align: left;
	margin: 6px 0 12px;
}

.shikito-top .st-recruit ul {
	margin: 0 0 20px 1.2em;
	padding: 0;
	font-size: 16px;
}

.shikito-top .st-recruit .st-tel {
	color: var(--st-navy);
	margin-left: 8px;
}

/* お知らせ */
.shikito-top .st-news {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.shikito-top .st-news h4 {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: var(--st-navy);
	border-radius: 6px 6px 0 0;
	margin: 0;
	padding: 8px 14px;
	letter-spacing: 0;
	text-transform: none;
}

.shikito-top .st-posts {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.shikito-top .st-posts li {
	border-bottom: 1px solid var(--st-line);
	padding: 10px 2px;
	font-size: 15px;
	line-height: 1.6;
}

.shikito-top .st-posts time {
	display: block;
	color: var(--st-sub);
	font-size: 13px;
}

.shikito-top .st-posts a,
.shikito-top .st-more a,
.shikito-top .st-links a {
	color: var(--st-ink);
	text-decoration: underline;
}

.shikito-top .st-more {
	text-align: right;
	font-size: 14px;
	margin: 0;
}

.shikito-top .st-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 32px;
}

.shikito-top .st-links a {
	display: block;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	padding: 12px 18px;
	font-weight: 700;
	background: #fff;
	text-decoration: none;
	color: var(--st-navy);
}

/* スマホ用の固定ボタン */
.shikito-top .st-fixbar {
	display: none;
}

@media (max-width: 767px) {
	.shikito-top .st-hero {
		min-height: 0;
	}

	.shikito-top .st-hero h2 {
		font-size: 30px;
	}

	.shikito-top .st-hero p {
		font-size: 16px;
	}

	.shikito-top .st-nums ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shikito-top .st-nums li {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .2);
		padding: 16px 4px;
	}

	.shikito-top .st-nums b {
		font-size: 26px;
	}

	.shikito-top .st-sec {
		padding: 44px 0;
	}

	.shikito-top .st-sec h3 {
		font-size: 24px;
	}

	.shikito-top .st-grid3,
	.shikito-top .st-grid2,
	.shikito-top .st-news,
	.shikito-top .st-recruit {
		grid-template-columns: 1fr;
	}

	.shikito-top .st-flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shikito-top .st-recruit > div {
		padding: 28px 20px;
	}

	.shikito-top .st-recruit img {
		min-height: 200px;
	}

	.shikito-top .st-fixbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
	}

	.shikito-top .st-fixbar a {
		padding: 14px 8px;
		text-align: center;
		font-weight: 700;
		font-size: 16px;
		color: #fff;
		text-decoration: none;
		background: var(--st-navy);
	}

	.shikito-top .st-fixbar a + a {
		background: var(--st-red);
	}

	body:has(.shikito-top .st-fixbar) {
		padding-bottom: 52px;
	}
}

/* 画面幅いっぱいの帯で横スクロールが出ないようにする */
html:has(.shikito-top),
body:has(.shikito-top) {
	overflow-x: clip;
}

.shikito-top .st-recruit h3 {
	font-size: 28px;
	font-weight: 700;
	color: var(--st-ink);
	padding: 0;
	letter-spacing: .02em;
	text-transform: none;
}

@media (max-width: 767px) {
	.shikito-top .st-recruit h3 {
		font-size: 24px;
	}
}

/* ヒーローの背景動画（YouTube）。読み込むまでは背景の写真が見える */
.shikito-top .st-hero-video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	container-type: size;
	pointer-events: none;
}

.shikito-top .st-hero-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	transform: translate(-50%, -50%);
	border: 0;
	max-width: none;
}

.shikito-top .st-hero::before {
	z-index: 1;
}

.shikito-top .st-hero .st-in {
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.shikito-top .st-hero-video {
		display: none;
	}
}

/* ==========================================================================
   トップページ リニューアル案の動き（JS が .st-anim を付けたときだけ有効）
   ========================================================================== */

/* スクロールで表示 */
.shikito-top.st-anim .st-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease var(--st-delay, 0ms), transform .7s ease var(--st-delay, 0ms), translate .25s ease, box-shadow .25s ease;
}

.shikito-top.st-anim .st-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* 最初の画面 */
@keyframes st-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.shikito-top.st-anim .st-hero .st-in > * {
	animation: st-up .9s ease both;
}

.shikito-top.st-anim .st-hero .st-in > :nth-child(1) {
	animation-delay: .1s;
}

.shikito-top.st-anim .st-hero .st-in > :nth-child(2) {
	animation-delay: .3s;
}

.shikito-top.st-anim .st-hero .st-in > :nth-child(3) {
	animation-delay: .5s;
}

.shikito-top.st-anim .st-hero .st-in > :nth-child(4) {
	animation-delay: .7s;
}

@keyframes st-bounce {
	0%,
	100% {
		transform: translate(-50%, 0) rotate(45deg);
		opacity: .5;
	}

	50% {
		transform: translate(-50%, 8px) rotate(45deg);
		opacity: 1;
	}
}

.shikito-top.st-anim .st-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 2;
	width: 14px;
	height: 14px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	animation: st-bounce 2s ease-in-out infinite;
}

/* カード・写真・ボタン */
.shikito-top .st-card,
.shikito-top .st-work {
	transition: translate .25s ease, box-shadow .25s ease;
}

.shikito-top .st-card:hover,
.shikito-top .st-work:hover {
	translate: 0 -4px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.shikito-top .st-card img,
.shikito-top .st-plant img,
.shikito-top .st-recruit img {
	transition: transform .6s ease;
}

.shikito-top .st-card:hover img,
.shikito-top .st-plant a:hover img {
	transform: scale(1.05);
}

.shikito-top .st-plant a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 12px;
}

.shikito-top .st-plant a img {
	margin-bottom: 0;
}

.shikito-top .st-btn {
	transition: translate .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.shikito-top .st-btn:hover,
.shikito-top .st-btn:focus {
	translate: 0 -2px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

/* 依頼の流れの矢印 */
.shikito-top .st-flow li {
	position: relative;
}

.shikito-top .st-flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -11px;
	z-index: 1;
	border: 6px solid transparent;
	border-left-color: var(--st-red);
	transform: translateY(-50%);
}

@media (max-width: 767px) {
	.shikito-top .st-flow li:not(:last-child)::after {
		display: none;
	}

	.shikito-top.st-anim .st-hero::after {
		display: none;
	}
}

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
	.shikito-top *,
	.shikito-top *::before,
	.shikito-top *::after {
		animation: none !important;
		transition: none !important;
	}

	.shikito-top .st-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   お知らせのスライドショー／活動報告・社長ブログの2列
   ========================================================================== */

.shikito-top .st-subhead {
	font-size: 20px;
	font-weight: 700;
	color: var(--st-ink);
	margin: 0 0 14px;
	padding: 0 0 0 12px;
	border-left: 6px solid var(--st-red);
	letter-spacing: 0;
	text-transform: none;
}

.shikito-top .st-slider {
	position: relative;
}

.shikito-top .st-slider-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 2px 12px;
}

.shikito-top .st-slider-track::-webkit-scrollbar {
	display: none;
}

.shikito-top .st-slider-track:focus-visible {
	outline: 3px solid var(--st-red);
	outline-offset: 4px;
}

.shikito-top .st-slide {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	overflow: hidden;
	transition: translate .25s ease, box-shadow .25s ease;
}

.shikito-top .st-slide:hover {
	translate: 0 -4px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.shikito-top .st-slide a {
	display: block;
	color: var(--st-ink);
	text-decoration: none;
}

.shikito-top .st-slide-img {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--st-soft);
	display: grid;
	place-items: center;
}

.shikito-top .st-slide-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	transition: transform .6s ease;
}

.shikito-top .st-slide:hover .st-slide-img img {
	transform: scale(1.05);
}

.shikito-top .st-slide-noimg {
	color: var(--st-navy);
	font-weight: 700;
	font-size: 18px;
	opacity: .6;
}

.shikito-top .st-slide-body {
	padding: 12px 16px 16px;
}

.shikito-top .st-slide-body time {
	display: block;
	color: var(--st-sub);
	font-size: 13px;
}

.shikito-top .st-slide-body h4 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	margin: 4px 0 0;
	padding: 0;
	color: var(--st-ink);
	letter-spacing: 0;
	text-transform: none;
}

.shikito-top .st-slider-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}

.shikito-top .st-slider-nav button {
	min-width: 48px;
	height: 48px;
	border: 2px solid var(--st-navy);
	border-radius: 999px;
	background: #fff;
	color: var(--st-navy);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	padding: 0 14px;
	cursor: pointer;
}

.shikito-top .st-slider-nav .st-slider-toggle {
	font-size: 15px;
}

.shikito-top .st-slider-nav button:hover,
.shikito-top .st-slider-nav button:focus-visible {
	background: var(--st-navy);
	color: #fff;
}

.shikito-top .st-news--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 40px;
}

@media (max-width: 767px) {
	.shikito-top .st-slide {
		flex-basis: 82%;
	}

	.shikito-top .st-news--2 {
		grid-template-columns: 1fr;
	}
}

/* 新デザインをトップページに使うときは、テーマのトップ用の大きなヘッダー枠をなくす */
body.twentyseventeen-front-page:has(.shikito-top) .custom-header {
	display: block;
	height: auto;
	margin-bottom: 0 !important;
}

body.twentyseventeen-front-page:has(.shikito-top) .site-branding {
	display: block;
	height: auto;
	position: static;
	padding: 3em 0;
	margin-bottom: 0 !important;
}

body.twentyseventeen-front-page:has(.shikito-top) .navigation-top {
	position: relative;
	bottom: auto;
}

/* トップのイラスト：ふわっと大きくなりながら登場し、そのあとゆっくり浮かぶ */
@keyframes st-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-8px);
	}
}

.shikito-top.st-anim .st-illust.st-reveal {
	transform: scale(.9);
}

.shikito-top.st-anim .st-illust.st-reveal.is-visible {
	transform: none;
}

.shikito-top.st-anim .st-illust.is-visible img {
	animation: st-float 6s ease-in-out 1s infinite;
}

/* トップのイラスト：スマホでは横幅90％ */
@media (max-width: 767px) {
	.shikito-top .st-illust img {
		width: 90% !important;
	}
}
