@charset "utf-8";
/* リセットとベーススタイル */
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed,figure, figcaption, footer, header, hgroup,menu, nav, output, ruby, section, summary,time, mark, audio, video {
margin: 0;padding: 0;border: 0;font-style:normal;font-weight: normal;font-size: 100%;vertical-align: baseline;}
main {display: block;}
:root {
	--bg-primary: #fafaf9;
	--bg-secondary: #f5f5f4;
	--text-primary: #292524;
	--text-secondary: #78716c;
	--text-gray: #535557;
	--text-gray-400: #8B9094;
	--text-gray-200: #C1CBD5;
	--text-gray-100: #E7F1FB;
	--accent-low: #fef3c7;
	--accent-mid: #fde047;
	--accent-high: #facc15;
	--accent-peak: #eab308;
	--shadow: rgba(0, 0, 0, 0.04);
}
html {font-size: 62.5%;}
body {font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;letter-spacing: .1em;font-feature-settings: "palt" 1;font-kerning: auto;-webkit-font-smoothing: antialiased;background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);color: var(--text-primary);}
ul ,ol {list-style: none;}
a:link ,a:visited {color: var(--text-primary);text-decoration: underline;}
img {width: auto;max-width: 100%;height: auto;vertical-align: bottom;}

/* ヘッダー */
header {
	position: fixed;top: 0;z-index: 1000;
	width: 100%;box-sizing: border-box;
	padding: 1rem 2rem;
}
nav {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;justify-content: space-between;align-items: center;
}
.logo svg {
	width: 80px;fill: var(--text-primary);
}
/* フッター */
footer {
	text-align: center;
	padding: 2rem;
}

.nav-links {
	display: flex;gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
	color: #000;
	outline: 2px solid #000;
	outline-offset: 4px;
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.hamburger span {
	width: 24px;
	height: 2px;
	background: #333;
	transition: all 0.3s;
}

/* メインコンテンツ */
main {
	padding-top: 70px;
}

/* セクション共通スタイル */
section {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}
section p {
	font-size: 1.6rem;line-height: 1.8;
}

.content {
	max-width: 1200px;
	width: 100%;
}
.header {
	padding: 3rem 0 2rem;
	position: relative;
	z-index: 10;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	flex-wrap: wrap;
}

.title-section h1 {
	font-size: clamp(3rem, 5vw, 3.5rem);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.title-section p {
	font-size: 1rem;
	color: var(--text-secondary);
	font-weight: 300;
	letter-spacing: 0.02em;
}

.stats-section {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.stat-item {
	text-align: right;
}

.stat-value {
	font-size: 3.5rem;
	font-weight: 200;
	letter-spacing: -0.02em;
	display: block;
}

.stat-label {
	font-size: 1rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

#canvas-container {
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 400px;
	max-height: 700px;
	margin: 2rem 0;
	border-radius: 1rem;
	overflow: hidden;
	background: radial-gradient(circle at 30% 50%, rgba(254, 243, 199, 0.15), transparent 70%),
radial-gradient(circle at 70% 50%, rgba(253, 224, 71, 0.1), transparent 70%);
}

canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.legend {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem 0;
	justify-content: center;
	flex-wrap: wrap;
}

.legend-label {
	font-size: 1.2rem;
	color: var(--text-secondary);
	letter-spacing: 0.05em;
}

.legend-scale {
	display: flex;
	gap: 0.25rem;
	align-items: center;
}

.legend-box {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0.25rem;
	transition: transform 0.2s ease;
}

.legend-box:hover {
	transform: translateY(-2px);
}

.interaction-hint {
	text-align: center;font-size: 1rem;color: var(--text-secondary);
	opacity: 0;
	animation: fadeInUp 0.6s ease 1s forwards;
	padding-bottom: 3rem;
}

.activity-detail {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 1rem;
	padding: 1.5rem 2rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 100;
	min-width: 280px;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-detail.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.activity-detail.hidden {
	transform: translateX(-50%) translateY(10px);
}

.detail-date {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 0.75rem;
	letter-spacing: 0.05em;
}

.detail-activity {
	font-family: 'Lexend', sans-serif;
	font-size: 1.25rem;
	font-weight: 300;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

.detail-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 1.5rem;
	height: 1.5rem;
	border: none;
	background: none;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.detail-close:hover {
	opacity: 1;
}

@keyframes fadeInUp {
	from {
opacity: 0;
transform: translateY(10px);
	}
	to {
opacity: 1;
transform: translateY(0);
	}
}

.loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 0.875rem;
	color: var(--text-secondary);
	opacity: 0;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 1; }
}

@media (max-width: 768px) {
	.header-content {
flex-direction: column;
align-items: flex-start;
	}

	.stats-section {
width: 100%;
justify-content: space-between;
	}

	.stat-item {
text-align: left;
	}

	#canvas-container {
height: 50vh;
min-height: 300px;
	}

	.legend {
gap: 1rem;
padding: 1.5rem 0;
	}
}

/* このサイトについてページ */
.about-content {
	max-width: 800px;
}
.about-content h2 {
	font-size: 3rem;
	margin-bottom: 2rem;
}

/* 404ページ */
.error-404 {
	text-align: center;
	max-width: 600px;
}
.error-404 h1 {
	font-size: 6rem;
	margin-bottom: 1rem;
}
.error-404 h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: #666;
}
.error-404 p {
	margin-bottom: 2rem;
	color: #888;
}

.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s;
}
.btn:hover,
.btn:focus {
	background: #000;
	outline: 2px solid #000;
	outline-offset: 4px;
}

@media all and (max-width:768px) {
	/* スマホ */
	html {font-size: calc(62.5% + 4 * (100vw - 320px) / 150);}
	*.pc {display: none;}
	.hamburger {
		display: flex;
	}
	.nav-links {
		position: fixed;top: 70px;
		right: -100%;
		flex-direction: column;
		background: rgba(255, 255, 255, 0.98);
		width: 70%;
		height: calc(100vh - 70px);
		padding: 2rem;
		transition: right 0.3s;
		box-shadow: -2px 0 10px rgba(0,0,0,0.1);
	}
	.nav-links.active {right: 0;}
	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 0);
	}
	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}
	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(8px, -4px);
	}
}

@media (max-width: 480px) {
	header {padding: 1rem;}
	section {padding: 1rem;}
}

@media all and (min-width:770px) and (max-width:979px) {
	/* タブレット */
}

@media all and (min-width:980px) {
	/* PC */
	*.sp {display: none;}
}



/* ========================================
   カスタマイズ例
   ======================================== */

/* フォントのカスタマイズ */
.custom-font-outfit {
  font-family: 'Outfit', sans-serif !important;
}

.custom-font-work-sans {
  font-family: 'Work Sans', sans-serif !important;
}

.custom-font-poppins {
  font-family: 'Poppins', sans-serif !important;
}

/* アニメーション速度のカスタマイズ */
.animation-slow {
  --float-speed: 0.3;
}

.animation-normal {
  --float-speed: 0.5;
}

.animation-fast {
  --float-speed: 0.8;
}

/* キューブの透明度カスタマイズ */
.cubes-transparent {
  --cube-opacity: 0.6;
}

.cubes-semi-transparent {
  --cube-opacity: 0.75;
}

.cubes-opaque {
  --cube-opacity: 0.95;
}

/* ========================================
   レスポンシブ調整
   ======================================== */

/* タブレット用 */
@media (max-width: 1024px) {
  
  #canvas-container {
	height: 55vh !important;
  }
}

/* モバイル用 */
@media (max-width: 768px) {
  
  #canvas-container {
	height: 50vh !important;
	min-height: 300px !important;
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */

/* 視覚障害者向け高コントラストモード */
@media (prefers-contrast: high) {
  :root {
	--text-primary: #000000;
	--text-secondary: #333333;
  }
}

/* モーション削減設定 */
@media (prefers-reduced-motion: reduce) {
  * {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
  }
}


/* ========================================
   印刷用スタイル
   ======================================== */

@media print {
  #canvas-container {
	display: none;
  }
  
  .interaction-hint,
  .legend {
	display: none;
  }
  
  body {
	background: white;
	color: black;
  }
}
