/* コノハ　メインビジュアル（トップの動く絵）
   front-page.php でだけ読み込みます。 */

.konoha-hero {
	--konoha-head: 96px;
	position: relative;
	width: 100%;
	min-height: 520px;
	height: calc(100vh - var(--konoha-head));
	height: calc(100svh - var(--konoha-head));
	max-height: 940px;
	overflow: hidden;
	background: #FCFCF6;
	font-family: 'Zen Maru Gothic', var(--font-head), sans-serif;
}

/* JSが動かないときも、さみしくならないように */
.konoha-hero__scene {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 50% at 20% 20%, #EAF6DC 0%, rgba(234, 246, 220, 0) 70%),
		radial-gradient(55% 45% at 85% 25%, #DFF2E8 0%, rgba(223, 242, 232, 0) 70%),
		linear-gradient(180deg, #FCFCF6 55%, #DDEFC8 100%);
}

.konoha-hero__noise {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.35;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.6 0 0 0 0 0.45 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.konoha-hero__inner {
	position: relative;
	z-index: 1;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(56px, 11vh, 120px) 24px clamp(28px, 6vh, 56px);
}

/* ふりがなの切り替え（絵の上・右上に置く） */
.konoha-hero__tools {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 2;
	margin: 0;
}

.konoha-hero__logo {
	margin: 0;
	font-family: 'Hachi Maru Pop', 'Zen Maru Gothic', var(--font-head), cursive;
	font-weight: 400;
	font-size: clamp(60px, 12.5vmin, 136px);
	line-height: 1.15;
	letter-spacing: 0.06em;
}

.konoha-hero__logo span {
	display: inline-block;
	background: linear-gradient(120deg, #2E8C6A 0%, #3F9A4A 50%, #5E9E2E 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 3px 0 #FFFFFF);
}

.konoha-hero__catch {
	margin: 16px 0 0;
	font-size: clamp(18px, 3.2vmin, 28px);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.6;
	color: #2F5E3A;
	max-width: none;
}

.konoha-hero__sub {
	margin: 10px 0 0;
	font-size: clamp(13px, 1.8vmin, 16px);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.6;
	color: #4F6F4C;
	max-width: none;
}

.konoha-hero__spacer {
	flex: 1;
	min-height: 24px;
}

.konoha-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 clamp(22px, 5vw, 36px);
	box-sizing: border-box;
	border-radius: 999px;
	border: 3px solid #FFFFFF;
	background: #8BC34A;
	color: #1F3A1C;
	font-size: clamp(16px, 2.2vmin, 18px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	box-shadow: 0 5px 0 #6BA336, 0 10px 24px rgba(62, 138, 85, 0.28);
	transition: background 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.konoha-hero__cta:hover,
.konoha-hero__cta:focus-visible {
	background: #9DCD62;
	color: #1F3A1C;
	transform: translateY(-2px);
}

/* 電話をかける（絵の下・小さく添える） */
.konoha-hero__tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: #2F5E3A;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.konoha-hero__tel:hover,
.konoha-hero__tel:focus-visible {
	background: #FFFFFF;
	color: #2F5E3A;
}

/* 下に続きがあることを示す矢印 */
.konoha-hero__more {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: 1;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #4F6F4C;
	text-decoration: none;
}

.konoha-hero__more svg {
	animation: konoha-hero-bob 2.4s ease-in-out infinite;
}

@keyframes konoha-hero-bob {
	0%, 100% { transform: translateY(-2px); }
	50% { transform: translateY(3px); }
}

/* ふりがなを表示したとき：ふりがなの居場所をつくる
   （メインビジュアルでは、枠が広がらないよう文字の上に重ねて出しています。
     重ねるぶん、上に少しすき間がいります） */
body.konoha-ruby .konoha-hero__catch { margin-top: 30px; }
body.konoha-ruby .konoha-hero__sub { margin-top: 24px; }
body.konoha-ruby .konoha-hero__sub { letter-spacing: normal; }
body.konoha-ruby .konoha-hero__cta { min-height: 72px; padding-top: 16px; letter-spacing: 0.02em; }
body.konoha-ruby .konoha-hero__tel { min-height: 58px; padding-top: 14px; }

/* 横long・低い画面（タブレット横など）では、詰めて収める */
@media (max-height: 620px) {
	.konoha-hero { max-height: none; }
	.konoha-hero__inner { padding-top: clamp(32px, 7vh, 64px); }
	.konoha-hero__logo { font-size: clamp(48px, 13vmin, 92px); }
	.konoha-hero__more { display: none; }
}

/* スマホ・タブレットのヘッダーは低いので、はじめの値もそれに合わせる
   （JSが測る前と後で高さが動かないように） */
@media (max-width: 1179px) {
	.konoha-hero { --konoha-head: 69px; }
}

@media (max-width: 600px) {
	.konoha-hero__tools { top: 10px; right: 12px; }
	.konoha-hero__inner { padding-left: 16px; padding-right: 16px; }
}

/* 動きを減らす設定のときは、動かさない */
@media (prefers-reduced-motion: reduce) {
	.konoha-hero__more svg { animation: none; }
	.konoha-hero__cta { transition: none; }
}
