/*
Theme Name: IKOAN WORKS（AFFINGER5 子テーマ）
Template: affinger5
Description: IKOAN WORKS のコーポレートサイト用 AFFINGER5 子テーマ。ページ分割の構成、/demo/ 配下のデモサイト配信、ログイン保護などのセキュリティ機能を含みます。ブログ記事は AFFINGER の機能をそのまま使えます。
Author: IKOAN WORKS
Version: 2.3.1
Requires PHP: 7.4
Text Domain: ikoan-works-child
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
	--iw-paper: #fbfbf9;
	--iw-white: #ffffff;
	--iw-stone: #f0f1ed;
	--iw-ink: #1b1e24;
	--iw-sub: #565b64;
	--iw-line: #dcdfd8;
	--iw-accent: #1f6b52;
	--iw-accent-soft: #e3efe9;
	--iw-on-ink: #f3f4f1;
	--iw-on-ink-sub: #b9bdc4;

	--iw-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
	--iw-mark: "Bricolage Grotesque", "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;

	--iw-wrap: 1180px;
	--iw-gutter: clamp(20px, 4vw, 40px);
	--iw-header-h: 72px;
}

/* ==========================================================================
   1. Base — AFFINGER の全体指定（* { font-family } / p / section など）から切り離す
   ========================================================================== */
body.iw-site,
body.iw-site.custom-background {
	background: var(--iw-paper);
	color: var(--iw-ink);
}

.iw {
	font-family: var(--iw-jp);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.03em;
	color: var(--iw-ink);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
.iw * { font-family: inherit; box-sizing: border-box; }
.iw :where(p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.iw :where(h1, h2, h3, h4) { font-weight: 700; color: inherit; background: none; border: 0; }
.iw :where(ul, ol) { list-style: none; }
.iw :where(section) { margin: 0; }
.iw :where(img) { max-width: 100%; height: auto; display: block; }
.iw :where(a) { color: inherit; text-decoration: none; }
.iw a:hover { opacity: 1 !important; }
.iw :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
.iw a:focus-visible,
.iw button:focus-visible,
.iw summary:focus-visible,
.iw input:focus-visible,
.iw textarea:focus-visible,
.iw select:focus-visible {
	outline: 2px solid var(--iw-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.iw-main { padding: 0; margin: 0; background: transparent; }
.iw-wrap { width: 100%; max-width: calc(var(--iw-wrap) + var(--iw-gutter) * 2); margin: 0 auto; padding: 0 var(--iw-gutter); }

.iw-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.iw-skip {
	position: absolute; left: -9999px; top: 12px; z-index: 1000;
	background: var(--iw-ink); color: var(--iw-paper); padding: 10px 18px; border-radius: 999px;
	font: 700 14px/1.4 var(--iw-jp);
}
.iw-skip:focus { left: 12px; }

/* ==========================================================================
   2. Buttons & links
   ========================================================================== */
.iw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px; border-radius: 999px;
	border: 1px solid var(--iw-ink);
	font-size: 15px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3;
	text-align: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.iw-btn--primary { background: var(--iw-ink); color: var(--iw-paper) !important; }
.iw-btn--primary:hover { background: var(--iw-accent); border-color: var(--iw-accent); color: var(--iw-white) !important; }
.iw-btn--line { background: transparent; color: var(--iw-ink) !important; }
.iw-btn--line:hover { background: var(--iw-ink); color: var(--iw-paper) !important; }
.iw-btn--light { background: var(--iw-paper); border-color: var(--iw-paper); color: var(--iw-ink) !important; }
.iw-btn--light:hover { background: var(--iw-accent-soft); border-color: var(--iw-accent-soft); }
.iw-btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.iw-btn--block { display: flex; width: 100%; }

.iw-textlink {
	display: inline-block;
	font-weight: 700;
	text-decoration: underline !important;
	text-decoration-color: var(--iw-accent) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 0.4em;
	transition: color .2s ease;
}
.iw-textlink:hover { color: var(--iw-accent) !important; }

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

/* ==========================================================================
   3. Header
   ========================================================================== */
.iw-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 251, 249, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--iw-line);
	text-align: left;
	padding: 0;
}
.admin-bar .iw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .iw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .iw-header { top: 0; } }

.iw-header__in { display: flex; align-items: center; gap: 24px; height: var(--iw-header-h); }
.iw-brand {
	font-family: var(--iw-mark);
	font-weight: 700; font-size: 20px; letter-spacing: 0; line-height: 1;
	color: var(--iw-ink); white-space: nowrap;
}
.iw-brand--logo img { max-height: 40px; width: auto; }

.iw-nav { margin-left: auto; display: flex; align-items: center; }
.iw-nav__list { display: flex; gap: 26px; }
.iw-nav__list a {
	display: block; padding: 6px 0;
	font-size: 14.5px; font-weight: 500; color: var(--iw-sub);
	transition: color .2s ease;
}
.iw-nav__list a:hover,
.iw-nav__list .is-current > a,
.iw-nav__list .current-menu-item > a { color: var(--iw-ink); }
.iw-nav__list .is-current > a,
.iw-nav__list .current-menu-item > a {
	text-decoration: underline; text-decoration-color: var(--iw-accent);
	text-decoration-thickness: 2px; text-underline-offset: 10px;
}
.iw-nav__cta { display: none; }
.iw-header__cta { flex: none; }

.iw-burger { display: none; }

@media (max-width: 1080px) {
	.iw-header__cta { margin-left: auto; }
	.iw-burger {
		display: grid; place-content: center; gap: 7px;
		width: 44px; height: 44px; margin-right: -10px; flex: none;
	}
	.iw-burger__line { display: block; width: 22px; height: 1.5px; background: var(--iw-ink); transition: transform .25s ease; }
	.iw-nav-open .iw-burger__line:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
	.iw-nav-open .iw-burger__line:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

	.iw-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--iw-header-h);
		flex-direction: column; align-items: stretch;
		margin: 0; padding: 12px var(--iw-gutter) 40px;
		background: var(--iw-paper);
		overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-6px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.admin-bar .iw-nav { top: calc(var(--iw-header-h) + 46px); }
	.iw-nav-open .iw-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
	.iw-nav-open { overflow: hidden; }
	.iw-nav__list { flex-direction: column; gap: 0; }
	.iw-nav__list a { padding: 16px 0; font-size: 18px; font-weight: 700; color: var(--iw-ink); border-bottom: 1px solid var(--iw-line); }
	.iw-nav__list .is-current > a, .iw-nav__list .current-menu-item > a { text-decoration: none; color: var(--iw-accent); }
	.iw-nav__cta { display: flex; margin-top: 28px; }
}
@media (max-width: 479px) {
	.iw-header__cta { display: none; }
	.iw-burger { margin-left: auto; }
}

/* ==========================================================================
   4. Hero（トップ）
   ========================================================================== */
.iw-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(72px, 9vw, 120px); }
.iw-hero__grid { display: grid; gap: 48px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 1024px) {
	.iw-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 64px; align-items: start; }
	.iw-hero__grid.is-single { grid-template-columns: minmax(0, 1fr); }
}
.iw-status {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border: 1px solid var(--iw-line); border-radius: 999px;
	background: var(--iw-white); font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--iw-sub);
}
.iw-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #a4a8ae; flex: none; }
.iw-status.is-on .iw-status__dot { background: var(--iw-accent); box-shadow: 0 0 0 3px var(--iw-accent-soft); }

.iw-hero__title {
	margin-top: 24px;
	font-size: clamp(24px, 6.2vw, 60px);
	line-height: 1.45;
	letter-spacing: 0.03em;
	font-weight: 700;
	word-break: auto-phrase;
}
.iw-hero__lead { max-width: 32em; color: var(--iw-sub); font-size: 16px; }
.iw-hero .iw-actions { margin-top: 36px; }

/* ブラウザ風の枠 */
.iw-browser {
	background: var(--iw-white);
	border: 1px solid var(--iw-line);
	border-radius: 14px;
	overflow: hidden;
}
.iw-browser__bar {
	display: flex; align-items: center; gap: 14px;
	height: 38px; padding: 0 14px;
	background: var(--iw-stone); border-bottom: 1px solid var(--iw-line);
}
.iw-browser__dots { display: flex; gap: 6px; flex: none; }
.iw-browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #cdd0ca; }
.iw-browser__url {
	flex: 1; min-width: 0; max-width: 360px; margin: 0 auto;
	padding: 3px 12px; border-radius: 999px; background: var(--iw-white);
	font-size: 12px; line-height: 1.6; letter-spacing: 0.02em; color: var(--iw-sub);
	text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* iframe を縮小して収める */
.iw-scaled { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--iw-white); }
.iw-scaled iframe {
	position: absolute; top: 0; left: 0; border: 0;
	width: var(--iw-base, 1280px);
	max-width: none !important; /* AFFINGER の iframe { max-width:100% } を打ち消す */
	height: calc(100% / var(--iw-s, 0.4));
	transform: scale(var(--iw-s, 0.4));
	transform-origin: 0 0;
}

.iw-viewer .iw-browser { box-shadow: 0 30px 60px -36px rgba(27, 30, 36, 0.45); }
.iw-viewer .iw-scaled iframe { pointer-events: none; transition: opacity .25s ease; }
.iw-viewer.is-loading .iw-scaled iframe { opacity: 0.35; }
.iw-browser__open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; }
.iw-browser__open span {
	padding: 8px 14px; border-radius: 999px; background: var(--iw-ink); color: var(--iw-paper);
	font-size: 13px; font-weight: 700; line-height: 1.4;
	opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.iw-browser__open:hover span,
.iw-browser__open:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .iw-browser__open span { opacity: 1; transform: none; } }

.iw-viewer__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.iw-viewer__tab {
	display: flex; flex-direction: column; gap: 2px;
	padding: 12px 14px; border: 1px solid var(--iw-line); border-radius: 10px;
	text-align: left; line-height: 1.5; transition: border-color .2s ease, background-color .2s ease;
}
.iw-viewer__tab:hover { border-color: #b7bbb4; }
.iw-viewer__tab[aria-pressed="true"] { border-color: var(--iw-ink); background: var(--iw-white); }
.iw-viewer__name { font-size: 14.5px; font-weight: 700; }
.iw-viewer__kind { font-size: 12px; color: var(--iw-sub); }

/* ==========================================================================
   5. Sections（トップ）
   ========================================================================== */
.iw-sec { padding: clamp(72px, 10vw, 128px) 0; }
.iw-sec--stone { background: var(--iw-stone); }
.iw-sec--line { border-top: 1px solid var(--iw-line); }

.iw-h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.45; letter-spacing: 0.04em; }
.iw-h3 { font-size: 20px; line-height: 1.6; letter-spacing: 0.04em; margin-bottom: 16px; }
.iw-lead { margin-top: 16px; color: var(--iw-sub); font-size: 15.5px; }
.iw-split__head .iw-textlink { margin-top: 20px; }

.iw-split { display: grid; gap: 40px; }
@media (min-width: 960px) {
	.iw-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
	.iw-split__head { position: sticky; top: calc(var(--iw-header-h) + 32px); }
}
.iw-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }

/* サービス一覧 */
.iw-svc { border-top: 1px solid var(--iw-line); }
.iw-svc > li { border-bottom: 1px solid var(--iw-line); }
.iw-svc__row {
	display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px 24px;
	padding: 26px 4px; align-items: center;
}
.iw-svc__name { font-size: 19px; font-weight: 700; line-height: 1.6; transition: color .2s ease; }
.iw-svc__text { grid-column: 1 / 2; color: var(--iw-sub); font-size: 15px; line-height: 1.85; }
.iw-svc__go {
	grid-row: 1 / 3; grid-column: 2;
	display: grid; place-items: center; width: 36px; height: 36px;
	border: 1px solid var(--iw-line); border-radius: 50%; color: var(--iw-ink);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.iw-svc__row:hover .iw-svc__name { color: var(--iw-accent); }
.iw-svc__row:hover .iw-svc__go { background: var(--iw-ink); border-color: var(--iw-ink); color: var(--iw-paper); }
@media (min-width: 760px) {
	.iw-svc__row { grid-template-columns: 15em minmax(0, 1fr) 36px; }
	.iw-svc__text { grid-column: 2; }
	.iw-svc__go { grid-row: 1; grid-column: 3; }
}
.iw-svc--large .iw-svc__row { padding: 34px 4px; }
.iw-svc--large .iw-svc__name { font-size: 21px; }

/* 制作実績カード */
.iw-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 28px; }
.iw-work { position: relative; }
.iw-work__shot { border: 1px solid var(--iw-line); border-radius: 12px; overflow: hidden; background: var(--iw-white); }
.iw-work__shot > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.iw-work__shot iframe { pointer-events: none; }
.iw-work__blank { aspect-ratio: 16 / 10; background: var(--iw-stone); }
.iw-work__body { margin-top: 16px; }
.iw-work__meta { font-size: 13px; font-weight: 700; color: var(--iw-accent); }
.iw-work__title { margin-top: 4px; font-size: 18px; line-height: 1.6; }
.iw-work__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.iw-work:hover .iw-work__title { text-decoration: underline; text-decoration-color: var(--iw-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.iw-work__scope { margin-top: 6px; font-size: 13.5px; color: var(--iw-sub); line-height: 1.7; }

/* 料金 */
.iw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.iw-plan {
	position: relative; display: flex; flex-direction: column;
	padding: 32px 28px; border: 1px solid var(--iw-line); border-radius: 16px; background: var(--iw-white);
}
.iw-plan.is-featured { border-color: var(--iw-ink); }
.iw-plan__badge {
	align-self: flex-start; margin-bottom: 14px; padding: 3px 12px; border-radius: 999px;
	background: var(--iw-accent-soft); color: var(--iw-accent); font-size: 12px; font-weight: 700; line-height: 1.6;
}
.iw-plan__name { font-size: 19px; line-height: 1.5; }
.iw-plan__for { margin-top: 4px; font-size: 13.5px; color: var(--iw-sub); }
.iw-plan__price { margin-top: 20px; font-size: 14px; color: var(--iw-sub); line-height: 1.2; }
.iw-plan__price span {
	margin-right: 4px; font-family: var(--iw-mark); font-weight: 600;
	font-size: 40px; letter-spacing: -0.01em; color: var(--iw-ink);
}
.iw-plan__items { margin-top: 24px; border-top: 1px solid var(--iw-line); }
.iw-plan__items li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--iw-line); font-size: 14.5px; line-height: 1.7; }
.iw-plan__items li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 9px; height: 5px; border-left: 1.5px solid var(--iw-accent); border-bottom: 1.5px solid var(--iw-accent); transform: rotate(-45deg); }
.iw-plans--compact .iw-plan { padding: 26px 24px; }
.iw-plans--compact .iw-plan__price span { font-size: 34px; }
.iw-notes { margin-top: 28px; }
.iw-notes li { position: relative; padding-left: 1.3em; font-size: 13.5px; color: var(--iw-sub); line-height: 1.9; }
.iw-notes li::before { content: "※"; position: absolute; left: 0; }

/* ご依頼の流れ（トップ） */
.iw-steps { display: grid; gap: 28px; counter-reset: none; }
.iw-step { position: relative; padding-left: 56px; }
.iw-step__num {
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	border: 1.5px solid var(--iw-ink); background: var(--iw-paper);
	font-family: var(--iw-mark); font-weight: 600; font-size: 15px; line-height: 1;
}
.iw-step__title { font-size: 16.5px; font-weight: 700; line-height: 1.6; padding-top: 4px; }
.iw-step__text { margin-top: 4px; font-size: 14px; color: var(--iw-sub); line-height: 1.8; }
@media (min-width: 960px) {
	.iw-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--iw-line); margin-top: 18px; }
	.iw-step { padding: 34px 0 0; }
	.iw-step__num { top: -18px; }
	.iw-step__title { padding-top: 0; }
}

/* お知らせ */
.iw-news { border-top: 1px solid var(--iw-line); }
.iw-news > li { border-bottom: 1px solid var(--iw-line); }
.iw-news__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 20px; padding: 20px 4px; }
.iw-news__row time { font-family: var(--iw-mark); font-weight: 600; font-size: 14px; color: var(--iw-sub); letter-spacing: 0.02em; }
.iw-news__row span { font-size: 15.5px; line-height: 1.75; transition: color .2s ease; }
.iw-news__row:hover span { color: var(--iw-accent); }
@media (max-width: 559px) { .iw-news__row { grid-template-columns: 1fr; } }

/* お問い合わせ誘導 */
.iw-cta { background: var(--iw-ink); color: var(--iw-on-ink); padding: clamp(64px, 9vw, 112px) 0; }
.iw-cta__in { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .iw-cta__in { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.iw-cta__title { font-size: clamp(26px, 3.3vw, 40px); line-height: 1.5; letter-spacing: 0.04em; color: var(--iw-on-ink); }
.iw-cta__text { margin-top: 18px; max-width: 34em; color: var(--iw-on-ink-sub); font-size: 15px; }
.iw-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.iw-cta__sub { color: var(--iw-on-ink) !important; font-size: 14px; text-decoration: underline !important; text-underline-offset: 0.4em; }
.iw-cta__sub:hover { color: var(--iw-white) !important; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.iw-footer { padding: 72px 0 28px; background: var(--iw-paper); clear: both; }
.iw-footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .iw-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; } }
.iw-footer__brand { font-family: var(--iw-mark); font-weight: 700; font-size: 26px; line-height: 1; }
.iw-footer__lead { margin-top: 18px; font-size: 15px; font-weight: 500; }
.iw-footer__meta { margin-top: 8px; font-size: 13.5px; color: var(--iw-sub); line-height: 1.9; }
.iw-footer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
@media (min-width: 600px) { .iw-footer__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.iw-footer__list a { font-size: 14.5px; color: var(--iw-sub); transition: color .2s ease; }
.iw-footer__list a:hover { color: var(--iw-ink); }
.iw-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--iw-line);
	font-size: 12.5px; color: var(--iw-sub);
}
.iw-footer__bottom a:hover { color: var(--iw-ink); }

/* ==========================================================================
   7. 下層ページ共通
   ========================================================================== */
.iw-phead { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--iw-line); }
.iw-crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12.5px; color: var(--iw-sub); line-height: 1.6; }
.iw-crumb li + li::before { content: "/"; margin: 0 10px; color: #aeb2ab; }
.iw-crumb a:hover { color: var(--iw-ink); text-decoration: underline; text-underline-offset: 0.3em; }
.iw-phead__title { margin-top: 18px; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.4; letter-spacing: 0.04em; }
.iw-phead__lead { margin-top: 14px; max-width: 40em; color: var(--iw-sub); font-size: 15.5px; }

.iw-body { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 120px); }
.iw-body__intro { margin-bottom: 40px; }
.iw-body__after { margin-top: 56px; }
.iw-body__more { margin-top: 40px; font-size: 15px; color: var(--iw-sub); }
.iw-empty { color: var(--iw-sub); }

/* 本文（ブロックエディタ） */
.iw-prose { max-width: 44em; font-size: 16px; line-height: 2; }
.iw-prose--narrow { max-width: 42em; }
.iw .iw-prose > * + * { margin-top: 1.2em; }
/* AFFINGER の見出し装飾（下線・背景・左余白・疑似要素）を本文内では打ち消す */
.iw .iw-prose h2,
.iw .iw-prose h3,
.iw .iw-prose h4 {
	position: static; border: 0; border-radius: 0; box-shadow: none; background: none;
	padding: 0; text-align: left; color: var(--iw-ink);
}
.iw .iw-prose h2::before, .iw .iw-prose h2::after,
.iw .iw-prose h3::before, .iw .iw-prose h3::after,
.iw .iw-prose h4::before, .iw .iw-prose h4::after { content: none; display: none; }
.iw .iw-prose h2 {
	margin-top: 2.6em; padding-top: 1.1em; border-top: 1px solid var(--iw-line);
	font-size: 23px; line-height: 1.55; letter-spacing: 0.04em;
}
.iw .iw-prose h3 { margin-top: 2em; font-size: 18.5px; line-height: 1.6; }
.iw .iw-prose h4 { margin-top: 1.6em; font-size: 16.5px; line-height: 1.7; }
.iw .iw-prose > h2:first-child,
.iw .iw-prose > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.iw .iw-prose h2 + *, .iw .iw-prose h3 + * { margin-top: 0.8em; }
.iw .iw-prose p { font-size: inherit; line-height: inherit; margin-bottom: 0; }
.iw .iw-prose ul li { position: relative; padding-left: 1.3em; }
.iw .iw-prose ul li + li { margin-top: 0.4em; }
.iw .iw-prose ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.95em; width: 8px; height: 2px; background: var(--iw-accent); }
.iw .iw-prose ol { list-style: decimal; padding-left: 1.4em; }
.iw .iw-prose a { color: var(--iw-accent); text-decoration: underline; text-underline-offset: 0.3em; }
.iw .iw-prose img, .iw-prose__eyecatch { border-radius: 12px; }
.iw-prose__eyecatch { margin-bottom: 36px; width: 100%; }
.iw .iw-prose blockquote { padding-left: 1em; border-left: 2px solid var(--iw-accent); color: var(--iw-sub); }
.iw .iw-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.iw .iw-prose th, .iw .iw-prose td { padding: 12px; border: 1px solid var(--iw-line); text-align: left; }

/* サービス詳細（本文＋サイドメニュー） */
.iw-aside-layout { display: grid; gap: 56px; }
@media (min-width: 960px) {
	.iw-aside-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
	.iw-aside { position: sticky; top: calc(var(--iw-header-h) + 32px); }
}
.iw-aside { padding: 24px; border: 1px solid var(--iw-line); border-radius: 14px; background: var(--iw-white); }
.iw-aside__title { font-size: 13px; font-weight: 700; color: var(--iw-sub); }
.iw-aside__list { margin: 8px 0 22px; }
.iw-aside__list a { display: block; padding: 11px 0; border-bottom: 1px solid var(--iw-line); font-size: 14.5px; line-height: 1.6; transition: color .2s ease; }
.iw-aside__list a:hover { color: var(--iw-accent); }
.iw-aside__list .is-current a { color: var(--iw-accent); font-weight: 700; }
.iw-aside .iw-textlink { margin-top: 16px; font-size: 14px; }

/* ご依頼の流れ（詳細） */
.iw-timeline { max-width: 46em; }
.iw-timeline__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
.iw-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 23.5px; top: 52px; bottom: 4px; width: 1px; background: var(--iw-line); }
.iw-timeline__num {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--iw-ink); font-family: var(--iw-mark); font-weight: 600; font-size: 18px; line-height: 1;
}
.iw-timeline__title { padding-top: 8px; font-size: 20px; line-height: 1.6; }
.iw-timeline__text { margin-top: 8px; color: var(--iw-sub); font-size: 15.5px; }

/* よくある質問 */
.iw-faq-layout { max-width: calc(52em + var(--iw-gutter) * 2); margin-left: 0; }
.iw-faq-group + .iw-faq-group { margin-top: 56px; }
.iw-faq-group__title { margin-bottom: 12px; font-size: 15px; color: var(--iw-sub); }
.iw-faq__item { border-top: 1px solid var(--iw-line); }
.iw-faq__item:last-child { border-bottom: 1px solid var(--iw-line); }
.iw-faq__q {
	position: relative; display: block; list-style: none; cursor: pointer;
	padding: 22px 48px 22px 0; font-size: 16.5px; font-weight: 700; line-height: 1.7;
}
.iw-faq__q::-webkit-details-marker { display: none; }
.iw-faq__q::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%);
	background:
		linear-gradient(var(--iw-ink), var(--iw-ink)) center / 14px 1.5px no-repeat,
		linear-gradient(var(--iw-ink), var(--iw-ink)) center / 1.5px 14px no-repeat;
}
.iw-faq__item[open] .iw-faq__q::after { background-size: 14px 1.5px, 0 0; }
.iw-faq__a { padding: 0 48px 26px 0; color: var(--iw-sub); font-size: 15.5px; }

/* 表（事業者情報・実績詳細） */
.iw-table { border-top: 1px solid var(--iw-line); }
.iw-table__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--iw-line); }
.iw-table dt { font-size: 14px; font-weight: 700; color: var(--iw-sub); line-height: 1.9; }
.iw-table dd { font-size: 15.5px; line-height: 1.9; }
@media (max-width: 559px) { .iw-table__row { grid-template-columns: 1fr; gap: 2px; } }

.iw-company { display: grid; gap: 56px; }
@media (min-width: 960px) { .iw-company { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: start; } }

/* お問い合わせ */
.iw-contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .iw-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; align-items: start; } }
.iw-facts { padding: 6px 24px; border: 1px solid var(--iw-line); border-radius: 14px; background: var(--iw-white); }
.iw-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--iw-line); }
.iw-facts > div:last-child { border-bottom: 0; }
.iw-facts dt { font-size: 14px; color: var(--iw-sub); }
.iw-facts dd { font-size: 15px; font-weight: 700; text-align: right; }
.iw-contact__note, .iw-contact__info .iw-prose { margin-top: 24px; color: var(--iw-sub); font-size: 15px; }
.iw-contact__mail { font-size: 15.5px; line-height: 2.2; }

/* Contact Form 7 */
.iw-contact__form .wpcf7 p { margin: 0 0 22px; font-size: inherit; line-height: 1.8; }
.iw-contact__form .wpcf7 label { display: block; font-size: 14.5px; font-weight: 700; }
.iw-contact__form .wpcf7 input[type="text"],
.iw-contact__form .wpcf7 input[type="email"],
.iw-contact__form .wpcf7 input[type="tel"],
.iw-contact__form .wpcf7 input[type="url"],
.iw-contact__form .wpcf7 select,
.iw-contact__form .wpcf7 textarea {
	display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
	border: 1px solid var(--iw-line); border-radius: 10px; background: var(--iw-white);
	font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--iw-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.iw-contact__form .wpcf7 textarea { min-height: 200px; resize: vertical; }
.iw-contact__form .wpcf7 input:focus,
.iw-contact__form .wpcf7 select:focus,
.iw-contact__form .wpcf7 textarea:focus { outline: none; border-color: var(--iw-accent); box-shadow: 0 0 0 3px var(--iw-accent-soft); }
.iw-contact__form .wpcf7 input[type="submit"] {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	min-height: 54px; padding: 0 40px; border: 1px solid var(--iw-ink); border-radius: 999px;
	background: var(--iw-ink); color: var(--iw-paper); font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
	transition: background-color .2s ease, border-color .2s ease;
}
.iw-contact__form .wpcf7 input[type="submit"]:hover { background: var(--iw-accent); border-color: var(--iw-accent); }
.iw-contact__form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #b3261e; }
.iw-contact__form .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* 絞り込み・ページ送り */
.iw-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.iw-filter a { padding: 7px 16px; border: 1px solid var(--iw-line); border-radius: 999px; font-size: 14px; line-height: 1.6; transition: border-color .2s ease; }
.iw-filter a:hover { border-color: var(--iw-ink); }
.iw-filter a[aria-current] { background: var(--iw-ink); border-color: var(--iw-ink); color: var(--iw-paper); }
.iw-pager { margin-top: 56px; }
.iw-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.iw-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--iw-line); border-radius: 999px; font-size: 14px;
}
.iw-pager .page-numbers.current { background: var(--iw-ink); border-color: var(--iw-ink); color: var(--iw-paper); }

/* 実績詳細 */
.iw-preview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.iw-preview__modes { display: inline-flex; padding: 4px; border: 1px solid var(--iw-line); border-radius: 999px; background: var(--iw-white); }
.iw-preview__modes button { padding: 7px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--iw-sub); }
.iw-preview__modes button[aria-pressed="true"] { background: var(--iw-ink); color: var(--iw-paper); }
.iw-preview__stage { padding: clamp(14px, 3vw, 32px); border-radius: 18px; background: var(--iw-stone); }
.iw-preview__frame { margin: 0 auto; max-width: 100%; transition: max-width .3s ease; }
.iw-preview.is-sp .iw-preview__frame { max-width: 392px; }
.iw-preview__screen.is-sp { aspect-ratio: 390 / 780; }
.iw-preview__note { margin-top: 12px; font-size: 13px; color: var(--iw-sub); }
.iw-work-eyecatch img { border-radius: 14px; width: 100%; }
.iw-work-detail { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 900px) { .iw-work-detail { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; } }
.iw-table--side .iw-table__row { grid-template-columns: 6em minmax(0, 1fr); }
.iw-postnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--iw-line); font-size: 14px; }
.iw-postnav > div:last-child { text-align: right; }
.iw-postnav a:not(.iw-textlink) { color: var(--iw-sub); }
.iw-postnav a:not(.iw-textlink):hover { color: var(--iw-ink); }
@media (max-width: 719px) { .iw-postnav { grid-template-columns: 1fr; } .iw-postnav > div:last-child { text-align: left; } }

/* 管理者向けヒント */
.iw-admin-hint { margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--iw-accent); border-radius: 10px; background: var(--iw-accent-soft); font-size: 13.5px; line-height: 1.8; }
.iw-admin-hint span { color: var(--iw-sub); font-size: 12px; }

/* AFFINGER のクレジット表記（公式の「クレジット完全削除プラグイン」で非表示にできます） */
body.iw-site > .copyr {
	margin: -12px 0 0; padding: 0 var(--iw-gutter) 28px; background: var(--iw-paper);
	font: 400 11.5px/1.7 var(--iw-jp); letter-spacing: 0.03em; color: #8a8f96; text-align: center;
}
body.iw-site > .copyr a { color: inherit; }

/* ==========================================================================
   8. ブログ（AFFINGER のテンプレート）との調整
   ========================================================================== */
body.iw-site:not(.iw-corp) #content-w { padding-top: 28px; }
body.iw-site #wrapper { background: transparent; }

/* ==========================================================================
   9. 動きを減らす設定
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.iw *, .iw *::before, .iw *::after { transition: none !important; animation: none !important; }
}
