/*
 * ファイル名: assets/css/main.css
 * 内容: HDS公式サイト 表示スタイル
 * 作成日: 2026/05/22
 * 修正日: 2026/05/22
 * 作成者: Tatsuma Hoda
 */

:root {
	--color-ink: #102033;
	--color-muted: #607089;
	--color-navy: #15375c;
	--color-blue: #1b76d1;
	--color-teal: #0f9f96;
	--color-sky: #eaf4ff;
	--color-mint: #e9f8f6;
	--color-warm: #f7f4ee;
	--color-surface: #ffffff;
	--color-soft: #f5f8fb;
	--color-border: #dce6f1;
	--shadow-soft: 0 18px 45px rgba(16, 32, 51, 0.08);
	--shadow-card: 0 10px 26px rgba(16, 32, 51, 0.07);
	--radius-card: 8px;
	--radius-control: 6px;
	--header-height: 76px;
	--content-width: 1120px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-surface);
	color: var(--color-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0;
	overflow-x: hidden;
}

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

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

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

p {
	margin-bottom: 0;
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 3px solid rgba(27, 118, 209, 0.35);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-control);
	box-shadow: var(--shadow-card);
}

/* 修正（追加）：2026/05/22 Hoda
   内容：HDS公式サイト共通ヘッダーとナビゲーションを追加
   ここから */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var(--header-height);
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(220, 230, 241, 0.86);
	backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(var(--content-width), calc(100% - 40px));
	min-height: var(--header-height);
	margin: 0 auto;
	gap: 24px;
}

.site-brand {
	flex: 0 1 auto;
	min-width: 0;
}

.site-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 260px;
}

.site-brand .custom-logo {
	max-height: 54px;
	width: auto;
}

.site-brand__text {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	color: var(--color-ink);
	font-weight: 700;
	line-height: 1.35;
}

.site-brand__name {
	font-size: 1rem;
	overflow-wrap: anywhere;
}

.site-brand__area {
	color: var(--color-teal);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
}

.site-nav__list,
.site-footer__menu {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--color-ink);
	font-size: 0.92rem;
	font-weight: 700;
	transition: color 0.18s ease;
}

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

.site-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-control);
	cursor: pointer;
}

.site-nav-toggle__line {
	display: block;
	width: 18px;
	height: 2px;
	margin: 3px 0;
	background: var(--color-navy);
	border-radius: 2px;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

body.nav-open .site-nav-toggle__line:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

body.nav-open .site-nav-toggle__line:nth-child(2) {
	opacity: 0;
}

body.nav-open .site-nav-toggle__line:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}
/* ここまで */

.site-main {
	min-height: 60vh;
}

.section-band {
	padding: 88px 0;
	background: var(--color-surface);
}

.section-band--soft {
	background: var(--color-soft);
}

.section-band--hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(234, 244, 255, 0.95), rgba(255, 255, 255, 0.95) 48%, rgba(233, 248, 246, 0.76)),
		var(--color-surface);
}

.section-inner {
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
}

.section-heading {
	max-width: 720px;
	margin-bottom: 36px;
}

.section-heading--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.section-heading h2,
.page-hero h1,
.final-cta h2 {
	color: var(--color-ink);
	font-size: 2rem;
	line-height: 1.35;
	margin-bottom: 14px;
}

.section-heading p,
.page-hero p,
.hero-section__lead,
.about-content p,
.entry-content,
.post-card p {
	color: var(--color-muted);
}

.section-kicker {
	display: block;
	margin-bottom: 10px;
	color: var(--color-teal);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-control);
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--color-blue);
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(27, 118, 209, 0.2);
}

.button--primary:hover {
	background: #135fae;
}

.button--secondary {
	background: var(--color-surface);
	border-color: var(--color-border);
	color: var(--color-navy);
}

.button--secondary:hover {
	border-color: rgba(27, 118, 209, 0.45);
	color: var(--color-blue);
}

.button--light {
	background: #ffffff;
	color: var(--color-navy);
}

.text-link,
.card-action {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--color-blue);
	font-weight: 800;
}

.text-link::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.card-action--disabled {
	color: var(--color-muted);
}

/* 修正（追加）：2026/05/22 Hoda
   内容：トップページHeroセクションのレイアウトと抽象ダッシュボード表現を追加
   ここから */
.hero-section {
	padding-top: 96px;
	padding-bottom: 96px;
}

.hero-section__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
	align-items: center;
	gap: 56px;
}

.hero-section__content {
	min-width: 0;
}

.hero-section__title {
	margin-bottom: 22px;
	color: var(--color-ink);
	font-size: 3rem;
	line-height: 1.28;
	font-weight: 850;
}

.hero-section__subtitle {
	margin-bottom: 18px;
	color: var(--color-navy);
	font-size: 1.32rem;
	font-weight: 800;
	line-height: 1.75;
}

.hero-section__lead {
	max-width: 640px;
	margin-bottom: 32px;
}

.hero-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-visual {
	position: relative;
	min-width: 0;
	padding: 18px;
}

.hero-visual::before {
	content: "";
	position: absolute;
	inset: 6% 0 auto auto;
	width: 74%;
	height: 74%;
	background: rgba(15, 159, 150, 0.12);
	border: 1px solid rgba(15, 159, 150, 0.22);
	border-radius: var(--radius-card);
	transform: translate(8px, 10px);
}

.hero-visual__screen {
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(220, 230, 241, 0.92);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-soft);
}

.hero-visual__topbar {
	display: flex;
	gap: 8px;
	padding: 18px;
	background: var(--color-navy);
}

.hero-visual__topbar span {
	width: 9px;
	height: 9px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
}

.hero-visual__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 18px;
}

.hero-visual__panel {
	min-height: 118px;
	padding: 18px;
	background: var(--color-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.hero-visual__panel--wide {
	grid-column: span 2;
}

.hero-visual__label,
.project-card__label {
	display: block;
	margin-bottom: 10px;
	color: var(--color-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-visual__panel strong {
	color: var(--color-blue);
	font-size: 2.2rem;
	line-height: 1;
}

.hero-visual__line {
	height: 10px;
	width: 62%;
	margin-top: 12px;
	background: var(--color-border);
	border-radius: 999px;
}

.hero-visual__line--long {
	width: 86%;
	background: rgba(27, 118, 209, 0.24);
}

.hero-visual__badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	color: #08675f;
	background: var(--color-mint);
	border-radius: var(--radius-control);
	font-weight: 800;
}

.hero-visual__bars {
	display: flex;
	align-items: end;
	gap: 10px;
	height: 80px;
}

.hero-visual__bars span {
	width: 100%;
	height: var(--bar-height);
	min-height: 16px;
	background: linear-gradient(180deg, var(--color-blue), var(--color-teal));
	border-radius: var(--radius-control) var(--radius-control) 2px 2px;
}
/* ここまで */

.challenge-grid,
.service-grid,
.work-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.challenge-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.challenge-card,
.service-card,
.work-card,
.project-card,
.post-card,
.entry-content-panel,
.reason-item,
.news-item {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
}

.challenge-card {
	position: relative;
	min-height: 156px;
	padding: 22px;
}

.challenge-card__mark {
	display: block;
	width: 28px;
	height: 28px;
	margin-bottom: 18px;
	background: var(--color-sky);
	border: 1px solid rgba(27, 118, 209, 0.24);
	border-radius: 50%;
}

.challenge-card__mark::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 8px auto 0;
	background: var(--color-blue);
	border-radius: 50%;
}

.challenge-card p {
	color: var(--color-ink);
	font-weight: 800;
	line-height: 1.65;
}

.service-card,
.work-card {
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: 26px;
}

.service-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 22px;
	background: var(--color-navy);
	color: #ffffff;
	border-radius: var(--radius-control);
	font-weight: 800;
}

.service-card h3,
.work-card h3,
.project-card h3,
.reason-item h3,
.post-card h2,
.news-item h3 {
	margin-bottom: 12px;
	color: var(--color-ink);
	font-size: 1.18rem;
	line-height: 1.45;
}

.service-card p,
.work-card p,
.project-card p,
.reason-item p {
	color: var(--color-muted);
}

.service-card .card-action,
.work-card .card-action {
	margin-top: auto;
	padding-top: 18px;
}

.split-layout {
	display: grid;
	grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
	gap: 56px;
	align-items: start;
}

.section-heading--sticky {
	position: sticky;
	top: calc(var(--header-height) + 24px);
}

body.admin-bar .section-heading--sticky {
	top: calc(var(--header-height) + 56px);
}

.reason-list {
	display: grid;
	gap: 16px;
}

.reason-item {
	padding: 24px;
}

.work-card__tech {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 18px;
	padding: 6px 10px;
	background: var(--color-sky);
	color: var(--color-navy);
	border-radius: var(--radius-control);
	font-size: 0.85rem;
	font-weight: 800;
}

.project-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 18px;
}

.project-card {
	padding: 30px;
}

.project-card--featured {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 360px;
	background: var(--color-navy);
	border-color: var(--color-navy);
	color: #ffffff;
}

.project-card--featured h3,
.project-card--featured p {
	color: #ffffff;
}

.project-card--featured .project-card__label {
	color: rgba(255, 255, 255, 0.72);
}

.project-card--featured .button {
	align-self: flex-start;
	margin-top: 28px;
}

.project-side {
	display: grid;
	gap: 18px;
}

.project-card--muted {
	background: var(--color-warm);
}

.flow-list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	padding: 0;
	margin: 0;
	list-style: none;
	counter-reset: none;
}

.flow-item {
	min-height: 150px;
	padding: 20px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.flow-item span {
	display: block;
	margin-bottom: 18px;
	color: var(--color-teal);
	font-size: 1.45rem;
	font-weight: 850;
	line-height: 1;
}

.flow-item p {
	color: var(--color-ink);
	font-weight: 800;
	line-height: 1.6;
}

.about-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.profile-visual {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(135deg, rgba(21, 55, 92, 0.08), rgba(15, 159, 150, 0.12)),
		var(--color-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	color: var(--color-muted);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.about-content {
	max-width: 720px;
}

.about-content h2 {
	margin-bottom: 16px;
	font-size: 2rem;
	line-height: 1.35;
}

.about-content__name {
	margin-bottom: 18px;
	color: var(--color-navy);
	font-size: 1.12rem;
	font-weight: 800;
}

.about-content p + p {
	margin-top: 16px;
}

.news-list {
	display: grid;
	gap: 14px;
}

.news-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
}

.news-item time {
	color: var(--color-muted);
	font-weight: 800;
}

.news-item h3 {
	margin-bottom: 0;
	font-size: 1rem;
}

.news-item h3 a:hover,
.post-card h2 a:hover {
	color: var(--color-blue);
}

.empty-message {
	padding: 22px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	color: var(--color-muted);
}

.final-cta {
	padding: 78px 0;
	background: var(--color-navy);
	color: #ffffff;
}

.final-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.final-cta h2,
.final-cta p {
	color: #ffffff;
}

.final-cta h2 {
	margin-bottom: 8px;
}

.site-footer {
	padding: 42px 0;
	background: #0d1d30;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	gap: 24px;
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
}

.site-footer__name {
	margin-bottom: 4px;
	color: #ffffff;
	font-weight: 800;
}

.site-footer__meta,
.site-footer__copyright {
	color: rgba(255, 255, 255, 0.62);
}

.site-footer__nav {
	justify-self: end;
}

.site-footer__menu {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 18px;
}

.site-footer__menu a:hover {
	color: #ffffff;
}

.site-footer__copyright {
	grid-column: 1 / -1;
	font-size: 0.88rem;
}

.page-hero {
	padding: 74px 0;
	background: linear-gradient(135deg, var(--color-sky), #ffffff);
}

.page-hero--center {
	min-height: 58vh;
	display: grid;
	align-items: center;
	text-align: center;
}

.page-hero time {
	color: var(--color-muted);
	font-weight: 800;
}

.content-layout {
	max-width: 880px;
}

.entry-content-panel {
	padding: 34px;
}

.entry-thumbnail {
	overflow: hidden;
	margin-bottom: 28px;
	border-radius: var(--radius-card);
}

.entry-content > * {
	margin-bottom: 1.35em;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
	color: var(--color-ink);
	line-height: 1.45;
}

.entry-content a {
	color: var(--color-blue);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.post-list {
	display: grid;
	gap: 18px;
}

.post-card {
	padding: 26px;
}

.post-card time {
	display: block;
	margin-bottom: 10px;
	color: var(--color-muted);
	font-weight: 800;
}

.post-card h2 {
	font-size: 1.35rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.page-numbers,
.nav-previous a,
.nav-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-control);
	color: var(--color-navy);
	font-weight: 800;
}

.page-numbers.current {
	background: var(--color-blue);
	border-color: var(--color-blue);
	color: #ffffff;
}

@media (max-width: 1100px) {
	.challenge-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.flow-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 920px) {
	.hero-section__inner,
	.split-layout,
	.project-layout,
	.about-layout {
		grid-template-columns: 1fr;
	}

	.hero-section__inner {
		gap: 38px;
	}

	.hero-visual {
		max-width: 620px;
		padding: 0;
	}

	.section-heading--sticky {
		position: static;
	}

	.service-grid,
	.work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-card--featured {
		min-height: 280px;
	}

	.profile-visual {
		max-width: 320px;
	}

	.final-cta__inner {
		display: block;
	}

	.final-cta .button {
		margin-top: 24px;
	}
}

@media (max-width: 860px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-nav-toggle {
		display: grid;
		flex: 0 0 auto;
	}

	.site-nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 20px;
		right: 20px;
		display: block;
		padding: 12px;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-card);
		box-shadow: var(--shadow-soft);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	}

	body.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.site-nav__list {
		display: grid;
		gap: 2px;
	}

	.site-nav__list a {
		display: flex;
		padding: 9px 12px;
		border-radius: var(--radius-control);
	}

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

@media (max-width: 720px) {
	:root {
		--header-height: 68px;
	}

	.site-header__inner,
	.section-inner,
	.site-footer__inner {
		width: min(var(--content-width), calc(100% - 32px));
	}

	.section-band {
		padding: 64px 0;
	}

	.hero-section {
		padding-top: 70px;
		padding-bottom: 70px;
	}

	.hero-section__title {
		font-size: 2.25rem;
	}

	.hero-section__subtitle {
		font-size: 1.1rem;
	}

	.section-heading h2,
	.about-content h2,
	.page-hero h1,
	.final-cta h2 {
		font-size: 1.65rem;
	}

	.challenge-grid,
	.service-grid,
	.work-grid,
	.flow-list {
		grid-template-columns: 1fr;
	}

	.challenge-card,
	.service-card,
	.work-card {
		min-height: auto;
	}

	.news-item {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 8px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__nav {
		justify-self: start;
	}

	.site-footer__menu {
		justify-content: flex-start;
	}

	.entry-content-panel {
		padding: 24px;
	}
}

@media (max-width: 420px) {
	.site-brand__name {
		font-size: 0.92rem;
	}

	.hero-section__title {
		font-size: 1.95rem;
	}

	.button,
	.hero-section__actions {
		width: 100%;
	}

	.button {
		padding-left: 14px;
		padding-right: 14px;
	}

	.hero-visual__grid {
		grid-template-columns: 1fr;
	}

	.hero-visual__panel--wide {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
