/* ==========================================================================
   アロバビュークラウドダイレクト サンプル映像ギャラリー
   Design System v2 — Primary: #337ab7
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2d3748;
	background-color: #f5f7fa;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
	background: linear-gradient(135deg, #2b6ca3 0%, #337ab7 50%, #3d8bc9 100%);
	color: #ffffff;
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(43, 108, 163, 0.25);
}

.site-header-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.3px;
}

.site-logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	font-size: 14px;
	backdrop-filter: blur(4px);
}

.site-logo-text {
	color: rgba(255, 255, 255, 0.85);
}

.site-logo-accent {
	color: #ffffff;
	font-weight: 700;
}

.site-header-label {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
	background: linear-gradient(160deg, #eaf2f8 0%, #d4e6f1 40%, #e8f0f8 100%);
	padding: 56px 24px 48px;
	text-align: center;
	border-bottom: 1px solid rgba(51, 122, 183, 0.1);
}

.hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.hero-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a4971;
	margin-bottom: 16px;
	letter-spacing: -0.5px;
	line-height: 1.3;
}

.hero-subtitle {
	font-size: 15px;
	color: #4a6a85;
	line-height: 1.8;
}

/* ==========================================================================
   Main Content Container
   ========================================================================== */
.main-content {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */
.tab-nav {
	display: flex;
	gap: 8px;
	padding: 36px 0 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tab-btn {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 20px;
	border: 2px solid #d4e0ec;
	border-radius: 12px 12px 0 0;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	font-family: inherit;
}

.tab-btn::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	transition: background 0.3s ease;
}

/* Hover Inversion Effect */
.tab-btn:hover {
	border-color: #337ab7;
	background: #337ab7;
	box-shadow: 0 4px 12px rgba(51, 122, 183, 0.15);
}

.tab-btn:hover .tab-btn-resolution {
	color: #ffffff;
}

.tab-btn:hover .tab-btn-label {
	color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
	border-color: #337ab7;
	background: #337ab7;
	box-shadow: 0 4px 16px rgba(51, 122, 183, 0.2);
}

.tab-btn.active::after {
	background: #337ab7;
}

.tab-btn-resolution {
	font-size: 16px;
	font-weight: 700;
	color: #337ab7;
	transition: color 0.3s ease;
}

.tab-btn.active .tab-btn-resolution {
	color: #ffffff;
}

.tab-btn-label {
	font-size: 11px;
	font-weight: 600;
	color: #8ea5b8;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.tab-btn.active .tab-btn-label {
	color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Tab Panels
   ========================================================================== */
.tab-panels {
	background: #ffffff;
	border: 2px solid #337ab7;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 32px;
	box-shadow: 0 6px 24px rgba(51, 122, 183, 0.06);
}

.tab-panel {
	display: none;
	animation: fadeIn 0.4s ease;
}

.tab-panel.active {
	display: block;
}

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

/* Panel Header */
.panel-header {
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(51, 122, 183, 0.12);
}

.panel-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a4971;
}

.panel-title-sub {
	font-size: 14px;
	font-weight: 500;
	color: #8ea5b8;
	margin-left: 8px;
}

/* ==========================================================================
   Video Grid & Cards
   ========================================================================== */
.video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.video-grid--single {
	grid-template-columns: 1fr;
	max-width: 560px;
}

.video-card {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.video-card:hover {
	box-shadow: 0 8px 24px rgba(51, 122, 183, 0.12);
	transform: translateY(-2px);
}

.video-card-header {
	padding: 12px 16px;
	background: linear-gradient(135deg, #f7fafc, #edf2f7);
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.video-card-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	background: #337ab7;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

/* HTML5 Video Styling */
.sample-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	background: #000000;
	outline: none;
	border-radius: 0 0 10px 10px;
}

/* ==========================================================================
   Callout Section (I-Frame Interval)
   ========================================================================== */
.callout-section {
	margin-top: 56px;
}

.info-callout {
	padding: 32px 36px;
	background-color: #f7f9fb;
	border-left: 5px solid #337ab7;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.info-callout-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: #337ab7;
	margin: 0 0 20px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(51, 122, 183, 0.12);
}

.info-callout-title .icon {
	font-size: 22px;
}

.info-callout-desc {
	font-size: 15px;
	line-height: 1.8;
	color: #444444;
	margin: 0 0 28px 0;
}

/* Callout Grid (Short vs Long comparison) */
.info-callout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.info-callout-box {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 22px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.info-callout-box-title {
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 14px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-callout-box-title.short {
	color: #c9302c;
}

.info-callout-box-title.long {
	color: #449d44;
}

.info-callout-box-list {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #555555;
}

.info-callout-box-list li {
	margin-bottom: 8px;
}

.info-callout-box-list li:last-child {
	margin-bottom: 0;
}

/* Advice / Recommendations */
.info-callout-advice {
	background-color: #ebf5fa;
	border: 1px solid #d4e6f1;
	border-radius: 10px;
	padding: 20px 24px;
	color: #2c3e50;
	font-size: 14px;
	line-height: 1.7;
}

.info-callout-advice-title {
	font-weight: 700;
	color: #2d689c;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}

.info-callout-advice-text {
	margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: linear-gradient(135deg, #2b6ca3, #337ab7);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	padding: 24px;
	font-size: 13px;
	letter-spacing: 0.3px;
}

.site-footer-copy {
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.hero {
		padding: 40px 20px 36px;
	}

	.hero-title {
		font-size: 24px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.tab-nav {
		gap: 6px;
		padding-top: 28px;
	}

	.tab-btn {
		min-width: 0;
		padding: 12px 10px;
	}

	.tab-btn-resolution {
		font-size: 13px;
	}

	.tab-btn-label {
		font-size: 10px;
	}

	.tab-panels {
		padding: 20px 16px;
	}

	.panel-title {
		font-size: 18px;
	}

	.video-grid {
		grid-template-columns: 1fr;
	}

	.info-callout {
		padding: 24px 20px;
	}

	.info-callout-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.info-callout-title {
		font-size: 17px;
	}

	.site-header-label {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 20px;
	}

	.tab-btn-resolution {
		font-size: 12px;
	}

	.tab-btn-label {
		display: none;
	}
}

/* --- Inline Style Replacements --- */
.video-section-title {
	font-size: 16px;
	margin: 24px 0 12px;
	color: #4a5568;
	border-left: 4px solid #337ab7;
	padding-left: 8px;
}

.video-section-title--spaced {
	margin-top: 32px;
}

.video-card-camera {
	font-size: 12px;
	color: #718096;
	font-weight: 500;
}

/* --- Compatibility Link Card (1Mbps) --- */
.compatibility-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #ffffff;
	border: 2px solid #337ab7;
	border-radius: 8px;
	padding: 16px 24px;
	margin: 24px auto 0;
	max-width: 640px;
	text-decoration: none;
	color: #337ab7;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	font-weight: 600;
	box-shadow: 0 4px 6px rgba(51, 122, 183, 0.05);
}

.compatibility-link-card:hover {
	background-color: #337ab7;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(51, 122, 183, 0.2);
}

.compatibility-link-card-text {
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.compatibility-link-card-arrow {
	font-size: 20px;
	font-weight: 700;
	margin-left: 16px;
	transition: transform 0.3s ease;
}

.compatibility-link-card:hover .compatibility-link-card-arrow {
	transform: translateX(4px);
}

/* --- Callout Extensions --- */
.info-callout-spacing {
	margin-top: 24px;
}

.info-callout-list {
	margin: 0 0 16px 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #444444;
}

.info-callout-list li {
	margin-bottom: 8px;
}

.info-callout-list li:last-child {
	margin-bottom: 0;
}

/* --- DORI Standards Section --- */
.dori-section {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(51, 122, 183, 0.12);
}

.dori-title {
	font-size: 16px;
	font-weight: 700;
	color: #1a4971;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dori-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.dori-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	flex-direction: column;
}

.dori-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(51, 122, 183, 0.1);
	border-color: #337ab7;
}

.dori-card-name {
	font-size: 15px;
	font-weight: 700;
	color: #337ab7;
	margin-bottom: 4px;
}

.dori-card-level {
	font-size: 11px;
	font-weight: 600;
	color: #8ea5b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.dori-card-desc {
	font-size: 13px;
	line-height: 1.6;
	color: #4a5568;
}

@media (max-width: 900px) {
	.dori-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 550px) {
	.dori-grid {
		grid-template-columns: 1fr;
	}
}

