/*
 * 目次
 * [CC-01] 基本設定
 * [CC-02] ローディング
 * [CC-03] 共通ヘッダー・メニュー
 * [CC-04] トップ・ファーストビュー
 * [CC-05] 共通セクション・図形タイトル
 * [CC-06] Greeting・Top Message
 * [CC-07] 街並み写真・Service
 * [CC-08] History・Company Overview
 * [CC-09] News
 * [CC-10] フッター
 * [CC-11] 個人情報保護方針
 * [CC-12] 投稿詳細
 * [CC-13] News一覧
 * [CC-14] アクセシビリティ
 * [CC-15] PC版・コンテンツ上下余白
 * [CC-16] スマートフォン
 */
/* [CC-01] 基本設定 */
:root {
	--color-ink: #161616;
	--color-copy: #3d3c3a;
	--color-paper: #dcdcdc;
	--font-sans: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	--font-serif: "Noto Serif JP", "Yu Mincho", serif;
	--font-latin: Roboto, Arial, sans-serif;
	--page-gutter: clamp(24px, 4.8vw, 92px);
	--content-max-width: 1450px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--color-ink);
	background: var(--color-paper);
	font-family: var(--font-sans);
	font-size: clamp(14px, 1.05vw, 18px);
	line-height: 2;
}

body.is-opening, body.is-menu-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.site {
	overflow: hidden;
}

/* [CC-02] ローディング */
.opening {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	height: 100dvh;
	background: var(--color-paper);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .55s ease, visibility .55s ease;
}

.has-opening .opening {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.opening.is-finished {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.opening__inner {
	width: min(96vw, 1458px);
	text-align: center;
}

.opening__logo {
	position: relative;
	width: 100%;
}

.opening__logo img {
	width: 100%;
}

.opening__logo-progress {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: inset(0 100% 0 0);
	will-change: clip-path;
}

.opening__logo-progress img {
	filter: brightness(0);
}

.opening__count {
	margin: clamp(32px, 5vh, 64px) 0 0;
	font-family: var(--font-latin);
	font-size: clamp(2rem, 4vw, 4rem);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* [CC-03] 共通ヘッダー・メニュー */
.site-header {
	position: relative;
	z-index: 100;
	height: clamp(54px, 4.25vw, 68px);
	background: var(--color-ink);
}

/* [CC-03] キャッチコピー通過後にヘッダーを画面上部へ固定 */
.site-header.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	animation: fixed-header-follow-in .72s cubic-bezier(.22, 1, .36, 1) .12s both;
}

body.is-header-fixed .site {
	padding-top: clamp(54px, 4.25vw, 68px);
}

@keyframes fixed-header-follow-in {
	from {
		top: -70px;
		opacity: 0;
	}

	to {
		top: 0;
		opacity: 1;
	}

}

.site-header__home {
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(100% - 110px);
}

.menu-toggle {
	position: absolute;
	top: 50%;
	right: clamp(20px, 4vw, 72px);
	z-index: 102;
	width: 76px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
	position: absolute;
	display: block;
	width: 58px;
	height: 1px;
	background: #d7d7d7;
	transition: width .3s ease, top .3s ease, transform .3s ease, opacity .3s ease;
}

.menu-toggle > span:nth-child(1) {
	top: 2px;
	right: 0;
}

.menu-toggle > span:nth-child(2) {
	top: 11px;
	right: 6px;
}

.menu-toggle > span:nth-child(3) {
	top: 20px;
	right: 12px;
}

.menu-toggle > span:nth-child(4) {
	top: 29px;
	right: 18px;
}

.menu-toggle:focus, .menu-toggle:focus-visible {
	outline: 0;
	box-shadow: none;
}

.global-navigation {
	position: fixed;
	inset: 0;
	z-index: 101;
	display: grid;
	place-items: center;
	background: rgba(22,22,22,.97);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}

.global-navigation.is-open {
	opacity: 1;
	visibility: visible;
}

.menu-toggle[aria-expanded="true"] {
	opacity: 0;
	pointer-events: none;
}

/* [CC-03] メニュー一覧直下に配置する閉じるボタン */
.global-navigation__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* [CC-03] 最長メニュー「COMPANY OVERVIEW」を改行せず画面幅に合わせる */
.global-navigation ul {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 8px;
	list-style: none;
	text-align: center;
}

.global-navigation__close {
	display: block;
	margin-top: clamp(24px, 3vw, 48px);
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: var(--font-latin);
	font-size: clamp(120px, 15vw, 216px);
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

/* [CC-03] メニュー文字の標準行間 */
.menu-menu, .global-navigation li {
	line-height: 1;
}

.global-navigation a {
	position: relative;
	display: inline-block;
	max-width: 100%;
	background-image: linear-gradient(#008cff, #008cff), linear-gradient(#fff, #fff);
	background-position: left top, left top;
	background-repeat: no-repeat;
	background-size: 0% 100%, 100% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	font-family: var(--font-latin);
	font-weight: 900;
	font-size: clamp(24px, 9.5vw, 112px);
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	color: transparent;
	-webkit-text-fill-color: transparent;
	transition: background-size .32s linear;
}

/* [CC-03] 1枚の文字をグラデーションで左から右へ青く塗り替える */
.global-navigation a::after {
	content: none;
}

.global-navigation a:focus-visible, .global-navigation a.is-tapped {
	background-size: 100% 100%, 100% 100%;
}

@media (hover: hover) and (pointer: fine) {
	.global-navigation a:hover {
		background-size: 100% 100%, 100% 100%;
	}

}

/* [CC-04] トップ・ファーストビュー */
.top-hero {
	position: relative;
	min-height: clamp(780px, 75vw, 1220px);
	padding: clamp(54px, 5vw, 92px) var(--page-gutter);
}

/* [CC-04] logo.svgを一文字ずつ表示するメインロゴ */
.top-hero__logo {
	width: min(82vw, 1260px);
}

.top-hero__logo svg {
	display: block;
	width: 100%;
	height: auto;
}

.top-hero__logo path {
	fill: #161616;
	opacity: 0;
	transform: translateY(28px);
	transform-box: fill-box;
	transform-origin: center;
}

.is-logo-revealing .top-hero__logo path {
	animation: hero-logo-letter-in .52s cubic-bezier(.22, 1, .36, 1) forwards;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(1) {
	animation-delay: .45s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(2) {
	animation-delay: .53s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(3) {
	animation-delay: .61s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(4) {
	animation-delay: .69s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(5) {
	animation-delay: .77s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(6) {
	animation-delay: .85s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(7) {
	animation-delay: .93s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(8) {
	animation-delay: 1.01s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(9) {
	animation-delay: 1.09s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(10) {
	animation-delay: 1.17s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(11) {
	animation-delay: 1.25s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(12) {
	animation-delay: 1.33s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(13) {
	animation-delay: 1.41s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(14) {
	animation-delay: 1.49s;
}

.is-logo-revealing .top-hero__logo path:nth-of-type(15) {
	animation-delay: 1.57s;
}

@keyframes hero-logo-letter-in {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}

}

/* [CC-04] 知的忠犬全体の位置・サイズ */
.top-hero__identity {
	--identity-rotate: 8deg;
	--identity-skew-x: 0deg;
	--identity-skew-y: 0deg;
	--identity-scale-x: 1;
	--identity-scale-y: 1;
	--identity-translate-y: 0px;
	position: absolute;
	top: clamp(270px, 22vw, 390px);
	right: clamp(20px, 3.2vw, 64px);
	width: clamp(300px, 35vw, 581px);
	aspect-ratio: 1 / 1.18;
}

/* [CC-04] 「知的忠犬」の文字サイズ */
.top-hero__identity > img:not(.top-hero__identity-shape) {
	--identity-name-y: 0px;
	position: relative;
	z-index: 2;
	left: 90px;
	/* プラスで右、マイナスで左 */
	top: 10px;
	/* プラスで下、マイナスで上 */
	width: 20%;
	max-height: 74%;
	opacity: 0;
	clip-path: inset(50% 0 50% 0);
	transform: translate3d(0, var(--identity-name-y), 0);
	will-change: clip-path, opacity, transform;
}

.top-hero__identity-shape {
	position: absolute;
	inset: 2%;
	z-index: 1;
	width: 96%;
	height: 96%;
	max-width: none;
	overflow: visible;
	transform: translateY(var(--identity-translate-y)) rotate(var(--identity-rotate)) skew(var(--identity-skew-x), var(--identity-skew-y)) scale(var(--identity-scale-x), var(--identity-scale-y));
	transform-origin: center;
	opacity: 0;
	will-change: transform;
}

.top-hero__identity-shape polygon {
	fill: var(--color-ink);
}

/* [CC-04] ロゴ表示後に背景四角、知的忠犬の順で表示 */
.is-logo-revealing .top-hero__identity-shape {
	animation: hero-identity-shape-in .5s ease-out 1.85s forwards;
}

.is-logo-revealing .top-hero__identity > img:not(.top-hero__identity-shape) {
	animation: hero-identity-name-in .9s ease-out 2.15s forwards;
}

@keyframes hero-identity-shape-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}

}

@keyframes hero-identity-name-in {
	from {
		opacity: 0;
		clip-path: inset(50% 0 50% 0);
	}

	to {
		opacity: 1;
		clip-path: inset(0 0 0 0);
	}

}

.shape-panel {
	display: grid;
	place-items: center;
}

.top-hero__tagline {
	position: absolute;
	top: clamp(660px, calc(54vw + 50px), 880px);
	left: 36%;
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(15px, 1.25vw, 22px);
	letter-spacing: .04em;
	white-space: nowrap;
	opacity: 0;
}

.top-hero__tagline-break {
	display: none;
}

/* [CC-04] 知的忠犬の表示後にキャッチコピーをグリッチ表示 */
.top-hero__tagline::before, .top-hero__tagline::after {
	position: absolute;
	inset: 0;
	content: attr(data-text);
	opacity: 0;
	pointer-events: none;
}

.top-hero__tagline::before {
	color: #596168;
}

.top-hero__tagline::after {
	color: var(--color-ink);
}

.top-hero__tagline.is-tagline-visible {
	opacity: 1;
	animation: hero-tagline-glitch-in .82s steps(2, end) both;
}

.top-hero__tagline.is-tagline-visible::before {
	animation: hero-tagline-glitch-before .82s steps(2, end);
}

.top-hero__tagline.is-tagline-visible::after {
	animation: hero-tagline-glitch-after .82s steps(2, end);
}

@keyframes hero-tagline-glitch-in {
	0% {
		opacity: 0;
		clip-path: inset(0 0 100%);
		transform: translate(0, 0) skewX(0);
	}

	12% {
		opacity: 1;
		clip-path: inset(8% 0 68%);
		transform: translate(-14px, -3px) skewX(-7deg);
	}

	28% {
		clip-path: inset(54% 0 16%);
		transform: translate(12px, 3px) skewX(6deg);
	}

	43% {
		clip-path: inset(20% 0 49%);
		transform: translate(-9px, 2px) skewX(-4deg);
	}

	59% {
		clip-path: inset(67% 0 8%);
		transform: translate(8px, -2px) skewX(3deg);
	}

	76% {
		clip-path: inset(31% 0 29%);
		transform: translate(-4px, 1px) skewX(-2deg);
	}

	100% {
		opacity: 1;
		clip-path: inset(0);
		transform: translateX(0);
	}

}

@keyframes hero-tagline-glitch-before {
	0%, 100% {
		opacity: 0;
	}

	10%, 31% {
		opacity: .9;
		clip-path: inset(6% 0 70%);
		transform: translate(16px, -4px) skewX(8deg);
	}

	32%, 57% {
		opacity: .75;
		clip-path: inset(58% 0 13%);
		transform: translate(-13px, 4px) skewX(-6deg);
	}

	58%, 78% {
		opacity: .6;
		clip-path: inset(28% 0 43%);
		transform: translate(9px, -2px);
	}

}

@keyframes hero-tagline-glitch-after {
	0%, 100% {
		opacity: 0;
	}

	16%, 39% {
		opacity: .85;
		clip-path: inset(34% 0 37%);
		transform: translate(-16px, 3px) skewX(-7deg);
	}

	40%, 64% {
		opacity: .7;
		clip-path: inset(73% 0 4%);
		transform: translate(13px, -4px) skewX(5deg);
	}

	65%, 82% {
		opacity: .5;
		clip-path: inset(14% 0 60%);
		transform: translate(-8px, 2px);
	}

}

/* [CC-05] 共通セクション・図形タイトル */
.top-section {
	width: 100%;
	padding: clamp(100px, 12vw, 210px) var(--page-gutter);
}

/* [CC-05] PC版のコンテンツ幅を統一し、2カラム全体を中央に配置 */
.top-grid {
	display: grid;
	grid-template-columns: minmax(320px, .9fr) minmax(460px, 1.15fr);
	align-items: start;
	gap: clamp(70px, 11vw, 210px);
	width: 100%;
	max-width: var(--content-max-width);
	margin-inline: auto;
}

/* [CC-05] PC版は2カラムのままテキストの開始位置を200px下げる */
.top-grid--heading-right {
	grid-template-columns: minmax(460px, 1.15fr) minmax(320px, .9fr);
}

.top-grid--heading-right .shape-title {
	grid-column: 2;
}

.top-grid--heading-right > :not(.shape-title) {
	grid-row: 1;
	grid-column: 1;
}

.top-grid > :not(.shape-title) {
	margin-top: 200px;
}

.shape-title {
	--shape-front-width: 96.4%;
	--shape-back-width: 100%;
	--shape-front-rotation: 0deg;
	--shape-back-rotation: 0deg;
	--shape-front-y: 0px;
	--shape-back-y: 0px;
	--shape-text-y: 0px;
	--shape-text-x: 0px;
	--shape-text-offset-y: 0px;
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1.3 / 1;
	justify-self: center;
	color: #c7c7c7;
	font-family: var(--font-latin);
	font-size: clamp(22px, 2vw, 36px);
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
}

.shape-title span {
	position: relative;
	z-index: 2;
	transform: translate3d(var(--shape-text-x), calc(var(--shape-text-y) + var(--shape-text-offset-y)), 0);
	will-change: transform;
}

/* [CC-05] タイトル別の最大幅・背景SVGの前後配置と逆方向回転 */
.shape-title--greeting {
	--shape-text-x: clamp(30px, 4.5vw, 70px);
	--shape-text-offset-y: clamp(28px, 3.8vw, 58px);
	max-width: 487px;
}

.shape-title--message {
	--shape-front-width: 100%;
	--shape-back-width: 76%;
	--shape-text-x: clamp(22px, 3vw, 46px);
	--shape-text-offset-y: clamp(8px, 1.3vw, 20px);
	max-width: 508px;
}

.shape-title--message span {
	min-width: 5.5em;
	text-align: right;
}

.shape-title--service {
	--shape-text-x: clamp(18px, 2vw, 32px);
	--shape-text-offset-y: clamp(-32px, -2vw, -18px);
	max-width: 426px;
}

.shape-title--history {
	--shape-front-width: 100%;
	--shape-back-width: 80.8%;
	--shape-text-x: clamp(16px, 1.8vw, 28px);
	--shape-text-offset-y: clamp(-30px, -1.8vw, -16px);
	max-width: 449px;
	aspect-ratio: 449 / 458;
}

.shape-title--company {
	--shape-front-width: 100%;
	--shape-back-width: 95.6%;
	max-width: 504px;
	aspect-ratio: 1.6 / 1;
	white-space: nowrap;
}

.shape-title__image {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	height: auto;
	max-width: none;
	overflow: visible;
	transform-origin: center;
	will-change: transform;
}

.shape-title__image--front polygon {
	fill: var(--color-ink);
}

.shape-title__image--back polygon {
	fill: #393f44;
}

.shape-title__image--front {
	z-index: 1;
	width: var(--shape-front-width);
	transform: translate3d(-50%, calc(-50% + var(--shape-front-y)), 0) rotate(var(--shape-front-rotation));
}

.shape-title__image--back {
	z-index: 0;
	width: var(--shape-back-width);
	transform: translate3d(-50%, calc(-50% + var(--shape-back-y)), 0) rotate(var(--shape-back-rotation));
}

/* [CC-05] 各コンテンツ内の本文文字色 */
.top-copy, .history-list, .company-list, .top-news__list {
	color: var(--color-copy);
}

.top-copy {
	max-width: 35em;
	letter-spacing: .02em;
}

.top-copy p {
	margin: 0 0 1em;
}

.top-copy h2 {
	margin: 0 0 1.4em;
	font-size: 1.15em;
}

/* [CC-05] Service見出しを標準の太さで表示 */
.top-copy__heading--normal {
	font-weight: 400;
}

.top-copy .top-copy__signature {
	margin-top: 3em;
}

/* [CC-05] コンテンツ本文を上から下へ表示 */
.is-content-reveal-ready [data-content-reveal] {
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	transform: translateY(-12px);
	transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, transform 1.15s cubic-bezier(.22, 1, .36, 1);
	will-change: clip-path, opacity, transform;
}

.is-content-reveal-ready [data-content-reveal].is-content-visible {
	opacity: 1;
	clip-path: inset(0 0 0 0);
	transform: translateY(0);
}

/* [CC-06] Greeting・Top Message */
.top-section--greeting {
	padding-top: clamp(80px, 7vw, 130px);
	padding-bottom: clamp(150px, 18vw, 330px);
}

.top-section--message {
	padding-top: 0;
	padding-bottom: clamp(150px, 17vw, 300px);
}

.top-copy--message {
	max-width: 650px;
	margin-left: 8vw;
}

/* [CC-06] PC版は文章ブロックを1450pxコンテンツ枠の外側へ配置 */
@media (min-width: 768px) {
	.top-grid--heading-left > :not(.shape-title) {
		justify-self: end;
	}

	.top-grid--heading-right > :not(.shape-title) {
		justify-self: start;
	}

	.top-copy--message {
		margin-left: 0;
	}

	/* [CC-06] Company Overviewの回転・頂点変形による左側のはみ出しを補正 */
	.shape-title--company {
		transform: translateX(clamp(24px, 3vw, 48px));
	}

}

/* [CC-07] 街並み写真・Service */
.top-city {
	--city-border-height: clamp(42px, 4.4vw, 66px);
	--city-border-tile-width: calc(var(--city-border-height) * 9.10606);
	--city-border-shift: calc(var(--city-border-height) * 4.55303);
	position: relative;
	width: 100%;
	height: clamp(310px, 36vw, 600px);
	background: var(--color-paper);
	overflow: hidden;
}

.top-city__photo-mask {
	position: absolute;
	inset: 0;
	display: block;
	--city-photo-mask-x: 0px;
	--city-photo-mask-depth: 700px;
}

/* [CC-07] 黒線と同じ頂点座標を使用する継ぎ目のない街並み写真マスク */
.top-city__photo-mask--top {
	z-index: 1;
	-webkit-mask-image: url("../images/top/city-photo-mask-top.svg");
	-webkit-mask-position: var(--city-photo-mask-x) top;
	-webkit-mask-repeat: repeat-x;
	-webkit-mask-size: var(--city-border-tile-width) var(--city-photo-mask-depth);
	mask-image: url("../images/top/city-photo-mask-top.svg");
	mask-position: var(--city-photo-mask-x) top;
	mask-repeat: repeat-x;
	mask-size: var(--city-border-tile-width) var(--city-photo-mask-depth);
}

.top-city__photo-mask--bottom {
	-webkit-mask-image: url("../images/top/city-photo-mask-bottom.svg");
	-webkit-mask-position: var(--city-photo-mask-x) bottom;
	-webkit-mask-repeat: repeat-x;
	-webkit-mask-size: var(--city-border-tile-width) var(--city-photo-mask-depth);
	mask-image: url("../images/top/city-photo-mask-bottom.svg");
	mask-position: var(--city-photo-mask-x) bottom;
	mask-repeat: repeat-x;
	mask-size: var(--city-border-tile-width) var(--city-photo-mask-depth);
}

.top-city__photo-mask img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* [CC-07] スクロールに連動して逆方向へ動く街並み写真のギザギザ線 */
.top-city__edge {
	position: absolute;
	left: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: calc(var(--city-border-height) + 4px);
	pointer-events: none;
}

.top-city__edge--top {
	top: 0;
}

.top-city__edge--bottom {
	/* [CC-07] 頂点のアンチエイリアスがコンテナ端で切れないよう内側へ配置 */
	bottom: 2px;
	transform: scaleY(-1);
}

.top-city__edge-mask, .top-city__edge-line {
	position: absolute;
	inset: 0;
	display: block;
	background-position: 0 0;
	background-repeat: repeat-x;
	background-size: var(--city-border-tile-width) 100%;
	transform: scaleY(var(--city-edge-scale, 1));
	will-change: background-position, transform;
}

.top-city__edge--top > i {
	transform-origin: center top;
}

.top-city__edge--bottom > i {
	transform-origin: center bottom;
}

.top-city__edge-mask {
	display: none;
}

.top-city__edge-line {
	/* [CC-07] 写真側の動的クリップと同じ基準で動かす黒線 */
	background-image: url("../images/top/city-border.svg");
}

.top-section--service {
	padding-top: clamp(130px, 12vw, 220px);
	padding-bottom: clamp(130px, 14vw, 250px);
}

/* [CC-07] シフトークリンクエリアの上下余白を各80px縮小 */
.shiftalk-banner {
	display: grid;
	place-items: center;
	min-height: calc(clamp(260px, 28vw, 430px) - 160px);
	background: #fff;
}

.shiftalk-banner img {
	width: clamp(120px, 11vw, 180px);
}

/* [CC-07] シフトークロゴのホバー振動 */
.shiftalk-banner:hover img, .shiftalk-banner:focus-visible img {
	animation: shiftalk-logo-shake .42s ease-in-out infinite;
}

@keyframes shiftalk-logo-shake {
	0%, 100% {
		transform: translate(0, 0) rotate(0);
	}

	20% {
		transform: translate(-2px, 1px) rotate(-1.2deg);
	}

	40% {
		transform: translate(2px, -1px) rotate(1.2deg);
	}

	60% {
		transform: translate(-1px, -1px) rotate(-.8deg);
	}

	80% {
		transform: translate(1px, 1px) rotate(.8deg);
	}

}

/* [CC-08] History・Company Overview */
.top-information {
	padding-block: clamp(60px, 8vw, 140px) clamp(120px, 15vw, 270px);
}

.top-section--history {
	padding-bottom: clamp(100px, 12vw, 220px);
}

.top-section--company {
	padding-top: 0;
}

.history-list, .company-list {
	margin: 0;
}

.history-list > div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 24px;
	margin-bottom: 1.35em;
}

.company-list > div {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	margin-bottom: 1.35em;
}

.history-list dt, .company-list dt {
	font-weight: 400;
}

.history-list dd, .company-list dd {
	margin: 0;
}

/* [CC-08] 会社概要テキストエリア最下部のロゴ */
.company-list__logo {
	display: block;
	width: 15%;
	height: auto;
	margin: clamp(17px, 2vw, 34px) auto 0;
}

/* [CC-09] News */
.top-border {
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.top-border img {
	width: 100%;
	max-width: none;
}

.top-border__base {
	filter: brightness(0) invert(1);
}

.top-border__progress {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: polygon(0 0, 0 0, 0 0);
	transition: clip-path 1.8s cubic-bezier(.65, 0, .35, 1);
	will-change: clip-path;
}

.top-border.is-visible .top-border__progress {
	clip-path: polygon(0 0, 200% 0, 0 200%);
}

.top-news {
	padding: 40px var(--page-gutter) clamp(130px, 15vw, 250px);
}

.top-news__heading {
	position: relative;
	width: 50vw;
	margin: 0 auto clamp(40px, 5vw, 84px);
	line-height: 0;
}

.top-news__heading img {
	width: 100%;
}

/* [CC-09] border完了後にNewsを右上から左下へ白黒変化 */
.top-news__heading-base {
	filter: brightness(0) invert(1);
}

.top-news__heading-progress {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: polygon(100% 0, 100% 0, 100% 0);
	transition: clip-path 1.5s cubic-bezier(.65, 0, .35, 1) 1.8s;
	will-change: clip-path;
}

.top-border.is-visible + .top-news .top-news__heading-progress {
	clip-path: polygon(100% 0, 100% 200%, -100% 0);
}

.top-news__list {
	width: min(100%, 720px);
	margin: 0 auto;
}

.news-item {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 25px;
	margin: 0 0 1.6em;
}

.news-item time {
	font-variant-numeric: tabular-nums;
}

.news-item a {
	text-decoration: none;
}

.news-item a:hover {
	text-decoration: underline;
}

.news-item--empty {
	display: block;
}

/* [CC-10] フッター */
.site-footer {
	position: relative;
	min-height: clamp(420px, 39vw, 650px);
	padding: clamp(130px, 12vw, 210px) var(--page-gutter) 70px;
	background: var(--color-ink);
	color: #d7d7d7;
	clip-path: polygon(60px 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%, 0 60px);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr .65fr 1fr 1.15fr;
	align-items: end;
	gap: clamp(35px, 5vw, 90px);
	max-width: var(--content-max-width);
	margin: 0 auto;
}

.site-footer__name {
	margin: 0 0 2em;
}

.site-footer address {
	font-style: normal;
}

/* [CC-10] プライバシーマークの規定アイソレーション（マーク4：余白1） */
.site-footer__privacy-mark {
	box-sizing: content-box;
	width: clamp(80px, 7vw, 120px);
	padding: clamp(18px, 1.6vw, 27px);
	justify-self: center;
}

.site-footer__privacy-mark img {
	width: 100%;
}

.site-footer__privacy-link {
	text-decoration: none;
}

.site-footer__copyright {
	margin: 0;
	white-space: nowrap;
}

/* [CC-11] 個人情報保護方針 */
.privacy-policy-page {
	padding: clamp(80px, 9vw, 150px) var(--page-gutter) clamp(120px, 13vw, 220px);
}

.privacy-policy-page__header, .privacy-policy-page__body {
	width: min(100%, 1100px);
	margin-inline: auto;
}

.privacy-policy-page__header {
	margin-bottom: clamp(60px, 7vw, 110px);
}

.privacy-policy-page__header h1 {
	margin: 0;
	font-family: var(--font-latin);
	font-size: clamp(36px, 5vw, 76px);
	font-weight: 300;
	line-height: 1.2;
}

.privacy-policy-page__body {
	color: var(--color-copy);
}

.privacy-policy-page__body section {
	margin-top: clamp(70px, 8vw, 120px);
}

.privacy-policy-page__body h2 {
	margin: 0 0 1.7em;
	padding-bottom: .45em;
	border-bottom: 1px solid currentColor;
	font-size: clamp(24px, 2.4vw, 36px);
	line-height: 1.5;
}

.privacy-policy-page__body h3 {
	margin: 2.8em 0 1em;
	font-size: clamp(18px, 1.5vw, 24px);
	line-height: 1.6;
}

.privacy-policy-page__body h4 {
	margin: 2em 0 .8em;
	font-size: 1em;
}

.privacy-policy-page__body p, .privacy-policy-page__body li {
	line-height: 2;
}

.privacy-policy-page__body ul, .privacy-policy-page__body ol {
	padding-left: 1.6em;
}

.privacy-policy-page__body li + li {
	margin-top: .65em;
}

.privacy-policy-page__body address {
	padding: 1.4em;
	background: rgba(255,255,255,.38);
	font-style: normal;
	line-height: 2;
}

.privacy-policy-page__date, .privacy-policy-page__representative, .privacy-policy-page__end {
	text-align: right;
}

.privacy-policy-page__principles {
	margin-block: 3em;
}

.privacy-policy-page__alpha-list {
	list-style-type: lower-alpha;
}

/* [CC-11] 本文内プライバシーマーク */
.privacy-policy-page__privacy-mark {
	width: clamp(96px, 9vw, 132px);
	margin: clamp(36px, 4vw, 60px) 0 clamp(18px, 2vw, 30px);
}

.privacy-policy-page__privacy-mark a, .privacy-policy-page__privacy-mark img {
	display: block;
}

.privacy-policy-page__privacy-mark img {
	width: 100%;
	height: auto;
}

.privacy-policy-page__privacy-mark + p {
	margin-top: 0;
	font-size: 80%;
}

/* [CC-12] 投稿詳細 */
.single-post-page {
	width: 80%;
	margin-inline: auto;
	padding-block: clamp(80px, 9vw, 150px) clamp(120px, 13vw, 220px);
}

.single-post-page__header {
	margin-bottom: clamp(45px, 5vw, 80px);
}

.single-post-page__title {
	margin: 0 0 .5em;
	font-size: clamp(30px, 4vw, 64px);
	font-weight: 400;
	line-height: 1.45;
}

.single-post-page__date {
	display: block;
	color: var(--color-copy);
	font-family: var(--font-latin);
	font-variant-numeric: tabular-nums;
}

.single-post-page__content {
	color: var(--color-copy);
}

.single-post-page__content > :first-child {
	margin-top: 0;
}

.single-post-page__content > :last-child {
	margin-bottom: 0;
}

.single-post-page__content a {
	overflow-wrap: anywhere;
}

/* [CC-12] 投稿をタイトル・投稿日・本文の順に表示 */
.is-single-reveal-ready .single-post-page__title, .is-single-reveal-ready .single-post-page__date, .is-single-reveal-ready .single-post-page__content {
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	transform: translateY(-10px);
	transition: clip-path 1.05s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, transform 1.05s cubic-bezier(.22, 1, .36, 1);
	will-change: clip-path, opacity, transform;
}

.is-single-reveal-ready .single-post-page__date {
	transition-delay: .2s;
}

.is-single-reveal-ready .single-post-page__content {
	transition-delay: .4s;
}

.is-single-reveal-ready .single-post-page__article.is-single-visible .single-post-page__title, .is-single-reveal-ready .single-post-page__article.is-single-visible .single-post-page__date, .is-single-reveal-ready .single-post-page__article.is-single-visible .single-post-page__content {
	opacity: 1;
	clip-path: inset(0);
	transform: translateY(0);
}

.post-navigation {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: clamp(20px, 4vw, 70px);
	margin-top: 100px;
	padding-top: 30px;
	border-top: 1px solid rgba(22,22,22,.35);
}

.post-navigation__link {
	display: block;
	text-decoration: none;
}

.post-navigation__link strong {
	display: inline-flex;
	align-items: baseline;
	border-bottom: 1px solid transparent;
	font-weight: 400;
	line-height: 1.6;
}

.post-navigation__link:hover strong {
	border-bottom-color: currentColor;
}

.post-navigation__arrow {
	font-family: var(--font-latin);
	font-size: 1.25em;
}

.post-navigation__previous {
	grid-column: 1;
}

.post-navigation__previous .post-navigation__arrow {
	margin-right: .6em;
}

.post-navigation__index {
	grid-column: 2;
	text-align: center;
}

.post-navigation__index:hover {
	text-decoration: underline;
}

.post-navigation__next {
	grid-column: 3;
	text-align: right;
}

.post-navigation__next .post-navigation__arrow {
	margin-left: .6em;
}

/* [CC-13] News一覧 */
.news-archive-page {
	width: 80%;
	margin-inline: auto;
	padding-block: clamp(70px, 8vw, 130px) clamp(120px, 13vw, 220px);
}

.news-archive-page__heading {
	width: 100%;
	margin: 0 auto clamp(70px, 8vw, 130px);
}

.news-archive-page__heading img {
	width: 100%;
}

.news-archive-page__list {
	color: var(--color-copy);
}

/* [CC-13] Newsタイトルと記事一覧の表示アニメーション */
.is-news-reveal-ready .news-archive-page__heading {
	clip-path: polygon(0 0, 0 0, 0 0);
	transition: clip-path 1.15s cubic-bezier(.65, 0, .35, 1);
	will-change: clip-path;
}

.is-news-reveal-ready .news-archive-page__heading.is-news-heading-visible {
	clip-path: polygon(0 0, 200% 0, 0 200%);
}

.is-news-reveal-ready .news-archive-page__list {
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	transform: translateY(-10px);
	transition: clip-path 1.65s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, transform 1.65s cubic-bezier(.22, 1, .36, 1);
	will-change: clip-path, opacity, transform;
}

.is-news-reveal-ready .news-archive-page__list.is-news-list-visible {
	opacity: 1;
	clip-path: inset(0);
	transform: translateY(0);
}

.news-archive-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: clamp(20px, 4vw, 70px);
	padding-block: 1.35em;
	border-bottom: 1px solid rgba(22,22,22,.25);
}

.news-archive-item:first-child {
	border-top: 1px solid rgba(22,22,22,.25);
}

.news-archive-item time {
	font-family: var(--font-latin);
	font-variant-numeric: tabular-nums;
}

.news-archive-item a {
	text-decoration: none;
	overflow-wrap: anywhere;
}

.news-archive-item a:hover {
	text-decoration: underline;
}

.news-pagination {
	margin-top: clamp(70px, 8vw, 120px);
}

.news-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-pagination a, .news-pagination .current {
	display: grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 5px 10px;
	border: 1px solid var(--color-ink);
	text-decoration: none;
}

.news-pagination .current, .news-pagination a:hover {
	background: var(--color-ink);
	color: var(--color-paper);
}

/* [CC-14] アクセシビリティ */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
}

/* [CC-15] PC版・コンテンツ上下余白 */
@media (min-width: 768px) {
	/* [CC-15] コンテンツ間の余白を230pxへ統一 */
	.top-section--greeting {
		padding-bottom: 230px;
	}

	.top-section--message {
		padding-top: 0;
		padding-bottom: 230px;
	}

	.top-section--service {
		padding-top: 230px;
		padding-bottom: 150px;
	}

	.top-information {
		padding-block: 0;
	}

	.top-section--history {
		padding-top: 230px;
		padding-bottom: 230px;
	}

	.top-section--company {
		padding-top: 0;
		padding-bottom: 230px;
	}

	/* [CC-15] News上部は40pxを維持 */
	.top-news {
		padding-top: 40px;
		padding-bottom: 230px;
	}

}

/* [CC-16] スマートフォン */
@media (max-width: 767px) {
	:root {
		--mobile-section-gap: 194px;
		--page-gutter: 20px;
	}

	body {
		font-size: 13px;
		line-height: 1.85;
	}

	.opening__inner {
		width: 94vw;
	}

	.opening__count {
		margin-top: 28px;
	}

	.site-header {
		height: 52px;
	}

	body.is-header-fixed .site {
		padding-top: 52px;
	}

	.menu-toggle {
		right: 18px;
		width: 58px;
		height: 29px;
	}

	.menu-toggle > span:not(.screen-reader-text) {
		width: 44px;
	}

	.menu-toggle > span:nth-child(1) {
		top: 1px;
		right: 0;
	}

	.menu-toggle > span:nth-child(2) {
		top: 9px;
		right: 5px;
	}

	.menu-toggle > span:nth-child(3) {
		top: 17px;
		right: 10px;
	}

	.menu-toggle > span:nth-child(4) {
		top: 25px;
		right: 15px;
	}

	.top-hero {
		min-height: 740px;
		padding-top: 30px;
	}

	.top-hero__logo {
		width: 92vw;
		max-width: none;
	}

	/* [CC-16] 知的忠犬をロゴへ近づけ、背景を30%拡大して画面内へ収める */
	.top-hero__identity {
		top: 180px;
		right: 2px;
		width: min(364px, 96vw);
	}

	.top-hero__identity > img:not(.top-hero__identity-shape) {
		left: 55px;
	}

	.top-hero__tagline {
		top: 580px;
		left: var(--page-gutter);
		width: calc(100% - (var(--page-gutter) * 2));
		font-size: clamp(18px, 6vw, 20px);
		letter-spacing: 0;
		line-height: 1.5;
		text-align: left;
		white-space: normal;
	}

	.top-hero__tagline-break {
		display: block;
	}

	.top-hero__tagline::before, .top-hero__tagline::after {
		content: "愚直なまでの忠実さと、\A高い知性を兼ね備えた犬のように。";
		white-space: pre-line;
	}

	/* [CC-16] 街並みギザギザをスマホで約4山表示する */
	.top-city {
		--city-border-tile-width: calc(var(--city-border-height) * 4.55303);
	}

	.top-section {
		padding: 84px var(--page-gutter);
	}

	.top-grid, .top-grid--heading-right {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.top-grid--heading-right .shape-title, .top-grid--heading-right > :not(.shape-title) {
		grid-row: auto;
		grid-column: 1;
	}

	.top-grid--heading-right .shape-title {
		order: 0;
		justify-self: end;
	}

	.top-grid--heading-right > :not(.shape-title) {
		order: 1;
	}

	.top-grid > :not(.shape-title) {
		margin-top: 0;
	}

	.shape-title {
		--shape-text-offset-y: 0px;
		width: min(82vw, 360px);
		font-size: 22px;
	}

	/* [CC-16] スマホのタイトル文字を背景内の上から35%へ配置 */
	.shape-title span {
		position: absolute;
		top: 35%;
		transform: translate3d(0, calc(-50% + var(--shape-text-y)), 0);
	}

	.shape-title--greeting span, .shape-title--service span, .shape-title--company span {
		left: 12%;
		text-align: left;
	}

	.shape-title--message span {
		right: 20%;
		text-align: right;
	}

	.shape-title--history span {
		right: 15%;
		text-align: right;
	}

	/* [CC-16] スマホのテキストエリアを左右5%ずつ内側へ配置 */
	.top-copy, .history-list, .company-list, .top-news__list {
		width: 80%;
		max-width: 100%;
		margin-inline: auto;
	}

	.top-section--greeting {
		padding-bottom: var(--mobile-section-gap);
	}

	.top-section--message {
		padding-top: 0;
		padding-bottom: var(--mobile-section-gap);
	}

	.top-city {
		--city-border-height: 42px;
		height: 260px;
	}

	.top-city__photo-mask img {
		object-position: 52% center;
	}

	/* [CC-16] コンテンツ間隔をHistory一覧末尾からCompany Overviewまでの間隔へ統一 */
	.top-section--service {
		padding-block: var(--mobile-section-gap) 55px;
	}

	.shiftalk-banner {
		min-height: 0;
		padding-block: 40px;
	}

	.shiftalk-banner img {
		width: 96px;
	}

	.top-information {
		padding-block: 0;
	}

	.top-section--history {
		padding-top: var(--mobile-section-gap);
		padding-bottom: 110px;
	}

	.top-section--company {
		padding-bottom: var(--mobile-section-gap);
	}

	.history-list > div, .company-list > div {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.history-list > div dd, .company-list > div dd {
		padding-left: .5em;
	}

	/* [CC-16] 会社概要ロゴを情報一覧と同じ表示範囲に含めて拡大 */
	.company-list__logo {
		width: 21%;
	}

	.shape-title--company {
		width: 92vw;
		font-size: 19px;
	}

	/* [CC-16] border.svgとNews.svgを現在のスマホ表示からさらに20%拡大 */
	.top-border img {
		width: 160%;
		margin-left: -30%;
	}

	.top-news__heading {
		width: 80vw;
	}

	.top-news {
		padding-bottom: 100px;
	}

	.news-item {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	/* [CC-16] フッターを中央揃えの1カラムに変更 */
	.site-footer {
		min-height: 0;
		padding: 110px var(--page-gutter) 0;
		clip-path: polygon(45px 0, calc(100% - 45px) 0, 100% 45px, 100% 100%, 0 100%, 0 45px);
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		align-items: center;
		justify-items: center;
		gap: 38px;
		text-align: center;
	}

	.site-footer__company {
		grid-column: 1 / -1;
	}

	.site-footer__privacy-mark {
		width: 70px;
		padding: 17.5px;
		justify-self: center;
	}

	.site-footer__privacy-link {
		justify-self: center;
	}

	.site-footer__copyright {
		grid-column: 1;
		margin: 0;
		padding-bottom: 0;
		white-space: normal;
		text-align: center;
	}

	.privacy-policy-page {
		padding-block: 65px 100px;
	}

	.privacy-policy-page__header {
		margin-bottom: 50px;
	}

	.privacy-policy-page__body h2 {
		font-size: 22px;
	}

	.privacy-policy-page__body h3 {
		font-size: 17px;
	}

	.privacy-policy-page__body address {
		padding: 1em;
		overflow-wrap: anywhere;
	}

	.single-post-page {
		width: calc(80% - 32px);
		padding-block: 65px 100px;
	}

	.single-post-page__header {
		margin-bottom: 40px;
	}

	.single-post-page__title {
		font-size: 28px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.post-navigation__previous, .post-navigation__index, .post-navigation__next {
		grid-column: 1;
		text-align: left;
	}

	.news-archive-page {
		padding-block: 60px 100px;
	}

	.news-archive-page__heading {
		margin-bottom: 55px;
	}

	.news-archive-item {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.news-pagination {
		margin-top: 60px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.top-hero__tagline.is-tagline-visible, .top-hero__tagline.is-tagline-visible::before, .top-hero__tagline.is-tagline-visible::after {
		animation: none;
	}

	.shiftalk-banner:hover img, .shiftalk-banner:focus-visible img {
		animation: none;
	}

	.is-single-reveal-ready .single-post-page__title, .is-single-reveal-ready .single-post-page__date, .is-single-reveal-ready .single-post-page__content {
		opacity: 1;
		clip-path: none;
		transform: none;
		transition: none;
	}

	.is-news-reveal-ready .news-archive-page__heading, .is-news-reveal-ready .news-archive-page__list {
		opacity: 1;
		clip-path: none;
		transform: none;
		transition: none;
	}

	.is-content-reveal-ready [data-content-reveal] {
		opacity: 1;
		clip-path: none;
		transform: none;
		transition: none;
	}

	.top-hero__logo, .top-hero__logo path {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.opening, .global-navigation {
		transition-duration: .01ms;
	}

	.top-border__progress {
		transition: none;
	}

	.top-news__heading-progress {
		clip-path: none;
		transition: none;
	}

}
