@charset "UTF-8";
/* ==========================================================
	file：top.css（TOPページ専用スタイル）
	2026.03 リニューアル
	01. メインビジュアル
	02. フローティングボタン
	03. セクション共通
	04. Product（商品一覧）
	05. Service（サービス）
	06. Works（制作実績）
	07. Other（Company / Recruit）
	08. News（ニュース）
	09. Cultural Forest（文化の森）
========================================================== */

/* ==========================================================
	01. メインビジュアル
========================================================== */
.mainvisual {
	position: relative;
	width: 100%;
	margin-top: -4rem;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #2E2E2E;
}
/* SP: メインビジュアル内にフローティングバナーを含めるため flex で構成 */
.mainvisual__inner {
	position: relative;
	width: 100%;
	aspect-ratio: 2.5 / 3;
	min-height: 500px;
	overflow: hidden;
}

/* 格子柄背景（最背面）— 高さ70%、下寄り配置 */
.mainvisual__grid {
	position: absolute;
	bottom: 10%;
	left: 0;
	width: 100%;
	height: 70%;
	z-index: 0;
	background: url('../img/top/bg_grid01.webp') repeat center left;
	background-size: 600px auto;
}

/* イラスト背景画像 */
.mainvisual__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.mainvisual__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 56% top;
}

/* SP: 下部白グラデーション（フローティングバナーへの繋ぎ） */
.mainvisual__inner::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 25%;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 70%, rgba(255,255,255,1) 100%);
	z-index: 2;
	pointer-events: none;
}

/* メインコピー — SP:横書き（デフォルト） / PC:縦書き */
.mainvisual__copy {
	position: absolute;
	bottom: 8%;
	left: 5%;
	z-index: 10;
	font-size: 2.8rem;
	font-weight: 900;
	line-height: 1.6;
	color: #222;
	letter-spacing: 0.05em;
	writing-mode: horizontal-tb;
}

.mainvisual__copy .accent {
	color: #1E9A60;
}

/* SP: 横書き時の行分割 */
.mainvisual__copy .line {
	display: block;
}

/* PC縦書き時の改行（SPでは非表示） */
.mainvisual__copy .line-v {
	display: none;
}
br.line-v {
	display: none;
}

/* ----------------------------------------------------------
	01-b. ピンマーカー & ツールチップ（吹き出し）
---------------------------------------------------------- */
.mainvisual__pins {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.mv-pin {
	position: absolute;
	cursor: pointer;
	z-index: 6;
	text-decoration: none;
}

/* ピンアイコン（icon_pin.svg） */
.mv-pin__icon {
	width: 32px;
	height: auto;
	display: block;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
	/* ふわふわアニメーション */
	animation: pin-float 2.5s ease-in-out infinite;
	transform-origin: bottom center;
}

/* 各ピンのアニメーションをずらして自然な動きに（6本） */
.mv-pin:nth-child(1) .mv-pin__icon { animation-delay: 0s; }
.mv-pin:nth-child(2) .mv-pin__icon { animation-delay: 0.5s; }
.mv-pin:nth-child(3) .mv-pin__icon { animation-delay: 1.0s; }
.mv-pin:nth-child(4) .mv-pin__icon { animation-delay: 0.3s; }
.mv-pin:nth-child(5) .mv-pin__icon { animation-delay: 0.8s; }
.mv-pin:nth-child(6) .mv-pin__icon { animation-delay: 1.3s; }

/* ふわふわ浮遊 + Y軸回転 */
@keyframes pin-float {
	0%   { transform: translateY(0)    rotateY(0deg); }
	25%  { transform: translateY(-6px) rotateY(0deg); }
	50%  { transform: translateY(-3px) rotateY(180deg); }
	75%  { transform: translateY(-8px) rotateY(180deg); }
	100% { transform: translateY(0)    rotateY(360deg); }
}

/* ホバー時：アニメーション一時停止 + 拡大 */
.mv-pin:hover .mv-pin__icon {
	animation-play-state: paused;
	transform: translateY(-4px) scale(1.2);
	transition: transform 0.3s ease;
}

/* ツールチップ（吹き出し） */
.mv-pin__tooltip {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #333;
	font-size: 1.3rem;
	font-weight: 600;
	white-space: nowrap;
	padding: 0.6em 1.2em;
	border-radius: 6px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
/* 吹き出し三角 */
.mv-pin__tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #fff;
}
/* ホバーでふわっと表示 */
.mv-pin:hover .mv-pin__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}

/* ピン配置（%指定 — PC完成図基準、SP時も同比率で縮小）
   6本のピン：左から順に配置 */
.mv-pin--contact    { top: 60%; left: 28%; }
.mv-pin--product    { top: 40%; left: 35%; }
.mv-pin--service    { top: 68%; left: 46%; }
.mv-pin--works      { top: 22%; left: 69%; }
.mv-pin--company    { top: 50%; left: 55%; }
.mv-pin--news       { top: 48%; left: 76%; }


/* ==========================================================
	02. フローティングボタン（サービスサイト /service/ へのリンク）
	SP: メインビジュアル下部の全幅バナー
	PC: 右下固定フローティング（スクロールで非表示）
========================================================== */

/* --- SP デフォルト：MV下部全幅バナー --- */
.floating-btn {
	position: relative;
	width: 100%;
	z-index: 20;
}
/* SPではスクロール非表示を無効化 */
.floating-btn.is-hidden {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.floating-btn__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
	background: #1E9A60;
	color: #fff;
	padding: 1.2em 1em;
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	line-height: 1.5;
	transition: background 0.3s ease;
}
.floating-btn__link:hover {
	background: #178a54;
}

/* メインタイトル「戦略×クリエイティブで成長へ」 */
.floating-btn__main {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* サブテキスト「まずはヒントを探してみる▶▶▶ サービスサイトへ移動します。」 */
.floating-btn__sub {
	display: block;
	font-size: 1.1rem;
	font-weight: 400;
	opacity: 0.9;
	letter-spacing: 0.02em;
}

/* SP: PC用バナー画像・閉じるボタンは非表示 */
.floating-btn__img {
	display: none;
}
.floating-btn__close {
	display: none;
}


/* ==========================================================
	03. セクション共通
========================================================== */
.top-section {
	position: relative;
	padding: 60px 0;
}

/* セクションヘッダー（タイトル + もっと見るリンク） */
.top-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 3rem;
}

.topsection-ttl {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0;
	line-height: 1.3;
}
.topsection-ttl .roboto {
	color: #1E9A60;
	font-size: 3.2rem;
	font-weight: 600;
	padding-right: 1.75rem;
	margin-bottom: 0.3rem;
	font-family: 'Roboto Condensed', sans-serif;
}

/* 「もっと見る」リンク */
.top-more-link {
	font-size: 1.4rem;
	color: #2E2E2E;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	transition: color 0.3s ease;
	flex-shrink: 0;
}
.top-more-link::after {
	content: '▶';
	font-size: 0.8rem;
	color: #1E9A60;
}
.top-more-link:hover {
	color: #1E9A60;
}


/* ==========================================================
	04. Product（商品一覧）カルーセル
	TOPページ専用クラス .top-product-slider で slick 制御
	中央3件表示 + 左右見切れ
========================================================== */
.product {
	background: #fff;
	border-bottom: 1px solid #2E2E2E;
}

/* 下層で使われるタイトル・メッセージはTOPでは非表示 */
#itemlist .section-ttl,
#itemlist .item-msg {
	display: none;
}

/* カルーセル（translateX方式） */
.top-product-slider .item-list,
.top-product-slider .wrap {
	max-width: none;
	padding: 0;
}
.top-product-slider .item-list-slider {
	display: block !important;
	overflow: hidden;
	padding: 0 5%;
}
/* track内のアイテム（JSでtrack divが生成される） */
.top-product-slider .item-list-link {
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: calc((100% - 48px) / 3);
	margin: 0 !important;
}


/* ==========================================================
	05. Service（サービス）
========================================================== */
.solution {
	border-bottom: 1px solid #2E2E2E;
}

/* SP: 画像→テキストの縦並び */
.solution .wrap-right {
	text-align: center;
}
.solution .wrap-right .solution-img-top {
	max-width: 100%;
	height: auto;
	margin-bottom: 3rem;
}
.solution .wrap-right p {
	margin: 2rem 0 3rem;
	text-align: left;
	line-height: 2;
}


/* ==========================================================
	06. Works（制作実績）- カルーセル維持
========================================================== */
.works {
	border-bottom: 1px solid #2E2E2E;
}

#works {
	margin-top: 30px;
	padding-left: 0;
	list-style: none;
	overflow: hidden;
}

/* 各カード */
#works li {
	flex: 0 0 400px;
	min-width: 400px;
	height: 500px;
	background: #F5F7FA;
	padding: 3rem 2rem;
	border: 1px solid #2E2E2E;
	box-sizing: border-box;
	overflow: hidden;
}

#works li a img {
	object-fit: cover;
	aspect-ratio: 6 / 5;
	width: 100%;
	margin-bottom: 1.5rem;
	transition: opacity 0.5s;
}
#works .worksCompany {
	font-size: 1.8rem;
	font-weight: bold;
	margin-bottom: 0.25rem;
}
#works li a {
	text-decoration: none;
	color: #333;
}
#works li a:hover {
	color: #1E9A60;
}
#works li a:hover img {
	opacity: 0.8;
}


/* ==========================================================
	07. Other（Company / Recruit）— 画像カード
========================================================== */
.other {
	background: #fff;
	padding: 60px 0;
}
.other .wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.other-card {
	display: block;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.other-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.other-card img {
	width: 100%;
	height: auto;
	display: block;
}


/* ==========================================================
	08. News（ニュース）
========================================================== */
.news {
	background: #F5F7FA;
	border-bottom: 1px solid #2E2E2E;
}

/* ニュースリストをカード内に */
.news-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 2rem;
	margin-top: 2rem;
}

#news {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* 各ニュースアイテム */
#news li {
	padding: 2rem 0 1rem;
	border-bottom: 1px solid #999;
}
#news li:first-child {
	padding-top: 0;
	border-top: none;
}
#news li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

#news li a {
	display: block;
	color: #333;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
#news li a:hover {
	opacity: 0.7;
}

/* ラベル + 日付行 */
#news li a .news-meta {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 0.8rem;
}
#news .label {
	display: inline-block;
	background: #1E9A60;
	color: #fff;
	font-size: 1.1rem;
	padding: 0.2em 1em;
	border-radius: 20px;
	font-weight: 600;
}
#news .news-date {
	font-size: 1.3rem;
	color: #888;
	font-family: 'Roboto Condensed', sans-serif;
}

/* タイトル行 */
#news .news-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 0.5rem;
	font-size: 1.4rem;
}


/* ==========================================================
	09. Cultural Forest（文化の森）
	背景: 格子柄、カード内にタイトル(丸ゴシック)+リンク
========================================================== */
#magazine {
	background: url('../img/top/bg_grid01.webp') repeat center center;
	padding: 6rem 0;
}

.magazine-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 16px;
	padding: 3rem 2.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

/* タイトル — 丸ゴシック（別途Webフォント読込想定） */
.magazine-card__ttl {
	font-size: 2.8rem;
	font-weight: 700;
	color: #1E9A60;
	margin-bottom: 1.5rem;
	line-height: 1.4;
	/* 丸ゴシック: フォント読込後に適用 */
	font-family: 'Zen Maru Gothic', 'Rounded Mplus 1c', sans-serif;
}

.magazine-card__desc {
	font-size: 1.4rem;
	line-height: 1.9;
	color: #555;
	margin-bottom: 2rem;
}

/* リンクリスト */
.magazine-card__links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.magazine-card__links li {
	border-bottom: 1px solid #2E2E2E;
}
.magazine-card__links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.4rem 0.5rem;
	font-size: 1.4rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}
.magazine-card__links a:hover {
	color: #1E9A60;
}
.magazine-card__links a::after {
	content: '▶';
	color: #1E9A60;
	font-size: 0.9rem;
	flex-shrink: 0;
}


/* ==========================================================
	レスポンシブ：768px 以上（タブレット）
========================================================== */
@media (min-width: 768px) {

	/* -- メインビジュアル -- */
	.mainvisual {
		margin-top: -100px;
	}
	.mainvisual__inner {
		aspect-ratio: 1366 / 840;
		min-height: auto;
	}
	/* PC: グラデーション不要 */
	.mainvisual__inner::after {
		display: none;
	}

	/* PC: 縦書きに切り替え */
	.mainvisual__copy {
		writing-mode: vertical-rl;
		text-orientation: mixed;
		font-size: 3.6rem;
		line-height: 1.6;
		letter-spacing: 0.08em;
		bottom: 15%;
		left: 8%;
	}
	/* PC: 横書き用の改行を無効化、縦書き用の改行を有効化 */
	.mainvisual__copy .line {
		display: inline;
	}
	br.line-v {
		display: block;
	}
	.mainvisual__copy .line-v {
		display: block;
	}

	.mv-pin__icon {
		width: 38px;
	}
	.mv-pin__tooltip {
		font-size: 1.4rem;
	}

	/* -- PC: 上に戻るボタンをフローティングの上に配置 -- */
	.pagetop {
		bottom: 200px;
		right: 40px;
	}

	/* -- フローティングボタン：PC = 右下固定・画像バナー -- */
	.floating-btn {
		position: fixed;
		bottom: 30px;
		right: 30px;
		width: auto;
		transition: opacity 0.4s ease, visibility 0.4s ease;
	}
	/* ×ボタンクリック時に非表示 */
	.floating-btn.is-hidden {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
	/* PC: テキスト要素を非表示、画像で表示 */
	.floating-btn__main,
	.floating-btn__sub {
		display: none;
	}
	.floating-btn__link {
		display: block;
		padding: 0;
		background: none;
		border-radius: 0;
		box-shadow: none;
		line-height: 1;
	}
	.floating-btn__link:hover {
		background: none;
		transform: translateY(-3px);
	}
	/* PC用バナー画像 */
	.floating-btn__img {
		display: block;
		width: 320px;
		height: auto;
		border-radius: 8px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
		transition: box-shadow 0.3s ease;
	}
	.floating-btn__link:hover .floating-btn__img {
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
	}
	/* PC: 閉じるボタン表示 */
	.floating-btn__close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: -10px;
		right: -10px;
		width: 24px;
		height: 24px;
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 50%;
		font-size: 1.3rem;
		color: #666;
		cursor: pointer;
		line-height: 1;
		z-index: 1;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
		transition: background 0.2s ease;
	}
	.floating-btn__close:hover {
		background: #f0f0f0;
	}

	/* -- セクション共通 -- */
	.top-section {
		padding: 100px 0;
	}
	.topsection-ttl {
		font-size: 1.8rem;
	}
	.topsection-ttl .roboto {
		font-size: 4rem;
	}

	/* -- Product -- */
	.top-product-slider .item-list-link {
		margin: 0 10px;
	}
	.top-product-slider .item-list-slider-ttl {
		font-size: 1.5rem;
	}

	/* -- Service -- */
	.solution {
		position: relative;
	}
	.solution .wrap-right {
		display: flex;
		align-items: center;
		gap: 4rem;
		text-align: left;
	}
	.solution .wrap-right .solution-text {
		flex: 1;
	}
	.solution .wrap-right .solution-img-top {
		flex: 1;
		max-width: 50%;
		margin-bottom: 0;
	}
	.solution .wrap-right p {
		margin: 2rem 0 3rem;
	}

	/* -- Works -- */
	#works {
		margin-top: 40px;
	}
	#works li {
		flex: 0 0 350px;
		min-width: 350px;
		height: 450px;
	}

	/* -- Other -- */
	.other {
		padding: 80px 0;
	}
	.other .wrap {
		flex-direction: row;
		gap: 30px;
	}
	.other-card {
		flex: 1;
	}

	/* -- News -- */
	.news-card {
		padding: 3rem;
	}
	#news .news-title {
		font-size: 1.5rem;
	}

	/* -- Cultural Forest -- */
	#magazine {
		background-size: 1366px auto;
		padding: 10rem 0;
	}
	.magazine-card {
		display: flex;
		gap: 4rem;
		align-items: flex-start;
	}
	.magazine-card__body {
		flex: 1;
	}
	.magazine-card__nav {
		flex: 1;
		padding-top: 1rem;
	}
}


/* ==========================================================
	レスポンシブ：992px 以上（デスクトップ）
========================================================== */
@media (min-width: 992px) {

	/* -- メインビジュアル -- */
	.mainvisual {
		margin-top: -130px;
	}
	/* PC 992px以上: 格子柄サイズ調整 */
	.mainvisual__grid {
		background-size: 1366px auto;
	}
	.mainvisual {
		padding-bottom: 0;
	}
	.mainvisual__copy {
		font-size: 4.4rem;
		bottom: 18%;
		left: 6%;
	}
	.mv-pin__icon {
		width: 44px;
	}
	.mv-pin__tooltip {
		font-size: 1.5rem;
		padding: 0.7em 1.4em;
	}

	/* -- セクション共通 -- */
	.top-section {
		padding: 120px 0;
	}
	.topsection-ttl .roboto {
		font-size: 4.8rem;
	}

	/* -- Product -- */
	.top-product-slider .item-list-link {
		margin: 0 12px;
	}
	.top-product-slider .item-list-slider-ttl {
		font-size: 1.6rem;
	}

	/* -- Service -- */
	.solution {
		padding: 100px 0 120px;
	}

	/* -- Works -- */
	#works {
		margin-top: 50px;
	}

	/* -- Other -- */
	.other {
		padding: 100px 0;
	}

	/* -- News -- */
	.news-card {
		padding: 3rem 4rem;
		margin-top: 3rem;
		max-width: 800px;
	}

	/* -- Cultural Forest -- */
	.magazine-card {
		padding: 4rem;
	}
	.magazine-card__ttl {
		font-size: 3.4rem;
	}
}


/* ==========================================================
	レスポンシブ：1400px 以上（ワイド）
========================================================== */
@media (min-width: 1400px) {

	/* -- メインビジュアル -- */
	.mainvisual__copy {
		font-size: 5rem;
		bottom: 18%;
		left: calc(50% - 600px);
	}

	/* -- Service -- */
	.solution {
		padding: 120px 0 150px;
	}

	/* -- Works -- */

	/* -- Cultural Forest -- */
	.magazine-card {
		padding: 5rem;
		gap: 6rem;
	}
}


/* ==========================================================
	レスポンシブ：550px 以下（小型SP）
========================================================== */
@media (max-width: 550px) {

	.mainvisual__copy {
		font-size: 3.0rem;
		line-height: 1.6;
		bottom: 6%;
		left: 4%;
	}

	/* SP: ピン位置 */
	.mv-pin--contact    { top: 52%; left: 7%; }
	.mv-pin--product    { top: 35%; left: 20%; }
	.mv-pin--service    { top: 60%; left: 39%; }
	.mv-pin--works      { top: 20%; left: 77%; }
	.mv-pin--company    { top: 45%; }
	.mv-pin--news       { top: 42%; left: 88%; }

	.mv-pin__icon {
		width: 24px;
	}
	.mv-pin__tooltip {
		font-size: 1.1rem;
		padding: 0.5em 0.8em;
	}

	/* SP バナー微調整 */
	.floating-btn__main {
		font-size: 1.4rem;
	}
	.floating-btn__sub {
		font-size: 1.0rem;
	}
	.floating-btn__link {
		padding: 1em 0.8em;
	}

	.topsection-ttl .roboto {
		font-size: 2.8rem;
	}

	.top-section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}
	.top-more-link {
		align-self: flex-end;
	}

	/* Product */
	.top-product-slider .item-list-slider .item-list-link {
		flex: 0 0 75%;
		min-width: 75%;
	}
	.top-product-slider .item-list-slider-ttl {
		font-size: 1.3rem;
	}
	.top-product-slider p {
		font-size: 1.1rem;
	}

	/* Works */
	#works li {
		flex: 0 0 260px;
		min-width: 260px;
		height: 380px;
	}

	/* News */
	.news-card {
		padding: 1.5rem;
	}
	#news .news-title {
		font-size: 1.3rem;
	}

	/* Cultural Forest */
	.magazine-card {
		padding: 2rem 1.5rem;
	}
	.magazine-card__ttl {
		font-size: 2.2rem;
	}
	.magazine-card__links a {
		font-size: 1.3rem;
		padding: 1.2rem 0;
	}
}
