/* CSS変数（フラットデザイン テーマカラー設定） */
:root {
	--bg-dark: #24586f; /* アイコンの背景色に近いブルーグリーン */
	--panel-bg: #1d4659; /* パネル用の少し暗い色 */
	--text-main: #ffffff;
	--text-muted: #b0c9d6;
	--primary: #ffffff;
	--secondary: #e2e8f0;
	--border-color: #387693;
	--hover-bg: #2b6a87;
}

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

html {
	width: 100%;
	overflow-x: hidden;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-main);
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
	position: relative;
	line-height: 1.6;
	scroll-behavior: smooth;
}

@supports (overflow-x: clip) {
	html,
	body {
		overflow-x: clip;
	}
}

img,
video {
	max-width: 100%;
	height: auto;
}

::selection {
	background: var(--primary);
	color: var(--bg-dark);
}

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

/* レイアウトユーティリティ */
.container {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

/* 背景エフェクト (フラットデザインのため非表示) */
.bg-grid, .blob {
	display: none !important;
}

/* ガラスパネル (フラットなベタ塗りに変更) */
.glass-panel {
	background: var(--panel-bg) !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

/* ナビゲーション */
nav {
	position: fixed;
	width: 100%;
	max-width: 100vw;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border-color) !important;
	border-radius: 0 !important;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 80px;
	min-width: 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.brand img {
	height: 48px;
	width: 48px;
	object-fit: contain;
	filter: none; /* グローエフェクト削除 */
}

.brand-text {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--primary);
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.nav-links {
	display: flex;
	gap: 32px;
	align-items: center;
}

.nav-links a.nav-item {
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.3s;
}

.nav-links a.nav-item:hover {
	color: var(--text-muted);
}

/* 言語選択ドロップダウン */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-btn {
	background: none;
	border: none;
	color: var(--text-main);
	font-size: 0.875rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	transition: color 0.3s;
}

.dropdown-btn:hover {
	color: var(--text-muted);
}

.dropdown-menu {
	position: absolute;
	right: 0;
	top: 100%;
	width: 200px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	padding: 8px 0;
	z-index: 50;
	background: var(--panel-bg);
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(5px);
}

.dropdown-item {
	display: block;
	padding: 10px 16px;
	font-size: 0.875rem;
	color: var(--text-main);
	transition: all 0.2s;
}

.dropdown-item:hover {
	background-color: var(--hover-bg);
	color: var(--primary);
}

/* ボタン (フラットデザイン) */
.btn-primary {
	background: var(--primary);
	color: var(--bg-dark);
	font-weight: bold;
	padding: 10px 24px;
	border-radius: 4px;
	border: 2px solid var(--primary);
	transition: all 0.2s;
	display: inline-block;
	max-width: 100%;
	white-space: nowrap;
}

.btn-primary:hover {
	background: transparent;
	color: var(--primary);
}

.btn-primary.is-disabled,
.btn-large.is-disabled {
	background: transparent;
	color: var(--text-muted);
	border-color: var(--text-muted);
	cursor: not-allowed;
}

.btn-primary.is-disabled:hover,
.btn-large.is-disabled:hover {
	background: transparent;
	color: var(--text-muted);
}

/* ヒーローセクション */
.hero {
	padding: 160px 0 100px;
	text-align: center;
	position: relative;
}

.hero h1 {
	font-size: clamp(1.45rem, 5.4vw, 3.9rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 30px;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.hero h1 span:first-child {
	font-size: clamp(0.88rem, 2.4vw, 1.25rem) !important;
	color: var(--text-muted) !important;
}

.hero-title-main {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.hero-title-main span {
	display: inline;
}

.hero-gradient-text {
	display: block;
	color: var(--primary);
	text-shadow: none;
}

.hero p {
	font-size: 1.25rem;
	color: var(--text-muted);
	max-width: 800px;
	margin: 0 auto 40px;
}

.hero-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.hero-action-row {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.btn-os {
	display: flex;
	max-width: 100%;
	align-items: center;
	gap: 8px;
	font-weight: bold;
	padding: 12px 32px;
	border-radius: 4px;
	transition: all 0.2s;
	border: 2px solid transparent;
}

.btn-windows {
	background: var(--primary);
	color: var(--bg-dark);
	border-color: var(--primary);
}
.btn-windows:hover {
	background: transparent;
	color: var(--primary);
}

.btn-glass {
	background: transparent !important;
	color: var(--primary) !important;
	border-color: var(--primary) !important;
}
.btn-glass:hover {
	background: var(--primary) !important;
	color: var(--bg-dark) !important;
}

.btn-disabled {
	color: var(--text-muted) !important;
	border-color: var(--text-muted) !important;
	cursor: not-allowed;
	opacity: 0.6;
}
.btn-disabled:hover {
	background: transparent !important;
	color: var(--text-muted) !important;
}

/* 動画 section */
div.mov-box {
	margin: 60px auto 0;
	max-width: 1000px;
	overflow: hidden;
}

div.mov-box video {
	width:100%;
	margin:0;
	padding:0;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: none;
}

/* 特徴セクション */
.features {
	padding: 100px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 60px;
}

.section-title h2 {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
}

.section-title p {
	margin-top: 16px;
	font-size: 1.125rem;
	color: var(--text-muted);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
}

.feature-card {
	padding: 32px;
	background: var(--panel-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	transition: all 0.2s;
}

.feature-card:hover {
	background: var(--hover-bg);
	transform: translateY(-4px);
}

.feature-icon-wrapper {
	width: 48px;
	height: 48px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	font-size: 1.25rem;
	background: transparent !important;
	color: var(--primary) !important;
	border: 2px solid var(--border-color) !important;
}

.feature-card h3 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}

.feature-card p {
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.8;
}

/* SEO向け本文セクション */
.about,
.feature-details,
.faq {
	padding: 88px 0;
}

.about {
	padding-top: 36px;
}

.about .section-title p,
.feature-details .section-title p,
.faq .section-title p {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.about-points,
.detail-list,
.faq-list {
	display: grid;
	gap: 20px;
}

.about-points {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-point,
.detail-item,
.faq-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 24px;
	background: var(--panel-bg) !important;
	border: 1px solid var(--border-color);
	border-radius: 8px;
}

.detail-item,
.faq-item {
	flex-direction: column;
	padding: 28px;
}

.about-point i {
	color: var(--primary);
	margin-top: 4px;
}

.about-point p,
.detail-item p,
.faq-item p {
	color: var(--text-muted);
	line-height: 1.8;
}

.detail-list,
.faq-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item h3,
.faq-item h3 {
	font-size: 1.1rem;
	margin-bottom: 10px;
	color: var(--primary);
}

/* 動作環境とダウンロード */
.requirements {
	padding: 80px 0 40px;
}

.download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.store-download-action {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.download-card {
	min-height: 190px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	background: var(--panel-bg) !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 8px;
	transition: all 0.2s;
}

.download-card i {
	font-size: 2rem;
	color: var(--primary);
	margin-bottom: 8px;
}

.download-card strong {
	font-size: 1.15rem;
}

.download-card span {
	color: var(--text-main);
	font-size: 0.95rem;
}

.download-card small {
	color: var(--text-muted);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

a.download-card:hover {
	transform: translateY(-4px);
	background: var(--hover-bg) !important;
}

.download-card.is-disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.download-card.is-disabled i {
	color: var(--text-muted);
}

/* リリーステーブル */
.release-table-wrap {
	margin-top: 32px;
	padding: 28px;
	background: var(--panel-bg) !important;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
}

.release-table-heading {
	margin-bottom: 18px;
}

.release-table-heading h3 {
	font-size: 1.25rem;
	margin-bottom: 8px;
}

.release-table-heading p {
	color: var(--text-muted);
	line-height: 1.7;
}

.release-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.release-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.release-table th,
.release-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-color);
	text-align: left;
	vertical-align: top;
}

.release-table th {
	color: var(--text-main);
	font-weight: 700;
	background: var(--bg-dark);
}

.release-table td {
	color: var(--text-muted);
}

.release-table code {
	color: var(--text-main);
	font-family: 'Fira Code', Consolas, monospace;
	font-size: 0.82rem;
	overflow-wrap: anywhere;
}

/* ダウンロード CTA */
.download-cta {
	padding: 100px 0;
	position: relative;
}

.cta-bg {
	display: none; /* グラデーション背景を非表示 */
}

.cta-box {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	padding: 60px;
	position: relative;
	z-index: 10;
	background: var(--panel-bg) !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 8px;
	box-shadow: none;
}

.cta-logo {
	width: 110px;
	height: 110px;
	margin: 0 auto 24px;
	filter: none;
}

.cta-box h2 {
	font-size: 2.25rem;
	margin-bottom: 24px;
	line-height: 1.2;
}

.cta-box p {
	color: var(--text-muted);
	font-size: 1.125rem;
	margin-bottom: 40px;
}

.btn-large {
	background: var(--primary);
	color: var(--bg-dark);
	font-size: 1.125rem;
	font-weight: bold;
	padding: 16px 48px;
	border-radius: 4px;
	border: 2px solid var(--primary);
	transition: all 0.2s;
	display: inline-block;
	max-width: 100%;
	white-space: normal;
}

.btn-large:hover {
	background: transparent;
	color: var(--primary);
}

.cta-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.btn-large-store {
	background: transparent;
	color: var(--primary);
}

.btn-large-store:hover {
	background: var(--primary);
	color: var(--bg-dark);
}

.cta-os-info {
	margin-top: 24px;
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* フッター */
footer {
	border-top: 1px solid var(--border-color);
	padding: 48px 0 24px;
	background-color: #1a4152; /* パネルより少し暗い色 */
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-brand img {
	width: 32px;
	height: 32px;
	opacity: 0.9;
	filter: none;
}

.footer-brand span {
	font-size: 1.25rem;
	font-weight: bold;
	color: var(--text-main);
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.footer-links a {
	transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--primary);
}

.footer-social {
	display: flex;
	gap: 24px;
}

.footer-social a {
	color: var(--text-muted);
	font-size: 1.25rem;
	transition: color 0.2s;
}

.social-x-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
}

.footer-social a:hover {
	color: var(--primary);
}

.footer-copy {
	text-align: center;
	margin-top: 32px;
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
	.container {
		padding: 0 24px;
	}

	.nav-links {
		gap: 20px;
	}

	.hero {
		padding: 140px 0 80px;
	}

	.hero h1 {
		font-size: clamp(1.7rem, 5.2vw, 3.25rem);
	}

	.hero p {
		font-size: 1.1rem;
	}

	.section-title h2,
	.cta-box h2 {
		font-size: 2rem;
	}

	.features-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 24px;
	}

	.about-points {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 18px;
	}

	.nav-inner {
		height: 68px;
		flex-wrap: nowrap;
	}

	.nav-links {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
		min-width: 0;
	}

	.nav-links a.nav-item {
		display: none;
	}

	.dropdown-btn {
		min-height: 40px;
		padding: 8px;
	}

	.dropdown-menu {
		right: -74px;
		max-width: calc(100vw - 28px);
	}

	.brand img {
		width: 40px;
		height: 40px;
	}

	.brand-text {
		font-size: 1.25rem;
	}

	.btn-primary {
		padding: 9px 16px;
		font-size: 0.9rem;
	}

	nav .btn-primary {
		max-width: 34vw;
		overflow: hidden;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hero {
		padding: 118px 0 56px;
	}

	.hero h1 {
		font-size: clamp(1.5rem, 5.8vw, 2.15rem);
		line-height: 1.18;
	}

	.hero h1 span:first-child {
		font-size: 1rem !important;
	}

	.hero p {
		font-size: 1rem;
		margin-bottom: 30px;
	}

	.btn-os {
		width: 100%;
		justify-content: center;
		padding-inline: 18px;
		text-align: center;
		white-space: normal;
	}

	.features,
	.about,
	.feature-details,
	.faq,
	.download-cta {
		padding: 72px 0;
	}

	.requirements {
		padding: 64px 0 28px;
	}

	.section-title {
		margin-bottom: 40px;
	}

	.section-title h2 {
		font-size: 1.65rem;
	}

	.section-title p {
		font-size: 1rem;
	}

	.feature-card,
	.download-card,
	.detail-item,
	.faq-item,
	.about-point,
	.release-table-wrap {
		padding: 24px;
	}

	.detail-list,
	.faq-list {
		grid-template-columns: 1fr;
	}

	.cta-box {
		padding: 40px 20px;
		width: min(100%, calc(100vw - 36px));
	}

	.cta-box h2 {
		font-size: 1.75rem;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 420px) {
	.container {
		padding: 0 14px;
	}

	.nav-inner {
		gap: 8px;
	}

	.brand {
		gap: 8px;
	}

	.brand img {
		width: 34px;
		height: 34px;
	}

	.brand-text {
		font-size: 1.05rem;
	}

	nav .btn-primary {
		display: none;
	}

	.dropdown-btn {
		gap: 6px;
		padding: 8px 6px;
	}

	#current-lang {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.dropdown-menu {
		right: -84px;
	}

	.hero {
		padding: 126px 0 48px;
	}

	.hero h1 {
		font-size: 1.28rem;
		line-height: 1.28;
		margin-bottom: 24px;
	}

	.hero-title-main span {
		display: block;
	}

	.hero h1 span:first-child {
		font-size: 0.9rem !important;
		line-height: 1.45;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.hero-gradient-text {
		display: block;
		margin-top: 0.2rem;
	}

	.hero p {
		font-size: 0.92rem;
		line-height: 1.75;
	}

	.section-title h2,
	.cta-box h2 {
		font-size: 1.5rem;
	}

	.feature-card h3 {
		font-size: 1.12rem;
	}
}

@media (max-width: 360px) {
	.hero h1 {
		font-size: 1.18rem;
	}
}

/* バージョンアップ履歴 */
.history-page {
	min-height: 100vh;
}

.history-page .nav-item[aria-current="page"] {
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 4px;
}

.history-language-chevron {
	font-size: 10px;
}

.history-main {
	padding-top: 80px;
}

.history-hero {
	padding-top: 96px;
	padding-bottom: 84px;
	text-align: center;
}

.history-eyebrow {
	margin-bottom: 14px;
	color: var(--text-muted);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.history-hero h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.15;
}

.history-lead {
	max-width: 760px;
	margin: 24px auto 0;
	color: var(--text-muted);
	font-size: 1.1rem;
	line-height: 1.9;
}

.history-current {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 12px 18px;
	color: var(--text-muted);
}

.history-current strong {
	color: var(--text-main);
	font-size: 1.05rem;
}

.history-section {
	padding-bottom: 96px;
}

.history-list {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
}

.history-list::before {
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 23px;
	width: 2px;
	background: var(--border-color);
	content: "";
}

.history-entry {
	position: relative;
	margin: 0 0 24px 64px;
	padding: 30px 32px;
}

.history-entry.is-latest {
	border-width: 2px !important;
	border-color: var(--primary) !important;
}

.history-marker {
	position: absolute;
	top: 36px;
	left: -49px;
	width: 18px;
	height: 18px;
	border: 4px solid var(--bg-dark);
	border-radius: 50%;
	background: var(--text-muted);
	box-shadow: 0 0 0 2px var(--border-color);
}

.history-entry.is-latest .history-marker {
	background: var(--primary);
	box-shadow: 0 0 0 3px var(--primary);
}

.history-entry-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.history-version-label {
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.history-entry h3 {
	margin-top: 2px;
	color: var(--primary);
	font-size: 2rem;
	line-height: 1.2;
}

.history-entry-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--text-muted);
	font-size: 0.88rem;
	text-align: right;
}

.history-latest-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--bg-dark);
	font-size: 0.75rem;
	font-weight: 800;
}

.history-entry ul {
	display: grid;
	gap: 10px;
	padding-left: 1.25rem;
	color: var(--text-muted);
}

.history-entry li {
	padding-left: 0.25rem;
	line-height: 1.8;
}

.history-entry li::marker {
	color: var(--primary);
}

.history-cta {
	padding-bottom: 96px;
}

.history-cta .cta-box {
	width: 100%;
}

@media (max-width: 768px) {
	.history-main {
		padding-top: 68px;
	}

	.history-hero {
		padding-top: 72px;
		padding-bottom: 64px;
	}

	.history-hero h1 {
		font-size: clamp(2rem, 9vw, 3rem);
	}

	.history-lead {
		font-size: 1rem;
	}

	.history-current {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
		text-align: left;
	}

	.history-section {
		padding-bottom: 72px;
	}

	.history-list::before {
		left: 9px;
	}

	.history-entry {
		margin-left: 38px;
		padding: 24px;
	}

	.history-marker {
		top: 31px;
		left: -37px;
		width: 16px;
		height: 16px;
	}

	.history-entry-head {
		flex-direction: column;
		gap: 12px;
	}

	.history-entry h3 {
		font-size: 1.65rem;
	}

	.history-entry-meta {
		justify-content: flex-start;
		text-align: left;
	}

	.history-cta {
		padding-bottom: 72px;
	}
}

@media (max-width: 420px) {
	.history-hero {
		padding-top: 58px;
	}

	.history-eyebrow {
		font-size: 0.7rem;
		letter-spacing: 0.12em;
	}

	.history-entry {
		margin-left: 30px;
		padding: 20px 18px;
	}

	.history-list::before {
		left: 6px;
	}

	.history-marker {
		left: -31px;
	}

	.history-entry ul {
		padding-left: 1rem;
		font-size: 0.92rem;
	}
}
