@charset "UTF-8";

/* ===== 変数（スクショの配色をそのまま採用） ===== */
:root {
	--c-orange: #fe5357;
	--c-skyblue: #3897d9;
	--c-navy: #373dd1;
	--c-gray: #d8d8d8;
	--c-metal: #4f3fb5;
	--c-deep-purple: #5421a4;
	--c-green-dark: #2bb251;
	--c-green: #41ceab;
	--c-yellow: #f1c32c;
	--c-magenta: #a432a8;
	--c-white: #ffffff;
	--c-pink: #ef2e76;
	--edge-w: 70px;
	--unit: min(calc(100cqw / 5), calc(100vh / 3)); /* cqw=isr-hero自身の実表示幅を基準にする(vwだと縦スクロールバー出現時にズレる) */
}

/* ===== 色巡回アニメーション(白を除く10色) ===== */
@keyframes color-cycle {
	0%      { background-color: var(--c-orange); }
	10%     { background-color: var(--c-yellow); }
	20%     { background-color: var(--c-green-dark); }
	30%     { background-color: var(--c-green); }
	40%     { background-color: var(--c-skyblue); }
	50%     { background-color: var(--c-navy); }
	60%     { background-color: var(--c-metal); }
	70%     { background-color: var(--c-deep-purple); }
	80%     { background-color: var(--c-magenta); }
	90%     { background-color: var(--c-pink); }
	100%    { background-color: var(--c-orange); } /* ループを閉じる(0%と同色) */
}

.tile.nd, .tile.recruit, .tile.metal, .tile.company,
.tile.greet, .tile.salon, .tile.contact {
	animation: color-cycle 33s linear infinite;
}

/* 各要素の初期表示色が「初期.png」の配色と一致するよう、色の登場時刻(33s÷10色=3.3s刻み)から逆算したdelay */
.tile.nd      { animation-delay: 0s; }     /* orange */
.tile.recruit { animation-delay: -16.5s; } /* navy */
.tile.metal   { animation-delay: -13.2s; } /* skyblue */
.tile.company { animation-delay: -26.4s; } /* magenta */
.tile.greet   { animation-delay: -3.3s; }  /* yellow */
.tile.salon   { animation-delay: -29.7s; } /* pink */
.tile.contact { animation-delay: -6.6s; }  /* green-dark */

@media (prefers-reduced-motion: reduce) {
	.tile.nd, .tile.recruit, .tile.metal, .tile.company,
	.tile.greet, .tile.salon, .tile.contact {
		animation: none; /* 既存の静的background(下記)にフォールバック */
	}
}

/* ===== 共通：タイル ===== */
.isr-heroBox {
	visibility: hidden;
	opacity: 0;
	width: 100%;
	transition: opacity 0.5s ease;
}

.isr-heroBox.show {
	visibility: visible;
	opacity: 1;
}

.isr-hero {
	display: flex;
	width: 100%;
	overflow: hidden;
	max-height: 100vh;
	margin: 0 auto;
	container-type: inline-size; /* 子要素のcqw計算の基準にする */

	--c1: 1fr; --c2: 1fr; --c3: 1fr; --c4: 1fr; --c5: 1fr;
	--r1: 1fr; --r2: 1fr; --r3: 1fr;
}

	.edge {
		flex: 1 1 auto; /* 余白ができた分だけ左右で均等に育ち、ユニットグリッドで埋める */
		min-width: 0;
		background: #ffffff;
	}

	.hero-grid {
		flex: 0 0 auto;
		display: grid;
		width: calc(var(--unit) * 5);
		height: calc(var(--unit) * 3);

		grid-template-columns: var(--c1) var(--c2) var(--c3) var(--c4) var(--c5);
		grid-template-rows: var(--r1) var(--r2) var(--r3);
		transition: grid-template-columns .45s ease, grid-template-rows .45s ease;

		grid-template-areas:
			"isr isr isr nd metal"
			"isr isr isr recruit photo1"
			"company greet photo2 salon contact";
	}
	@media (prefers-reduced-motion: reduce) {
		.hero-grid { transition: none; }
	}

	.tile {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: left;
		text-decoration: none;
		color: #fff;
		position: relative;
		overflow: hidden;
		font-size: clamp(12px, 1.4vw, 18px);
		transition: filter .25s ease, transform .25s ease;
	}
	@media (prefers-reduced-motion: reduce) {
		.tile { transition: none; }
	}
	.tile:hover { filter: brightness(1.08); }

	/* ISRタイトルブロック */
	.tile.isr {
		grid-area: isr;
		color: var(--c-white);
		gap: 6px;
	}
/*	.tile.isr h1 {
		margin: 0;
		font-size: clamp(36px, 6vw, 80px);
		letter-spacing: .04em;
		font-weight: 800;
		text-shadow:
			-2px -2px 0 #000,
			2px -2px 0 #000,
			-2px  2px 0 #000,
			2px  2px 0 #000,
			-2px  0    0 #000,
			2px  0    0 #000,
			0   -2px 0 #000,
			0    2px 0 #000;
	}
	.tile.isr .sub {
		font-size: clamp(11px, 1.1vw, 16px);
		letter-spacing: .03em;
		text-shadow:
			-1px -1px 0 #000,
			1px -1px 0 #000,
			-1px  1px 0 #000,
			1px  1px 0 #000;
        margin: 20px auto 0 auto;
	}*/
	.tile.isr h1 {
		margin: 0;
	}

	.tile.nd      { grid-area: nd; background: var(--c-orange); }
	.tile.recruit { grid-area: recruit; background: var(--c-navy); }
	.tile.metal   { grid-area: metal;   background: var(--c-skyblue); }
	.tile.photo1  { grid-area: photo1;}
	.tile.company { grid-area: company; background: var(--c-magenta); }
	.tile.greet   { grid-area: greet;   background: var(--c-yellow);}
	.tile.photo2  { grid-area: photo2;}
	.tile.salon   { grid-area: salon;   background: var(--c-pink); }
	.tile.contact { grid-area: contact; background: var(--c-green-dark); }

	/* ===== タブレット横以下のレイアウトは別途調整予定 ===== */

a:hover.tile {
	color: #ffffff;
}

.tile.photo {
	background-color: #f9f9f9;
	animation: photo-placeholder .6s ease-in 1s forwards;
}

@keyframes photo-placeholder {
	to { background-color: #000000; }
}

@media (prefers-reduced-motion: reduce) {
	.tile.photo {
		animation: none;
		background-color: #000000;
	}
}

.tile img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease; /* クロスフェード時間は固定 */
}
.tile img.is-show {
	opacity: 1;
}

.tile img.isr_img {
	position: absolute;
	top: 50%;
	left: 50%;
    transform: translate(-50%, -50%);
	height: auto;
    width: 50%;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.tile img { transition: none; }
}

.tile.nd,
.tile.metal,
.tile.company,
.tile.greet,
.tile.salon,
.tile.contact {
	text-align: left;      /* ブロック内部のテキスト行は左揃え */
}

.tile .en {
	display: block;
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(16px, 2.4vw, 30px);
	line-height: 1.1em;
}

.tile .ja {
	display: block;
    line-height: 1;
	margin: 5px 0 10px 0;
}

.tile .desc {
	font-size: clamp(10px, 1vw, 13px);
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: .02em;
	opacity: .92;
    margin: 0;
}

.tile.photo:hover {
	filter: none;
	transform: none;
}

.tile img.arrow {
	position: relative;
	top: auto;
	left: auto;
	object-fit: initial;
	opacity: 1;
	margin: 0 0 0 5px;
	vertical-align: middle;
	height: 0.6em;
	width: auto;
	transition: opacity .8s ease; /* クロスフェード時間は固定 */
}

/* テキストアニメ */
.TextAnimation,
.LogoAnimation {
	display: block;
	width: 100%;
    height: 100%!important;
    height: calc(100vw * 0.1);
	bottom: 0;
    position: absolute;
}

/* テキストが全部出た後、2行まとめてフェードアウト */
.TextAnimation {
	transition: opacity 0.5s ease;
}
.TextAnimation.fade-out {
	opacity: 0;
}
.TextAnimation.is-hidden {
	display: none;
}

/* ロゴが消えた後、非表示にする */
.LogoAnimation.is-hidden {
	display: none;
}

.TextAnimation ul {
	display: inline-block;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
    position: absolute;
    top: calc(50%);
    transform: translateY(-50%);
    line-height: 1.3;
}

/* 1行ずつフェードイン。JSが li に is-show を付与するとフェードインする */
.TextAnimation ul li {
	white-space: nowrap;
	opacity: 0;
	display: block;
	text-align: center;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
	transition: opacity 0.8s ease;
}

.TextAnimation ul li.is-show {
	opacity: 1;
}

.TextAnimation ul li span.ja,
.TextAnimation ul li span.ja2 {
	display: inline-block;
	color: #000000;
	font-family: 'Noto Serif JP', YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	font-weight: normal;
	font-size: calc(100vw * 0.04);
	margin: 0;
}

.TextAnimation ul li span.slogan_en {
	margin: 0 0.5em 0 0;
}

.TextAnimation ul li span.ja2 br,
.TextAnimation ul li span.ja br {
	display: none;
}

.LogoAnimation img {
    width: 20%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
	opacity: 0;
}

/* JSが.showを付与した時点で登場アニメーションを開始 */
.LogoAnimation img.show {
	animation: logo_anime_on 0.5s ease-out forwards;
}

/* JSが.fade-outを付与した時点でフェードアウト開始(.showより後に定義して優先させる) */
.LogoAnimation img.fade-out {
	animation: logo_anime_off 1s ease-in forwards;
}

@keyframes logo_anime_on {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes logo_anime_off {
	0% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1.5);
	}
}


/* ------------------------------------------------------ */
@media only screen and (min-width : 821px) {
/* ------------------------------------------------------ */

/* nd: col4 拡大 / row1-2 拡大 */
.isr-hero:has(.tile.nd:hover) {
	--c1: 0.92fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 1.35fr; --c5: 0.92fr;
	--r1: 1.12fr; --r2: 1.12fr; --r3: 0.85fr;
}

/* recruit: col4 拡大 / row2 拡大 */
.isr-hero:has(.tile.recruit:hover) {
	--c1: 0.92fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 1.35fr; --c5: 0.92fr;
	--r1: 0.92fr; --r2: 1.2fr; --r3: 0.92fr;
}

/* metal: col5 拡大 / row1 拡大 */
.isr-hero:has(.tile.metal:hover) {
	--c1: 0.92fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 0.92fr; --c5: 1.35fr;
	--r1: 1.2fr; --r2: 0.95fr; --r3: 0.92fr;
}

/* company: col1 拡大 / row3 拡大 */
.isr-hero:has(.tile.company:hover) {
	--c1: 1.35fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 0.92fr; --c5: 0.92fr;
	--r1: 0.92fr; --r2: 0.92fr; --r3: 1.2fr;
}

/* greet: col2 拡大 / row3 拡大 */
.isr-hero:has(.tile.greet:hover) {
	--c1: 0.92fr; --c2: 1.35fr; --c3: 0.92fr; --c4: 0.92fr; --c5: 0.92fr;
	--r1: 0.92fr; --r2: 0.92fr; --r3: 1.2fr;
}

/* salon: col4 拡大 / row3 拡大 */
.isr-hero:has(.tile.salon:hover) {
	--c1: 0.92fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 1.35fr; --c5: 0.92fr;
	--r1: 0.92fr; --r2: 0.92fr; --r3: 1.2fr;
}

/* contact: col5 拡大 / row3 拡大 */
.isr-hero:has(.tile.contact:hover) {
	--c1: 0.92fr; --c2: 0.92fr; --c3: 0.92fr; --c4: 0.92fr; --c5: 1.35fr;
	--r1: 0.92fr; --r2: 0.92fr; --r3: 1.2fr;
}

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 1920px) {
/* ------------------------------------------------------ */

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 1336px) {
/* ------------------------------------------------------ */

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 1250px) {
/* ------------------------------------------------------ */

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 1024px) {
/* ------------------------------------------------------ */
.tile.nd, .tile.metal, .tile.recruit, .tile.company, .tile.greet, .tile.salon, .tile.contact {
	padding: 0 20px;
}

.tile .ja br, .tile .desc br {
	display: none;
}

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 970px) {
/* ------------------------------------------------------ */

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 820px) {
/* ------------------------------------------------------ */

.isr-hero { max-height: none; }
.hero-grid {
	--unit: calc(100cqw / 8);
	width: calc(var(--unit) * 8);
	height: calc(var(--unit) * 8);
	grid-template-columns: repeat(8, var(--unit));
	grid-template-rows: repeat(8, var(--unit));
	grid-template-areas:
		"isr   isr   isr   isr   isr   isr   nd      nd"
		"isr   isr   isr   isr   isr   isr   nd      nd"
		"isr   isr   isr   isr   isr   isr   nd      nd"
		"isr   isr   isr   isr   isr   isr   nd      nd"
		"recruit recruit metal metal photo1 photo1 company company"
		"recruit recruit metal metal photo1 photo1 company company"
		"greet greet photo2 photo2 salon  salon  contact contact"
		"greet greet photo2 photo2 salon  salon  contact contact";
}
.tile.isr h1 { font-size: clamp(36px, 9vw, 64px); }

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 600px) {
/* ------------------------------------------------------ */

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 500px) {
/* ------------------------------------------------------ */

.hero-grid {
	--unit: calc(100cqw / 3);
	width: calc(var(--unit) * 3);
	height: auto;
	grid-template-columns: repeat(3, var(--unit));
	grid-template-rows: calc(var(--unit) * 2) repeat(3, var(--unit));
	grid-template-areas:
		"isr      isr     isr"
		"nd       metal   photo1"
		"recruit  company greet"
		"photo2   salon   contact";
}
.tile.isr { padding: 24px 0; }
.tile.isr h1 { font-size: clamp(34px, 13vw, 48px); }



.tile.nd, .tile.metal, .tile.recruit, .tile.company, .tile.greet, .tile.salon, .tile.contact {
	padding: 0 10px;
}

.tile .ja {
	margin: 2px 0 5px 0;
}

.tile .desc {
    line-height: 1.2;
}

.LogoAnimation img {
    width: 50%;
}

.TextAnimation ul li span.ja,
.TextAnimation ul li span.ja2 {
	font-size: calc(100vw * 0.07);
}

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 320px) {
/* ------------------------------------------------------ */

}