/* style.css */
body {
	font-family: 'Segoe UI', sans-serif;
	margin: 0;
	background: #fdfdfd;
	color: #333;
}

.vspace {
	height: 30px; /* 好きな高さに変更可能 */
}

/* ヘッダー */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100px; /* ヘッダーの高さ */
	padding: 0 24px;
	background: #00ace5;
	color: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: background 0.3s;
}

header:hover {
	background: #008bb8;
}

.logo-container {
	height: 100%;
}

.header-title {
	display: flex;
	flex-direction: column; /* 縦方向に並べる */
	justify-content: center; /* 上下方向の中央揃え */
	align-items: center; /* 左右方向の中央揃え */
	text-align: center; /* テキスト中央寄せ */
	height: 100%; /* 必要なら高さを親に合わせる */
}

header .logo {
	height: 100%; /* ヘッダーの高さにフィット */
	aspect-ratio: 1 / 1; /* 正方形で表示 */
	object-fit: contain; /* SVGを潰さず表示 */
}

header h1 {
	margin: 0;
	font-size: 2rem;
	transition: transform 0.3s;
}

header h1:hover {
	transform: scale(1.05);
}

header .catchphrase {
	font-size: 1rem;
	margin-top: 0.5rem;
}

.header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center; /* 横方向も中央揃え */
	margin-left: 16px;
}

.header-text h1 {
	margin: 0;
	font-size: 1.4rem;
}

.header-text .catchphrase {
	margin: 0;
	font-size: 0.9rem;
	color: #eafcff; /* 少し明るめで見やすく */
}

/* ナビゲーション */
nav ul {
	display: flex;
	list-style: none;
	gap: 24px;
	margin: 0;
	padding: 0;
}

nav a {
	text-decoration: none;
	color: white;
	font-weight: 500;
}

nav a:hover {
	text-decoration: underline;
}

/* About */
.intro {
	padding: 2rem 1rem;
	text-align: center;
	background: #f0f8ff;
}

.intro h2 {
	color: #00ace5;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.intro .profile-pic {
	border-radius: 50%;
	margin: 1rem 0;
}

.intro .message {
	font-weight: bold;
	color: #00ace5;
}

/* Service */
.service {
	padding: 2rem 1rem;
	text-align: center;
}

.service h2 {
	color: #00ace5;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.service ul {
	list-style: none;
	padding: 0;
	margin: 0 auto 1rem;
	max-width: 400px;
}

.service li {
	margin: 0.5rem 0;
}

/* Gallery */
.gallery-section {
	padding: 2rem 1rem;
}

.gallery-section h2 {
	color: #00ace5;
	text-align: center;
	margin-bottom: 1rem;
}

nav {
	text-align: center;
	margin-bottom: 1rem;
}

select {
	padding: 0.5rem;
	font-size: 1rem;
	border-radius: 8px;
	border: 1px solid #00ace5;
	color: #00ace5;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

select:hover {
	background-color: #00ace5;
	color: #fff;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	padding: 1rem;
}

@media (max-width: 768px) {
	.gallery {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@media (max-width: 480px) {
	.gallery {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
}

.gallery img {
	width: 100%;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 172, 229, 0.5);
}

/* Lightbox */
.lightbox {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.lightbox img {
	max-width: 90%;
	max-height: 80%;
	border-radius: 12px;
	border: 4px solid #00ace5;
	background: #fff;
	animation: zoomIn 0.3s;
}

@keyframes zoomIn {
	from {
		transform: scale(0.7);
	}
	to {
		transform: scale(1);
	}
}

.close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 2rem;
	color: white;
	cursor: pointer;
	transition: transform 0.3s;
}

.close:hover {
	transform: scale(1.2);
}

/* Contact */
.contact {
	padding: 2rem 1rem;
	text-align: center;
	background: #f0f8ff;
}

.contact h2 {
	color: #00ace5;
	margin-bottom: 1rem;
}

.contact form {
	display: flex;
	flex-direction: column;
	max-width: 400px;
	margin: 0 auto;
}

.contact input,
.contact textarea {
	margin: 0.5rem 0;
	padding: 0.5rem;
	border-radius: 8px;
	border: 1px solid #00ace5;
}

.contact button {
	margin-top: 1rem;
	padding: 0.5rem;
	border: none;
	border-radius: 8px;
	background: #00ace5;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

.contact button:hover {
	background: #008bb8;
}

/* Footer */
footer {
	text-align: center;
	padding: 1rem;
	background: #eee;
	margin-top: 2rem;
}

footer a {
	color: #00ace5;
	text-decoration: none;
}

/* 共通ボタン */
.btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #00ace5;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: bold;
	border: none;
	cursor: pointer;
	transition: background 0.3s;
}

.btn:hover {
	background: #008bb8;
}

.view-all {
	text-align: center;
	margin-top: 1rem;
}

/* =====================
   ギャラリーページ用
   ===================== */

/* ギャラリーページのヘッダー */
.gallery-header {
	background: #00ace5;
	color: white;
	padding: 1rem;
	text-align: center;
	transition: background 0.3s;
}

.gallery-header:hover {
	background: #008bb8;
}

.gallery-header h1 {
	margin: 0;
	font-size: 1.8rem;
	transition: transform 0.3s;
}

.gallery-header h1:hover {
	transform: scale(1.05);
}

.gallery-header p {
	margin: 0.5rem 0 0;
}

/* カテゴリ選択 */
.gallery-nav {
	margin: 1rem;
	text-align: center;
}

.back-button {
	text-align: center;
	margin-top: 1rem;
}
