/*
Theme Name: Illusion Corporate
Theme URI: https://illusion.example.co.jp/
Author: 合同会社イリュージョン
Author URI: https://illusion.example.co.jp/
Description: 合同会社イリュージョン（IT事業）のコーポレートサイト向けWordPressテーマ。トップページの見出し・本文・画像・お問い合わせ先などは「外観 › カスタマイズ」からすべて編集できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: illusion
Tags: business, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   デザイントークン（色は「外観 › カスタマイズ › 配色」で変更可）
   ========================================================= */
:root {
	--accent: #1591a5;
	--accent-dark: #0f7385;
	--accent-contrast: #ffffff;
	--ink: #1b1b1b;
	--ink-soft: #4d4d4d;
	--ink-mute: #6f6f6f;
	--line: #e2e2e2;
	--field-bg: #efefef;
	--field-border: #d7d7d7;
	--bg: #ffffff;
	--bg-alt: #f7f8f8;
	--maxw: 1080px;
	--gutter: 24px;
	--section-space: 120px;
	--font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
	--font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "MS PMincho", serif;
}

/* =========================================================
   リセット / 基本
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
	word-break: normal;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
	opacity: 0.75;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink);
	margin: 0;
}

p {
	margin: 0 0 1.6em;
}

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

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--ink);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 6px 0;
}

.skip-link:focus {
	left: 0;
}

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

/* =========================================================
   レイアウト
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-space);
}

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

.section__eyebrow {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 22px;
}

.section__title {
	font-size: clamp(26px, 4vw, 34px);
	margin: 0 0 32px;
}

.rich-text {
	color: var(--ink-soft);
	font-size: 15.5px;
}

.rich-text p + p {
	margin-top: 1.6em;
}

/* =========================================================
   ボタン
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 15px 30px;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-contrast);
}

.btn--primary:hover {
	background: var(--accent-dark);
	opacity: 1;
}

.btn--ghost {
	background: transparent;
	color: var(--accent);
	padding-inline: 6px;
}

.btn--ghost::after {
	content: "\2192";
	font-size: 1.1em;
}

.btn--ghost:hover {
	opacity: 1;
	color: var(--accent-dark);
}

.btn--block {
	width: 100%;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.2;
}

.site-branding a {
	color: inherit;
}

.site-branding img {
	max-height: 40px;
	width: auto;
}

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

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
}

.site-nav__menu a:hover {
	color: var(--accent);
	opacity: 1;
}

.site-nav__cta {
	font-size: 14px;
	padding: 11px 22px;
}

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

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
	padding-block: clamp(70px, 12vw, 140px);
	background-color: var(--bg);
	background-size: cover;
	background-position: center;
}

.hero--has-image {
	color: #fff;
}

.hero--has-image .hero__title,
.hero--has-image .hero__lead {
	color: #fff;
}

.hero--has-image .hero__inner {
	background: rgba(20, 24, 26, 0.55);
	padding: 48px;
	border-radius: 10px;
	backdrop-filter: blur(2px);
}

.hero__inner {
	max-width: 760px;
}

.hero__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 24px;
}

.hero--has-image .hero__eyebrow {
	color: #8fdce9;
}

.hero__title {
	font-size: clamp(30px, 6vw, 52px);
	line-height: 1.35;
	letter-spacing: 0.02em;
	margin: 0 0 32px;
}

.hero__lead {
	font-size: 16px;
	color: var(--ink-soft);
	margin: 0 0 40px;
	max-width: 620px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

/* =========================================================
   会社概要
   ========================================================= */
.about__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: start;
}

.about__body .section__title {
	max-width: 12em;
}

.about__figure {
	margin: 0;
}

.about__figure img {
	width: 100%;
	border-radius: 8px;
	display: block;
}

.about__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 4 / 3;
	border: 1px dashed var(--field-border);
	border-radius: 8px;
	background: var(--bg-alt);
	color: var(--ink-mute);
	font-size: 14px;
	text-align: center;
	padding: 24px;
}

.about__placeholder svg {
	width: 34px;
	height: 34px;
	opacity: 0.6;
}

/* =========================================================
   事業内容
   ========================================================= */
.services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px 64px;
}

.service__title {
	font-size: 20px;
	margin: 0 0 14px;
}

.service__desc {
	color: var(--ink-soft);
	font-size: 15px;
	margin: 0;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact__inner {
	max-width: 640px;
}

.contact__lead {
	color: var(--ink-soft);
	font-size: 15.5px;
	margin: 0 0 40px;
}

.contact-form {
	display: grid;
	gap: 22px;
}

.form-field {
	display: grid;
	gap: 8px;
}

.form-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-mute);
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--field-bg);
	border: 1px solid var(--field-border);
	border-radius: 4px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--accent);
}

.form-field textarea {
	min-height: 160px;
	resize: vertical;
}

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

.contact-form__submit {
	justify-self: start;
	margin-top: 6px;
}

.form-notice {
	padding: 16px 18px;
	border-radius: 4px;
	font-size: 14.5px;
	margin-bottom: 28px;
}

.form-notice--ok {
	background: #e7f6f0;
	border: 1px solid #b3e3d0;
	color: #1c6b4f;
}

.form-notice--error {
	background: #fdeceb;
	border: 1px solid #f3c6c2;
	color: #a23a32;
}

.form-field__error {
	font-size: 12.5px;
	color: #a23a32;
	font-weight: 600;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 48px;
	background: var(--bg);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: var(--ink-mute);
}

.site-footer__nav {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav a {
	color: var(--ink-mute);
}

/* =========================================================
   汎用ページ / 記事
   ========================================================= */
.page-content {
	padding-block: 80px;
}

.page-content .entry-title {
	font-size: clamp(26px, 4vw, 36px);
	margin-bottom: 32px;
}

.entry-body {
	color: var(--ink-soft);
}

.entry-body h2 {
	font-size: 24px;
	margin: 1.8em 0 0.8em;
}

.entry-body h3 {
	font-size: 20px;
	margin: 1.6em 0 0.7em;
}

.entry-body a {
	text-decoration: underline;
}

.entry-body ul,
.entry-body ol {
	padding-left: 1.4em;
}

.error-404 {
	text-align: center;
	padding-block: 120px;
}

.error-404 .page-title {
	font-size: clamp(28px, 5vw, 40px);
	margin-bottom: 20px;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
	:root {
		--section-space: 84px;
	}

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

	.services__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 720px) {
	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 24px;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
		display: none;
	}

	.site-nav.is-open {
		display: flex;
	}

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

	.site-nav__menu li {
		border-bottom: 1px solid var(--line);
	}

	.site-nav__menu a {
		display: block;
		padding: 16px 4px;
		font-size: 15px;
	}

	.site-nav__cta {
		margin-top: 18px;
		width: 100%;
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.hero--has-image .hero__inner {
		padding: 28px;
	}
}

/* 管理バー対応 */
@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}
