/*
Theme Name: CREW
*/

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--primary: #1D4ED8;
	--primary-dark: #1E40AF;
	--primary-light: #3B82F6;
	--dark: #1A1A1A;
	--dark2: #2D2D2D;
	--gray: #6B7280;
	--gray-light: #F3F4F6;
	--gray-border: #E5E7EB;
	--white: #FFFFFF;
	--gold: #D4A017;
	--font: 'Noto Sans JP', sans-serif;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
	--radius: 12px;
	--transition: 0.25s ease;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font);
	color: var(--dark);
	background: var(--white);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

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

ul {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: var(--font);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	transition: all var(--transition);
	white-space: nowrap;
}

.btn--primary {
	background: var(--primary);
	color: var(--white);
	box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.btn--primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(29, 78, 216, 0.45);
}

.btn--ghost {
	background: transparent;
	color: var(--white);
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--white);
}

.btn--large {
	padding: 18px 48px;
	font-size: 1.1rem;
}

/* ===== SECTION COMMON ===== */
.section__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--primary);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.section__title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 900;
	line-height: 1.3;
	margin-bottom: 16px;
}

.section__lead {
	font-size: 1rem;
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 48px;
}

/* ===== HEADER ===== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 20px 0;
	transition: all var(--transition);
}

.header--scrolled {
	background: var(--white);
	padding: 12px 0;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 900;
	font-size: 1.2rem;
	color: var(--white);
	transition: color var(--transition);
}

.header--scrolled .logo {
	color: var(--dark);
}

.logo__mark {
	color: var(--primary);
	font-size: 0.9rem;
}

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

.nav__link {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	transition: color var(--transition);
}

.header--scrolled .nav__link {
	color: var(--dark);
}

.nav__link:hover {
	color: var(--primary);
}

.nav__cta {
	background: var(--primary);
	color: var(--white) !important;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 700;
}

.nav__cta:hover {
	background: var(--primary-dark);
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 4px;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--white);
	transition: all var(--transition);
	border-radius: 2px;
}

.header--scrolled .hamburger span {
	background: var(--dark);
}

.hamburger.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
	opacity: 0;
}

.hamburger.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--dark);
}

.hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(29, 78, 216, 0.88) 0%, rgba(15, 23, 42, 0.95) 60%), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat;
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding: 140px 24px 80px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	align-items: end;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.hero__eyebrow {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.05em;
	margin-bottom: 20px;
}

.hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 900;
	color: var(--white);
	line-height: 1.2;
	margin-bottom: 24px;
}

.hero__title--accent {
	color: #BAE6FD;
	display: block;
	margin-top: 8px;
}

.hero__sub {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.8;
	margin-bottom: 40px;
}

.hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hero__stats {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 160px;
}

.stat {
	text-align: right;
	border-right: 3px solid var(--primary);
	padding-right: 20px;
}

.stat__num {
	display: block;
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--white);
	line-height: 1;
}

.stat__num small {
	font-size: 1rem;
	font-weight: 700;
}

.stat__label {
	display: block;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 4px;
}

.hero__scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero__scroll-line {
	display: block;
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
	animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {

	0%,
	100% {
		transform: scaleY(1);
		opacity: 1;
	}

	50% {
		transform: scaleY(0.5);
		opacity: 0.3;
	}
}

/* ===== PROMISE ===== */
.promise {
	padding: 96px 0;
	background: var(--white);
}

.promise__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px;
}

.promise__item {
	padding: 36px 28px;
	border: 2px solid var(--gray-border);
	border-radius: var(--radius);
	transition: all var(--transition);
}

.promise__item:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.promise__icon {
	font-size: 2rem;
	font-weight: 900;
	color: var(--primary);
	opacity: 0.15;
	margin-bottom: 16px;
	line-height: 1;
}

.promise__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.4;
}

.promise__text {
	font-size: 0.9rem;
	color: var(--gray);
	line-height: 1.8;
}

/* ===== SERVICE ===== */
.service {
	padding: 96px 0;
	background: var(--gray-light);
}

.service__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.service__item {
	background: var(--white);
	border-radius: var(--radius);
	padding: 36px 40px;
	display: flex;
	gap: 32px;
	align-items: flex-start;
	box-shadow: var(--shadow);
	position: relative;
	transition: all var(--transition);
	border-left: 4px solid transparent;
}

.service__item:hover {
	border-left-color: var(--primary);
	transform: translateX(4px);
}

.service__item--highlight {
	border-left-color: var(--primary);
}

.service__item--premium {
	border-left-color: var(--gold);
}

.service__badge {
	position: absolute;
	top: -12px;
	left: 40px;
	background: var(--primary);
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 20px;
}

.service__badge--gold {
	background: var(--gold);
}

.service__num {
	font-size: 3rem;
	font-weight: 900;
	color: var(--gray-border);
	line-height: 1;
	min-width: 60px;
	flex-shrink: 0;
}

.service__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 6px;
}

.service__catch {
	font-size: 0.9rem;
	color: var(--primary);
	font-weight: 500;
	margin-bottom: 12px;
}

.service__text {
	font-size: 0.9rem;
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 16px;
}

.service__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.service__tags li {
	font-size: 0.75rem;
	background: var(--gray-light);
	color: var(--gray);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 500;
}

/* ===== CASES ===== */
.cases {
	padding: 96px 0;
	background: var(--white);
}

.case__card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	margin-bottom: 40px;
	border: 1px solid var(--gray-border);
}

.case__card:last-child {
	margin-bottom: 0;
}

.case__header {
	background: var(--dark);
	padding: 36px 40px;
}

.case__industry {
	font-size: 0.8rem;
	color: var(--primary);
	font-weight: 700;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 12px;
}

.case__title {
	font-size: clamp(1.2rem, 2.5vw, 1.6rem);
	font-weight: 900;
	color: var(--white);
	line-height: 1.4;
}

.case__story {
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 0;
	align-items: start;
}

.case__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 1.5rem;
	padding: 0 16px;
	padding-top: 40px;
}

.case__step {
	padding: 28px;
	border-radius: 8px;
}

.case__step--before {
	background: #FEF2F2;
}

.case__step--turning {
	background: #FFF7ED;
}

.case__step--after {
	background: #F0FDF4;
}

.case__step-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
	opacity: 0.6;
}

.case__step--before .case__step-label {
	color: #DC2626;
}

.case__step--turning .case__step-label {
	color: #D97706;
}

.case__step--after .case__step-label {
	color: #16A34A;
}

.case__step-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.case__step-text {
	font-size: 0.85rem;
	color: var(--gray);
	line-height: 1.8;
}

.case__results {
	font-size: 0.85rem;
	color: var(--gray);
	line-height: 1.8;
}

.case__results li {
	padding-left: 1.2em;
	position: relative;
}

.case__results li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #16A34A;
	font-weight: 700;
}

.case__quote {
	margin: 0 40px 40px;
	padding: 24px 28px;
	background: var(--gray-light);
	border-left: 4px solid var(--primary);
	border-radius: 0 8px 8px 0;
}

.case__quote p {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
	margin-bottom: 8px;
}

.case__quote cite {
	font-size: 0.8rem;
	color: var(--gray);
	font-style: normal;
}

/* ===== DIFFERENCE ===== */
.difference {
	padding: 96px 0;
	background: var(--dark);
}

.difference .section__label {
	color: var(--primary);
}

.difference .section__title {
	color: var(--white);
}

.difference .section__lead {
	color: rgba(255, 255, 255, 0.6);
}

.diff__table-wrap {
	overflow-x: auto;
}

.diff__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.diff__table th,
.diff__table td {
	padding: 18px 24px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diff__table thead th {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.diff__table tbody td {
	color: rgba(255, 255, 255, 0.55);
}

.diff__label {
	text-align: left !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-weight: 700;
}

.diff__us {
	background: rgba(29, 78, 216, 0.10) !important;
	color: var(--white) !important;
	border-left: 2px solid var(--primary);
	border-right: 2px solid var(--primary);
}

.diff__table thead .diff__us {
	color: var(--primary) !important;
	font-size: 1rem;
}

/* ===== PROFILE ===== */
.profile {
	padding: 96px 0;
	background: var(--white);
}

.profile__inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 64px;
	align-items: start;
}

.profile__photo {
	aspect-ratio: 3/4;
	background: var(--gray-light);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 20px;
}

.profile__photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gray);
	font-size: 0.85rem;
}

.profile__name {
	font-size: 1.3rem;
	font-weight: 900;
}

.profile__title {
	font-size: 0.85rem;
	color: var(--gray);
	margin-top: 4px;
}

.profile__catch {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 24px;
	padding-left: 16px;
	border-left: 3px solid var(--primary);
}

.profile__text {
	font-size: 0.95rem;
	color: var(--gray);
	line-height: 1.9;
	margin-bottom: 16px;
}

.profile__text strong {
	color: var(--dark);
}

.profile__skills {
	margin-top: 32px;
	padding: 24px 28px;
	background: var(--gray-light);
	border-radius: 8px;
	margin-bottom: 24px;
}

.profile__skills-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--gray);
	text-transform: uppercase;
	margin-bottom: 14px;
}

.profile__skill-list li {
	font-size: 0.9rem;
	padding: 6px 0 6px 20px;
	position: relative;
	color: var(--dark);
	border-bottom: 1px solid var(--gray-border);
}

.profile__skill-list li:last-child {
	border-bottom: none;
}

.profile__skill-list li::before {
	content: '▶';
	position: absolute;
	left: 0;
	color: var(--primary);
	font-size: 0.6rem;
	top: 10px;
}

.profile__values {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile__value {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
	color: var(--dark);
}

.profile__value-icon {
	font-size: 1.1rem;
}

/* ===== CONTACT ===== */
.contact {
	padding: 96px 0;
	background: var(--gray-light);
}

.contact__title {
	text-align: center;
}

.contact__lead {
	text-align: center;
}

.contact__checks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	max-width: 640px;
	margin: 0 auto 48px;
}

.contact__check {
	background: var(--white);
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	border: 1px solid var(--gray-border);
	color: var(--dark);
}

.contact__form {
	background: var(--white);
	padding: 48px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-width: 800px;
	margin: 0 auto;
}

.form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.form__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form__group--full {
	margin-bottom: 20px;
}

.form__label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dark);
}

.form__required {
	display: inline-block;
	font-size: 0.7rem;
	background: var(--primary);
	color: var(--white);
	padding: 1px 6px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
}

.form__input,
.form__select,
.form__textarea {
	padding: 12px 16px;
	border: 2px solid var(--gray-border);
	border-radius: 6px;
	font-family: var(--font);
	font-size: 0.95rem;
	color: var(--dark);
	transition: border-color var(--transition);
	background: var(--white);
	width: 100%;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
	outline: none;
	border-color: var(--primary);
}

.form__textarea {
	resize: vertical;
	line-height: 1.7;
}

.form__submit {
	text-align: center;
	margin-top: 8px;
}

.form__note {
	font-size: 0.8rem;
	color: var(--gray);
	margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
	background: var(--dark2);
	padding: 48px 0 32px;
}

.footer__inner {
	text-align: center;
}

.footer .logo__text {
	color: var(--white);
}

.footer__copy {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 12px 0 24px;
}

.footer__nav {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.footer__nav a {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	transition: color var(--transition);
}

.footer__nav a:hover {
	color: var(--white);
}

.footer__copyright {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.25);
}

/* ===== MODAL ===== */
.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: var(--white);
	padding: 48px;
	border-radius: var(--radius);
	text-align: center;
	z-index: 1000;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: all var(--transition);
	min-width: 320px;
}

.modal--open {
	opacity: 1;
	pointer-events: all;
	transform: translate(-50%, -50%) scale(1);
}

.modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition);
}

.modal__overlay.modal--open {
	opacity: 1;
	pointer-events: all;
}

.modal__icon {
	width: 64px;
	height: 64px;
	background: #DCFCE7;
	color: #16A34A;
	font-size: 1.8rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.modal__title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.modal__text {
	font-size: 0.9rem;
	color: var(--gray);
	line-height: 1.7;
	margin-bottom: 24px;
}

/* ===== ANIMATIONS ===== */
.animate {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
	opacity: 1;
	transform: translateY(0);
}

.promise__item:nth-child(2) {
	transition-delay: 0.1s;
}

.promise__item:nth-child(3) {
	transition-delay: 0.2s;
}

.service__item:nth-child(2) {
	transition-delay: 0.05s;
}

.service__item:nth-child(3) {
	transition-delay: 0.1s;
}

.service__item:nth-child(4) {
	transition-delay: 0.15s;
}

.service__item:nth-child(5) {
	transition-delay: 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
		padding-bottom: 60px;
	}

	.hero__stats {
		flex-direction: row;
		justify-content: flex-start;
		gap: 32px;
		min-width: unset;
	}

	.stat {
		text-align: left;
		border-right: none;
		border-left: 3px solid var(--primary);
		padding-right: 0;
		padding-left: 16px;
	}

	.promise__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

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

	.case__arrow {
		transform: none;
		padding: 8px 0;
	}

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

	.profile__photo-wrap {
		display: grid;
		grid-template-columns: 160px 1fr;
		gap: 20px;
		align-items: center;
	}

	.profile__photo {
		margin-bottom: 0;
	}

	.diff__table th:nth-child(2),
	.diff__table td:nth-child(2) {
		display: none;
	}
}

@media (max-width: 680px) {
	.hamburger {
		display: flex;
	}

	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 300px;
		height: 100vh;
		background: var(--white);
		flex-direction: column;
		justify-content: center;
		gap: 0;
		padding: 40px 24px;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
		transition: right var(--transition);
		z-index: 99;
	}

	.nav--open {
		right: 0;
	}

	.nav__link {
		color: var(--dark) !important;
		padding: 16px 0;
		border-bottom: 1px solid var(--gray-border);
		width: 100%;
	}

	.nav__cta {
		margin-top: 16px;
	}

	.service__item {
		flex-direction: column;
		gap: 8px;
		padding: 28px 24px;
	}

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

	.contact__form {
		padding: 28px 20px;
	}

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

	.case__header {
		padding: 28px 24px;
	}

	.case__story {
		padding: 24px;
	}

	.case__quote {
		margin: 0 24px 24px;
	}

	.diff__table {
		font-size: 0.8rem;
	}

	.diff__table th,
	.diff__table td {
		padding: 12px;
	}
}
