/* ========================================
   リセット & ベーススタイル
======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	color: #000;
	background: #fff;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

/* ========================================
   メインコンテナ
======================================== */
#container {
	display: flex;
	min-height: 100vh;
}

/* ========================================
   左カラム（サイドバー） - 固定
======================================== */
.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 296px;
	height: 100vh;
	background: #f7f7f7;
	z-index: 1000;
	overflow-y: auto;
	padding: 40px 26px;
}

.sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.logo {
	margin-bottom: 10px;
}

.logo img {
	width: 100%;
	max-width: 202px;
}

.tagline {
	font-size: 0.875rem; /* 14px */
	line-height: 1.4;
	margin-bottom: 40px;
	margin-top: 10px;
}

.sidebar-nav {
	margin-bottom: 40px;
}

.sidebar-nav ul {
	list-style: none;
}

.sidebar-nav li {
	margin-bottom: 15px;
}

.sidebar-nav a {
	font-size: 0.9375rem; /* 15px */
	transition: opacity 0.3s;
}

.sidebar-nav a:hover {
	opacity: 0.7;
}

.company-info {
	font-size: 0.9375rem; /* 15px */
	line-height: 1.5;
	margin-bottom: 20px;
	margin-top: auto;
}

.company-info .phone-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s;
}

.company-info .phone-link:hover {
	opacity: 0.7;
}

.company-info .phone-link svg {
	flex-shrink: 0;
}

.company-info .map-link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s;
	border-bottom: 1px solid transparent;
}

.company-info .map-link:hover {
	opacity: 0.7;
	border-bottom: 1px solid currentColor;
}

.social {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.social p {
	font-size: 0.9375rem; /* 15px */
	margin-bottom: 0;
}

.social img {
	width: 18px;
	height: 18px;
}

.copyright {
	font-size: 0.75rem; /* 12px */
	line-height: 1.9;
}

/* ========================================
   右カラム（メインコンテンツ）
======================================== */
.main-content {
	margin-left: auto;
	margin-right: 0;
	width: calc(100% - 296px);
	min-height: 100vh;
}

/* ========================================
   セクション共通スタイル
======================================== */
section {
	padding: 80px 15%;
	position: relative;
}

.section-title {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.125rem; /* 18px */
	font-weight: normal;
	margin-bottom: 20px;
	margin-left: 0.8%;
	}

.section-subtitle-vertical {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.5625rem; /* 25px */
	writing-mode: vertical-rl;
	position: absolute;
	/* left: 4%; */
	top: 120px;
}

/* ========================================
   1. ヒーローセクション
======================================== */
.hero-section {
	min-height: 600px;
	background: #fff;
	padding: 0;
	position: relative;
}

.hero-image {
	width: 100%;
	height: 500px;
	overflow: hidden;
	position: relative;
}

.hero-image img,
.hero-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(77, 77, 77, 0.4);
	pointer-events: none;
}

.hero-title {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.9375rem; /* 31px */
	font-weight: normal;
	color: #fff;
	position: absolute;
	top: 230px;
	left: 15%;
	z-index: 10;
}

.hero-description {
	font-size: 1rem; /* 16px */
	line-height: 2.2;
	padding: 60px 15%;
	letter-spacing: -0.6px;
}

/* ========================================
   2. ギャラリーセクション - パズルデザイン
======================================== */
.gallery-section {
	background: #fff;
	padding: 60px 15%;
}

.gallery-section {
	container-type: inline-size;
	container-name: gallery;
}

/*
 * ギャラリー画像の表示サイズの制御（画面幅で変化）
 * ----------------------------------------
 * 基準: .gallery-section の幅 = 100cqw（コンテナクエリ）
 * 例: パディング 15%×2 でコンテンツ幅は約 70vw、max-width: 1200px でクリップ
 *
 * 【4列・gap 20px の場合】
 * ・1列の幅 = (100cqw - 60px) / 4
 * ・1行の高さ = 上記 × 9/16（16:9） = grid-auto-rows の値
 *
 * 【出る2パターンのサイズ】
 * ・小（1セル）: 幅 = 1列幅、高さ = 1行高さ
 *    例: 100cqw=536px → 約 119×67px → 画面で 123×69px 程度になることがある
 * ・大（横長=2列×2行）: 幅 = 2列 + 1gap、高さ = 2行 + 1gap
 *    例: 100cqw=536px → 幅 258、高さ 154 → 画面で 268×159px 程度になることがある
 *
 * 変更したい場合: gap / 列数 / 16:9 の比率を下記の calc で調整
 * 表示サイズ 1.5倍: 行高さに * 1.5 を適用
 */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	/* 16:9 のセル高さ × 1.5（4列・gap 20px） */
	grid-auto-rows: calc((100cqw - 60px) / 4 * 9 / 16 * 1.5);
	gap: 20px;
	max-width: 1200px;
}

/* ワイヤーフレーム配置: 左列4・右列7、4行目左2+右2、5行目右に2（2x2下段） */
.gallery-grid-wireframe {
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: calc((100cqw - 60px) / 4 * 9 / 16 * 1.5);
}

.gallery-item {
	overflow: hidden;
	border-radius: 4px;
	position: relative;
	cursor: pointer;
	grid-column: span 1;
	grid-row: span 1;
	min-height: 0;
}

/* 横長画像 (2x1) → 16:9 のため2行分の高さ */
.gallery-item-wide {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-item picture {
	display: block;
	width: 100%;
	height: 100%;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease-out;
	will-change: transform;
	/* scale(1) で枠内に収め、上部切れを防止（ホバー時のみ拡大） */
	transform: scale(1);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* ギャラリーモーダル */
.gallery-modal {
	display: none;
	position: fixed;
	z-index: 3000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-modal.active {
	display: flex;
	opacity: 1;
}

.modal-content {
	max-width: 80vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
	from {
		transform: scale(0.7);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: #fff;
	font-size: 50px;
	font-weight: bold;
	background: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.3s ease;
	padding: 0;
	line-height: 1;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
	opacity: 0.7;
}

/* ========================================
   3. PHILOSOPHYセクション
======================================== */
.philosophy-section {
	background: #e6e6e6;
	padding: 80px 15%;
}

.philosophy-content {
	max-width: 900px;
	margin-left: 8%;
}

.philosophy-image {
	margin-bottom: 40px;
	overflow: hidden;
}

.philosophy-image img {
	width: 100%;
	max-width: 755px;
	will-change: transform;
	transform: scale(1.05);
	transition: transform 0.1s ease-out;
}

/* スライダー */
.philosophy-slider {
	margin-top: 60px;
}

.slider-container {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.slider-wrapper {
	overflow: hidden;
}

.slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.slider-item {
	flex: 0 0 auto;
	padding: 0 10px;
	box-sizing: border-box;
}

.slider-item img {
	width: 170.08px;
	height: 127.56px;
	object-fit: cover;
	display: block;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.slider-dot.active {
	background: #333;
	transform: scale(1.2);
}

.slider-dot:hover {
	background: #666;
}

.philosophy-headline {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.5625rem; /* 25px */
	font-weight: normal;
	margin-bottom: 20px;
}

.philosophy-text {
	font-size: 0.9375rem; /* 15px */
	line-height: 2.3;
	letter-spacing: -0.6px;
	margin-bottom: 40px;
}

/* ========================================
   4. VISIONセクション
======================================== */
.vision-section {
	background: #fff;
	padding: 80px 15%;
}

.vision-content {
	max-width: 900px;
	margin-left: 8%;
}

.vision-image {
	margin-bottom: 40px;
	overflow: hidden;
}

.vision-image img {
	width: 100%;
	max-width: 985px;
	will-change: transform;
}

.vision-image-bottom {
	overflow: hidden;
}

.vision-image-bottom img {
	transform: scale(1.05);
	transition: transform 0.1s ease-out;
	will-change: transform;
}

.vision-headline {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.5625rem; /* 25px */
	font-weight: normal;
	margin-bottom: 20px;
}

.vision-text {
	font-size: 0.9375rem; /* 15px */
	line-height: 2.3;
	letter-spacing: -0.6px;
	margin-bottom: 40px;
}

.vision-image-bottom img {
	width: 100%;
	max-width: 984px;
}

/* ========================================
   5. MISSIONセクション
======================================== */
.mission-section {
	background: #fff;
	padding: 80px 15%;
}

.mission-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	max-width: 900px;
	margin-left: 8%;
}

.mission-card {
	background: #f2f2f2;
	padding: 40px 30px;
	border-radius: 8px;
}

.mission-card:nth-child(5) {
	grid-column: 1 / -1;
	max-width: 50%;
}

.mission-card h3 {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.5625rem; /* 25px */
	font-weight: normal;
	margin-bottom: 15px;
}

.mission-card p {
	font-size: 0.9375rem; /* 15px */
	line-height: 1.7;
	letter-spacing: -0.6px;
}

/* ========================================
   6. COMPANYセクション
======================================== */
.company-section {
	background: #e6e6e6;
	padding: 80px 15%;
}

.company-content {
	max-width: 900px;
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

.company-logo {
	flex-shrink: 0;
	position: relative;
	width: 236px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.company-logo img {
	width: 186px;
	height: 139.5px;
	object-fit: cover;
}

.company-logo .logo-img-1 {
	align-self: flex-end;
}

.company-logo .logo-img-2 {
	align-self: flex-end;
}

.company-info-table {
	display: grid;
	grid-template-columns: 120px 1fr;
	column-gap: 0;
	font-size: 0.9375rem; /* 15px */
	line-height: 1.7;
	letter-spacing: -0.6px;
}

.company-info-table dt {
	font-weight: normal;
	padding: 10px 15px;
}

.company-info-table dd {
	font-weight: normal;
	padding: 10px 15px;
}

/* 社名 (1行目) */
.company-info-table dt:nth-child(1),
.company-info-table dd:nth-child(2) {
	background: #F2F2F2;
}

/* 所在地 (3行目) */
.company-info-table dt:nth-child(5),
.company-info-table dd:nth-child(6) {
	background: #F2F2F2;
}

/* 従業員 (5行目) */
.company-info-table dt:nth-child(9),
.company-info-table dd:nth-child(10) {
	background: #F2F2F2;
}

/* FAX (7行目) */
.company-info-table dt:nth-child(13),
.company-info-table dd:nth-child(14) {
	background: #F2F2F2;
}

/* ========================================
   7. INQUIRYセクション
======================================== */
.inquiry-section {
	background: #fff;
	padding: 80px 15%;
	min-height: 600px;
}

.inquiry-content {
	max-width: 800px;
	margin-left: 8%;
}

.inquiry-note {
	font-size: 0.9375rem; /* 15px */
	line-height: 1.7;
	letter-spacing: -0.6px;
	margin-bottom: 40px;
}

.inquiry-form {
	background: #fff;
}

.form-group {
	margin-bottom: 30px;
}

.form-group label {
	display: block;
	font-size: 0.9375rem; /* 15px */
	margin-bottom: 10px;
	letter-spacing: -0.6px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	background: #f2f2f2;
	font-size: 0.9375rem; /* 15px */
	font-family: inherit;
	border-radius: 4px;
}

.form-group textarea {
	resize: vertical;
	min-height: 150px;
}

.form-privacy {
	margin: 30px 0;
}

.form-privacy label {
	display: flex;
	align-items: flex-start;
	font-size: 0.8125rem; /* 13px */
	line-height: 1.7;
	letter-spacing: -0.6px;
}

.form-privacy input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 4px;
}

.privacy-link {
	color: #222bff;
	text-decoration: underline;
}

.submit-btn {
	background: transparent;
	border: 1px solid #707070;
	padding: 12px 50px;
	font-size: 0.9375rem; /* 15px */
	font-family: inherit;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.3s, color 0.3s;
}

.submit-btn:hover {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ========================================
   フェードインアニメーション
======================================== */
.fadein {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1s ease, transform 1s ease;
}

.fadein.scrollin {
	opacity: 1;
	transform: translateY(0);
}

/* ========================================
   モバイル専用ヘッダー
======================================== */
.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: #fff;
	z-index: 2000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	align-items: center;
	padding: 0 20px;
	justify-content: space-between;
}

.header-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.header-logo img {
	height: 40px;
	width: auto;
	max-width: 150px;
}

.hamburger-btn {
	background: transparent;
	border: none;
	width: 50px;
	height: 50px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 0;
	transition: all 0.3s ease;
	position: relative;
}

.hamburger-btn span {
	display: block;
	width: 24px;
	height: 2px;
	background: #000;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
	opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
	.sidebar {
		width: 250px;
	}
	
	.main-content {
		margin-left: auto;
		margin-right: 0;
		width: calc(100% - 250px);
	}
	
	/* ギャラリーグリッド - タブレット用（16:9 × 1.5） */
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: calc((100cqw - 40px) / 3 * 9 / 16 * 1.5);
	}
	
	.gallery-item-wide {
		grid-column: span 2;
		grid-row: span 2;
	}
}

@media (max-width: 768px) {
	/* モバイルヘッダーを表示 */
	.mobile-header {
		display: flex;
	}
	
	/* サイドバーを画面外に配置 */
	.sidebar {
		position: fixed;
		left: -100%;
		top: 70px;
		width: 280px;
		height: calc(100vh - 70px);
		background: #f7f7f7;
		z-index: 1500;
		overflow-y: auto;
		transition: left 0.3s ease;
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	}
	
	/* サイドバーが開いているとき */
	.sidebar.active {
		left: 0;
	}
	
	/* メインコンテンツ */
	.main-content {
		margin-left: 0;
		width: 100%;
		padding-top: 70px;
	}
	
	/* セクションのパディング調整 */
	section {
		padding: 60px 15%;
	}
	
	/* ヒーローセクション */
	.hero-image {
		height: 300px;
	}
	
	.hero-title {
		font-size: 1.5rem; /* 24px */
		top: 120px;
		left: 15%;
	}
	
	.hero-description {
		font-size: 0.875rem; /* 14px */
		line-height: 2;
		padding: 40px 15%;
	}
	
	.hero-description br {
		display: none;
	}
	
	/* セクションタイトル */
	.section-title {
		font-size: 1rem;
	}
	
	.section-subtitle-vertical {
		position: static;
		writing-mode: horizontal-tb;
		margin-bottom: 20px;
		font-size: 1.25rem; /* 20px */
	}
	
	/* 各セクションのコンテンツ */
	.philosophy-content,
	.vision-content,
	.mission-grid,
	.company-content,
	.inquiry-content {
		margin-left: 0;
	}
	
	.philosophy-headline,
	.vision-headline {
		font-size: 1.25rem; /* 20px */
	}
	
	.philosophy-text,
	.vision-text {
		font-size: 0.875rem; /* 14px */
		line-height: 2;
	}
	
	.philosophy-text br,
	.vision-text br {
		display: none;
	}
	
	/* ギャラリーグリッド - モバイル（16:9 × 1.5） */
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: calc((100cqw - 12px) / 2 * 9 / 16 * 1.5);
		gap: 12px;
	}
	
	.gallery-item-wide {
		grid-column: span 2;
		grid-row: span 2;
	}

	/* ミッショングリッド */
	.mission-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.mission-card {
		padding: 30px 20px;
	}
	
	.mission-card h3 {
		font-size: 1.25rem; /* 20px */
	}
	
	.mission-card p {
		font-size: 0.875rem; /* 14px */
	}
	
	.mission-card:nth-child(5) {
		max-width: 100%;
	}
	
	/* 会社情報 */
	.company-content {
		flex-direction: column;
		gap: 30px;
	}
	
	.company-info-table {
		grid-template-columns: 100px 1fr;
		font-size: 0.875rem; /* 14px */
	}
	
	.company-info-table dt,
	.company-info-table dd {
		padding: 8px 12px;
	}
	
	/* お問い合わせフォーム */
	.inquiry-note {
		font-size: 0.875rem; /* 14px */
	}
	
	.inquiry-note br {
		display: none;
	}
	
	.form-group label {
		font-size: 0.875rem; /* 14px */
	}
	
	.form-group input,
	.form-group textarea {
		font-size: 0.875rem; /* 14px */
		padding: 10px 14px;
	}
	
	.form-privacy label {
		display: flex;
		align-items: flex-start;
		font-size: 0.75rem; /* 12px */
	}

	.form-privacy input[type="checkbox"] {
		flex-shrink: 0;
	}
	
	.submit-btn {
		width: 100%;
		font-size: 0.9375rem; /* 15px */
		padding: 14px 20px;
	}
	
	/* モーダル */
	.modal-content {
		max-width: 90vw;
		max-height: 70vh;
	}
	
	.modal-close {
		top: 10px;
		right: 10px;
		font-size: 40px;
		width: 40px;
		height: 40px;
	}
}

/* 小さいスマホ向け */
@media (max-width: 480px) {
	.sidebar {
		width: 85%;
		max-width: 280px;
	}
	
	.hero-image {
		height: 250px;
	}
	
	.hero-title {
		font-size: 1.25rem; /* 20px */
		top: 100px;
		left: 15%;
	}
	
	section {
		padding: 40px 15%;
	}
	
	/* ギャラリーグリッド - 小さいスマホ用（16:9 × 1.5） */
	.gallery-grid {
		grid-auto-rows: calc((100cqw - 10px) / 2 * 9 / 16 * 1.5);
		gap: 10px;
	}
}

/* ========================================
   プライバシーポリシー モーダル
======================================== */
.privacy-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 3000;
	justify-content: center;
	align-items: center;
}

.privacy-modal.active {
	display: flex;
}

.privacy-modal-content {
	background: #fff;
	width: 90%;
	max-width: 700px;
	max-height: 80vh;
	overflow-y: auto;
	padding: 40px;
	position: relative;
	border-radius: 4px;
}

.privacy-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #333;
	line-height: 1;
}

.privacy-modal-close:hover {
	color: #000;
}

.privacy-modal-content h2 {
	font-family: "DNP ShueiMGoStd", serif;
	font-size: 1.375rem;
	font-weight: normal;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ddd;
}

.privacy-modal-content h3 {
	font-size: 1.125rem;
	font-weight: bold;
	margin-top: 28px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.privacy-modal-content h4 {
	font-size: 0.9375rem;
	font-weight: bold;
	margin-top: 20px;
	margin-bottom: 8px;
}

.privacy-modal-content p {
	font-size: 0.875rem;
	line-height: 1.9;
	color: #333;
	margin-bottom: 12px;
}

.privacy-modal-content ul {
	font-size: 0.875rem;
	line-height: 1.9;
	color: #333;
	margin-bottom: 12px;
	padding-left: 20px;
}

.privacy-modal-content li {
	margin-bottom: 4px;
}

@media (max-width: 768px) {
	.privacy-modal-content {
		width: 95%;
		padding: 24px 20px;
		max-height: 85vh;
	}

	.privacy-modal-content h2 {
		font-size: 1.125rem;
	}
}

