/*
Theme Name: 合同会社未創
Theme URI: https://misou-llc.com/
Author: 合同会社未創
Description: 合同会社未創 コーポレートサイトの独自テーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: misou-llc
*/

/* ---------- 基本 ---------- */
:root {
	--navy: #1b2a4a;
	--navy-deep: #12203b;
	--text: #4a4f57;
	--text-sub: #6b7079;
	--line: #dfe2e7;
	--tint: #f5f6f8;
	--white: #fff;
	--error: #b3261e;
	--container: 1080px;
	--narrow: 760px;
	--gutter: 24px;
	--header-h: 72px;
	--font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.04em;
	font-feature-settings: "palt" 1;
}

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

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

a:hover {
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 3px;
}

p {
	margin: 0 0 1.2em;
}

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

h1,
h2,
h3 {
	color: var(--navy);
	line-height: 1.5;
	letter-spacing: 0.06em;
	margin: 0;
}

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

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--navy);
	color: var(--white);
}

.skip-link:focus {
	top: 8px;
}

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

.container--narrow {
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.pc-only {
	display: none;
}

@media (min-width: 768px) {
	.pc-only {
		display: inline;
	}
}

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

/* ---------- ボタン ---------- */
.button {
	display: inline-block;
	min-width: 240px;
	padding: 16px 40px;
	border: 1px solid var(--navy);
	background: var(--navy);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.button:hover {
	background: var(--navy-deep);
}

.button--outline {
	background: transparent;
	color: var(--navy);
}

.button--outline:hover {
	background: var(--navy);
	color: var(--white);
}

/* ---------- ヘッダー ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
}

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

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

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: calc(var(--container) + var(--gutter) * 2);
	height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
	color: var(--navy);
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}

.site-logo__type {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.site-logo__name {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.global-nav ul {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.global-nav a {
	color: var(--navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.global-nav a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.global-nav a.global-nav__contact {
	display: inline-block;
	padding: 10px 22px;
	background: var(--navy);
	color: var(--white);
}

.global-nav a.global-nav__contact:hover {
	background: var(--navy-deep);
	text-decoration: none;
}

.nav-toggle {
	display: none;
}

@media (max-width: 767px) {
	:root {
		--header-h: 60px;
		--gutter: 16px;
	}

	.site-logo__name {
		font-size: 21px;
	}

	.nav-toggle {
		position: relative;
		display: block;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.nav-toggle__bar,
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		position: absolute;
		left: 11px;
		width: 22px;
		height: 2px;
		background: var(--navy);
		transition: transform 0.2s, top 0.2s, background-color 0.2s;
	}

	.nav-toggle__bar {
		top: 21px;
	}

	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		content: "";
		left: 0;
	}

	.nav-toggle__bar::before {
		top: -7px;
	}

	.nav-toggle__bar::after {
		top: 7px;
	}

	.is-nav-open .nav-toggle__bar {
		background: transparent;
	}

	.is-nav-open .nav-toggle__bar::before {
		top: 0;
		transform: rotate(45deg);
	}

	.is-nav-open .nav-toggle__bar::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.global-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 8px 16px rgba(18, 32, 59, 0.06);
	}

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

	.global-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 20px;
	}

	.global-nav li + li {
		border-top: 1px solid var(--line);
	}

	.global-nav a {
		display: block;
		padding: 16px 0;
	}

	.global-nav a.global-nav__contact {
		display: block;
		margin-top: 16px;
		padding: 14px;
		text-align: center;
	}

	.global-nav li:last-child {
		border-top: 0;
	}
}

/* ---------- ファーストビュー ---------- */
.hero {
	position: relative;
	display: grid;
	min-height: min(78vh, 680px);
	background: #ecebe8;
	overflow: hidden;
}

.hero__media,
.hero__body {
	grid-area: 1 / 1;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.hero__body {
	position: relative;
	align-self: center;
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 64px var(--gutter);
}

.hero__title {
	font-size: clamp(38px, 6vw, 64px);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
}

.hero__sub {
	margin: 12px 0 0;
	color: var(--navy);
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.hero__lead {
	max-width: 30em;
	margin: 32px 0 0;
	color: #3d424a;
	font-size: 15px;
	line-height: 2;
}

@media (max-width: 767px) {
	.hero {
		display: block;
		min-height: 0;
		background: var(--white);
	}

	.hero__media img {
		height: auto;
		aspect-ratio: 16 / 10;
		object-position: 72% center;
	}

	.hero__body {
		padding: 36px var(--gutter) 8px;
	}

	.hero__lead {
		margin-top: 20px;
	}
}

/* ---------- セクション ---------- */
.section {
	padding: 112px 0;
}

.section--tint {
	background: var(--tint);
}

.section--page {
	padding: 72px 0 112px;
}

@media (max-width: 767px) {
	.section {
		padding: 72px 0;
	}

	.section--page {
		padding: 48px 0 80px;
	}
}

.section__label {
	margin: 0 0 8px;
	color: var(--text-sub);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.section__title {
	margin-bottom: 40px;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
}

@media (max-width: 767px) {
	.section__title {
		margin-bottom: 28px;
	}
}

/* 私たちについて */
.about__catch {
	margin-bottom: 28px;
	color: var(--navy);
	font-size: clamp(19px, 2.4vw, 23px);
	font-weight: 600;
	line-height: 1.7;
}

/* ---------- 事業紹介 ---------- */
.business__list {
	display: grid;
	gap: 56px;
}

.business-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 56px;
	padding: 0;
}

.business-item:nth-child(even) .business-item__media {
	order: 2;
}

.business-item__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.business-item__label {
	margin: 0 0 6px;
	color: var(--text-sub);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.business-item__title {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
	font-size: 22px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.business__list {
		gap: 48px;
	}

	.business-item {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.business-item:nth-child(even) .business-item__media {
		order: 0;
	}

	.business-item__title {
		font-size: 20px;
	}
}

.service-links {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.service-links li + li {
	margin-top: 10px;
}

.service-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.service-links a:hover {
	border-color: var(--navy);
}

.service-links__icon {
	font-size: 14px;
	line-height: 1;
}

.service-links--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.service-links--inline li + li {
	margin-top: 0;
}

.service-links--inline a {
	padding: 10px 16px;
	font-size: 14px;
}

/* ---------- 会社概要 ---------- */
.company-table {
	margin: 0;
	border-top: 1px solid var(--line);
}

.company-table__row {
	display: grid;
	grid-template-columns: 180px 1fr;
	border-bottom: 1px solid var(--line);
}

.company-table dt,
.company-table dd {
	margin: 0;
	padding: 22px 8px;
}

.company-table dt {
	color: var(--navy);
	font-weight: 600;
}

@media (max-width: 767px) {
	.company-table__row {
		grid-template-columns: 1fr;
	}

	.company-table dt {
		padding: 16px 0 2px;
		font-size: 14px;
	}

	.company-table dd {
		padding: 0 0 16px;
	}
}

/* ---------- お問い合わせ案内 ---------- */
.contact-cta__action {
	margin: 36px 0;
}

@media (max-width: 767px) {
	.contact-cta .button {
		display: block;
		width: 100%;
	}
}

/* ---------- 下層ページの見出し ---------- */
.page-hero {
	position: relative;
	display: grid;
	min-height: 300px;
	background: var(--tint);
	overflow: hidden;
}

.page-hero__media,
.page-hero__body {
	grid-area: 1 / 1;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 75% 40%;
}

.page-hero__body {
	position: relative;
	align-self: center;
	padding-top: 48px;
	padding-bottom: 48px;
}

.page-hero__title {
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 700;
}

.page-hero--plain {
	min-height: 200px;
}

@media (max-width: 767px) {
	.page-hero {
		min-height: 180px;
	}

	.page-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100%);
	}

	.page-hero__media {
		position: relative;
	}

	.page-hero--plain {
		min-height: 140px;
	}
}

/* ---------- お問い合わせフォーム ---------- */
.contact-intro {
	margin-bottom: 48px;
}

.form-alert {
	margin-bottom: 32px;
	padding: 16px 20px;
	border-left: 3px solid var(--error);
	background: #fbf1f0;
	color: var(--error);
	font-weight: 600;
}

.form-field {
	margin-bottom: 28px;
}

.form-field > label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--navy);
	font-weight: 600;
}

.badge {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--line);
	color: var(--text-sub);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.badge--required {
	border-color: var(--navy);
	background: var(--navy);
	color: var(--white);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #c9cdd4;
	border-radius: 2px;
	background: var(--white);
	color: #2b2f36;
	font: inherit;
	font-size: 16px;
	letter-spacing: 0.02em;
}

.contact-form textarea {
	min-height: 200px;
	resize: vertical;
	line-height: 1.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--navy);
	outline-offset: 0;
	border-color: var(--navy);
}

.contact-form [aria-invalid="true"] {
	border-color: var(--error);
}

.form-error {
	margin: 8px 0 0;
	color: var(--error);
	font-size: 14px;
	font-weight: 600;
}

.form-field--agree {
	margin-top: 40px;
	padding: 20px;
	background: var(--tint);
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.checkbox input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--navy);
}

.checkbox .badge {
	margin-left: 10px;
}

.form-submit {
	margin-top: 40px;
	text-align: center;
}

@media (max-width: 767px) {
	.form-submit .button {
		display: block;
		width: 100%;
	}
}

.form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-complete {
	padding: 48px 40px;
	border: 1px solid var(--line);
	text-align: center;
}

.form-complete__title {
	margin-bottom: 24px;
	font-size: 22px;
}

.form-complete .note {
	margin-top: 24px;
	text-align: left;
}

.form-complete__back {
	margin-top: 32px;
}

@media (max-width: 767px) {
	.form-complete {
		padding: 32px 20px;
		text-align: left;
	}

	.form-complete__back .button {
		display: block;
		width: 100%;
	}
}

/* ---------- 本文（プライバシーポリシーなど） ---------- */
.prose h2 {
	margin: 56px 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-size: 19px;
	font-weight: 700;
}

.prose ul {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 6px;
}

.policy-contact {
	margin-top: 16px;
	padding: 20px 24px;
	background: var(--tint);
}

.policy-date {
	margin-top: 56px;
	color: var(--text-sub);
	font-size: 14px;
	text-align: right;
}

/* ---------- フッター ---------- */
.site-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 64px var(--gutter) 48px;
}

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

.site-footer__address {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.9;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	color: var(--white);
	font-size: 14px;
	text-decoration: none;
}

.footer-nav a:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.site-footer__copy {
	margin: 0;
	padding: 20px var(--gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	text-align: center;
}

@media (max-width: 767px) {
	.site-footer__inner {
		flex-direction: column;
		padding: 48px var(--gutter) 36px;
	}

	.footer-nav ul {
		flex-direction: column;
		gap: 14px;
	}
}
