@charset "UTF-8";
/**
 * フロントページ専用CSS
 *
 * カラースキーム:
 *   --fp-dark:   #1a1a1a
 *   --fp-tinted: #f5f4f2
 *   --fp-terra:  #c45c3a
 *   --fp-teal:   #427c89
 *
 * @package Arkhe_Child
 */

/* 横スクロール防止（円のはみ出し表現を妨げないよう html/body に設定） */
html,
body {
	overflow-x: hidden;
	max-width: 100%;
}

/* ============================================
   変数
============================================= */
.front-page {
	--fp-dark:   #1a1a1a;
	--fp-tinted: #f5f4f2;
	--fp-terra:  #c45c3a;
	--fp-teal:   #427c89;
	--fp-border: #e2dfd8;
	--fp-radius: 0 32px 0 32px;
}

/* ============================================
   共通セクションヘッダー
============================================= */
.fp-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.fp-section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fp-teal);
	margin-bottom: 8px;
}

.fp-section-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--fp-dark);
	line-height: 1.3;
}

/* ============================================
   1. Hero
============================================= */
.fp-hero {
	width: 100%;
	line-height: 0;
}

/* ============================================
   2. News
============================================= */
.fp-news {
	padding: 72px 0;
	background: var(--fp-tinted);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
}

.fp-news::after {
	content: '';
	position: absolute;
	bottom: -40px;
	left: 0;
	width: 100%;
	height: 80px;
	background: #ffffff;
	clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
	z-index: 1;
}

.fp-news__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

.fp-news .fp-section-label {
	color: var(--fp-teal);
}

.fp-news__list {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
}

.fp-news__item {
	border-bottom: 1px solid var(--fp-border);
}

.fp-news__link {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 16px 4px;
	text-decoration: none;
	transition: color 0.15s;
}

.fp-news__link:hover .fp-news__title {
	color: var(--fp-teal);
}

.fp-news__date {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

.fp-news__title {
	font-size: 15px;
	color: var(--fp-dark);
	line-height: 1.6;
	transition: color 0.15s;
}

.fp-news__more {
	text-align: right;
}

.fp-news__more-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--fp-teal);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.fp-news__more-link:hover {
	text-decoration: underline;
}

/* ============================================
   3. Our Services — 放射状グラデーション＋浮遊円
============================================= */
@keyframes fp-float {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-14px); }
}

.fp-services {
	background-image: url('https://subaco.co.jp/nstCMS_WP/wp-content/uploads/2024/11/3d-abstract-bg-001.jpg');
	background-size: cover;
	background-position: center;
	background-color: #427c89;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
	z-index: 2;
	clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
	margin-top: -60px;
	padding-top: 120px;
}

.fp-services__inner {
	padding: 80px 24px 88px;
}

.fp-services__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
	margin-bottom: 48px;
	text-align: center;
}

/* モバイル: 左右交互オフセット・はみ出し正円、アニメーション維持 */
.fp-services__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: visible;
	gap: 0;
}

.fp-service-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	position: relative;
	width: 85vw;
	height: 85vw;
	max-width: 380px;
	max-height: 380px;
	padding: 52px 36px 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	animation: fp-float 4s ease-in-out infinite;
}

/* 左右交互オフセット＋縦重なり（position: relative + left でX軸を制御） */
.fp-service-item:nth-of-type(1) {
	animation-delay: 0s;
	left: -8vw;
	margin-top: 0;
}

.fp-service-item:nth-of-type(2) {
	animation-delay: 0.7s;
	left: 8vw;
	margin-top: -5vw;
}

.fp-service-item:nth-of-type(3) {
	animation-delay: 1.4s;
	left: -8vw;
	margin-top: -5vw;
}

.fp-service-item__list {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.fp-service-item__list li {
	font-size: clamp(0.85rem, 1.4vw, 1.1rem);
	font-weight: 400;
	color: rgba(255,255,255,0.8);
	line-height: 1.9;
	text-shadow: 0 1px 8px rgba(0,0,0,0.30);
}

.fp-service-item__center {
	padding: 16px 0 12px;
}

.fp-service-item__en {
	display: block;
	font-size: clamp(1.8rem, 3.2vw, 3rem);
	font-weight: 700;
	color: #f7ba39;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	text-shadow: 0 2px 16px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.3);
}

.fp-service-item__ja {
	display: block;
	font-size: clamp(1rem, 1.8vw, 1.4rem);
	font-weight: 400;
	color: rgba(255,255,255,0.85);
	letter-spacing: 0.08em;
	text-shadow: 0 1px 8px rgba(0,0,0,0.30);
}

.fp-service-item__bottom {
	width: 100%;
	text-align: center;
}

.fp-service-item__cta {
	display: inline-block;
	font-size: clamp(0.85rem, 1.2vw, 1rem);
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.05em;
	margin-top: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.3);
	padding-bottom: 2px;
	text-shadow: 0 1px 8px rgba(0,0,0,0.30);
}

/* ============================================
   4. About Us
============================================= */
.fp-about {
	background: #ffffff;
	padding: 80px 0;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
	z-index: 2;
}

.fp-about__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

.fp-about__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fp-teal);
	margin-bottom: 32px;
}

.fp-about__content {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.fp-about__heading {
	font-size: 1.9rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;
	text-orientation: mixed;
	margin: 0;
	flex-shrink: 0;
}

.fp-about__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.fp-about__text {
	font-size: 16px;
	color: rgba(26,26,26,0.8);
	line-height: 2;
	margin: 0;
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;
	text-orientation: mixed;
	text-align: justify;
}

.fp-about__message {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.8;
	border-top: 1px solid rgba(26,26,26,0.15);
	padding-top: 24px;
	margin-top: 16px;
	writing-mode: horizontal-tb;
	-webkit-writing-mode: horizontal-tb;
	width: 100%;
}

/* ============================================
   レスポンシブ（SP 〜768px）
============================================= */
@media (max-width: 768px) {
	.fp-services {
		background-image: url('https://subaco.co.jp/nstCMS_WP/wp-content/uploads/2024/11/3d-abstract-bg-sp001.webp');
	}

	.fp-services__eyebrow {
		font-size: 1.1rem;
	}

	/* --- About Us: モバイルレイアウト（flex + order で右見出し・左本文） --- */
	.fp-about__content {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		width: 100%;
	}

	.fp-about__heading {
		flex-shrink: 0;
		order: 2;
	}

	.fp-about__body {
		flex: 1 1 0%;
		min-width: 0;
		overflow: hidden;
		order: 1;
	}

	.fp-about__text {
		display: block;
		writing-mode: vertical-rl;
		-webkit-writing-mode: vertical-rl;
		text-align: justify;
		-webkit-text-align: justify;
		height: 35vh;
		width: 100%;
		overflow: hidden;
	}

	.fp-about__message {
		writing-mode: horizontal-tb;
		-webkit-writing-mode: horizontal-tb;
		margin-top: 16px;
		width: 100%;
	}
}

/* ============================================
   レスポンシブ（PC 769px〜）
============================================= */
@media (min-width: 769px) {

	/* --- Services eyebrow: PC --- */
	.fp-services__eyebrow {
		font-size: clamp(1.5rem, 3vw, 2.5rem);
		letter-spacing: 0.15em;
		margin-bottom: 60px;
	}

	/* --- Services: PC — 重なり正円、垂直中央 --- */
	.fp-services__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 80vh;
		padding: 80px 24px;
	}

	.fp-services__list {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0;
	}

	.fp-service-item {
		width: clamp(360px, 32vw, 480px);
		height: clamp(360px, 32vw, 480px);
		max-width: none;
		max-height: none;
		border-radius: 50%;
		padding: 48px 40px;
		justify-content: space-between;
		position: relative;
		flex-shrink: 0;
		margin: 0;
		left: 0; /* モバイルの left オフセットをリセット */
		transform: none;
	}

	/* モバイルの nth-of-type オフセットを詳細度で上書きリセット */
	.fp-service-item:nth-of-type(1) {
		left: 0;
		margin-top: 0;
		z-index: 1;
		animation-delay: 0s;
	}

	.fp-service-item:nth-of-type(2) {
		left: 0;
		margin-top: 0;
		margin-left: -60px;
		z-index: 3;
		animation-delay: 0.7s;
	}

	.fp-service-item:nth-of-type(3) {
		left: 0;
		margin-top: 0;
		margin-left: -60px;
		z-index: 2;
		animation-delay: 1.4s;
	}

	.fp-service-item {
		overflow: hidden;
	}

	/* --- About: 縦書き見出し + 横書き本文 --- */
	.fp-about__content {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 48px;
	}

	.fp-about__heading {
		writing-mode: vertical-rl;
		-webkit-writing-mode: vertical-rl;
		text-orientation: mixed;
		font-size: 2.5rem;
		line-height: 1.5;
		flex-shrink: 0;
		order: 0;
	}

	.fp-about__text {
		writing-mode: horizontal-tb;
		-webkit-writing-mode: horizontal-tb;
		font-size: 18px;
		text-align: left;
		max-height: none;
		overflow: visible;
		width: auto;
	}

	.fp-about__body {
		flex: 1;
		width: auto;
		order: 0;
	}
}

/* ============================================
   レスポンシブ（PC 960px〜）
============================================= */
@media (min-width: 960px) {
	.fp-section-title {
		font-size: 2.2rem;
	}

	.fp-about {
		padding: 100px 0;
	}

	.fp-news {
		padding: 88px 0;
	}

	.fp-news__link {
		gap: 24px;
	}
}
