/* ============================================
   KTP Portfolio - Custom Styles
   Theme: Clean Light Mode × Sky Blue
   Base: #FFFFFF / #F8F9FA  |  Accent: #2196F3 (sky blue)
   Text: #333333  |  Sub: #666666
   ============================================ */

/* =========================================
   CSS Custom Properties (Light Mode Palette)
   ========================================= */
:root {
	--color-bg: #FFFFFF;
	--color-bg-alt: #F4F8FC;
	--color-bg-section: #F8F9FA;
	--color-text: #333333;
	--color-text-sub: #555555;
	--color-text-muted: #888888;
	--color-accent: #2196F3;
	--color-accent-dark: #1565C0;
	--color-accent-light: #64B5F6;
	--color-border: #E0E7EF;
	--color-shadow: rgba(33, 150, 243, 0.10);
	--color-sidebar-bg: #1A2B45;
	--color-sidebar-text: rgba(255, 255, 255, 0.70);
	--color-sidebar-active: #64B5F6;
}

/* =========================================
   Global Overrides: Force Light Background
   ========================================= */
body {
	background: var(--color-bg) !important;
	color: var(--color-text) !important;
}

/* Main content wrapper backgrounds */
.wrapper.style1 {
	background-color: var(--color-bg) !important;
}

.wrapper.style1-alt {
	background-color: var(--color-bg-alt) !important;
}

.wrapper.style2 {
	background-color: var(--color-bg-section) !important;
}

.wrapper.style2-alt {
	background-color: #EEF4FB !important;
}

.wrapper.style3 {
	background-color: var(--color-bg-alt) !important;
}

.wrapper.style3-alt {
	background-color: var(--color-bg-section) !important;
}

.wrapper.alt {
	background-color: var(--color-bg-section) !important;
}

/* =========================================
   Typography: Color overrides for light mode
   ========================================= */
body,
input,
select,
textarea {
	font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1A2B45 !important;
}

p {
	color: var(--color-text-sub);
}

a {
	color: var(--color-accent);
	border-bottom-color: rgba(33, 150, 243, 0.25) !important;
}

a:hover {
	color: var(--color-accent-dark) !important;
	border-bottom-color: transparent !important;
}

strong,
b {
	color: #1A2B45 !important;
}

/* Section/Article headers */
header p {
	color: var(--color-text-muted) !important;
}

/* =========================================
   Sidebar: Keep dark, but use blue accent
   ========================================= */
#sidebar {
	background: var(--color-sidebar-bg) !important;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

#sidebar nav a {
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.8em;
	color: var(--color-sidebar-text) !important;
}

#sidebar nav a:before {
	background: rgba(255, 255, 255, 0.08) !important;
}

#sidebar nav a:after {
	background-image: linear-gradient(to right, #2196F3, #64B5F6) !important;
}

#sidebar nav a:hover {
	color: rgba(255, 255, 255, 0.90) !important;
}

#sidebar nav a.active {
	color: #ffffff !important;
}

/* Responsive: mobile nav bar color */
@media screen and (max-width: 1280px) {
	#sidebar nav a:after {
		background-image: none !important;
		background-color: #2196F3 !important;
	}
}

/* =========================================
   KTP Logo: Triangle Symbol in Sidebar
   ========================================= */
#sidebar-logo {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 2.5em;
	text-align: left;
}

.ktp-triangle {
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 20px solid var(--color-accent-light);
	flex-shrink: 0;
	filter: drop-shadow(0 2px 6px rgba(100, 181, 246, 0.5));
}

.ktp-logo-text {
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	line-height: 1.3;
}

.ktp-logo-text span {
	display: block;
	font-size: 0.8em;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.06em;
}

/* =========================================
   Hero / Intro Section
   ========================================= */
#intro {
	background-attachment: fixed;
	background-image: none !important;
	background-color: var(--color-bg) !important;
	position: relative;
	overflow: hidden;
}

/* Subtle geometric background for intro */
#intro::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(33, 150, 243, 0.07) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

#intro::after {
	content: '';
	position: absolute;
	bottom: -20%;
	left: -5%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(100, 181, 246, 0.05) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

#intro .inner {
	position: relative;
	z-index: 1;
}

.intro-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3em;
}

.intro-text {
	flex: 1;
	min-width: 0;
}

.intro-image {
	flex-shrink: 0;
	position: relative;
}

/* Profile image: Clean light-mode treatment */
.intro-image img {
	width: 280px;
	height: 280px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	border: 3px solid rgba(33, 150, 243, 0.25);
	box-shadow:
		0 8px 32px rgba(33, 150, 243, 0.15),
		0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.5s ease;
	/* Ensure no dark border bleed on light bg */
	background: var(--color-bg-alt);
}

.intro-image img:hover {
	border-color: rgba(33, 150, 243, 0.55);
	box-shadow:
		0 12px 40px rgba(33, 150, 243, 0.25),
		0 4px 12px rgba(0, 0, 0, 0.10);
	transform: scale(1.03);
}

/* Hero headline */
#intro h1 {
	font-size: 3.2em;
	font-weight: 700;
	color: #1A2B45 !important;
	background: none;
	-webkit-background-clip: unset;
	-webkit-text-fill-color: unset;
	background-clip: unset;
	margin-bottom: 0.2em;
}

#intro .subtitle {
	font-size: 1.15em;
	color: var(--color-accent) !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1.2em;
	opacity: 1;
}

#intro p {
	font-size: 1.0em;
	line-height: 2;
	color: var(--color-text-sub) !important;
}

/* =========================================
   Button: Sky Blue accent
   ========================================= */
.button {
	border-color: var(--color-accent) !important;
	color: var(--color-accent) !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	transition: all 0.3s ease;
	background: transparent;
}

.button:hover {
	background: var(--color-accent) !important;
	color: #ffffff !important;
	border-color: var(--color-accent) !important;
}

/* Override main.css button hover */
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	border-color: var(--color-accent) !important;
}

/* =========================================
   Badge (Role Tag in Works)
   ========================================= */
.badge {
	display: inline-block;
	background: linear-gradient(135deg, #2196F3, #1565C0);
	color: #ffffff;
	font-size: 0.7em;
	font-weight: 700;
	padding: 0.3em 0.9em;
	border-radius: 2em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.8em;
}

/* =========================================
   Tech Tags
   ========================================= */
.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 1.2em;
}

.tech-tags .tag {
	display: inline-block;
	background: rgba(33, 150, 243, 0.08);
	border: 1px solid rgba(33, 150, 243, 0.25);
	color: var(--color-accent-dark);
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.3em 0.8em;
	border-radius: 0.3em;
	transition: all 0.3s ease;
}

.tech-tags .tag:hover {
	background: rgba(33, 150, 243, 0.18);
	border-color: rgba(33, 150, 243, 0.45);
	transform: translateY(-1px);
}

/* =========================================
   Works / Spotlights Section
   ========================================= */
#works>section>.content>.inner {
	padding: 2em;
}

#works>section>.content>.inner h2 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
	color: #1A2B45 !important;
}

#works>section>.content>.inner p {
	font-size: 0.95em;
	line-height: 1.9;
	color: var(--color-text-sub) !important;
}

/* Spotlight alternating backgrounds in light mode */
.spotlights>section:nth-child(2) {
	background-color: rgba(33, 150, 243, 0.03) !important;
}

.spotlights>section:nth-child(3) {
	background-color: rgba(33, 150, 243, 0.06) !important;
}

/* Image overlay: lighter for light mode */
.spotlights>section>.image:before {
	background: rgba(26, 43, 69, 0.75) !important;
}

/* =========================================
   Skills / Features Section
   ========================================= */
.features {
	border: 1px solid var(--color-border) !important;
	background: #FFFFFF !important;
	border-radius: 0.5em !important;
	box-shadow: 0 2px 16px rgba(33, 150, 243, 0.06);
}

.features section {
	border-top: solid 1px var(--color-border) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.features section:nth-child(2n) {
	border-left: solid 1px var(--color-border) !important;
}

.features section:hover {
	transform: translateY(-4px);
	background: rgba(33, 150, 243, 0.03);
}

.features section h3 {
	font-size: 1.1em;
	margin-bottom: 0.5em;
	color: #1A2B45 !important;
}

.features section p {
	font-size: 0.9em;
	line-height: 1.8;
	color: var(--color-text-sub) !important;
}

/* Icon circles: blue accent */
.icon.major {
	background: var(--color-accent) !important;
	color: #ffffff !important;
}

.icon.major:before {
	color: #ffffff !important;
}

/* Override per-style icon colors */
.wrapper.style1 .icon.major:before,
.wrapper.style1-alt .icon.major:before,
.wrapper.style2 .icon.major:before,
.wrapper.style2-alt .icon.major:before,
.wrapper.style3 .icon.major:before,
.wrapper.style3-alt .icon.major:before {
	color: #ffffff !important;
}

.features section .icon {
	transition: color 0.3s ease, transform 0.3s ease;
}

.features section:hover .icon {
	background: var(--color-accent-dark) !important;
	transform: scale(1.1);
}

/* =========================================
   Value Proposition (Contact Section)
   ========================================= */
.value-proposition h3 {
	font-size: 1.3em;
	color: var(--color-accent-dark) !important;
	margin-bottom: 1em;
	font-weight: 600;
}

.value-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.value-list li {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	margin-bottom: 1.2em;
	padding: 1em;
	border-radius: 0.5em;
	background: rgba(33, 150, 243, 0.04);
	border: 1px solid rgba(33, 150, 243, 0.12);
	transition: all 0.3s ease;
}

.value-list li:hover {
	background: rgba(33, 150, 243, 0.09);
	border-color: rgba(33, 150, 243, 0.25);
	transform: translateX(4px);
	box-shadow: 0 4px 16px rgba(33, 150, 243, 0.10);
}

.value-list li .icon {
	color: var(--color-accent) !important;
	font-size: 1.3em;
	flex-shrink: 0;
	margin-top: 0.2em;
}

.value-list li strong {
	display: block;
	color: #1A2B45 !important;
	font-weight: 600;
	margin-bottom: 0.3em;
	font-size: 0.95em;
}

.value-list li p {
	margin: 0;
	font-size: 0.85em;
	line-height: 1.7;
	color: var(--color-text-sub) !important;
}

/* =========================================
   Contact Section
   ========================================= */
#contact .contact li h3 {
	color: var(--color-accent-dark) !important;
	font-size: 0.9em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#contact .contact li span {
	color: var(--color-text-sub);
}

/* Social icon */
ul.icons li>a {
	color: var(--color-accent);
	transition: color 0.3s ease;
}

ul.icons li>a:hover {
	color: var(--color-accent-dark);
}

/* =========================================
   Section headings with blue underline
   ========================================= */
h1.major:after,
h2.major:after {
	background-image: linear-gradient(to right, #2196F3, #64B5F6) !important;
}

#skills h2,
#contact h2 {
	position: relative;
	padding-bottom: 0.4em;
}

#skills h2::after,
#contact h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 2.5em;
	height: 3px;
	background: linear-gradient(to right, #2196F3, #64B5F6);
	border-radius: 2px;
}

/* =========================================
   Footer
   ========================================= */
#footer {
	font-size: 0.85em;
	background-color: var(--color-bg-section) !important;
	border-top: 1px solid var(--color-border);
}

#footer .menu li {
	color: var(--color-text-muted) !important;
}

#footer .menu a {
	color: var(--color-accent) !important;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

#footer .menu a:hover {
	opacity: 1;
}

#footer>.inner .menu {
	color: var(--color-text-muted) !important;
}

ul.menu>li {
	border-left: solid 1px var(--color-border) !important;
}

/* =========================================
   Scrollbar: Light mode
   ========================================= */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg-section);
}

::-webkit-scrollbar-thumb {
	background: rgba(33, 150, 243, 0.3);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(33, 150, 243, 0.55);
}

/* =========================================
   Global border/divider overrides
   ========================================= */
hr {
	border-bottom: solid 1px var(--color-border) !important;
}

blockquote {
	border-left: solid 4px rgba(33, 150, 243, 0.3) !important;
}

code {
	background: rgba(33, 150, 243, 0.06) !important;
	border: solid 1px rgba(33, 150, 243, 0.15) !important;
	color: var(--color-accent-dark);
}

/* Checkbox / radio in light mode */
input[type="checkbox"]+label,
input[type="radio"]+label {
	color: var(--color-text-sub) !important;
}

input[type="checkbox"]+label:before,
input[type="radio"]+label:before {
	background: rgba(0, 0, 0, 0.04) !important;
	border: solid 1px var(--color-border) !important;
}

input[type="checkbox"]:checked+label:before,
input[type="radio"]:checked+label:before {
	background: var(--color-accent) !important;
	border-color: var(--color-accent) !important;
	color: #ffffff !important;
}

/* Form inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
	background: rgba(0, 0, 0, 0.03) !important;
	border: solid 1px var(--color-border) !important;
	color: var(--color-text) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
	border-color: var(--color-accent) !important;
	box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2) !important;
}

::-webkit-input-placeholder {
	color: var(--color-text-muted) !important;
}

:-moz-placeholder {
	color: var(--color-text-muted) !important;
}

::-moz-placeholder {
	color: var(--color-text-muted) !important;
}

:-ms-input-placeholder {
	color: var(--color-text-muted) !important;
}

label {
	color: #1A2B45 !important;
}

table th {
	color: #1A2B45 !important;
}

table tbody tr {
	border-color: var(--color-border) !important;
}

table tbody tr:nth-child(2n + 1) {
	background-color: rgba(33, 150, 243, 0.03) !important;
}

table thead {
	border-bottom: solid 2px var(--color-border) !important;
}

/* =========================================
   Smooth section transitions
   ========================================= */
.wrapper {
	scroll-margin-top: 2em;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media screen and (max-width: 736px) {

	/* --- Intro --- */
	.intro-content {
		flex-direction: column;
		text-align: center;
		gap: 1.5em;
	}

	.intro-image img {
		width: 180px;
		height: 180px;
	}

	#intro h1 {
		font-size: 2em;
		margin-bottom: 0.15em;
	}

	#intro .subtitle {
		font-size: 0.95em;
		letter-spacing: 0.08em;
		margin-bottom: 0.8em;
	}

	/* 本文の行間をモバイルで締める */
	#intro p {
		font-size: 0.95em;
		line-height: 1.8;
	}

	#intro p br {
		display: none;
	}

	/* ボタンを中央に */
	.intro-text .actions {
		justify-content: center;
	}

	/* --- Tech Tags --- */
	.tech-tags {
		gap: 0.3em;
		justify-content: center;
	}

	.tech-tags .tag {
		font-size: 0.7em;
		padding: 0.2em 0.6em;
	}

	/* --- Value list --- */
	.value-list li {
		padding: 0.8em;
	}

	/* --- Badge --- */
	.badge {
		font-size: 0.65em;
	}

	/* --- Section heading underline: center on mobile --- */
	#skills h2::after,
	#contact h2::after {
		left: 0;
		transform: none;
	}

	/* --- Sidebar logo: hide on mobile (sidebar itself is hidden) --- */
	#sidebar-logo {
		display: none;
	}
}

@media screen and (max-width: 480px) {

	/* --- Intro image smaller --- */
	.intro-image img {
		width: 140px;
		height: 140px;
	}

	#intro h1 {
		font-size: 1.75em;
	}

	/* --- Skills cards: icon inline above text on smallest screens --- */
	.features section {
		text-align: left;
		padding: 1.5em 1.2em 0.8em 1.2em !important;
	}

	.features section .icon.major {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 0.75em;
		margin-top: 0;
		width: 2.2em;
		height: 2.2em;
		line-height: 2.2em;
	}

	/* --- Value list: ensure icon doesn't overflow --- */
	.value-list li {
		flex-wrap: nowrap;
		gap: 0.75em;
	}

	.value-list li .icon {
		font-size: 1.1em;
	}

	/* --- Footer: stack items --- */
	#footer .menu {
		font-size: 0.78em;
	}
}