/* 共通レイアウト。PCは1200pxを上限とし、右側の追尾CTAにも余白を確保する。 */
.p-container { width: min(1200px, calc(100% - 160px)); margin-inline: auto; }
.p-main { min-height: 60vh; }
.site-content { width: min(1200px, calc(100% - 160px)); margin: 64px auto; }
.p-home { overflow: clip; }
.p-home p, .p-home h1, .p-home h2, .p-home h3 { margin: 0; }
.p-icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.p-logo { width: auto; height: 36px; align-self: flex-start; }
.p-logo-mark { display: block; max-width: none; pointer-events: none; }
.p-image { width: 100%; height: 100%; object-fit: cover; }
/* 製品写真は背景を純白に加工済み。枠ごと白にして、縦横比が違う枠でも写真が枠いっぱいに見えるようにする */
.p-image--product { object-fit: contain; padding: 24px; background: #fff; }
.p-sp-only { display: none; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--p-primary-dark); outline-offset: 5px; }
.p-skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 8px 16px; background: var(--p-white); transform: translateY(-160%); }
.p-skip-link:focus { transform: none; }

/* ヘッダーとWPメニュー。サブメニューはキーボード操作でも表示する。 */
.p-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: stretch; height: 90px; border-bottom: 1px solid var(--p-line); background: var(--p-white); }
.p-header__logo { display: block; align-self: center; flex-shrink: 0; padding-left: clamp(24px, 3.334vw, 48px); }
.p-header__logo .p-logo { height: clamp(26px, 2.5vw, 36px); }
.p-header__nav { display: flex; align-items: center; margin-left: auto; min-width: 0; padding-inline: 16px; }
.p-nav__list, .p-nav .sub-menu { padding: 0; margin: 0; list-style: none; }
.p-header__nav .p-nav__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(12px, 1.667vw, 24px); }
.p-header__nav li { position: relative; }
/* ボタン（inline-flex）の項目だけ行の下余白で背が高くなり、リンク項目と1pxずれるため、項目自体をflexにして高さを揃える */
.p-header__nav .p-nav__list > li { display: flex; align-items: center; }
.p-header__nav a { display: block; color: var(--p-ink); font-size: clamp(13px, 0.973vw, 14px); font-weight: 700; white-space: nowrap; }
.p-header__pickup { display: inline-flex; align-items: center; align-self: center; gap: 8px; margin-right: 8px; padding: 10px 18px; border: 1px solid var(--p-primary); border-radius: 999px; color: var(--p-primary-deep); font-size: clamp(13px, 0.973vw, 14px); font-weight: 700; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.p-header__pickup .p-icon { width: 16px; height: 16px; }
.p-header__pickup:hover { background: var(--p-primary); color: var(--p-white); }

/* ヘッダーのプルダウン。項目を4つにまとめ、中身は写真付きで見せる。 */
.p-nav__trigger { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--p-ink); font: inherit; font-size: clamp(13px, 0.973vw, 14px); font-weight: 700; white-space: nowrap; cursor: pointer; }
.p-nav__trigger .p-icon { width: 14px; height: 14px; color: var(--p-primary-deep); transition: transform 0.2s; }
.p-header__nav .is-open > .p-nav__trigger, .p-header__nav .is-current > .p-nav__trigger, .p-header__nav .is-current > a { color: var(--p-primary-deep); }
.p-header__nav .is-open > .p-nav__trigger .p-icon { transform: rotate(180deg); }
.p-mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 39; border-top: 1px solid var(--p-line); background: var(--p-white); box-shadow: 0 18px 40px rgba(16, 42, 45, 0.12); animation: p-mega-in 0.18s ease-out; }
@keyframes p-mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.p-mega__inner { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 56px; padding-block: 40px 44px; }
.p-mega__title { margin-top: 14px; font-size: 22px; font-weight: 700; }
.p-mega__lead { margin-top: 12px; color: var(--p-muted); font-size: 14px; line-height: 1.9; }
.p-mega__all { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--p-primary-deep); font-size: 14px; font-weight: 700; }
.p-mega__all .p-icon { width: 18px; height: 18px; }
.p-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 24px; margin: 0; padding: 0; list-style: none; }
.p-mega__card { display: grid; gap: 10px; color: var(--p-ink); }
.p-mega__thumb { display: block; height: 108px; overflow: hidden; border-radius: var(--p-radius); background: var(--p-primary-pale); }
.p-mega__thumb .p-image { transition: transform 0.3s; }
.p-mega__thumb .p-image--product { padding: 8px; }
.p-mega__card:hover .p-image { transform: scale(1.05); }
.p-mega__name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.p-mega__card:hover .p-mega__name { color: var(--p-primary-deep); }
.p-mega--list .p-mega__inner { grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 300px); }
.p-mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; align-content: start; }
.p-mega__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--p-line); color: var(--p-ink); font-size: 15px; font-weight: 700; }
.p-mega__links a:hover { color: var(--p-primary-deep); }
.p-mega__links .p-icon { width: 16px; height: 16px; color: var(--p-primary-deep); }
.p-mega__photo { height: 100%; min-height: 200px; overflow: hidden; border-radius: var(--p-radius); background: var(--p-primary-pale); }
@media (prefers-reduced-motion: reduce) {
  .p-mega { animation: none; }
  .p-mega__thumb .p-image { transition: none; }
}

/* 画面幅が狭いときにヘッダーが2段へ折り返さないよう、余白と字間を詰める。 */
@media (max-width: 1080px) {
  .p-header__nav { padding-inline: 8px; }
  .p-header__nav .p-nav__list { gap: 4px 14px; }
}
.p-nav a:hover, .p-nav a[aria-current], .p-nav .current-menu-item > a { color: var(--p-primary-dark); }
.p-header__nav .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 20; min-width: 220px; padding: 12px 16px; background: var(--p-white); box-shadow: var(--p-shadow-card); visibility: hidden; }
.p-header__nav .sub-menu a { padding: 8px 0; white-space: normal; }
.p-header__nav .sub-menu .sub-menu { left: 100%; top: 0; }
.p-header__nav li:hover > .sub-menu, .p-header__nav li:focus-within > .sub-menu { visibility: visible; }
.p-menu-toggle { display: grid; place-items: center; width: 90px; padding: 0; flex: 0 0 90px; border: 0; background: #eef2f2; color: var(--p-ink); cursor: pointer; }
.p-menu-toggle .p-icon { width: 30px; height: 30px; stroke-width: 1.6; }
.p-menu-toggle:hover { background: var(--p-primary-pale); }
/* 全画面メニュー。dialogのネイティブモーダルと独立した写真レイヤー。 */
.p-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0 0 40px; border: 0; color: var(--p-white); background: var(--p-deep); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity 0.3s ease; }
.p-menu.is-open { opacity: 1; }
.p-menu::backdrop { background: rgba(22,58,62,0); transition: background-color 0.3s ease; }
.p-menu.is-open::backdrop { background: var(--p-deep); }
.p-menu__mark { position: absolute; inset: 0; overflow: hidden; opacity: 0.12; pointer-events: none; }
.p-menu__mark .p-logo-mark { width: 100%; height: 100%; object-fit: cover; }
.p-menu__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 90px; padding-left: 48px; }
.p-menu-toggle--close { position: fixed; top: 0; right: 0; height: 90px; background: var(--p-deep); color: var(--p-white); }
.p-menu-toggle--close:hover { color: var(--p-ink); }
.p-menu__inner { position: relative; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); align-items: stretch; gap: 32px 40px; width: min(1200px, calc(100% - 96px)); padding-top: 20px; }
.p-menu__inner > * { min-width: 0; }
.p-menu__nav .p-nav__list { display: grid; gap: 2px; }
.p-menu__nav li { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.p-menu.is-open .p-menu__nav li { opacity: 1; transform: translateY(0); transition-delay: var(--p-menu-delay, 0ms); }
.p-menu__nav li:nth-child(2) { --p-menu-delay: 40ms; }
.p-menu__nav li:nth-child(3) { --p-menu-delay: 80ms; }
.p-menu__nav li:nth-child(4) { --p-menu-delay: 120ms; }
.p-menu__nav li:nth-child(5) { --p-menu-delay: 160ms; }
.p-menu__nav li:nth-child(6) { --p-menu-delay: 200ms; }
.p-menu__nav li:nth-child(7) { --p-menu-delay: 240ms; }
.p-menu__nav li:nth-child(8) { --p-menu-delay: 280ms; }
.p-menu__nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 18px; padding-block: 6px; color: var(--p-white); font-weight: 700; }
.p-menu__number { color: var(--p-primary-light); font-size: 16px; line-height: 1.8; }
.p-menu__item-text { min-width: 0; }
.p-menu__label { display: block; color: var(--p-primary-light); font-size: 12px; line-height: 1.5; letter-spacing: 0.22em; }
.p-menu__name { position: relative; display: inline-block; max-width: 100%; padding-bottom: 3px; font-size: 30px; line-height: 1.4; overflow-wrap: anywhere; }
.p-menu__name::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.p-menu__nav a:hover, .p-menu__nav a[aria-current], .p-menu__nav .current-menu-item > a { color: var(--p-white); }
.p-menu__nav a:hover .p-menu__name::after, .p-menu__nav a:focus-visible .p-menu__name::after { transform: scaleX(1); }
.p-menu__photo { position: relative; min-height: 420px; margin: 0; overflow: hidden; border-radius: 6px; background: var(--p-deep); }
.p-menu__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.p-menu__image.is-active { opacity: 1; }
.p-menu__photo::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(180deg, rgba(22,58,62,0), var(--p-deep)); pointer-events: none; }
.p-menu__caption { position: absolute; z-index: 1; inset: auto 28px 28px; color: var(--p-white); font-size: 15px; line-height: 1.8; }
.p-menu__bottom { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.25); }
.p-menu__contact { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px; }
.p-menu__tel { color: var(--p-white); line-height: 1.8; }
.p-menu__tel > .en { display: block; font-size: 28px; font-weight: 700; line-height: 1.4; }
.p-menu__tel small { display: block; font-size: 13px; color: rgba(255,255,255,0.85); }
.p-menu__consult { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 64px; padding: 16px 28px; border-radius: 6px; background: var(--p-primary); color: var(--p-white); font-size: 16px; font-weight: 700; line-height: 1.8; }
.p-menu__consult:hover { background: var(--p-primary-dark); color: var(--p-white); }
.p-menu__tel:hover { color: var(--p-primary-light); }
.p-menu__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: 13px; line-height: 1.8; }
.p-menu__links a { color: rgba(255,255,255,0.85); }
.p-menu__links a:hover { color: var(--p-primary-light); }
html.p-menu-open { overflow: hidden; }
body.p-menu-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

/* 追尾のお問い合わせ導線。 */
.p-contact-tab { position: fixed; z-index: 30; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; width: 80px; height: 260px; border-radius: 6px 0 0 6px; color: var(--p-white); background: var(--p-primary); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.p-contact-tab span { writing-mode: vertical-rl; font-size: 14px; font-weight: 700; letter-spacing: 0.2em; }
.p-contact-tab:hover { color: var(--p-white); background: var(--p-primary-dark); }
.p-contact-bar { display: none; }

/* 見出し・丸矢印・帯付きカード。 */
.p-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.p-section-heading__text { display: grid; gap: 14px; min-width: 0; }
.p-label { color: var(--p-primary-deep); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: 0.22em; }
.p-label--line { display: flex; align-items: center; gap: 12px; }
.p-label--line::before { content: ""; flex: 0 0 32px; height: 1px; background: currentColor; }
.p-section-heading__title { font-size: 40px; font-weight: 700; line-height: 1.35; letter-spacing: 0.03em; }
.p-round-link, .p-button__circle { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; color: var(--p-white); background: var(--p-primary); transition: background-color 0.2s; }
.p-round-link { width: 80px; height: 80px; }
.p-round-link .p-icon { width: 26px; height: 26px; }
.p-round-link:hover, a:hover > .p-button__circle { color: var(--p-white); background: var(--p-primary-dark); }
.p-round-link--small { width: 32px; height: 32px; }
.p-round-link--small .p-icon { width: 16px; height: 16px; }
.p-button { display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: inherit; font-weight: 700; line-height: 1.6; }
.p-button:hover { color: inherit; }
.p-button--outline .p-button__circle { border: 1.5px solid rgba(255,255,255,0.8); background: transparent; }
.p-card--band { display: flex; flex-direction: column; height: 100%; border-radius: var(--p-radius); overflow: hidden; box-shadow: var(--p-shadow-card); }
.p-card__image { height: 200px; overflow: hidden; background: var(--p-primary-pale); }
.p-card__band { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 16px; padding: 26px; color: var(--p-white); background: var(--p-primary); transition: background-color 0.2s; }
.p-card__title { font-size: 17px; font-weight: 700; line-height: 1.5; white-space: pre-line; }
.p-card--band:hover .p-card__band { background: var(--p-primary-dark); }
.p-card__band .p-icon { width: 22px; height: 22px; }

/* ヒーロー。線画とエンブレムの位置は1440pxの参照座標に揃える。 */
.p-hero { position: relative; isolation: isolate; height: 760px; overflow: hidden; background: var(--p-deep); color: var(--p-white); }
.p-hero__photo, .p-hero__veil { position: absolute; inset: 0; z-index: -2; }
.p-hero__photo .p-image { object-position: 55% 45%; }
.p-hero__veil { z-index: -1; background: linear-gradient(90deg, var(--p-deep-overlay) 0%, rgba(14,36,40,0.45) 45%, rgba(14,36,40,0.05) 100%); }
.p-hero__mark { position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 1440px; transform: translateX(-50%); }
.p-hero__mark--mobile { display: none; }
.p-hero__dimension { position: absolute; inset: 0; }
.p-hero__inner { position: relative; height: 100%; }
.p-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; width: min(900px, 100%); padding-top: 190px; }
.p-hero .p-label { color: var(--p-primary-light); letter-spacing: 0.16em; }
.p-hero__title { font-size: clamp(36px, 3.334vw, 48px); line-height: 1.5; letter-spacing: 0.01em; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.p-hero__lead { font-size: 17px; line-height: 1.9; color: rgba(255,255,255,0.92); }
.p-hero__trust { display: flex; align-items: center; gap: 12px; width: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.35); }
.p-hero__trust .p-icon, .p-hero__trust strong { color: var(--p-primary-light); }
.p-hero__trust p { color: rgba(255,255,255,0.92); font-size: 15px; line-height: 1.8; }
.p-hero__actions { display: flex; flex-wrap: wrap; gap: 24px 42px; margin-top: 6px; }
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(960px, 100%); margin: 0; background: var(--p-white); }
.p-hero__stats { position: absolute; bottom: 0; left: 0; }
.p-stats__item { display: flex; flex-direction: column; gap: 4px; padding: 30px 28px; border-right: 1px solid var(--p-line); }
.p-stats__item:last-child { border-right: 0; }
.p-stats dt { color: var(--p-primary-deep); font-size: clamp(26px, 2.362vw, 34px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.p-stats dd { margin: 0; color: var(--p-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }

/* 私たちについて。SPは写真を先頭に積み、拠点の説明を本文末尾へ移す。 */
.p-about { position: relative; isolation: isolate; overflow: hidden; background: var(--p-deep); color: var(--p-white); }
.p-about__inner { position: relative; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); min-height: 680px; }
.p-about__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 120px 56px 100px 0; }
.p-about .p-label { color: var(--p-primary-light); }
.p-about__title { font-size: 36px; line-height: 1.5; letter-spacing: 0.03em; }
.p-about__body { font-size: 16px; line-height: 2; color: rgba(255,255,255,0.88); }
.p-about__photo { position: relative; margin-right: min(-80px, calc((1200px - 100vw) / 2)); }
.p-about__photo > .p-image { position: absolute; inset: 0; }
.p-about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,58,62,0.75), rgba(22,58,62,0.1) 40%, transparent); }
.p-about__inset { position: absolute; z-index: 1; left: -48px; bottom: 72px; width: 300px; height: 210px; border: 6px solid var(--p-deep); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.p-about__outline { position: absolute; z-index: 3; left: -24px; top: 40px; color: transparent; font-size: 128px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; -webkit-text-stroke: 1px rgba(255,255,255,0.32); white-space: nowrap; pointer-events: none; }
.p-about__bases { position: absolute; z-index: 2; right: -72px; bottom: 48px; display: grid; gap: 6px; padding: 24px 28px; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; background: rgba(255,255,255,0.08); backdrop-filter: blur(4px); }
.p-about__bases .p-label { font-size: 12px; }
.p-about__bases p { font-size: 15px; font-weight: 700; line-height: 1.8; }

/* トップの各セクション。 */
.p-solutions, .p-works, .p-movie { padding-top: 120px; }
/* 紹介動画（16:9）。幅は本文より狭めて読みやすくする */
.p-movie__frame { max-width: 960px; margin-inline: auto; background: #000; }
.p-movie__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.p-solutions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.p-solutions__more { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 14px; }
.p-solutions__more > span { color: var(--p-muted); }
.p-solutions__more a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.p-business { margin-top: 120px; padding-block: 110px; background: var(--p-bg-soft); }
.p-business__photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 40px; }
.p-business__photo { height: 260px; overflow: hidden; background: var(--p-white); }
.p-business__photo .p-image--product { padding: 18px; }
.p-business__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.p-business__item { border-top: 1px solid var(--p-ink); }
.p-business__item:nth-last-child(-n/**/+3) { border-bottom: 1px solid var(--p-ink); }
.p-business__link { display: flex; align-items: center; gap: 16px; height: 100%; padding: 26px 4px; color: var(--p-ink); }
.p-business__number { align-self: flex-start; color: var(--p-primary-deep); font-size: 13px; font-weight: 700; line-height: 2; }
.p-business__name { flex: 1; font-size: 17px; font-weight: 700; line-height: 1.6; }
.p-business__lead { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--p-muted); line-height: 1.8; }
.p-business__link > .p-icon { width: 18px; height: 18px; color: var(--p-primary-deep); }
.p-badge { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 2px; background: var(--p-primary); color: var(--p-white); font-size: 13px; line-height: 1.4; vertical-align: middle; white-space: nowrap; }
.p-pickup { margin-top: 120px; }
/* 自社製品（NBブレンダー）。協力会社の募集とは別セクションにし、全幅の1枚カードで見せる */
.p-pickup__main { display: flex; border-radius: var(--p-radius); overflow: hidden; box-shadow: var(--p-shadow-card); color: var(--p-ink); background: var(--p-white); transition: transform 0.2s; }
.p-pickup__main:hover { transform: translateY(-3px); }
.p-pickup__photo { position: relative; flex: 0 0 50%; min-height: 360px; background: var(--p-primary-pale); }
.p-pickup__photo .p-image { position: absolute; inset: 0; }
.p-pickup__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px 56px; }
.p-pickup__title { font-size: 28px; font-weight: 700; line-height: 1.4; }
.p-pickup__lead { font-size: 15px; line-height: 1.9; }
.p-pickup__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 700; }
.p-pickup__link .p-icon { width: 20px; height: 20px; }

/* 協力会社の募集（事例の後に置く横長の帯） */
.p-partner-band { margin-top: 120px; }
.p-partner-band__card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 56px; border-radius: var(--p-radius); box-shadow: var(--p-shadow-card); color: var(--p-white); background: var(--p-primary); transition: transform 0.2s; }
.p-partner-band__card:hover { transform: translateY(-3px); }
.p-partner-band__text { display: flex; flex-direction: column; gap: 12px; }
.p-partner-band__card .p-label { color: var(--p-white); }
.p-partner-band__title { font-size: 28px; font-weight: 700; line-height: 1.4; }
.p-partner-band__lead { font-size: 15px; line-height: 1.9; }
.p-partner-band__link { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 16px 28px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; font-weight: 700; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.p-partner-band__link .p-icon { width: 20px; height: 20px; }
.p-partner-band__card:hover .p-partner-band__link { background: var(--p-white); color: var(--p-primary-deep); }
.p-works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.p-work { display: flex; flex-direction: column; gap: 18px; color: var(--p-ink); }
.p-work__image { height: 260px; overflow: hidden; background: var(--p-bg-soft); }
.p-work__body { display: grid; gap: 12px; }
.p-work__terms { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--p-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.p-work__title { font-size: 18px; line-height: 1.6; }
.p-empty { padding: 32px; border: 1px solid var(--p-line); color: var(--p-muted); background: var(--p-bg-soft); }
.p-strengths { margin-top: 120px; padding-block: 110px; background: var(--p-primary-pale); }
.p-strengths__inner, .p-news__inner { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 80px; align-items: start; }
.p-strengths__intro .p-section-heading { margin-bottom: 24px; }
.p-strengths__intro > p { color: var(--p-text); font-size: 16px; line-height: 1.9; }
.p-strengths__intro .p-button { margin-top: 28px; font-size: 15px; }
.p-strengths__list { margin: 0; padding: 0; list-style: none; }
.p-strengths__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid rgba(27,42,46,0.25); }
.p-strengths__item:last-child { border-bottom: 1px solid rgba(27,42,46,0.25); }
.p-strengths__number { color: var(--p-primary-deep); font-size: 32px; font-weight: 700; line-height: 1; }
.p-strengths__item h3 { font-size: 22px; line-height: 1.6; }
.p-strengths__item p { margin-top: 8px; color: var(--p-text); font-size: 16px; line-height: 1.9; }
.p-news { padding-block: 120px; }
.p-news__list { margin: 0; padding: 0; list-style: none; }
.p-news__item { border-top: 1px solid var(--p-line); }
.p-news__item:last-child { border-bottom: 1px solid var(--p-line); }
.p-news__link { display: flex; align-items: center; gap: 24px; padding-block: 28px; color: var(--p-ink); }
.p-news__meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.p-news__date { color: var(--p-muted); font-size: 13px; font-weight: 600; }
.p-news__category { max-width: 120px; padding: 3px 10px; border: 1px solid var(--p-primary-deep); border-radius: 2px; color: var(--p-primary-deep); font-size: 13px; font-weight: 700; line-height: 1.5; }
.p-news__title { font-size: 16px; font-weight: 500; line-height: 1.8; }

/* 共通CTA。既存の.ctaは自動挿入の重複判定に必要なため併用する。 */
.p-cta { position: relative; overflow: hidden; padding: 90px 0; border-radius: 0; text-align: left; background: var(--p-ink); color: var(--p-white); }
.p-home > .p-cta { margin: 0; }
.p-cta__mark { position: absolute; top: 0; left: 50%; width: 1440px; transform: translateX(-50%); pointer-events: none; }
.p-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.p-cta__text { display: grid; gap: 14px; max-width: 700px; }
.p-cta .p-label, .p-menu .p-label { color: var(--p-primary-light); }
.p-cta .p-cta__title { margin: 0; padding: 0; border: 0; color: var(--p-white); font-size: 38px; line-height: 1.45; letter-spacing: 0.03em; text-wrap: balance; }
.p-kinsoku { word-break: keep-all; overflow-wrap: anywhere; }
.p-cta__text > p:last-child:not(.p-label) { margin: 8px 0 0; color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.9; }
.p-cta__actions { display: flex; justify-content: center; gap: 40px; flex-shrink: 0; }
.p-cta__action { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 190px; text-align: center; color: var(--p-white); font-size: 15px; font-weight: 700; line-height: 1.7; }
.p-cta__action:hover { color: var(--p-primary-light); }
.p-cta__action .p-button__circle { width: 96px; height: 96px; }
.p-cta__action .p-icon { width: 30px; height: 30px; }
.p-cta__action small { display: block; margin-top: 4px; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; }
.p-hero a:focus-visible, .p-about a:focus-visible, .p-cta a:focus-visible, .p-menu :focus-visible { outline-color: var(--p-primary-light); }

/* 下層ページとフッター。 */
/* 通常は440px。長い投稿タイトルや拡大表示では内容に合わせて高さを増やす。 */
.p-page-heading { position: relative; isolation: isolate; min-height: 440px; overflow: hidden; background: var(--p-deep); color: var(--p-white); }
.p-page-heading__image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.p-page-heading::before, .p-page-heading::after { content: ""; position: absolute; pointer-events: none; }
.p-page-heading::before { z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(22,58,62,0.88), rgba(22,58,62,0.25)); }
.p-page-heading::after { z-index: -1; inset: 55% 0 0; background: linear-gradient(180deg, rgba(22,58,62,0), rgba(22,58,62,0.4)); }
.p-page-heading__mark { position: absolute; z-index: -1; inset: 0; opacity: 0.25; pointer-events: none; }
.p-page-heading__mark .p-logo-mark { width: 100%; height: 100%; }
.p-page-heading__inner { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: inherit; padding-block: 48px; }
.p-page-heading .p-label { color: var(--p-primary-light); }
.p-page-heading__title { max-width: 100%; margin-top: 14px; font-size: 44px; line-height: 1.5; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.p-page-heading__lead { max-width: 800px; margin-top: 16px; color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.8; }
.p-page-heading .breadcrumbs { max-width: 100%; margin: 24px 0 0; font-size: 13px; line-height: 1.8; }
.p-page-heading .breadcrumbs a, .p-page-heading .breadcrumbs [aria-current], .p-page-heading .breadcrumbs__item::before { color: rgba(255,255,255,0.7); }
.p-page-heading .breadcrumbs a:focus-visible { outline-color: var(--p-primary-light); }
.p-page-content { padding-block: 80px 120px; overflow-wrap: anywhere; }
.p-page-content__body { max-width: 960px; margin-inline: auto; overflow-wrap: anywhere; }
.p-not-found .p-button { margin-top: 32px; }
.p-page-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* 本文H3も囲みの面へ統一する。共通モジュールの既定CSSより後に適用。 */
.entry__content h3 { padding: 16px 20px; border: 0; border-radius: 6px; background: var(--p-primary-pale); }
.entry__category a, .card__category, .card__date { font-size: 13px; }
.card__excerpt { font-size: 15px; line-height: 1.8; }
.p-callout > .p-label { font-size: 12px; }
.p-base small { font-size: 13px; display: block; }

/* フェーズ2：下層ページ。本文の整形は content.css の entry__content に任せる。 */
.p-main, .p-page-content, .p-page-content__body { min-width: 0; }

.p-intro { max-width: 900px; margin-bottom: 40px; font-size: 18px; line-height: 2; color: var(--p-text); }
.p-section { margin-top: 96px; }
.p-title { font-size: 36px; line-height: 1.55; letter-spacing: 0.03em; }
.p-prose { min-width: 0; color: var(--p-text); line-height: 2; }
.p-prose > * + * { margin-top: 24px; }
.p-prose > .p-title { margin-top: 16px; color: var(--p-ink); }
.p-prose .p-label { margin-top: 0; }
.p-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 64px; }
.p-split > * { min-width: 0; }
.p-feature-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--p-radius); background: var(--p-primary-pale); }
.p-feature-photo--wide { aspect-ratio: 16 / 10; margin-bottom: 32px; }
.p-feature-photo--portrait { max-width: 460px; width: 100%; aspect-ratio: 4 / 5; }
.p-feature-photo .p-image { display: block; width: 100%; height: 100%; }
.p-placeholder { display: grid; place-content: center; min-height: 200px; height: 100%; padding: 28px; border: 1px dashed var(--p-primary); color: var(--p-muted); background: var(--p-primary-pale); text-align: center; line-height: 1.9; }
.p-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.p-card-grid > *, .p-works__grid > * { min-width: 0; }
.p-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-card-grid--two .p-card__image { height: 280px; }
.p-card-grid--two .p-card__title { font-size: 22px; }
.p-card-grid--compact { gap: 24px; }
.p-card-grid--compact .p-card__image { height: 150px; }
.p-card--featured { outline: 3px solid var(--p-deep); outline-offset: 3px; }
.p-card--featured .p-card__band { background: var(--p-deep); }
.p-card__lead { display: block; margin-top: 10px; font-size: 15px; font-weight: 400; line-height: 1.8; }
.p-list-card { min-width: 0; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; box-shadow: var(--p-shadow-card); }
.p-list-card__link { display: flex; flex-direction: column; height: 100%; color: var(--p-ink); }
.p-list-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 14px; padding: 24px; }
.p-list-card__body > p { color: var(--p-muted); font-size: 16px; line-height: 1.8; }
.p-list-card__title { font-size: 20px; line-height: 1.7; }
.p-list-card__more { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: space-between; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--p-primary-pale); border-radius: 2px; color: var(--p-primary-deep); background: var(--p-primary-pale); font-size: 13px; font-weight: 700; line-height: 1.6; }
.p-callout { display: grid; gap: 20px; margin-top: 56px; padding: 48px; border: 0; border-radius: var(--p-radius); background: var(--p-primary-pale); }
.p-callout h2 { font-size: 24px; line-height: 1.7; }
.p-callout .p-button { margin-top: 8px; }
.p-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.p-link-list li { border-bottom: 1px solid var(--p-line); }
.p-link-list a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; color: var(--p-ink); font-weight: 700; }
.p-link-list .p-icon { color: var(--p-primary); }
.p-spec-table { width: 100%; margin-top: 40px; border-collapse: collapse; table-layout: fixed; text-align: left; line-height: 1.9; font-size: 16px; }
.p-spec-table caption { margin-bottom: 24px; color: var(--p-ink); font-size: 26px; font-weight: 700; text-align: left; }
.p-spec-table th, .p-spec-table td { padding: 24px 28px; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); vertical-align: top; overflow-wrap: anywhere; }
.p-spec-table th { width: 28%; color: var(--p-ink); background: var(--p-bg-soft); font-weight: 700; }
.p-spec-table td { color: var(--p-text); }
.p-reason + .p-reason { margin-top: 96px; padding-top: 80px; border-top: 1px solid var(--p-line); }
.p-reason--reverse .p-feature-photo { grid-column: 1; grid-row: 1; }
.p-reason--reverse .p-prose { grid-column: 2; grid-row: 1; }
.p-diagram { margin-top: 40px; padding: 24px; border-radius: var(--p-radius); background: var(--p-bg-soft); }
.p-diagram__svg { display: block; width: 100%; height: auto; }
.p-diagram__svg--mobile { display: none; }
.p-diagram__node rect { fill: var(--p-primary-pale); stroke: var(--p-primary); }
.p-diagram__node text { fill: var(--p-ink); font-family: var(--p-font-ja); font-size: 22px; font-weight: 700; }
.p-diagram__node .p-diagram__note { font-size: 17px; font-weight: 500; }
.p-diagram__node--primary rect { fill: var(--p-primary-deep); }
.p-diagram__node--primary text { fill: var(--p-white); }
.p-diagram__arrow { fill: none; stroke: var(--p-primary-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; }
.p-trust-grid > div { padding: 32px 20px; background: var(--p-primary-pale); border-radius: var(--p-radius); }
.p-trust-grid dt { color: var(--p-primary-deep); font-size: 28px; line-height: 1.4; font-weight: 700; }
.p-trust-grid dd { margin: 12px 0 0; font-size: 14px; color: var(--p-muted); }
.p-check-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.p-check-list li { display: flex; align-items: flex-start; gap: 20px; padding: 24px 28px; background: var(--p-primary-pale); border-radius: var(--p-radius); font-size: 20px; font-weight: 700; }
.p-check-list .p-icon { margin-top: 7px; color: var(--p-primary-deep); }
.p-case-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--p-line); }
.p-case-section h2 { font-size: 30px; margin: 8px 0 20px; }
.p-filters { margin-bottom: 48px; padding-block: 24px; border-block: 1px solid var(--p-line); }
.p-filters__row { display: flex; align-items: flex-start; gap: 24px; }
.p-filters__row + .p-filters__row { margin-top: 20px; }
.p-filters__label { flex: 0 0 60px; padding-top: 9px; font-weight: 700; }
.p-filter-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-filter-links a { display: block; padding: 8px 18px; border: 1px solid var(--p-line); border-radius: var(--p-radius); background: var(--p-bg-soft); color: var(--p-text); font-size: 14px; }
.p-filter-links a:hover, .p-filter-links a[aria-current] { border-color: var(--p-primary-deep); background: var(--p-primary-deep); color: var(--p-white); }
.p-faq details { border-top: 1px solid var(--p-line); }
.p-faq details:last-child { border-bottom: 1px solid var(--p-line); }
.p-faq summary { display: flex; align-items: center; gap: 20px; padding: 28px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 20px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq__q { color: var(--p-primary-deep); font-size: 26px; }
.p-faq summary > .p-icon { margin-left: auto; color: var(--p-primary); transform: rotate(90deg); }
.p-faq details[open] summary > .p-icon { transform: rotate(-90deg); }
.p-faq details > p { padding: 0 44px 28px; line-height: 2; color: var(--p-text); }
.p-signature { padding-top: 40px; text-align: right; font-weight: 700; }
.p-base { display: flex; flex-direction: column; gap: 20px; }
.p-base h3 { padding-top: 20px; border-top: 2px solid var(--p-primary); font-size: 24px; }
.p-base address { flex: 1; font-style: normal; color: var(--p-text); }

.p-map-placeholder { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
.p-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 32px; color: var(--p-muted); }
.p-article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--p-line); }
.p-article-nav > a { max-width: 100%; flex: 1 1 180px; }
.p-news__link > .p-icon { margin-left: auto; color: var(--p-primary); }
.p-partner-list { padding-left: 1.3em; }
.p-search-box { margin-bottom: 40px; padding: 24px; background: var(--p-bg-soft); }
.p-search-box .search-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.p-search-box input { max-width: 100%; padding: 12px 16px; border: 1px solid var(--p-line); border-radius: var(--p-radius); font: inherit; }
.p-search-box input[type="submit"] { color: var(--p-white); background: var(--p-primary); cursor: pointer; }
.p-page-content .pagination { margin-top: 48px; }
.p-page-content .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.p-page-content .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.p-page-content .page-numbers.current { color: var(--p-white); background: var(--p-primary-deep); border-color: var(--p-primary-deep); }

/* テーマ側のフォーム上書き。共通モジュールの検証・添付用クラスは残す。 */
.p-contact-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 56px; }
.p-contact-intro h2 { margin-block: 12px; font-size: 26px; }
.p-contact-intro p { color: var(--p-muted); }
.p-contact-intro__tel { display: flex; align-items: center; gap: 16px; font-size: 32px; font-weight: 700; line-height: 1.6; }
.p-mailform { --mf-radius: 6px; --mf-font-size: 16px; line-height: 1.8; max-width: 960px; margin-bottom: 100px; overflow-wrap: anywhere; }
.p-mailform .form__inner { width: 100%; max-width: 100%; margin: 40px 0 0; }
.p-form-progress ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: form-progress; }
.p-form-progress li { padding: 16px; background: var(--p-bg-soft); border-bottom: 3px solid var(--p-line); color: var(--p-muted); font-weight: 700; text-align: center; }
.p-form-progress li::before { counter-increment: form-progress; content: counter(form-progress, decimal-leading-zero); margin-right: 12px; font-family: var(--p-font-en); }
.p-form-progress li[aria-current] { color: var(--p-primary-deep); border-color: var(--p-primary); background: var(--p-primary-pale); }
.p-form-section + .p-form-section { margin-top: 56px; }
.p-form-step { margin: 0 0 32px; padding: 20px 28px; color: var(--p-white); background: var(--p-deep); font-size: 24px; line-height: 1.6; }
.p-mailform .form__listLabel { font-size: 16px; line-height: 1.8; }
.p-mailform .form__listInputBox { margin-top: 16px; }
.p-mailform .hissu { width: 46px; height: 24px; font-size: 13px; line-height: 24px; }
.p-mailform .form__radioLabel, .p-mailform .form__checkLabel { font-size: 16px; line-height: 1.8; }
.p-mailform .form__list { padding-inline: 28px; }
.p-form-options { display: grid; gap: 16px; }
.p-mailform .form__fileBox { flex-wrap: wrap; }
.p-mailform .form__fileName { flex-basis: 180px; }
.p-mailform .form__text { text-align: left; }
.p-mailform .form__link { height: auto; min-height: 64px; padding: 16px 24px; border-radius: var(--p-radius); }
.p-mailform .form__link--back { color: var(--p-primary-deep); background: var(--p-primary-pale); border-color: var(--p-primary-pale); }
.p-mailform .form__input:focus-visible, .p-mailform .form__textarea:focus-visible { outline: 2px solid var(--p-primary); outline-offset: 2px; }
.p-mailform .form__checkLabel::after { content: none; }
.p-form-check { position: absolute; left: 2px; top: 5px; color: var(--p-primary-deep); visibility: hidden; }
.p-mailform .form__checkbox:checked + .form__checkLabel .p-form-check { visibility: visible; }
.p-mailform .check__table { border-color: var(--p-line); }
.p-mailform .check__table th { background: var(--p-bg-soft); }
.p-mailform .p-confirm-group th { width: 100%; background: var(--p-deep); color: var(--p-white); }

/* SP設計への切替は960pxの1本にまとめる。 */
@media (max-width: 960px) {
  .p-menu { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .p-menu__top { height: 60px; padding-left: 20px; }
  .p-menu-toggle--close { height: 60px; }
  .p-menu__inner { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
  .p-menu__photo { grid-row: 1; height: 180px; min-height: 180px; }
  .p-menu__photo::after { inset: 0; background: linear-gradient(180deg, rgba(22,58,62,0.15), rgba(22,58,62,0.8)); }
  .p-menu__caption { inset: auto 20px 16px; font-size: 13px; }
  .p-menu__nav a { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 10px; }
  .p-menu__label { font-size: 11px; }
  .p-menu__name { font-size: 22px; }
  .p-menu__bottom { padding-top: 24px; }
  .p-menu__contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-menu__tel, .p-menu__consult { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-width: 0; min-height: 84px; padding: 12px 8px; border-radius: 6px; text-align: center; }
  .p-menu__tel { border: 1px solid rgba(255,255,255,0.5); }
  .p-menu__tel > .en { font-size: 17px; white-space: nowrap; }
  .p-menu__tel small { font-size: 13px; }
  .p-menu__consult { font-size: 15px; }
  .p-menu__consult .p-icon { display: none; }
  .p-menu__links { gap: 12px 20px; margin-top: 20px; }
  .p-page-heading { min-height: 260px; }
  .p-hero__stats { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-stats__item:nth-child(2) { border-right: 0; }
  .p-stats__item:nth-child(n/**/+3) { border-top: 1px solid var(--p-line); }
  .p-list-card__body > p { font-size: 15px; }

  body { font-size: 15px; }
  .p-container, .site-content { width: min(1200px, calc(100% - 40px)); min-width: 0; }
  .p-main, .p-footer, .p-menu { overflow-wrap: anywhere; }
  .p-hero, .p-about, .p-cta, .p-page-heading { overflow-x: clip; }
  .p-container > *, .p-hero__content > *, .p-hero__trust > p,
  .p-card__band > *, .p-work__body, .p-cta__inner > *, .p-cta__actions > *,
  .p-footer__top > *, .p-footer__base, .p-business__name { min-width: 0; max-width: 100%; }
  .p-cta__actions { width: 100%; flex-shrink: 1; display: grid; grid-auto-flow: row; gap: 14px; }
  .p-stats__item { min-width: 0; gap: 2px; padding: 18px 14px; }
  .p-stats dt, .p-footer__base a { white-space: normal; }
  .p-button { max-width: 100%; gap: 12px; font-size: 15px; }
  .p-cta__mark { width: 100%; }
  .p-cta__mark .p-logo-mark { width: 100%; height: auto; }
  .site-content { margin-block: 40px; }
  .p-sp-only { display: initial; }
  .p-pc-only { display: none; }
  .p-header { height: 60px; }
  .p-header__logo { padding-left: 16px; }
  .p-header__logo .p-logo { height: 26px; }
  .p-header__nav { display: none; }
  .p-mega { display: none; }
  .p-menu-toggle { width: 60px; flex-basis: 60px; margin-left: auto; }
  .p-menu-toggle .p-icon { width: 26px; height: 26px; }
  .p-contact-tab { display: none; }
  .p-contact-bar { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(27,42,46,0.88); backdrop-filter: blur(4px); }
  .p-contact-bar a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 1.5; }
  .p-contact-bar__mail { color: var(--p-ink); background: var(--p-white); }
  .p-contact-bar__mail .p-icon { color: var(--p-primary); }
  .p-contact-bar__tel { color: var(--p-white); background: var(--p-primary); }
  .p-contact-bar .p-icon { width: 16px; height: 16px; }
  .p-contact-bar a:hover { color: var(--p-ink); background: var(--p-primary-pale); }
  .p-section-heading { gap: 12px; margin-bottom: 24px; }
  .p-section-heading__text { gap: 10px; }
  .p-label { font-size: 12px; }
  .p-label--line { gap: 10px; }
  .p-label--line::before { flex-basis: 22px; }
  .p-section-heading__title { font-size: 26px; line-height: 1.4; }
  .p-round-link { width: 60px; height: 60px; }
  .p-round-link .p-icon { width: 22px; height: 22px; }
  .p-round-link--small { width: 28px; height: 28px; }
  .p-round-link--small .p-icon { width: 14px; height: 14px; }

  .p-button__circle { width: 48px; height: 48px; }
  .p-button__circle .p-icon { width: 18px; height: 18px; }
  .p-card__image { height: 150px; }
  .p-card__image .p-image--product { padding: 16px; }
  .p-card__band { gap: 12px; padding: 22px 24px; }
  .p-card__title { font-size: 17px; }
  .p-card__band .p-icon { width: 20px; height: 20px; }
  .p-hero { height: auto; min-height: 620px; }
  .p-hero__photo .p-image { object-position: 62% 50%; }
  .p-hero__veil { background: linear-gradient(180deg, rgba(14,36,40,0.3), rgba(14,36,40,0.62) 55%, rgba(14,36,40,0.82)); }
  .p-hero__mark--desktop { display: none; }
  .p-hero__mark--mobile { display: block; width: 100%; right: 0; left: auto; transform: none; }
  .p-hero__mark--mobile .p-logo-mark { width: 100%; max-width: 100%; height: auto; }
  .p-hero__inner { min-height: 620px; }
  .p-hero__content { gap: 16px; width: 100%; padding-block: 112px 28px; }
  .p-hero .p-label { font-size: 12px; letter-spacing: 0.16em; }
  .p-hero__title { font-size: 28px; text-indent: -0.5em; padding-left: 0.5em; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
  .p-hero__lead { font-size: 15px; line-height: 1.8; }
  .p-hero__trust { gap: 10px; padding-top: 12px; }
  .p-hero__trust .p-icon { width: 18px; height: 18px; }
  .p-hero__trust p { font-size: 15px; line-height: 1.8; }
  .p-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 2px; }
  .p-hero__actions .p-button__circle { width: 44px; height: 44px; }

  .p-stats dt { font-size: clamp(15px, 4.359vw, 17px); }
  .p-stats dd { font-size: 13px; letter-spacing: 0; }
  .p-about__inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
  .p-about__photo { order: -1; height: 240px; margin-right: 0; }
  .p-about__photo::after { background: linear-gradient(180deg, transparent 40%, var(--p-deep)); }
  .p-about__inset { display: none; }
  .p-about__content { gap: 18px; padding: 24px 20px 0; }
  .p-about__title { font-size: 26px; line-height: 1.45; }
  .p-about__body { font-size: 15px; line-height: 1.9; }
  .p-about__outline { left: 16px; top: 168px; font-size: 56px; -webkit-text-stroke-color: rgba(255,255,255,0.45); }
  .p-about__bases { position: static; gap: 4px; padding: 20px 22px; margin: 24px 20px 48px; }
  .p-about__bases .p-label { font-size: 12px; }
  .p-about__bases p { font-size: 15px; line-height: 1.8; }
  .p-solutions, .p-works, .p-movie { padding-top: 64px; }
  .p-solutions__grid { grid-template-columns: 1fr; gap: 16px; }
  .p-solutions__more { gap: 8px; margin-top: 24px; font-size: 13px; }
  .p-solutions__more a { gap: 8px; }
  .p-business { margin-top: 64px; padding-block: 56px; }
  .p-business__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-bottom: 24px; }
  .p-business__photo { height: 100px; }
  .p-business__photo .p-image--product { padding: 10px; }
  .p-business__list { grid-template-columns: 1fr; }
  .p-business__item:nth-last-child(-n/**/+3) { border-bottom: 0; }
  .p-business__item:last-child { border-bottom: 1px solid var(--p-ink); }
  .p-business__link { gap: 12px; padding: 20px 4px; }
  .p-business__number { font-size: 13px; }
  .p-business__name { font-size: 15px; }
  .p-badge { padding: 2px 6px; font-size: 13px; }
  .p-header__pickup { display: none; }
  .p-pickup { margin-top: 64px; }
  .p-pickup__main { flex-direction: column; }
  .p-pickup__photo { flex: none; min-height: 0; height: 200px; }
  .p-pickup__body { padding: 24px; gap: 12px; }
  .p-pickup__title { font-size: 21px; }
  .p-partner-band { margin-top: 64px; }
  .p-partner-band__card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .p-partner-band__title { font-size: 21px; }
  .p-partner-band__link { padding: 12px 22px; }
  .p-pickup__lead { font-size: 15px; }
  .p-works__grid { grid-template-columns: 1fr; gap: 24px; }
  .p-work { flex-direction: column; align-items: stretch; gap: 16px; }
  .p-work__image { width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10; flex-shrink: 0; }
  .p-work__image .p-image--product { padding: 12px; }
  .p-work__body { gap: 8px; }
  .p-work__terms { font-size: 13px; }
  .p-work__title { font-size: 15px; line-height: 1.5; }
  .p-empty { padding: 24px 20px; }
  .p-strengths { margin-top: 64px; padding-block: 56px; }
  .p-strengths__inner, .p-news__inner { grid-template-columns: 1fr; gap: 20px; }
  .p-strengths__intro .p-section-heading { margin-bottom: 10px; }
  .p-strengths__intro > p { font-size: 15px; line-height: 1.8; }
  .p-strengths__intro .p-button { margin-top: 20px; font-size: 15px; }
  .p-strengths__item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .p-strengths__number { font-size: 24px; }
  .p-strengths__item h3 { font-size: 17px; }
  .p-strengths__item p { margin-top: 6px; font-size: 15px; line-height: 1.8; }
  .p-news { padding-block: 64px; }
  .p-news .p-section-heading { margin-bottom: 0; }
  .p-news__link { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 20px; }
  .p-news__meta { gap: 10px; }
  .p-news__date { font-size: 13px; }
  .p-news__category { max-width: none; padding: 2px 8px; font-size: 13px; }
  .p-news__title { font-size: 16px; line-height: 1.8; }
  .p-cta { padding-block: 56px; }
  .p-cta__inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .p-cta__text { gap: 10px; }
  .p-cta .p-cta__title { font-size: 24px; line-height: 1.45; letter-spacing: 0.02em; }
  .p-cta__text > p:last-child:not(.p-label) { margin: 0; font-size: 15px; line-height: 1.8; }

  .p-cta__action { justify-self: stretch; flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; max-width: none; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; text-align: left; font-size: 15px; }
  .p-cta__action span:last-child { flex: 1; }
  .p-cta__action .p-button__circle { width: 56px; height: 56px; flex-shrink: 0; }
  .p-cta__action .p-icon { width: 22px; height: 22px; }
  .p-cta__action small { font-size: 13px; }
  .p-page-heading__inner { padding-block: 28px 24px; }
  .p-page-heading__title { font-size: 28px; }
  .p-page-heading .breadcrumbs { margin-top: 24px; font-size: 13px; }
  .p-page-content { padding-block: 48px 64px; }

  .p-intro { margin-bottom: 28px; font-size: 15px; }
  .p-section { margin-top: 56px; }
  .p-title { font-size: 26px; }
  .p-prose > * + * { margin-top: 20px; }
  .p-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-feature-photo--portrait { max-width: 350px; }
  .p-card-grid, .p-card-grid--two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .p-card-grid--two .p-card__image { height: auto; aspect-ratio: 16 / 10; }
  .p-card-grid--two .p-card__title { font-size: 18px; }
  .p-card-grid--compact .p-card__image { height: 150px; }
  .p-list-card__body { padding: 20px; }
  .p-list-card__title { font-size: 18px; }
  .p-card__lead { font-size: 15px; }
  .p-tag { font-size: 13px; }
  .p-callout { margin-top: 40px; padding: 28px 24px; gap: 16px; }
  .p-callout h2 { font-size: 20px; }
  .p-link-list { grid-template-columns: minmax(0, 1fr); }
  .p-link-list a { padding-block: 20px; }
  .p-spec-table { margin-top: 28px; font-size: 15px; }
  .p-spec-table caption { font-size: 22px; }
  .p-spec-table th, .p-spec-table td { display: block; width: 100%; padding: 16px 20px; }
  .p-spec-table th { border-bottom: 0; }
  .p-reason + .p-reason { margin-top: 56px; padding-top: 48px; }
  .p-reason--reverse .p-feature-photo, .p-reason--reverse .p-prose { grid-column: auto; grid-row: auto; }
  .p-diagram { margin-top: 28px; padding: 20px 10px; }
  .p-diagram__svg--desktop { display: none; }
  .p-diagram__svg--mobile { display: block; max-width: 390px; margin-inline: auto; }
  .p-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .p-trust-grid > div { padding: 24px 14px; }
  .p-trust-grid dt { font-size: 22px; }
  .p-trust-grid dd { font-size: 13px; }
  .p-check-list li { gap: 14px; padding: 20px; font-size: 16px; }
  .p-check-list .p-icon { margin-top: 3px; }
  .p-case-section { margin-top: 32px; padding-top: 24px; }
  .p-case-section h2 { font-size: 24px; }
  .p-filters { margin-bottom: 32px; }
  .p-filters__row { flex-direction: column; gap: 12px; }
  .p-filters__label { flex-basis: auto; padding-top: 0; }
  .p-filter-links { gap: 8px; }
  .p-filter-links a { padding: 8px 12px; font-size: 13px; }
  .p-faq summary { gap: 12px; padding-block: 20px; font-size: 16px; }
  .p-faq details > p { padding: 0 0 24px; }
  .p-base h3 { font-size: 22px; }
  .p-news__link > .p-icon { display: none; }
  .p-search-box { padding: 20px; }
  .p-search-box label { min-width: 0; width: 100%; }
  .p-search-box input[type="search"] { width: 100%; }
  .p-page-content .archive__layout { grid-template-columns: minmax(0, 1fr); }
  .p-contact-intro { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 40px; }
  .p-contact-intro h2 { font-size: 22px; }
  .p-contact-intro__tel { font-size: 28px; gap: 12px; }
  .p-mailform { margin-bottom: 64px; }
  .p-mailform .form__inner { margin-top: 28px; }
  .p-form-progress li { padding: 12px 4px; font-size: 13px; }
  .p-form-progress li::before { margin-right: 6px; }
  .p-form-section + .p-form-section { margin-top: 40px; }
  .p-form-step { padding: 16px 20px; font-size: 20px; margin-bottom: 24px; }
  .p-mailform .form__list { padding-inline: 0; }
  .p-mailform .form__fileBox { gap: 12px; padding: 16px; }
  .p-mailform .form__fileName { flex-basis: 100%; }
  .p-mailform .form__radioLabel { padding-right: 0; }
  .p-mailform .check__table th, .p-mailform .check__table td { display: block; width: 100%; padding: 16px; }
}

/* 動きを減らす設定では開閉・項目・写真のアニメーションを省略する。 */
@media (prefers-reduced-motion: reduce) {
  .p-menu, .p-menu::backdrop, .p-menu__nav li, .p-menu__name::after, .p-menu__image { transition: none; }
  .p-menu__nav li { transform: none; }
}

/* ---- フッター（ブランド＋サイトマップ／拠点／最下段の3段構成） ---- */
.p-footer { padding: 72px 0 32px; border-top: 1px solid var(--p-line); background: var(--p-white); color: var(--p-text); }
.p-footer .p-label { margin: 0 0 18px; color: var(--p-primary-deep); font-size: 12px; letter-spacing: 0.22em; }
.p-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px 80px; align-items: start; }
.p-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.p-footer__logo { align-self: flex-start; }
.p-footer__logo .p-logo { height: 34px; width: auto; }
.p-footer__tagline { margin: 0; color: var(--p-muted); font-size: 14px; line-height: 1.8; }
.p-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.p-footer__nav a { display: inline-flex; align-items: center; gap: 10px; color: var(--p-ink); font-size: 15px; font-weight: 700; line-height: 1.6; }
.p-footer__nav a::before { content: ""; width: 14px; height: 1px; background: var(--p-primary); transition: width 0.2s ease; }
.p-footer__nav a:hover::before { width: 22px; }
.p-footer__offices { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--p-line); }
.p-footer__bases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.p-footer__base { display: flex; flex-direction: column; gap: 2px; color: var(--p-muted); font-size: 14px; font-style: normal; line-height: 1.9; }
.p-footer__base strong { display: block; margin-bottom: 8px; color: var(--p-ink); font-size: 16px; line-height: 1.5; }
.p-footer__base span { display: block; }
.p-footer__postal { font-size: 13px; }
.p-footer__tel { margin-top: 6px; }
.p-footer__tel a { color: var(--p-ink); font-weight: 700; }
.p-footer__tel small { display: block; color: var(--p-muted); font-size: 13px; }
.p-footer__bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: 13px; }
.p-footer__bottom a { color: inherit; }
.p-footer__bottom small { font-size: inherit; }
.p-footer__partner { margin-left: auto; }
.p-footer a:hover { color: var(--p-primary-dark); }
@media (max-width: 960px) {
  .p-footer { padding: 44px 0 calc(96px + env(safe-area-inset-bottom, 0px)); overflow-wrap: anywhere; }
  .p-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .p-footer__logo .p-logo { height: 28px; }
  .p-footer__nav ul { gap: 12px 20px; }
  .p-footer__offices { margin-top: 36px; padding-top: 28px; }
  .p-footer__bases { grid-template-columns: 1fr; gap: 24px; }
  .p-footer__bottom { gap: 8px 20px; margin-top: 36px; padding-top: 18px; }
  .p-footer__partner { flex-basis: 100%; margin-left: 0; }
}

/* ---- ステップ／工程のタイムライン（カード型をやめ、線でつなぐ） ---- */
.p-flow-steps, .p-process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.p-process { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
.p-flow-steps::before, .p-process::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--p-line); }
.p-process::before { top: 10px; }
.p-flow-steps li, .p-process li { position: relative; min-width: 0; padding: 0 8px; text-align: center; }
.p-flow-steps li > .p-icon, .p-process li > .p-icon { display: none; }
.p-flow-steps__number { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--p-primary); border-radius: 50%; background: var(--p-white); color: var(--p-primary-deep); font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.p-flow-steps li:first-child .p-flow-steps__number { background: var(--p-primary); color: var(--p-white); }
.p-flow-steps h2 { margin: 22px 0 10px; font-size: 20px; line-height: 1.5; }
.p-flow-steps p { margin: 0; color: var(--p-text); font-size: 15px; line-height: 1.85; text-align: left; }
.p-process li::before { content: ""; display: block; width: 20px; height: 20px; margin: 0 auto; border: 2px solid var(--p-primary); border-radius: 50%; background: var(--p-white); }
.p-process li:first-child::before { background: var(--p-primary); }
.p-process .p-label { margin: 18px 0 6px; }
.p-process h3 { margin: 18px 0 0; font-size: 20px; line-height: 1.5; }
.p-process .p-label + h3 { margin-top: 0; }
.p-process p { margin: 8px 0 0; color: var(--p-text); font-size: 15px; line-height: 1.8; }
.p-process-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 16px 20px; border-radius: var(--p-radius); background: var(--p-primary-pale); color: var(--p-ink); font-size: 15px; font-weight: 700; text-align: center; }
@media (max-width: 960px) {
  .p-flow-steps, .p-process { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .p-flow-steps::before, .p-process::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; }
  .p-process::before { left: 9px; }
  .p-flow-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 0; text-align: left; }
  .p-flow-steps h2 { grid-column: 2; margin: 14px 0 6px; font-size: 19px; }
  .p-flow-steps p { grid-column: 2; }
  .p-process li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; padding: 0; text-align: left; }
  .p-process li::before { margin: 4px 0 0; }
  .p-process .p-label, .p-process h3, .p-process p { grid-column: 2; }
  .p-process .p-label { margin: 0 0 4px; }
  .p-process h3 { margin: 0; font-size: 19px; }
  .p-process-note { justify-content: flex-start; text-align: left; }
}
