@charset "utf-8";

/* ==========================================================
   PC-Noah 共通スタイル
   配色はロゴ由来: ネイビー基調 + 虹色スウッシュをアクセントに
   ========================================================== */

:root {
	--navy: #1a1a5e;
	--navy-deep: #10103d;
	--ink: #23233a;
	--muted: #5c5f73;
	--line: #e3e4ec;
	--bg: #ffffff;
	--bg-soft: #f5f6fa;
	--accent: #1e4f9c;
	--rainbow: linear-gradient(90deg, #e8211b, #f0a830 18%, #ede83a 34%, #6db83a 50%, #6cc3d0 66%, #1e4f9c 83%, #a3529c);

	--radius: 10px;
	--max: 1120px;
	--gutter: 16px;
	--header-h: 64px;
	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .02em;
}

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

a { color: var(--accent); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.4; color: var(--navy); margin: 0 0 .6em; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* 虹色の細い線。見出し下線やセクション区切りに使う */
.rainbow-bar {
	height: 4px;
	background: var(--rainbow);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(6px);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}

.logo img { height: 40px; width: auto; }

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--navy);
	transition: transform .2s, opacity .2s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホ: ヘッダー下に開くドロワー */
.global-nav {
	display: none;
	position: absolute;
	top: var(--header-h);
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: 0 12px 24px rgba(16, 16, 61, .08);
}

.nav-open .global-nav { display: block; }

.global-nav ul {
	list-style: none;
	margin: 0;
	padding: 8px var(--gutter) 16px;
}

.global-nav a {
	display: block;
	padding: 12px 4px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid var(--line);
}

.global-nav a[aria-current="page"] { color: var(--accent); }

.global-nav .nav-cta a {
	margin-top: 12px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	text-align: center;
}

@media (min-width: 900px) {
	.nav-toggle { display: none; }

	.global-nav {
		display: block;
		position: static;
		border: 0;
		box-shadow: none;
		background: none;
	}

	.global-nav ul {
		display: flex;
		align-items: center;
		gap: 4px;
		padding: 0;
	}

	.global-nav a {
		padding: 8px 12px;
		border: 0;
		font-size: 15px;
	}

	.global-nav a:hover { color: var(--accent); }

	.global-nav .nav-cta a {
		margin: 0 0 0 8px;
		padding: 8px 20px;
	}

	.global-nav .nav-cta a:hover { background: var(--accent); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
	transition: background .2s, color .2s;
}

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--bg-soft); color: var(--navy); }

.btn-outline { border: 2px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--accent); color: #fff; }

/* ---------- 見出し画像(ヒーロー・下層ページ共通) ----------
   画像は右寄せで敷き、左側から濃紺のグラデーションを重ねて
   白文字の可読性を確保する。
   [img] → [::after 濃紺グラデーション] → [.container 文字] の順に重なる */
.hero,
.page-header {
	position: relative;
	overflow: hidden;
	background: var(--navy-deep);
	color: #fff;
}

.header-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.hero::after,
.page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 16, 61, .92) 0%, rgba(16, 16, 61, .7) 40%, rgba(16, 16, 61, .15) 75%);
}

/* スマホは画像の上に文字が全面で重なるので、全体を暗くする */
@media (max-width: 759px) {
	.hero::after,
	.page-header::after { background: rgba(16, 16, 61, .72); }
}

.hero .container,
.page-header .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }

@media (min-width: 900px) {
	.hero { display: flex; align-items: center; min-height: 600px; }
}

.hero-eyebrow {
	display: inline-block;
	margin-bottom: 20px;
	padding: 4px 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: .08em;
}

.hero h1 {
	color: #fff;
	font-size: clamp(30px, 7vw, 54px);
	font-weight: 900;
	line-height: 1.3;
	margin-bottom: 20px;
}

.hero-lead {
	max-width: 36em;
	color: rgba(255, 255, 255, .85);
	font-size: clamp(15px, 2.2vw, 18px);
	margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (下層ページ) ---------- */
.page-header { padding: 72px 0 64px; }

@media (min-width: 900px) {
	.page-header { padding: 96px 0 88px; }
}

.page-header h1 { color: #fff; font-size: clamp(26px, 5vw, 38px); margin: 0; }

.page-header p { margin: 8px 0 0; color: rgba(255, 255, 255, .8); }

.breadcrumb {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
}

.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

.breadcrumb a { color: rgba(255, 255, 255, .8); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }

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

.section-head { margin-bottom: 40px; }

.section-label {
	display: block;
	margin-bottom: 4px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.section-head h2 {
	position: relative;
	font-size: clamp(24px, 4.5vw, 34px);
	padding-bottom: 16px;
	margin: 0;
}

.section-head h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 4px;
	border-radius: 2px;
	background: var(--rainbow);
}

.section-head p { margin: 16px 0 0; color: var(--muted); max-width: 44em; }

.center { text-align: center; }
.center .section-head h2::after { left: 50%; transform: translateX(-50%); }
.center .section-head p { margin-left: auto; margin-right: auto; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 20px; }

@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }

.card p:last-child { margin-bottom: 0; }

.card-num {
	display: table;
	margin-bottom: 8px;
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	background: var(--rainbow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.card-link:hover { color: inherit; border-color: var(--accent); box-shadow: 0 8px 24px rgba(16, 16, 61, .08); }
.card-link .more { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 700; font-size: 14px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.tag-list li { padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 13px; }

/* ---------- メイン事業(システム開発)の大きいブロック ---------- */
.feature {
	display: grid;
	gap: 32px;
	padding: 36px 24px;
	border-radius: var(--radius);
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid transparent;
	border-image: var(--rainbow) 1;
	border-image-slice: 1 0 0 0;
}

@media (min-width: 860px) { .feature { grid-template-columns: 1.1fr 1fr; padding: 48px; } }

.feature h3 { font-size: clamp(22px, 3.5vw, 28px); }

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

.check-list li {
	position: relative;
	padding: 10px 0 10px 30px;
	border-bottom: 1px dashed var(--line);
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 18px;
	width: 12px;
	height: 7px;
	border-left: 3px solid var(--accent);
	border-bottom: 3px solid var(--accent);
	transform: rotate(-45deg);
}

/* ---------- 本文用の汎用ブロック ---------- */
.prose { max-width: 46em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }

.note { color: var(--muted); font-size: 14px; }

/* 進め方・依頼の流れ。スマホは縦積み、PCは横並び */
.flow {
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 16px;
	padding: 0;
	margin: 0;
}

@media (min-width: 860px) { .flow { grid-template-columns: repeat(var(--steps, 5), 1fr); } }

.flow li {
	counter-increment: step;
	position: relative;
	padding: 24px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.flow li::before {
	content: "STEP " counter(step);
	display: block;
	margin-bottom: 6px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
}

.flow h3 { font-size: 17px; margin-bottom: 6px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); }

/* 料金表・会社概要表 */
.table-wrap { overflow-x: auto; }

.data-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 15px;
}

.data-table th,
.data-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.data-table th { width: 30%; color: var(--navy); font-weight: 700; background: var(--bg-soft); }
.data-table .price { white-space: nowrap; font-weight: 700; color: var(--navy); text-align: right; }
.data-table td small { display: block; color: var(--muted); font-size: 13px; }

/* スマホ: 見出しセルを上段に、説明と料金を下段に積む */
@media (max-width: 639px) {
	.data-table tr { display: grid; grid-template-columns: 1fr auto; }
	.data-table th { grid-column: 1 / -1; width: auto; padding-bottom: 8px; border-bottom: 0; }
	.data-table td:only-of-type { grid-column: 1 / -1; }
}

/* 実績 */
.works-group + .works-group { margin-top: 56px; }

.works-group > h3 {
	font-size: 22px;
	padding-left: 14px;
	border-left: 4px solid var(--accent);
	margin-bottom: 20px;
}

.work-client { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }

/* プロフィール */
.profile-name { font-size: 22px; margin-bottom: 4px; }
.profile-name small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.timeline time { color: var(--accent); font-weight: 700; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { max-width: 720px; margin-top: 32px; }

.form-row { margin-bottom: 24px; }

.form-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--navy);
}

.req,
.opt {
	padding: 0 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
}

.req { background: #c0262d; color: #fff; }
.opt { background: var(--bg-soft); color: var(--muted); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c9cbd8;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 16px; /* iOSでフォーカス時にズームさせない */
}

.contact-form textarea { resize: vertical; }

.contact-form :focus-visible { outline: 3px solid rgba(30, 79, 156, .35); border-color: var(--accent); }

.contact-form [aria-invalid="true"] { border-color: #c0262d; background: #fff7f7; }

.field-error { margin: 6px 0 0; color: #c0262d; font-size: 14px; }

.form-alert {
	max-width: 720px;
	margin: 24px 0 0;
	padding: 14px 18px;
	border-left: 4px solid #c0262d;
	background: #fff7f7;
	color: #8f1c22;
}

.form-submit { margin-top: 32px; }
.form-submit .btn { min-width: 220px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-submit .btn:disabled { opacity: .6; cursor: wait; }

/* ハニーポットは画面外に追い出す(display:none だと無視するボットがいる) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { max-width: 720px; }

.form-legal { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta {
	background: var(--navy);
	color: #fff;
	text-align: center;
	padding: 64px 0;
}

.cta h2 { color: #fff; font-size: clamp(22px, 4vw, 30px); }
.cta p { color: rgba(255, 255, 255, .85); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, .75);
	font-size: 14px;
	padding: 48px 0 24px;
}

.footer-grid { display: grid; gap: 28px; }

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer h2 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: .06em; }

.copyright {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: 12px;
	text-align: center;
}
