/* ==========================================================================
   Carrack – Front page
   ========================================================================== */

:root {
	--color-primary: #0088cc;
	--color-primary-dark: #2e3192;
	--color-gradient-start: #00aeef;
	--color-gradient-end: #2e3192;
	--color-text: #333333;
	--color-text-muted: #666666;
	--color-bg: #ffffff;
	--color-bg-gray: #f4f4f4;
	--color-tag-bg: #e8e8e8;
	--color-tag-text: #555555;
	--color-footer: #333333;
	--font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--container-max: 1120px;
	--header-height: 72px;
	--radius-card: 12px;
	--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 15px;
	line-height: 1.9;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

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

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
p {
	margin: 0;
}

.l-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
}

.section-heading {
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 700;
	text-align: center;
	line-height: 1.5;
	letter-spacing: 0.04em;
	margin-bottom: 48px;
}

/* Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-bg);
	border-bottom: 1px solid #eeeeee;
}

.site-nav-overlay {
	display: none;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px 24px;
	min-height: var(--header-height);
}

.site-header__logo img {
	display: block;
	width: auto;
	height: 85px;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	justify-self: center;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
}

.site-nav__list a {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}

.site-nav__list a:hover {
	color: var(--color-primary);
}

.site-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: 40px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	background: var(--color-primary);
	border-radius: 4px;
	transition: background 0.2s, opacity 0.2s;
	flex-shrink: 0;
}

.site-nav__cta:hover {
	background: #0077b3;
}

.site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.site-header__toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
}

.hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 720;
	max-height: 72vh;
	overflow: hidden;
	background: linear-gradient(135deg, #c5d8eb 0%, #8fafcf 100%);
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 80%;
}

.hero__catch {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding-bottom: 0;
	pointer-events: none;
}

.hero__catch-text {
	display: inline-block;
	margin: 0 0 0 max(0px, calc((100vw - var(--container-max)) / 2 + 24px));
	padding: 20px 36px;
	font-size: clamp(1.125rem, 2.2vw, 1.625rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: #ffffff;
	background: linear-gradient(90deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

/* About
   -------------------------------------------------------------------------- */
.about {
	padding: 80px 0 72px;
}

.about__heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	margin-bottom: 40px;
}

.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.about__logo {
	margin-bottom: 28px;
}

.about__logo img {
	height: 90px;
	width: auto;
}

.about__body p + p {
	margin-top: 1.25em;
}

.about__body {
	font-size: 14px;
	line-height: 2;
	color: var(--color-text);
}

.about__visual img {
	width: 100%;
	border-radius: 4px;
	object-fit: cover;
	aspect-ratio: 7 / 5;
	background: #dde5ee;
}

/* Banner break
   -------------------------------------------------------------------------- */
.banner-break {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	background: #e0e6ed;
}

.banner-break img {
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Reasons
   -------------------------------------------------------------------------- */
.reasons {
	padding: 80px 0 88px;
}

.reasons__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px 16px;
}

.reasons__item {
	text-align: center;
}

.reasons__thumb {
	width: 140px;
	height: 140px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;
	background: #dde5ee;
}

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

.reasons__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 10px;
}

.reasons__text {
	font-size: 12px;
	line-height: 1.85;
	color: var(--color-text-muted);
	text-align: left;
}

/* Services
   -------------------------------------------------------------------------- */
.services {
	padding: 0 0 96px;
}

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

.services__card {
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.services__card-img {
	aspect-ratio: 280 / 160;
	overflow: hidden;
	background: #dde5ee;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
}

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

.services__card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 18px 22px;
}

.services__card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 10px;
}

.services__card-text {
	font-size: 12px;
	line-height: 1.85;
	color: var(--color-text-muted);
	margin-bottom: 16px;
	flex: 1;
}

.services__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.services__tags li {
	font-size: 11px;
	line-height: 1;
	color: var(--color-tag-text);
	background: var(--color-tag-bg);
	padding: 6px 10px;
	border-radius: 999px;
}

/* Company profile
   -------------------------------------------------------------------------- */
.company {
	padding: 0 0 80px;
}

.company__header {
	padding-bottom: 24px;
	border-bottom: 1px solid #cccccc;
}

.company__title {
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.company__subtitle {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--color-primary);
}

.company__list {
	margin: 0;
}

.company__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px 32px;
	padding: 22px 0;
	border-bottom: 1px solid #cccccc;
}

.company__label {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}

.company__value {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
}

/* CEO
   -------------------------------------------------------------------------- */
.ceo {
	padding: 0 0 96px;
}

.ceo__box {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 48px;
	align-items: start;
	padding: 56px 48px;
	background: var(--color-bg-gray);
	border-radius: 4px;
}

.ceo__photo img {
	width: 100%;
	max-width: 300px;
	border-radius: 2px;
	object-fit: cover;
	aspect-ratio: 3 / 4;
	background: #dde5ee;
}

.ceo__label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.ceo__name {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 24px;
	letter-spacing: 0.08em;
}

.ceo__body {
	font-size: 14px;
	line-height: 2;
}

.ceo__body p + p {
	margin-top: 1.25em;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-footer);
	color: #ffffff;
	padding: 16px 0;
}

.site-footer__copy {
	font-size: 12px;
	text-align: center;
	letter-spacing: 0.04em;
}

/* Desktop – reset mobile nav drawer
   -------------------------------------------------------------------------- */
@media (min-width: 961px) {
	.site-nav {
		position: static;
		transform: none;
		visibility: visible;
		pointer-events: auto;
		width: auto;
		border: none;
		box-shadow: none;
		padding: 0;
		overflow: visible;
	}

	.site-nav-overlay {
		display: none !important;
	}
}

/* Tablet – hamburger nav & 2-column grids
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.site-header__logo {
		grid-column: 1;
		justify-self: start;
	}

	.site-header__toggle {
		display: flex;
		grid-column: 2;
		justify-self: end;
		position: relative;
		z-index: 202;
	}

	.site-nav-overlay {
		display: block;
		position: fixed;
		inset: var(--header-height) 0 0 0;
		z-index: 150;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.25s ease, visibility 0.25s ease;
	}

	.site-nav-overlay.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.site-nav {
		position: fixed;
		top: var(--header-height);
		right: 0;
		bottom: 0;
		left: auto;
		width: min(320px, 88vw);
		z-index: 201;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
		background: var(--color-bg);
		border-left: 1px solid #eeeeee;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.25s ease, visibility 0.25s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.site-nav.is-open {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		padding: 14px 0;
		font-size: 15px;
		border-bottom: 1px solid #f0f0f0;
	}

	.site-nav__cta {
		width: 100%;
		margin-top: 20px;
		height: 48px;
	}

	body.nav-open {
		overflow: hidden;
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.about__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.about__visual {
		order: -1;
	}

	.reasons__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 20px;
	}

	.services__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.company__row {
		grid-template-columns: 120px 1fr;
		gap: 16px 20px;
	}

	.ceo__box {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 28px;
	}

	.ceo__photo img {
		margin-inline: auto;
		display: block;
	}
}

/* Smartphone (SP)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	:root {
		--header-height: 60px;
	}

	body {
		font-size: 14px;
		overflow-x: hidden;
	}

	.l-container {
		padding-inline: 16px;
	}

	.section-heading {
		margin-bottom: 32px;
		font-size: 1.25rem;
	}

	/* Header */
	.site-header__logo img {
		height: 52px;
	}

	.site-header__inner {
		gap: 12px;
		min-height: var(--header-height);
	}

	.site-nav__list a {
		font-size: 14px;
		line-height: 1.5;
		padding: 16px 0;
	}

	/* Hero */
	.hero__media {
		aspect-ratio: 4 / 3;
		max-height: 52vh;
		min-height: 220px;
	}

	.hero__img {
		object-position: 0% 75%;
	}

	.hero__catch:empty {
		display: none;
	}

	.hero__catch-text {
		display: block;
		width: calc(100% - 32px);
		margin: 0 16px 16px;
		padding: 14px 18px;
		font-size: 0.9375rem;
		line-height: 1.55;
	}

	/* About */
	.about {
		padding: 48px 0 40px;
	}

	.about__heading {
		font-size: 1.25rem;
		margin-bottom: 24px;
	}

	.about__grid {
		gap: 24px;
	}

	.about__logo {
		margin-bottom: 20px;
		text-align: center;
	}

	.about__logo img {
		height: 56px;
	}

	.about__body {
		font-size: 13px;
		line-height: 1.95;
	}

	.about__visual img {
		aspect-ratio: 16 / 10;
	}

	/* Banner */
	.banner-break img {
		max-height: 120px;
	}

	/* Reasons */
	.reasons {
		padding: 48px 0 56px;
	}

	.reasons__list {
		grid-template-columns: 1fr;
		gap: 40px;
		max-width: none;
		margin-inline: 0;
	}

	.reasons__item {
		max-width: 100%;
	}

	.reasons__thumb {
		width: 120px;
		height: 120px;
		margin-bottom: 16px;
	}

	.reasons__title {
		font-size: 15px;
		text-align: center;
	}

	.reasons__text {
		font-size: 13px;
		line-height: 1.9;
	}

	/* Services */
	.services {
		padding-bottom: 56px;
	}

	.services__list {
		grid-template-columns: 1fr;
		gap: 24px;
		max-width: none;
		margin-inline: 0;
	}

	.services__card-title {
		font-size: 16px;
	}

	.services__card-text {
		font-size: 13px;
	}

	.services__card-body {
		padding: 18px 16px 20px;
	}

	.services__tags li {
		font-size: 12px;
		padding: 7px 12px;
		line-height: 1.4;
	}

	/* Company */
	.company {
		padding-bottom: 56px;
	}

	.company__header {
		padding-bottom: 20px;
	}

	.company__title {
		font-size: 1.25rem;
	}

	.company__row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 18px 0;
	}

	.company__label {
		font-size: 14px;
	}

	.company__value {
		font-size: 13px;
		line-height: 1.85;
		word-break: break-word;
	}

	/* CEO */
	.ceo {
		padding-bottom: 56px;
	}

	.ceo__box {
		padding: 28px 20px;
		gap: 24px;
	}

	.ceo__photo img {
		max-width: 100%;
		width: min(100%, 280px);
	}

	.ceo__content {
		text-align: left;
	}

	.ceo__name {
		font-size: 1.375rem;
		margin-bottom: 20px;
	}

	.ceo__body {
		font-size: 13px;
		line-height: 1.95;
	}

	/* Footer */
	.site-footer {
		padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
	}

	.site-footer__copy {
		font-size: 11px;
		line-height: 1.6;
		padding-inline: 8px;
	}
}
