/* =============================================
   Airi Design Time - Portfolio Page CSS
   対象: page-portfolio-kobayashi.php
   ============================================= */

html {
	scroll-behavior: smooth;
}

.page-portfolio-root {
	min-width: 320px;
	overflow-x: auto;
}

/* -----------------------------------------------
   HERO
----------------------------------------------- */
.hero {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding: 80px 0 100px;
	overflow: hidden;
}

.hero-bg-band {
	position: absolute;
	top: 18%;
	left: -10%;
	width: 120%;
	height: 340px;
	background: linear-gradient(100deg, var(--adt-accent-b-soft) 0%, var(--adt-accent-a-soft) 100%);
	filter: blur(2px);
	transform: rotate(-4deg) translateX(var(--band-x, 0px));
	transition: transform 1.2s var(--adt-ease);
	z-index: 0;
	opacity: 0.8;
	animation: bandMorph 18s ease-in-out infinite;
}

@keyframes bandMorph {
	0% {
		border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
		transform: rotate(-4deg) translateX(var(--band-x, 0px)) translateY(0px);
	}
	25% {
		border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
		transform: rotate(-2deg) translateX(var(--band-x, 0px)) translateY(-14px);
	}
	50% {
		border-radius: 60% 40% 45% 55% / 40% 60% 45% 55%;
		transform: rotate(-6deg) translateX(var(--band-x, 0px)) translateY(6px);
	}
	75% {
		border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
		transform: rotate(-3deg) translateX(var(--band-x, 0px)) translateY(-8px);
	}
	100% {
		border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
		transform: rotate(-4deg) translateX(var(--band-x, 0px)) translateY(0px);
	}
}

.hero-particles {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.particle {
	position: absolute;
	border-radius: 50%;
	opacity: 0;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-iteration-count: infinite;
}

.particle-1 {
	top: 14%;
	width: 14px;
	height: 14px;
	background: var(--adt-accent-a);
	animation-name: slideInDot1;
	animation-duration: 9s;
	animation-delay: 0s;
}

.particle-2 {
	top: 62%;
	width: 9px;
	height: 9px;
	background: var(--adt-accent-b);
	animation-name: slideInDot1;
	animation-duration: 11s;
	animation-delay: 2.4s;
}

.particle-3 {
	top: 38%;
	width: 6px;
	height: 6px;
	background: var(--adt-ink);
	opacity: 0;
	animation-name: slideInDot1;
	animation-duration: 8s;
	animation-delay: 4.6s;
}

.particle-4 {
	top: 78%;
	width: 11px;
	height: 11px;
	background: var(--adt-accent-a-soft);
	border: 1.5px solid var(--adt-accent-a);
	animation-name: slideInDot1;
	animation-duration: 13s;
	animation-delay: 1.2s;
}

.particle-5 {
	top: 24%;
	width: 8px;
	height: 8px;
	background: var(--adt-accent-b-soft);
	border: 1.5px solid var(--adt-accent-b);
	animation-name: slideInDot1;
	animation-duration: 10s;
	animation-delay: 6s;
}

@keyframes slideInDot1 {
	0% {
		right: -5%;
		opacity: 0;
		transform: translateX(0) scale(0.6);
	}
	12% {
		opacity: 0.85;
		transform: translateX(0) scale(1);
	}
	88% {
		opacity: 0.85;
	}
	100% {
		right: 104%;
		opacity: 0;
		transform: translateX(0) scale(0.6);
	}
}

@media (max-width: 768px) {
	.hero-particles {
		display: none;
	}
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
	gap: 40px 72px;
	align-items: center;
}

.hero-copy {
	max-width: 640px;
}

.adt-page .hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--adt-line);
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--adt-accent-a);
	flex-shrink: 0;
	animation: eyebrowPulse 2.8s ease-in-out infinite;
}

@keyframes eyebrowPulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.45);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(255, 107, 74, 0);
	}
}

.hero-eyebrow-text {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--adt-ink-soft);
}

.hero-title {
	margin: 0;
}

.hero-title-line {
	display: block;
	overflow: hidden;
}

.hero-title-line span {
	display: inline-block;
	transform: translateY(108%);
	opacity: 0;
	animation: slideUp 0.95s var(--adt-ease) forwards;
}

.hero-title-line--preface {
	margin-bottom: 6px;
}

.hero-title-line--preface span {
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--adt-ink-soft);
	animation-delay: 0.08s;
}

.hero-title-line--main span {
	font-size: clamp(2.6rem, 6.8vw, 5.4rem);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.02em;
	animation-delay: 0.22s;
}

.hero-title-slide {
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-weight: 600;
	font-variation-settings: 'opsz' 72;
	color: var(--adt-accent-a);
}

.hero-title-accent {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	background: linear-gradient(135deg, var(--adt-ink) 0%, var(--adt-accent-b) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@keyframes slideUp {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.adt-page .hero-lead {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--adt-line);
	max-width: 520px;
	opacity: 0;
	transform: translateY(16px);
	animation: heroLeadIn 0.9s var(--adt-ease) 0.55s forwards;
}

@keyframes heroLeadIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.adt-page .hero-tagline {
	display: flex;
	align-items: stretch;
	gap: 16px;
	margin-bottom: 18px;
}

.hero-tagline-mark {
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--adt-accent-a) 0%, var(--adt-accent-b) 100%);
	flex-shrink: 0;
}

.hero-tagline-ja {
	display: block;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: 700;
	line-height: 1.5;
	color: var(--adt-ink);
}

.hero-tagline-en {
	display: block;
	margin-top: 4px;
	font-size: clamp(0.95rem, 1.8vw, 1.08rem);
	font-style: italic;
	font-weight: 500;
	color: var(--adt-accent-b);
	line-height: 1.4;
}

.hero-desc {
	margin: 0;
	font-size: clamp(0.92rem, 1.6vw, 1rem);
	line-height: 2;
	color: var(--adt-ink-soft);
}

.adt-page .hero-desc strong {
	font-weight: 700;
	color: var(--adt-accent-a);
}

.adt-page .hero-desc em {
	font-style: normal;
	font-weight: 500;
	color: var(--adt-ink);
	box-shadow: inset 0 -0.55em 0 var(--adt-accent-a-soft);
}

.hero-actions {
	margin-top: 40px;
	opacity: 0;
	transform: translateY(12px);
	animation: heroLeadIn 0.85s var(--adt-ease) 0.72s forwards;
}

/* View My Works — グラデーション枠＋二段ラベル */
.adt-page a.btn-works {
	position: relative;
	display: inline-flex;
	border-radius: 100px;
	padding: 2px;
	background: linear-gradient(120deg, var(--adt-accent-a) 0%, var(--adt-accent-b) 50%, var(--adt-accent-a) 100%);
	background-size: 220% 100%;
	background-position: 0% 50%;
	box-shadow:
		0 10px 36px -12px rgba(255, 107, 74, 0.45),
		0 4px 12px -6px rgba(91, 95, 239, 0.2);
	transition:
		background-position 0.65s var(--adt-ease),
		transform 0.45s var(--adt-ease),
		box-shadow 0.45s var(--adt-ease);
}

.adt-page a.btn-works:hover {
	background-position: 100% 50%;
	transform: translateY(-3px);
	box-shadow:
		0 18px 44px -14px rgba(91, 95, 239, 0.42),
		0 8px 20px -8px rgba(255, 107, 74, 0.35);
}

.adt-page a.btn-works:focus-visible {
	outline: 2px solid var(--adt-accent-b);
	outline-offset: 4px;
}

.adt-page a.btn-works .btn-works-inner {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 14px 14px 14px 28px;
	border-radius: 100px;
	background: var(--adt-base);
	transition: background 0.45s var(--adt-ease);
}

.adt-page a.btn-works:hover .btn-works-inner {
	background: rgba(251, 249, 246, 0.12);
}

.adt-page a.btn-works .btn-works-label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
}

.adt-page a.btn-works .btn-works-en {
	font-size: 1.02rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1.2;
	color: var(--adt-ink);
	transition: color 0.45s var(--adt-ease);
}

.adt-page a.btn-works .btn-works-ja {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--adt-ink-soft);
	transition: color 0.45s var(--adt-ease);
}

.adt-page a.btn-works:hover .btn-works-en,
.adt-page a.btn-works:hover .btn-works-ja {
	color: #fff;
}

.adt-page a.btn-works .btn-works-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--adt-accent-a) 0%, var(--adt-accent-b) 100%);
	color: #fff;
	flex-shrink: 0;
	transition: transform 0.45s var(--adt-ease), box-shadow 0.45s var(--adt-ease);
}

.adt-page a.btn-works:hover .btn-works-icon {
	transform: translateX(4px) scale(1.05);
	box-shadow: 0 6px 16px -4px rgba(28, 27, 26, 0.25);
}

.hero-aside {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 360px;
}

.hero-portrait {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	opacity: 0;
	transform: translateY(20px) scale(0.96);
	animation: heroAsideIn 1s var(--adt-ease) 0.4s forwards;
}

@keyframes heroAsideIn {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.hero-portrait::before {
	content: none;
}

.adt-page .hero-portrait-photo {
	position: relative;
	margin: 0;
}

.adt-page .hero-portrait-photo::before {
	/* MVポートレートのオレンジ枠は不要とのことなので無効化 */
	content: none;
}

.adt-page .hero-portrait-photo img {
	display: block;
	width: clamp(150px, 20vw, 225px);
	height: auto;
	aspect-ratio: 3 / 4;
	border-radius: var(--adt-radius-md);
	object-fit: cover;
	border: 4px solid var(--adt-base);
	box-shadow: 0 12px 40px -12px rgba(28, 27, 26, 0.22);
}

.hero-portrait-text {
	font-size: 0.82rem;
	color: var(--adt-ink-soft);
	line-height: 1.55;
	max-width: 200px;
}

.adt-page .hero-portrait-text strong {
	display: block;
	margin-bottom: 4px;
	color: var(--adt-ink);
	font-size: 1rem;
	font-weight: 600;
}

.adt-page .hero-float-card {
	position: absolute;
	right: 0;
	bottom: 12%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 14px 18px;
	border-radius: var(--adt-radius-md);
	background: var(--adt-base);
	border: 1px solid var(--adt-line);
	box-shadow: 0 16px 40px -16px rgba(28, 27, 26, 0.18);
	animation: heroCardFloat 5s ease-in-out 1.2s infinite;
}

@keyframes heroCardFloat {
	0%,
	100% {
		transform: translateY(0) rotate(-2deg);
	}
	50% {
		transform: translateY(-8px) rotate(1deg);
	}
}

.hero-float-card-num {
	font-size: 1.5rem;
	font-weight: 700;
	font-style: italic;
	color: var(--adt-accent-b);
	line-height: 1;
}

.hero-float-card-label {
	margin-top: 4px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--adt-ink-soft);
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.hero-aside {
		min-height: 0;
		order: -1;
	}

	.hero-float-card {
		right: 8%;
		bottom: 0;
	}

	.hero-copy {
		max-width: none;
	}

	.hero-lead {
		max-width: none;
	}
}

@media (max-width: 600px) {
	.hero-actions {
		width: 100%;
	}

	.adt-page a.btn-works {
		width: 100%;
	}

	.adt-page a.btn-works .btn-works-inner {
		width: 100%;
		justify-content: space-between;
		padding-left: 24px;
	}

	.hero-float-card {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-eyebrow-dot,
	.hero-float-card,
	.hero-lead,
	.hero-actions,
	.hero-portrait {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hero-title-line span {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* -----------------------------------------------
   SECTION COMMON
----------------------------------------------- */
.section {
	position: relative;
	padding: 120px 0;
}

.section-head {
	margin-bottom: 64px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.section-tag {
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-size: 1rem;
	color: var(--adt-accent-b);
	margin-bottom: 14px;
	display: block;
}

.section-head h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.section-head p {
	max-width: 360px;
	font-size: 0.92rem;
	color: var(--adt-ink-soft);
}

.curve-divider {
	display: block;
	width: 100%;
	height: 80px;
	margin-top: -1px;
}

/* -----------------------------------------------
   SERVICES
----------------------------------------------- */
.services {
	background: var(--adt-surface);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.service-desc {
	margin: 0;
}

.service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 10px;
	margin-top: 18px;
}

.service-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid rgba(220, 214, 200, 0.7);
	background: rgba(239, 234, 224, 0.35);
	color: var(--adt-ink-soft);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.service-card {
	background: var(--adt-base);
	border-radius: var(--adt-radius-lg);
	padding: 40px 32px;
	transition: transform 0.5s var(--adt-ease), box-shadow 0.5s var(--adt-ease);
	border: 1px solid var(--adt-line);
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px -16px rgba(28, 27, 26, 0.18);
}

.service-num {
	font-family: 'Fraunces', serif;
	font-size: 0.85rem;
	color: var(--adt-ink-soft);
	margin-bottom: 24px;
	display: block;
}

.service-icon {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.service-icon-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	display: block;
}

/* Service01用：カード本文幅いっぱいのビジュアル */
.adt-page img.service-card-media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 3;
	object-fit: cover;
	object-position: center;
	border-radius: var(--adt-radius-md);
	margin: 0 0 20px;
}

.service-card:nth-child(1) .service-icon {
	background: var(--adt-accent-a-soft);
}

.service-card:nth-child(2) .service-icon {
	background: var(--adt-accent-b-soft);
}

.service-card:nth-child(3) .service-icon {
	background: var(--adt-surface);
}

.service-card:nth-child(4) .service-icon {
	background: var(--adt-accent-b-soft);
}

.service-card h3 {
	font-size: 1.18rem;
	font-weight: 700;
	margin-bottom: 14px;
}

.service-card p {
	font-size: 0.9rem;
	color: var(--adt-ink-soft);
	margin: 0;
}

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

/* -----------------------------------------------
   WORKS
----------------------------------------------- */
.works {
	overflow: hidden;
}

.works-scroller {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	padding: 8px 0 24px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.works-scroller::-webkit-scrollbar {
	display: none;
}

.work-card {
	flex: 0 0 auto;
	width: 340px;
	scroll-snap-align: start;
	border-radius: var(--adt-radius-lg);
	overflow: hidden;
	background: var(--adt-surface);
	transition: transform 0.5s var(--adt-ease);
}

.work-card:hover {
	transform: translateY(-6px);
}

.work-thumb {
	width: 100%;
	height: 240px;
	background: linear-gradient(135deg, var(--adt-accent-b-soft), var(--adt-accent-a-soft));
	position: relative;
	overflow: hidden;
}

.work-thumb::after {
	content: attr(data-tag);
	position: absolute;
	top: 18px;
	left: 18px;
	background: rgba(255, 255, 255, 0.85);
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--adt-ink);
}

.work-body {
	padding: 24px 24px 28px;
}

.work-body h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.work-body p {
	font-size: 0.85rem;
	color: var(--adt-ink-soft);
	margin: 0;
}

.works-hint {
	margin-top: 8px;
	font-size: 0.8rem;
	color: var(--adt-ink-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}

.works-hint svg {
	animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(6px);
	}
}

/* -----------------------------------------------
   PROFILE
----------------------------------------------- */
.profile-grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 64px;
	align-items: center;
}

.profile-photo {
	position: relative;
	border-radius: var(--adt-radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	/* 2/3くらいのサイズ固定（max-widthだと親カラム幅により効かないため） */
	width: 66.666%;
	max-width: none;
	justify-self: center;
}

.profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-photo::before {
	content: '';
	position: absolute;
	inset: -10px;
	border: 1.5px solid var(--adt-accent-a);
	border-radius: var(--adt-radius-lg);
	transform: translate(14px, 14px);
	z-index: -1;
}

.profile-text p {
	margin: 0 0 20px;
	color: var(--adt-ink-soft);
	font-size: 0.98rem;
}

.profile-text p:first-of-type {
	font-size: 1.15rem;
	color: var(--adt-ink);
	font-weight: 500;
}

.profile-meta {
	margin-top: 32px;
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.profile-meta div {
	font-size: 0.85rem;
}

.profile-meta span {
	display: block;
	font-family: 'Fraunces', serif;
	font-size: 1.6rem;
	color: var(--adt-accent-b);
	font-weight: 600;
}

@media (max-width: 860px) {
	.profile-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.profile-photo {
		width: 66.666%;
		max-width: none;
	}
}

/* -----------------------------------------------
   CONTACT
----------------------------------------------- */
.contact {
	background: var(--adt-ink);
	color: var(--adt-base);
	border-radius: var(--adt-radius-lg) var(--adt-radius-lg) 0 0;
}

.contact .section-tag {
	color: var(--adt-accent-a);
}

.contact h2 {
	color: var(--adt-base);
}

.contact-flex {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
}

.contact-headline {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 700;
	max-width: 560px;
	line-height: 1.4;
}

.contact-headline .eng {
	color: var(--adt-accent-a);
	font-style: italic;
}

.adt-page a.btn-light {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--adt-base);
	color: var(--adt-ink);
	padding: 18px 32px;
	border-radius: 100px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.4s var(--adt-ease), background 0.4s var(--adt-ease), color 0.4s var(--adt-ease);
	white-space: nowrap;
}

.adt-page a.btn-light:hover {
	background: var(--adt-accent-a);
	color: #fff;
	transform: translateX(4px);
}

/* -----------------------------------------------
   REVEAL ON SCROLL
----------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--adt-ease), transform 0.8s var(--adt-ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 600px) {
	.hero {
		padding: 60px 0 60px;
	}

	.section {
		padding: 80px 0;
	}

	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}
}
