/*
Theme Name: katori design
Theme URI: https://example.com/
Author: katori design
Description: katori design ポートフォリオ用オリジナルテーマ
Version: 1.0
Text Domain: katori-design
*/

/* ==========================================================================
   Design tokens（ラフのデザインより）
   ========================================================================== */
:root {
	--color-bg:        #EFE9E1; /* ベージュ（基本の背景） */
	--color-bg-light:  #F7F3EE; /* 明るいベージュ（About・カード） */
	--color-dark:      #3A3633; /* チャコール（Works・文字） */
	--color-darker:    #2E2B29; /* フッター */
	--color-text:      #3A3633;
	--color-muted:     #5E5751; /* 補足テキスト */
	--color-line:      #D9D0C5;
	--color-light:     #F2ECE4; /* 暗い背景の上の文字 */
	--color-light-sub: #CFC6BB;
	--color-accent:    #A95F48; /* 差し色（テラコッタ） */
	--color-accent-light: #E3B7A6;

	--font-en: 'Cormorant Garamond', serif;
	--font-ja: 'Zen Kaku Gothic New', sans-serif;

	--side: 20px;   /* 左右の余白 */
	--radius: 6px;  /* 写真・カードの角の丸み（サイト全体で統一） */
	--bg-en-size: 100px; /* 背景の大きな英字の大きさ（PCは下で上書き） */
	--content: 1200px;
}

@media (min-width: 768px) {
	:root {
		--side: clamp(40px, 8vw, 120px);
		--bg-en-size: clamp(150px, 14vw, 210px); /* 背景の大きな英字の大きさ */
	}
}

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

body {
	margin: 0;
	font-family: var(--font-ja);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s; }
a:hover { opacity: .7; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.en { font-family: var(--font-en); font-weight: 400; }

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

/* 小さな英字ラベル「( ABOUT )」 */
.label {
	display: block;
	font-size: 11px;
	letter-spacing: .3em;
	color: var(--color-muted);
}

.heading {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .06em;
}
@media (min-width: 768px) {
	.label { font-size: 12px; }
	.heading { font-size: 32px; }
}

.section-title {
	display: flex;
	align-items: flex-end;
	gap: 16px 28px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}
.section-title .label { padding-bottom: 6px; }
.section-title--light .label { color: var(--color-light-sub); }

/* セクション見出しの共通ルール
   ① 背景に大きく薄い英字（端で途切れる。右・左・右…と交互）
   ② 小さな英字ラベル ( ABOUT )
   ③ 日本語の見出し */
.section-bg-en {
	position: absolute;
	top: 24px;
	z-index: -1; /* 文章や写真の後ろに置く */
	margin: 0;
	font-size: var(--bg-en-size);
	line-height: 1;
	white-space: nowrap;
	color: #E2D9CD;
	pointer-events: none;
}
.section-bg-en--right { right: -.06em; }
.section-bg-en--left  { left: -.06em; }
/* Aboutだけは、英字を写真の上に重ねる。
   「乗算」で重ねて、写真の上では色が写真になじむようにする */
.about .section-bg-en { z-index: 2; color: #E9E4DC; mix-blend-mode: multiply; } /* 背景の上でServiceの英字と同じ色になる値 */
.section-head { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) {
	.section-bg-en { top: 40px; font-size: var(--bg-en-size); }
	.section-head { gap: 18px; }
}

/* ボタン */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px 40px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: .1em;
}
.btn--small { padding: 12px 26px; font-size: 13px; letter-spacing: .12em; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--outline { border: 1px solid var(--color-dark); }
.btn--outline-light { border: 1px solid var(--color-light); color: var(--color-light); font-size: 12px; letter-spacing: .2em; }

.arrow {
	display: inline-block;
	width: 14px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 72px;
	padding: 0 var(--side);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.admin-bar .site-header { top: 46px; }

.site-logo { display: flex; flex-direction: column; line-height: 1.2; position: relative; z-index: 2; }
.site-logo__name { font-size: 22px; letter-spacing: .04em; }
.site-logo__sub { font-size: 9px; letter-spacing: .3em; color: var(--color-muted); }
.site-logo--light .site-logo__sub { color: var(--color-light-sub); }

.menu-toggle {
	position: relative;
	z-index: 2;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: var(--color-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 1px; background: #fff; transition: transform .3s; }
.is-menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(20deg); }
.is-menu-open .menu-toggle span:last-child  { transform: translateY(-3.5px) rotate(-20deg); }

/* スマホ：全画面メニュー */
.global-nav {
	position: fixed;
	inset: 0;
	background: var(--color-bg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.is-menu-open .global-nav { opacity: 1; visibility: visible; }
.nav-list { display: flex; flex-direction: column; align-items: center; gap: 28px; font-size: 15px; letter-spacing: .15em; }

@media (min-width: 768px) {
	.site-header { height: 96px; }
	.admin-bar .site-header { top: 32px; }
	.site-logo__name { font-size: 26px; }
	.site-logo__sub { font-size: 10px; }
	.menu-toggle { display: none; }

	.global-nav {
		position: static;
		flex-direction: row;
		gap: 40px;
		background: none;
		opacity: 1;
		visibility: visible;
	}
	.nav-list { flex-direction: row; gap: 40px; font-size: 13px; letter-spacing: .12em; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* スマホ：
   右端に、画面のいちばん上からトップの一番下までのびる細長い写真
   左に 英字 → キャッチコピー → 紹介文（写真の横に収まる短い文章）→ ボタン */
.hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18%;
	column-gap: 12px;
	--hero-pad-bottom: 56px;
	padding: 100px var(--side) var(--hero-pad-bottom);
}
.hero__body { display: contents; }
.hero__en    { grid-column: 1; grid-row: 1; position: relative; z-index: 3; }
.hero__catch { grid-column: 1; grid-row: 2; }
.hero__img   { grid-column: 2; grid-row: 1 / 5; }
.hero__lead  { grid-column: 1; grid-row: 3; }
.hero__link  { grid-column: 1; grid-row: 4; justify-self: start; }
/* スマホ：心電図とSCROLLは出さない（指でスクロールするのが当たり前で、ボタンもあるため）。
   縦向きの心電図の形は、PCのデザインを変えたくなったときのために残しておく */
.hero__scroll { grid-column: 2; grid-row: 4 / 6; }
.hero__en {
	/* 「with Care」が写真の手前（ベージュの中）に収まる大きさ。
	   英字の幅は約3.8文字分、左の列は画面幅の約8割なので 17.5vw 以下にする */
	font-size: clamp(50px, 17.5vw, 88px);
	line-height: 1.02; /* 2行をひとまとまりに見せる（文字どうしはくっつけない） */
	white-space: nowrap;
}
.hero__en span { display: inline-block; padding-left: .3em; font-style: italic; }
/* 写真：上は画面のいちばん上から、右は画面の右端まで広げる */
.hero__img {
	align-self: stretch;
	/* 上は画面のいちばん上から、右は画面の右端まで、下はトップの一番下までのばす */
	margin: -100px calc(var(--side) * -1) calc(var(--hero-pad-bottom) * -1) 0;
}
.hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 78% 70%; /* 植物が多く見える位置 */
	/* 左下の角だけを丸める（PCの右下のカーブと対に）。
	   四角の雰囲気を残す、ほどよい丸み */
	border-radius: 0 0 0 clamp(40px, 13vw, 60px);
}
.hero__catch {
	position: relative;
	z-index: 2;
	margin-top: 28px;
	/* 右に寄せても「やさしく伝わるデザインを。」が左の列に1行で収まる大きさ */
	font-size: clamp(15px, 4.7vw, 22px);
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: .02em;
}
/* キャッチコピーが折り返すときは、言葉の区切りで折り返す */
.hero__catch .phrase { display: inline-block; }
.hero__lead { margin-top: 24px; font-size: 14px; line-height: 2; }
/* スマホ：キャッチコピーから下は、左ぞろえのまま少し右に寄せる */
.hero__catch,
.hero__lead,
.hero__link { margin-left: 5vw; }
.hero__lead .phrase { display: inline-block; } /* 言葉の区切りで折り返す */

/* 「制作実績を見る →」：スマホはテラコッタの小さなボタン、PCは下線リンク */
.hero__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
}
@media (min-width: 768px) {
	.hero__link {
		align-self: flex-start; /* 横いっぱいに広がらないように */
		gap: 12px;
		margin-top: 0;
		padding: 0 0 6px;
		border-radius: 0;
		border-bottom: 1px solid var(--color-dark);
		background: none;
		color: var(--color-text);
		font-size: 14px;
	}
}
.hero__link .arrow { transition: transform .3s; }
.hero__link:hover { opacity: 1; }
.hero__link:hover .arrow { transform: translateX(4px); }
.hero__lead .label { display: none; } /* スマホではロゴ下の「WEB DESIGN」と重複するので外す */
.hero__scroll {
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: flex-end;
	margin-top: 0;
	font-size: 10px;
	letter-spacing: .25em;
	color: var(--color-muted);
}
.hero__scroll {
	flex-direction: row; /* 縦の心電図の横に、縦書きのSCROLL */
	align-items: center;
	justify-self: center;
	align-self: start;
	gap: 6px;
	margin-top: 20px; /* 紹介文とくっつかないように */
	display: none; /* スマホでは出さない */
}
.hero__scroll .pulse--h { display: none; }
.hero__scroll .pulse--v { display: block; width: 22px; height: 88px; }
.hero__scroll-text { writing-mode: vertical-rl; }
.pulse {
	width: 140px;
	height: 35px;
	fill: none;
	stroke: var(--color-dark);
	stroke-width: 1;
	stroke-linejoin: round;
	stroke-dasharray: 240;
	stroke-dashoffset: 240;
	animation: pulse 4s ease-in-out infinite;
}
/* 線がすっと描かれて、少し止まって、消える */
@keyframes pulse {
	0%   { stroke-dashoffset: 240; opacity: 1; }
	45%  { stroke-dashoffset: 0; opacity: 1; }
	80%  { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pulse { animation: none; stroke-dashoffset: 0; }
}

/* PC：左半分を写真、右に英字・キャッチ・紹介文（左右分割） */
@media (min-width: 768px) {
	.hero {
		--hero-split: 44.5%;  /* 写真の幅 */
		--hero-body-left: 51.5%; /* 右側の文章の開始位置 */
		display: block;
		height: clamp(720px, 100vh, 960px);
		padding: 0;
	}
	.hero__img {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		width: var(--hero-split);
		margin: 0;
	}
	.hero__img img {
		height: 100%;
		aspect-ratio: auto;
		border-radius: 0 0 clamp(140px, 17vw, 240px) 0;
	}
	/* 文章のかたまりを、画面の上下の真ん中にそろえる（少しだけ上寄り） */
	.hero__body {
		position: absolute;
		top: 50%;
		transform: translateY(-54%);
		left: var(--hero-body-left);
		right: var(--side);
		display: flex;
		flex-direction: column;
		gap: clamp(24px, 2.6vw, 36px);
		margin: 0;
		padding: 0;
	}
	.hero__en {
		position: static;
		font-size: clamp(88px, 9.7vw, 150px);
	}
	.hero__en span { padding-left: .65em; }
	.hero__catch {
		margin: 0;
		font-size: clamp(20px, 1.8vw, 26px);
		line-height: 1.9;
		letter-spacing: .1em;
	}
	.hero__lead { margin: 0; font-size: 15px; line-height: 2.1; }
	.hero__catch,
	.hero__link { margin-left: 0; }
	.hero__lead .label { display: block; margin-bottom: 18px; }
	.hero__scroll { display: flex; flex-direction: row; gap: 14px; margin-top: 0; font-size: 11px; letter-spacing: .3em; }
	.hero__scroll .pulse--v { display: none; }
	.hero__scroll .pulse--h { display: block; width: 140px; height: 35px; }
	.hero__scroll-text { writing-mode: horizontal-tb; }
	/* 画面の右下、ふちに近い位置に置く */
	.hero__scroll {
		position: absolute;
		right: 48px;
		bottom: 48px;
		margin: 0;
		padding: 0;
	}
}

/* PCのトップでは、写真の上に乗るロゴを明るい色にする */
@media (min-width: 768px) {
	.home .site-header .site-logo { color: var(--color-bg-light); }
	.home .site-header .site-logo__sub { color: #E6DDD2; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
	position: relative;
	isolation: isolate;
	overflow-x: clip; /* 背景の英字がはみ出して横スクロールにならないように */
	padding: 110px var(--side) 120px;
	background: var(--color-bg-light);
}
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__text p { font-size: 14px; line-height: 2; }
.about__body p + p { margin-top: 1em; } /* 段落の間 */

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border: 1px solid var(--color-dark); border-radius: 999px; font-size: 12px; }

.about__imgs { position: relative; margin-top: 48px; }
.about__img-main {
	width: 70%;
	aspect-ratio: 500 / 580;
	object-fit: cover;
	object-position: 50% 85%;
	border-radius: var(--radius);
	/* 写真の色味をサイトになじませる（本番はPhotoshopで補正してもOK） */
	filter: sepia(.38) saturate(.7) contrast(.94) brightness(1.04);
}
/* スマホ：人物に重ならないよう、写真の右下に重ねる */
.about__img-sub {
	position: absolute;
	right: 0;
	bottom: -40px;
	width: 34%;
	aspect-ratio: 250 / 300;
	object-fit: cover;
	/* 背景と同じ色の細い縁で、大きい写真に細い切れ目が入ったように見せる */
	border: 3px solid var(--color-bg-light);
	border-radius: calc(var(--radius) + 3px);
	transform: rotate(4deg);
}

@media (min-width: 768px) {
	.about {
		display: grid;
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); /* 文章を主役に、写真は少し控えめに */
		gap: 80px;
		align-items: start;
		/* 上の余白は、写真の上にのぞく「About」の高さに合わせる */
		padding: calc(48px + var(--bg-en-size) * .64) var(--side) 130px;
	}
	.about__text { gap: 28px; padding-top: 20px; }
	.about__text p { font-size: 15px; line-height: 2.1; }
	.tags { gap: 12px; }
	.tags li { padding: 8px 18px; font-size: 13px; }
	.about__imgs { margin-top: 0; }
	/* 背景の「About」：大きい写真（右寄せ・最大420px）の左端にそろえ、
	   文字の下の部分がはっきり写真にかかる高さに置く */
	.about__bg-en {
		top: -.64em; /* 文字の下の部分が少しだけ写真にかかる */
		left: calc(100% - min(100%, 420px));
		right: auto;
	}
	.about__img-main { width: 100%; max-width: 420px; margin-left: auto; }
	/* PC：大きい写真の左下の角に、少しだけ重ねる（重なり70px）。
	   大きい写真は右寄せで最大420pxなので、その左端から70px内側に右端がくるように置く */
	.about__img-sub {
		right: calc(min(100%, 420px) - 70px);
		bottom: -64px;
		width: clamp(140px, 13vw, 190px);
		transform: rotate(-7deg);
	}
}

/* ==========================================================================
   Works
   ========================================================================== */
.works {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* 背景の「Works」の下から見出しが始まるよう、英字の大きさに合わせて上の余白を決める */
	padding: calc(20px + var(--bg-en-size) + 16px) var(--side) 80px;
	background: var(--color-dark);
	color: var(--color-light);
	text-align: center;
}
.works > * { text-align: left; }
.works .btn { margin-top: 48px; }


/* 見出し：大きな英字＋作品数、横にひとことと VIEW ALL */
.works-head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 48px;
}
/* 暗い背景では、背景の英字とラベルを明るめのグレーに */
.works .section-bg-en { top: 20px; color: #4A4540; }
.works .label { color: var(--color-light-sub); }
.works-head__lead { margin-top: 4px; font-size: 14px; line-height: 2; color: var(--color-light-sub); }
.works-head__link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--color-light);
	font-size: 12px;
	letter-spacing: .2em;
	color: var(--color-light);
}
.works-head__link .arrow { transition: transform .3s; }
.works-head__link:hover { opacity: 1; }
.works-head__link:hover .arrow { transform: translateX(4px); }

.works-grid { display: flex; flex-direction: column; gap: 44px; }

.work-card { display: flex; flex-direction: column; gap: 14px; color: var(--color-light); }
.work-card__img { overflow: hidden; background: #E9E2D8; border-radius: var(--radius); } /* モックアップの背景と同じ色の台紙 */
/* 1枚の作品画像は、横3：縦2で切り抜く（2枚組は下の .sheet で別に指定） */
.work-card__img:not(.work-card__img--sheets):not(.work-card__img--gallery):not(.work-card__img--poster) img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s; }
.work-card:hover { opacity: 1; }
.work-card:hover .work-card__img:not(.work-card__img--sheets):not(.work-card__img--gallery):not(.work-card__img--poster) img { transform: scale(1.04); }
/* 2枚組（チラシの表裏・バナーの別パターン）：まっすぐ横に並べる。
   台紙の内側に上下左右同じ余白をとり、その中に収まる一番大きなサイズで表示する
   （横長・縦長・正方形のどれでも、一番せまいところの余白がそろう） */
.work-card__img--sheets {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4%;
	box-sizing: border-box;
	padding: 7%;
	aspect-ratio: 3 / 2;
	background: #E9E2D8;
}
.work-card__img--sheets .sheet {
	min-width: 0;
	object-fit: contain; /* 念のため、つぶれずに収まるように */
	contain-intrinsic-size: none; /* WordPressが付ける仮の大きさを打ち消す */
	box-shadow: 0 10px 24px rgba(58, 54, 51, .22);
	transition: transform .5s, box-shadow .5s;
}
/* 3枚以上の作品：台紙に3枚を並べる（形はそのまま） */
.work-card__img--gallery {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3%;
	box-sizing: border-box;
	padding: 7%;
	aspect-ratio: 3 / 2;
	background: #E9E2D8;
}
/* 形がちがう作品（バナーなど）は、高さをそろえて並べる */
.work-card__img--gallery .gallery-item {
	flex: none;
	min-width: 0;
	width: auto;
	height: 42%;
	object-fit: contain;
	contain-intrinsic-size: none;
	box-shadow: 0 10px 24px rgba(58, 54, 51, .22);
	transition: transform .5s;
}
/* すべて横長のとき：左に1枚を大きく、右に2枚を縦に並べる */
.work-card__img--gallery.is-wide {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-content: center;
	gap: 12px;
}
.work-card__img--gallery.is-wide .gallery-item { width: 100%; height: auto; }
.work-card__img--gallery.is-wide .gallery-item:first-child { grid-row: 1 / 3; align-self: center; }
.work-card:hover .work-card__img--gallery .gallery-item { transform: translateY(-6px); }
.work-card:hover .work-card__img--gallery .gallery-item:nth-child(2) { transition-delay: .06s; }
.work-card:hover .work-card__img--gallery .gallery-item:nth-child(3) { transition-delay: .12s; }

/* 1枚だけの縦長の作品（ポスターなど）：台紙の上に全体を見せる */
.work-card__img--poster {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 7%;
	aspect-ratio: 3 / 2;
	background: #E9E2D8;
}
.work-card__img--poster .poster {
	width: auto;
	height: 100%;
	object-fit: contain;
	contain-intrinsic-size: none;
	box-shadow: 0 10px 24px rgba(58, 54, 51, .22);
	transition: transform .5s;
}
.work-card:hover .work-card__img--poster .poster { transform: translateY(-6px); }

/* 形ごとに大きさを決める（台紙の内側の余白の中に収まる大きさ） */
.is-landscape .sheet { width: 43%; height: auto; }   /* 横長（チラシ）：横幅で決める */
.is-square .sheet    { width: 43%; height: auto; }   /* 正方形：横幅で決める */
.is-portrait .sheet  { width: auto; height: 100%; }  /* 縦長（バナー）：高さで決める */

/* マウスを乗せると、少し浮き上がる */
.work-card:hover .work-card__img--sheets .sheet { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(0, 0, 0, .35); }
.work-card:hover .work-card__img--sheets .sheet--back { transition-delay: .08s; }

.work-card__noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; font-size: 12px; letter-spacing: .2em; color: var(--color-light-sub); }
.work-card__body { display: flex; flex-direction: column; gap: 6px; }
.work-card__type { font-size: 10px; letter-spacing: .2em; color: var(--color-accent-light); }
.work-card__title { font-size: 16px; font-weight: 500; }
.work-card__role { font-size: 12px; color: var(--color-light-sub); }

/* スマホは同じ大きさでまっすぐ並べる。ずらし・傾きはPCだけ */

.works__empty { color: var(--color-light-sub); font-size: 14px; }

@media (min-width: 768px) {
	/* 背景の「Works」の下から見出しが始まるよう、英字の大きさに合わせて上の余白を決める */
	.works { padding: calc(24px + var(--bg-en-size) + 16px) var(--side) 100px; }
	.works .section-bg-en { top: 24px; }
	.works-head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
		margin-bottom: 56px;
	}
	.works-head__lead { font-size: 15px; }
	.works-head__link { align-self: flex-end; margin-top: 0; margin-bottom: 10px; } /* 右下、ひとことの最後の行とそろえる */
	.works .btn { margin-top: 64px; }

	.work-card__type { font-size: 11px; }
	.work-card__title { font-size: 18px; }

	/* PC：12列のグリッドで、大小と位置をずらす */
	/* PC：同じ大きさの2列にそろえる */
	.works-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 40px;
		row-gap: 64px;
		align-items: start;
	}
}

/* 一覧ページ */
.works--archive { padding-top: 40px; }

/* ==========================================================================
   Service
   ========================================================================== */
.service {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 110px var(--side) 100px;
}
.service .section-head { margin-bottom: 40px; }

.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	background: var(--color-bg-light);
	border-radius: var(--radius);
}
.service-card__num { font-size: 32px; line-height: 1; color: var(--color-accent); }
.service-card h3 { font-size: 18px; font-weight: 500; }
.service-card p { font-size: 13px; line-height: 1.9; }
.service-card__price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--color-line); font-size: 12px; color: var(--color-muted); }

.flow-title { margin: 80px 0 24px; font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.flow { position: relative; display: flex; flex-direction: column; gap: 20px; }
.flow::before {
	content: "";
	position: absolute;
	top: 26px;
	bottom: 26px;
	left: 26px;
	width: 1px;
	background: #BDB3A7;
}
.flow li { position: relative; display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
.flow span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border: 1px solid var(--color-dark);
	border-radius: 50%;
	background: var(--color-bg-light);
	font-size: 20px;
}
.flow li:last-child span { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }

@media (min-width: 768px) {
	.service { padding: 200px var(--side) 130px; }
	.service .section-head { margin-bottom: 56px; }
	.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
	.service-card { gap: 18px; padding: 40px 36px; }
	.service-card__num { font-size: 40px; }
	.service-card h3 { font-size: 20px; }
	.service-card p { font-size: 14px; line-height: 2; }
	.service-card__price { font-size: 13px; }

	.flow-title { margin: 110px 0 40px; font-size: 20px; }
	.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
	.flow::before { top: 36px; bottom: auto; left: 10%; right: 10%; width: auto; height: 1px; }
	.flow li { flex-direction: column; gap: 16px; }
	.flow span { width: 72px; height: 72px; font-size: 24px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 140px var(--side);
	background: var(--color-dark);
}
/* 背景写真：色味をおさえて、カードが主役になるようにする */
.contact::before,
.contact::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}
.contact::before {
	background: url(assets/img/contact-a.jpg) center 65% / cover;
	filter: saturate(.7);
}
.contact::after { background: rgba(46, 43, 41, .55); }
.contact__en { display: none; }
.contact__card {
	position: relative;
	max-width: 520px;
	margin: 0 auto;
	padding: 44px 28px;
	background: var(--color-bg-light);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.contact__title { font-size: 48px; font-weight: 400; line-height: 1; }
.contact__card p { margin-top: 6px; font-size: 13px; line-height: 2; }
.contact__card .btn { margin-top: 10px; }

@media (min-width: 768px) {
	.contact { padding: 220px var(--side) 280px; } /* 写真が見える高さを広げる */
	.contact__en {
		display: block;
		position: absolute;
		left: -20px;
		bottom: 20px;
		font-size: clamp(100px, 12.5vw, 180px);
		font-style: italic;
		line-height: 1;
		white-space: nowrap;
		color: rgba(247, 243, 238, .28);
	}
	.contact__card { padding: 56px 48px; gap: 18px; }
	.contact__title { font-size: 60px; }
	.contact__card p { font-size: 14px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-darker); color: var(--color-light); }
.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 48px var(--side) 32px;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 12px; letter-spacing: .12em; }
.copyright { font-size: 11px; color: var(--color-light-sub); }

@media (min-width: 768px) {
	.site-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 64px var(--side);
	}
	.footer-nav ul { gap: 40px; font-size: 13px; }
	.copyright { align-self: flex-end; }
}

/* ==========================================================================
   下層ページ（一覧・詳細・固定ページ）
   ========================================================================== */
.page-head {
	position: relative;
	overflow: hidden;
	padding: 140px var(--side) 0;
}
.page-head .section-title { position: relative; margin-bottom: 40px; }
.page-head--dark { background: var(--color-dark); color: var(--color-light); }
.page-head--dark .site-logo { color: var(--color-light); }
.page-head__en {
	position: absolute;
	top: 90px;
	right: -10px;
	font-size: 100px;
	font-style: italic;
	line-height: 1;
	color: #6E6660;
}
/* 暗い見出しのページでは、ヘッダーの文字を明るくする */
.post-type-archive-works .site-header { color: var(--color-light); }
.post-type-archive-works .site-logo__sub { color: var(--color-light-sub); }

@media (min-width: 768px) {
	.page-head { padding-top: 200px; }
	.page-head__en { top: 80px; right: -20px; font-size: 200px; }
	/* 一覧ページも、トップと同じ2列 */
}

.page-content {
	max-width: 800px;
	padding: 0 var(--side) 120px;
	margin: 0 auto 0 0;
}
@media (min-width: 768px) {
	.page-content { margin-left: var(--side); padding-left: 0; }
}

/* 制作実績の詳細 */
.work-single { max-width: calc(var(--content) + var(--side) * 2); margin: 0 auto; padding: 140px var(--side) 120px; }
.work-single__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.work-single__head .work-card__type { color: var(--color-accent); }
.work-single__lead { font-size: 15px; line-height: 2; color: var(--color-muted); }
.work-single__img { margin-bottom: 40px; }
.work-single__img img { border-radius: var(--radius); }

/* 3枚以上の作品：すべて大きく並べる */
.work-single__gallery {
	display: grid;
	gap: 32px;
	margin-bottom: 48px;
	padding: 32px 24px;
	background: var(--color-bg-light);
	border-radius: var(--radius);
	align-items: start;
}
.work-single__gallery figure { margin: 0; }
.work-single__gallery img { width: 100%; box-shadow: 0 10px 30px rgba(58, 54, 51, .18); }
/* PC：2列で、形がちがっても上に詰めて並べる（すき間ができにくい並べ方） */
@media (min-width: 768px) {
	.work-single__gallery { display: block; columns: 2; column-gap: 48px; padding: 56px 56px 8px; }
	.work-single__gallery figure { break-inside: avoid; margin-bottom: 48px; }
}

/* WEBサイトの「ページ全体」：枠の中をスクロールして見る */
.work-pages { margin-bottom: 56px; }
.work-pages__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.work-pages__title { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.work-pages__title .en { margin-right: 14px; font-size: 28px; font-style: italic; font-weight: 400; }
.work-pages__note { font-size: 12px; color: var(--color-muted); }
.work-pages figure { margin: 0; }
.work-pages figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .05em; }
.work-pages figcaption .en { margin-right: 8px; font-size: 15px; font-style: italic; color: var(--color-accent); }
.scroll-frame {
	overflow-y: auto;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(58, 54, 51, .15);
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
.scroll-frame:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.scroll-frame img { display: block; width: 100%; height: auto; }
.scroll-frame--pc { max-height: 480px; }
.scroll-frame--sp { max-height: 440px; }
.work-pages__pc { display: grid; gap: 32px; margin-bottom: 40px; }
.work-pages__sp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 768px) {
	.scroll-frame--pc { max-height: 640px; }
	.scroll-frame--sp { max-height: 560px; }
	.work-pages__sp { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 20px; }
}

/* チラシなど：表面・裏面を横に並べる */
.work-single__sheets {
	display: grid;
	gap: 40px;
	margin-bottom: 48px;
	padding: 40px 24px;
	background: var(--color-bg-light);
	border-radius: var(--radius);
}
.work-single__sheets figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.work-single__sheets img { box-shadow: 0 10px 30px rgba(58, 54, 51, .18); }
.work-single__sheets figcaption { font-size: 22px; font-style: italic; line-height: 1; }
.work-single__sheets figcaption span { margin-left: 10px; font-family: var(--font-ja); font-size: 11px; font-style: normal; letter-spacing: .2em; color: var(--color-muted); }
@media (min-width: 768px) {
	.work-single__sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 64px; }
}
.work-single__info { display: grid; gap: 12px; margin: 0 0 48px; padding: 24px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); font-size: 14px; }
.work-single__info div { display: flex; gap: 24px; }
.work-single__info dt { width: 7em; flex-shrink: 0; color: var(--color-muted); }
.work-single__info dd { margin: 0; word-break: break-all; }
.work-single__content { margin-bottom: 64px; }
@media (min-width: 768px) {
	.work-single { padding-top: 200px; }
}

/* 本文（ブロックエディタ） */
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-size: 22px; font-weight: 500; margin-top: 2.5em; }
.entry-content h3 { font-size: 18px; font-weight: 500; margin-top: 2em; }
.entry-content p { font-size: 15px; line-height: 2.1; }
.entry-content a { color: var(--color-accent); text-decoration: underline; }

/* ページ送り */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; }
.pagination .current { background: var(--color-light); color: var(--color-dark); }

/* お知らせ一覧（index.php） */
.post-list li { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.post-list time { font-size: 13px; color: var(--color-muted); }

/* ==========================================================================
   お問い合わせページ
   ========================================================================== */
.contact-head { isolation: isolate; }
.contact-head .section-head { position: relative; margin-bottom: 28px; }
.contact-page__lead { position: relative; max-width: 640px; font-size: 14px; line-height: 2.1; }

.contact-page {
	max-width: 720px;
	padding: 48px var(--side) 120px;
}
@media (min-width: 768px) {
	.contact-page { margin-left: var(--side); padding: 64px 0 150px; }
	.contact-page__lead { font-size: 15px; }
}

.contact-form { display: flex; flex-direction: column; gap: 28px; }
.contact-form__row { display: flex; flex-direction: column; gap: 10px; }
.contact-form label { font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.contact-form .req {
	margin-left: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font-size: 10px;
	vertical-align: 2px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-bg-light);
	color: var(--color-text);
	font: inherit;
	font-size: 15px; /* 16px未満だとiPhoneで入力時に拡大されるため、スマホは16pxに */
	transition: border-color .2s, box-shadow .2s;
}
@media (max-width: 767px) {
	.contact-form input,
	.contact-form select,
	.contact-form textarea { font-size: 16px; }
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(169, 95, 72, .15);
}
.contact-form textarea { resize: vertical; line-height: 1.9; }
.contact-form__note { font-size: 12px; color: var(--color-muted); }
.contact-form__submit { align-self: flex-start; border: none; cursor: pointer; }
.contact-form__submit .arrow { transition: transform .3s; }
.contact-form__submit:hover .arrow { transform: translateX(4px); }
/* 迷惑メール対策の欄は画面の外へ */
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-page__message { margin-bottom: 32px; padding: 20px 24px; border-radius: var(--radius); font-size: 14px; line-height: 2; }
.contact-page__message.is-error { background: #F6E7E1; color: #7A3B28; }
.contact-page__message.is-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 40px;
	background: var(--color-bg-light);
}
.contact-page__message.is-success .en { font-size: 40px; line-height: 1; font-style: italic; }

.contact-head .section-bg-en { top: 96px; } /* ヘッダーのメニューと重ならないように */
