@charset "UTF-8";

/* =============================================================================
   REGIONAL REVITALIZATION 固定ページ
   Figma: 自社HP / node 566:733
          「REGIONAL REVITALIZATION 改修案（イラスト差し替え）」
          アートボード幅 1440 / コンテンツ幅 1200

   PC はデザインの寸法をそのまま再現する。1100px 以下で 2 カラムを解き、
   767px 以下で余白と文字を詰める。年表だけは横線を途切れさせたくないので、
   1100px 以下は縦積みにせず横スクロールにしている。
   ========================================================================== */

/* テーマ側が border-box を敷いていないので、このページの中だけ揃えておく。 */
.rr,
.rr *,
.rr *::before,
.rr *::after {
	box-sizing: border-box;
}

.rr {
	--rr-brand: #404041;
	--rr-text: #333;
	--rr-muted: #666;
	--rr-secondary: #646462;
	--rr-line: #e9e9e9;
	--rr-bg-muted: #f7f7f5;
	--rr-content: 1200px;

	color: var(--rr-text);
	font-family: "NotoSans", "Noto Sans JP", sans-serif;
	overflow-x: hidden;
}

.rr-inner {
	width: min(100% - 48px, var(--rr-content));
	margin-inline: auto;
}

.rr img {
	max-width: 100%;
}

/* =============================================================================
   セクション共通パーツ
   ========================================================================== */

/* 「01 SAGAWEB」のような通し番号＋英字ラベル */
.rr-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 22.8px;
	letter-spacing: 1.92px;
	color: var(--rr-secondary);
}

.rr-heading {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 42px;
	color: var(--rr-text);
}

.rr-sectionhead {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rr-sectionhead__desc {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 30.4px;
	color: var(--rr-text);
}

/* -----------------------------------------------------------------------------
   お問い合わせボタン（吹き出しバッジ付き）
   ヒーロー = テクスチャ地に白文字 / CONTACT バンド = 白地に黒文字

   Figma ではバッジ（130×27）がボタン（256×52）の 10px 左に出て、
   下端 2px がボタンに重なる。その分を wrapper の padding で確保している。
   -------------------------------------------------------------------------- */
.rr-cta {
	position: relative;
	display: inline-flex;
	padding: 25px 0 0 10px;
}

.rr-cta__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 130px;
	height: 27px;
	padding-top: 3px;
	background: url("../img/regional-revitalization/v2/badge-balloon.svg") no-repeat center / 130px 27px;
	font-size: 11px;
	font-weight: 900;
	line-height: 15px;
	letter-spacing: 0.6px;
	color: var(--rr-brand);
	white-space: nowrap;
}

.rr-cta__button {
	display: inline-flex;
	align-items: center;
	width: 256px;
	max-width: 100%;
	height: 52px;
	padding: 0 21px 0 22px;
	border-radius: 9999px;
	font-size: 16px;
	font-weight: 900;
	line-height: 15px;
	letter-spacing: 0.6px;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.rr-cta__button:hover,
.rr-cta__button:focus-visible {
	opacity: 0.85;
}

.rr-cta--fill .rr-cta__button {
	background: url("../img/regional-revitalization/v2/cta-bg.webp") no-repeat center / cover;
	background-color: #141414;
	color: #fff;
}

.rr-cta--white .rr-cta__button {
	background-color: #fff;
	color: var(--rr-brand);
}

.rr-cta--fill .rr-cta__button:hover {
	color: #fff;
}

.rr-cta__icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	transform: scaleX(-1);
}

.rr-cta__label {
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}

.rr-cta__arrow {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

/* -----------------------------------------------------------------------------
   下線付きのテキストリンク（SAGAWEBについて詳しく見る／すべての事例を見る）
   -------------------------------------------------------------------------- */
.rr-morelink {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 357px;
	max-width: 100%;
	padding-bottom: 16px;
	border-bottom: 1.5px solid var(--rr-brand);
	color: var(--rr-brand);
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.rr-morelink:hover,
.rr-morelink:focus-visible {
	color: var(--rr-brand);
	opacity: 0.7;
}

.rr-morelink__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.rr-morelink__label {
	font-size: 20px;
	font-weight: 700;
	line-height: 26.6px;
}

.rr-morelink__arrow {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

/* =============================================================================
   ヒーロー
   ========================================================================== */
/* ヘッダーが position:fixed / height:150px なので、その分を必ず空ける */
.rr-hero {
	padding: 190px 24px 80px;
}

.rr-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.rr-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 22.8px;
	letter-spacing: 0.48px;
	color: var(--rr-muted);
}

.rr-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.rr-breadcrumb a:hover {
	text-decoration: underline;
}

.rr-hero__body {
	display: flex;
	align-items: center;
	gap: 48px;
}

.rr-hero__text {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.rr-hero__eyebrow {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 26.6px;
	letter-spacing: 2.24px;
	color: var(--rr-text);
}

.rr-hero__title {
	margin: 0;
	font-size: 48px;
	font-weight: 900;
	line-height: 68px;
	letter-spacing: 0.72px;
	color: var(--rr-text);
}

.rr-hero__lead {
	max-width: 560px;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 30.4px;
	color: var(--rr-text);
}

.rr-hero__photo {
	flex: 0 0 552px;
	width: 552px;
	height: 384px;
	border-radius: 8px;
	object-fit: cover;
}

/* =============================================================================
   01 SAGAWEB
   ========================================================================== */
.rr-saga {
	position: relative;
	padding: 80px 24px;
	background-color: var(--rr-bg-muted);
	overflow: hidden;
}

/* 手描き風の虫めがね。SVG 側に opacity 0.03 が入っているのでここでは薄めない */
.rr-saga__doodle {
	position: absolute;
	top: 676px;
	right: 39px;
	z-index: 0;
	width: 310px;
	height: 310px;
	transform: rotate(73.68deg);
	pointer-events: none;
}

.rr-saga__doodle img {
	display: block;
	width: 100%;
	height: 100%;
}

.rr-saga__inner {
	position: relative;
	z-index: 1;
}

/* ---------- 紹介文 ＋ ロゴ ---------- */
.rr-about {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	margin-top: 48px;
}

.rr-about__text {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

.rr-about__text p {
	margin: 0 0 17px;
	font-size: 16px;
	font-weight: 400;
	line-height: 30.4px;
	color: var(--rr-text);
}

.rr-about__text p a {
	color: inherit;
	text-decoration: underline;
	text-underline-position: from-font;
}

.rr-about__text .rr-morelink {
	margin-top: 61px;
}

.rr-about__logo {
	display: grid;
	flex: 0 0 552px;
	place-items: center;
	width: 552px;
	height: 320px;
	padding: 24px;
	border: 1px solid var(--rr-line);
	border-radius: 8px;
	background-color: #fff;
}

.rr-about__logo img {
	width: 400px;
	max-width: 100%;
	height: auto;
}

/* ---------- 佐賀県マップ ＋ 支援実績リスト ---------- */
.rr-works {
	display: flex;
	align-items: center;
	gap: 48px;
	margin-top: 80px;
}

/* ピンの寸法は cqw（地図の幅の 1%）で持たせて、地図が縮んだら一緒に縮むようにする。
   Figma の地図は 576px なので 1px = 0.17361cqw。
   ただし小さい画面で番号が読めなくなるので、max() で下限を付けている */
.rr-map {
	position: relative;
	container-type: inline-size;
	flex: 0 0 576px;
	width: 576px;
	border-radius: 8px;
	overflow: hidden;

	--rr-pin-size: max(24px, 5.5556cqw);
	--rr-pin-font: max(11px, 2.4306cqw);
}

.rr-map__image {
	display: block;
	width: 100%;
	height: auto;
}

/* ピン本体（丸い番号バッジ）。--rr-pin-x / --rr-pin-y は丸の中心 */
.rr-map__pin {
	position: absolute;
	top: var(--rr-pin-y);
	left: var(--rr-pin-x);
	display: grid;
	place-items: center;
	width: var(--rr-pin-size);
	height: var(--rr-pin-size);
	border-radius: 50%;
	background-color: var(--rr-brand);
	box-shadow: 0 0 0 2px #fff;
	color: #fff;
	text-decoration: none;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

a.rr-map__pin:hover,
a.rr-map__pin:focus-visible {
	z-index: 1;
	color: #fff;
	transform: translate(-50%, -50%) scale(1.12);
}

a.rr-map__pin:focus-visible {
	outline: 2px solid var(--rr-brand);
	outline-offset: 4px;
}

.rr-map__pin-no {
	font-size: var(--rr-pin-font);
	font-weight: 700;
	line-height: 1;
}

/* 丸の下に伸びる針（Figma: 長さ 18px / 太さ 3px。丸に 4px 食い込ませる） */
.rr-map__pin::after {
	position: absolute;
	top: calc(100% - max(3px, 0.6944cqw));
	left: 50%;
	width: max(2px, 0.5208cqw);
	height: max(13px, 3.125cqw);
	content: "";
	background-color: var(--rr-brand);
	transform: translateX(-50%);
}

.rr-works__panel {
	flex: 0 0 576px;
	width: 576px;
}

.rr-works__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
	color: var(--rr-text);
}

.rr-works__desc {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 25.2px;
	color: var(--rr-muted);
}

.rr-works__list {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rr-line);
}

.rr-works__item {
	border-bottom: 1px solid var(--rr-line);
}

.rr-case {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

a.rr-case:hover,
a.rr-case:focus-visible {
	color: inherit;
	opacity: 0.65;
}

.rr-case__no {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--rr-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.rr-case__name {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.rr-case__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 28.8px;
	color: var(--rr-text);
}

.rr-case__area {
	font-size: 13px;
	font-weight: 400;
	line-height: 20.8px;
	color: var(--rr-muted);
}

.rr-case__arrow {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
}

.rr-works__panel .rr-morelink {
	margin-top: 32px;
}

.rr-works__note {
	margin: 16px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 25.2px;
	color: var(--rr-muted);
}

/* =============================================================================
   02 HISTORY｜つながりを力に、次の未来へ。
   ========================================================================== */
.rr-history {
	padding: 80px 24px 100px;
}

/* 年表は 1200px 固定。入りきらない幅では縦積みにせず、まるごと横スクロールさせる
   （縦積みにすると 4 枚を貫く横線が成立しないため） */
.rr-timeline__scroller {
	margin-top: 48px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.rr-timeline__scroller::-webkit-scrollbar {
	display: none;
}

.rr-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 276px);
	gap: 32px;
	width: 1200px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* -----------------------------------------------------------------------------
   スクロールバー代わりの進捗バー
   ネイティブのスクロールバーは iOS では触っている間しか出ず、横に続いていることが
   伝わらないので、常に見えるバーを自前で出す。
   幅の同期は共通の sp-carousel.js（[data-sp-progress]）に任せている。
   横スクロールできる幅のときだけ is-scrollable が付くので、それを出し分けに使う。
   -------------------------------------------------------------------------- */
.rr-timeline__bar {
	display: none;
	height: 4px;
	margin-top: 24px;
	border-radius: 999px;
	background-color: var(--rr-line);
	overflow: hidden;
}

.rr-timeline__carousel.is-scrollable .rr-timeline__bar {
	display: block;
}

.rr-timeline__bar-fill {
	display: block;
	/* JS が読み込まれる前でも「一部しか見えていない」ことが分かる初期値 */
	width: 30%;
	height: 100%;
	border-radius: inherit;
	background-color: var(--rr-brand);
	transition: width 0.15s linear;
}

/* 4 枚の写真の下を貫く横線（Figma: 写真の下端から 32px） */
.rr-timeline::before {
	position: absolute;
	top: 216px;
	left: 0;
	width: 100%;
	height: 2px;
	content: "";
	background-color: var(--rr-brand);
}

.rr-timeline__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.rr-timeline__figure {
	display: grid;
	place-items: center;
	width: 276px;
	height: 184px;
	border: 1px solid var(--rr-line);
	border-radius: 8px;
	background-color: #fff;
	overflow: hidden;
}

.rr-timeline__image--cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rr-timeline__image--contain {
	width: 212px;
	height: 120px;
	object-fit: contain;
}

/* 丸は横線の天地中央に重ねる。写真 184 + この margin + 丸の半径 7 が線の中心（217）に合う */
.rr-timeline__dot {
	position: relative;
	z-index: 1;
	width: 14px;
	height: 14px;
	margin-top: 26px;
	border-radius: 50%;
	background-color: var(--rr-brand);
	box-shadow: 0 0 0 3px #fff;
}

.rr-timeline__year {
	margin: 20px 0 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 40px;
	color: var(--rr-text);
}

.rr-timeline__caption {
	margin: 4px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 25.6px;
	color: var(--rr-text);
}

/* =============================================================================
   CONTACT バンド
   ========================================================================== */
.rr-contact {
	padding: 80px 120px;
}

.rr-contact__band {
	display: flex;
	align-items: center;
	padding: 48px 128px;
	border-radius: 8px;
	background: url("../img/regional-revitalization/v2/cta-bg.webp") no-repeat center / cover;
	background-color: #141414;
}

.rr-contact__icon {
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
}

.rr-contact__text {
	flex: 1 1 auto;
	min-width: 0;
	color: #fff;
	text-align: center;
}

.rr-contact__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 22.8px;
	letter-spacing: 1.92px;
}

.rr-contact__copy {
	margin: 7px 0 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 36px;
}

/* =============================================================================
   タブレット
   ========================================================================== */
@media screen and (max-width: 1100px) {
	.rr-hero {
		padding-top: 210px;
	}

	.rr-hero__body {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
	}

	.rr-hero__text,
	.rr-hero__photo {
		flex: 0 0 auto;
		width: 100%;
	}

	.rr-hero__title {
		font-size: 36px;
		line-height: 54px;
	}

	.rr-hero__title br {
		display: none;
	}

	.rr-hero__photo {
		max-width: 552px;
		height: auto;
		aspect-ratio: 552 / 384;
	}

	/* 紹介文とロゴ／地図と実績リストを縦積みにする */
	.rr-about,
	.rr-works {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.rr-about__text .rr-morelink {
		margin-top: 24px;
	}

	.rr-about__logo {
		flex: 0 0 auto;
		width: 100%;
		height: 240px;
	}

	.rr-map,
	.rr-works__panel {
		flex: 0 0 auto;
		width: 100%;
		max-width: 576px;
		margin-inline: auto;
	}

	.rr-saga__doodle {
		display: none;
	}

	.rr-contact {
		padding: 80px 24px;
	}

	.rr-contact__band {
		flex-direction: column;
		gap: 32px;
		padding: 48px 32px;
	}
}

/* =============================================================================
   スマートフォン
   ========================================================================== */
@media screen and (max-width: 767px) {
	.rr-inner {
		width: min(100% - 32px, var(--rr-content));
	}

	.rr-hero {
		padding: 150px 16px 56px;
	}

	.rr-hero__inner {
		gap: 32px;
	}

	.rr-hero__text {
		gap: 24px;
	}

	.rr-hero__title {
		font-size: 28px;
		line-height: 44px;
	}

	.rr-heading {
		font-size: 24px;
		line-height: 36px;
	}

	.rr-saga,
	.rr-history {
		padding-inline: 16px;
		padding-block: 56px;
	}

	.rr-about {
		margin-top: 32px;
	}

	.rr-about__logo {
		height: 180px;
		padding: 16px;
	}

	.rr-works {
		margin-top: 48px;
	}

	.rr-case__title {
		font-size: 16px;
		line-height: 26px;
	}

	.rr-morelink__label {
		font-size: 16px;
	}

	/* 年表は画面の端まで見切れさせて、横に続いていることが分かるようにする。
	   .rr-history の左右 16px を打ち消したうえで、同じ 16px を内側に付け直している。
	   右端の余白は .rr-timeline の padding で持つ
	   （ブロック要素の padding-right はスクロール幅に入らないブラウザがあるため）。 */
	.rr-timeline__scroller {
		width: auto;
		margin-top: 32px;
		margin-inline: -16px;
		padding-left: 16px;
		scroll-snap-type: x proximity;
		scroll-padding-left: 16px;
	}

	.rr-timeline {
		box-sizing: content-box;
		padding-right: 16px;
	}

	/* 横線は右端の余白まで伸ばさず、4 枚目で終わらせる */
	.rr-timeline::before {
		right: 16px;
		width: auto;
	}

	/* スワイプしたとき各項目の頭で止まるようにする */
	.rr-timeline__item {
		scroll-snap-align: start;
	}

	.rr-contact {
		padding: 56px 16px;
	}

	.rr-contact__band {
		padding: 40px 20px;
	}

	.rr-contact__icon {
		flex: 0 0 88px;
		width: 88px;
		height: 88px;
	}

	.rr-contact__copy {
		font-size: 18px;
		line-height: 30px;
	}
}
