/*
Theme Name: DIGITAL STUDIO
Author: DIGITAL STUDIO
Description: digital-s.jp 専用テーマ。年表と数字を背骨にした会社案内と、制作事例・作品集。
Version: 1.0.0
Requires PHP: 8.0
Text Domain: digital-studio
*/

/* Layout: 落ち着いた会社案内。写真は「仕上がりの証拠」として大きく、文字は事実だけ */
:root {
  --paper: #f3efe7;
  --card: #ffffff;
  --paper-alt: #fbf9f4;
  --ink: #18212d;
  --sub: #5b6573;
  --rule: #e2dccf;
  --brass: #9a7a45;
  --gold: #d8b97f;
  --navy: #132033;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.95; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 700; line-height: 1.5; letter-spacing: .06em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); }
p { margin: 0; }
.nw { white-space: nowrap; }
.eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--brass); font-weight: 700; margin: 0; }
.lead { color: var(--sub); max-width: 42em; }
.muted { color: var(--sub); }
.note { font-size: 13px; color: var(--sub); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ボタン */
.btn { display: inline-block; text-decoration: none; background: var(--navy); color: #fff; padding: 12px 26px; font-weight: 700; letter-spacing: .1em; font-size: 14px; border: 1px solid var(--navy); line-height: 1.6; }
.btn:hover { background: #22324b; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #e3c890; }
.btn.line-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* ヘッダー */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(243,239,231,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.logo { text-decoration: none; display: grid; line-height: 1.3; margin: 0; }
.logo b { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; }
.logo small { font-size: 11px; color: var(--sub); letter-spacing: .08em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-size: 14px; }
.nav-list a { text-decoration: none; color: var(--sub); }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a { color: var(--ink); }
.nav-list li { position: relative; }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; left: -16px; background: #fff; list-style: none; margin: 0; padding: 10px 0; min-width: 220px; box-shadow: 0 14px 40px rgba(19,32,51,.14); }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 6px 18px; }
.nav .btn { padding: 8px 18px; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); font: inherit; font-size: 12px; letter-spacing: .2em; padding: 6px 12px; cursor: pointer; color: var(--ink); }

/* トップ：ヒーロー */
.hero { position: relative; min-height: clamp(560px, 82vh, 780px); color: #fff; overflow: hidden; background: var(--navy); display: grid; align-items: center; padding-block: 120px 160px; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease; }
.hero .bg img.on { opacity: 1; animation: push 9s ease-out forwards; }
@keyframes push { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,32,51,.92) 0%, rgba(19,32,51,.7) 38%, rgba(19,32,51,.1) 75%), linear-gradient(0deg, rgba(19,32,51,.7) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(30px, 4.4vw, 62px); line-height: 1.45; margin-top: 18px; color: #fff; }
.hero .lead { margin-top: 26px; color: rgba(255,255,255,.85); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero .slide-cap { position: absolute; z-index: 1; right: var(--gr); bottom: 140px; font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.75); text-align: right; }
.hero .slide-cap b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .06em; color: #fff; }
.hero .bar { position: absolute; z-index: 1; left: var(--gl); right: var(--gr); bottom: 118px; height: 2px; background: rgba(255,255,255,.18); max-width: 1180px; margin: 0 auto; }
.hero .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.hero .bar i.run { animation: fill 6.5s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* トップ：数字 */
.facts { position: relative; z-index: 2; margin-top: -88px; }
.facts .row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); box-shadow: 0 24px 60px rgba(19,32,51,.16); }
.fact { display: grid; gap: 6px; padding: 26px 24px; border-left: 1px solid var(--rule); align-content: start; }
.fact:first-child { border-left: 0; }
.fact b { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.fact b small { font-size: 14px; margin-left: 4px; color: var(--sub); }
.fact span { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* セクション */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec.alt { background: var(--paper-alt, #fbf9f4); }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; }
.sec-head h2, .entry h2 { position: relative; padding-bottom: 16px; }
.sec-head h2::after, .entry h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 56px; background: var(--brass); transform-origin: left; }
.more-row { margin-top: 36px; }

/* 事業 */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.svc { background: var(--card); display: grid; grid-template-rows: auto 1fr; text-decoration: none; overflow: hidden; }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.svc:hover img { transform: scale(1.05); }
.svc .in { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.svc .no { font-size: 12px; color: var(--brass); letter-spacing: .2em; font-weight: 700; }
.svc .h3 { font-size: clamp(18px, 1.6vw, 21px); }
.svc .d { font-size: 14px; color: var(--sub); line-height: 1.85; }
.svc .more { font-size: 13px; font-weight: 700; color: var(--navy); }

/* カード（事例・作品・子ページ）：画像は端まで、文字は内側に余白をとる */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; text-decoration: none; background: var(--card); border: 1px solid var(--rule); transition: box-shadow .4s, transform .4s; }
.card:hover { box-shadow: 0 18px 44px rgba(19,32,51,.12); transform: translateY(-2px); }
.card-img { display: block; overflow: hidden; background: #e9ecef; aspect-ratio: 3 / 2; position: relative; border-bottom: 1px solid var(--rule); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card.is-video .card-img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(19,32,51,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l8 5-8 5z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.card .tag { padding: 20px 24px 0; }
.card-t { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.6; padding: 6px 24px 0; }
.card-d { font-size: 14px; color: var(--sub); line-height: 1.8; padding: 10px 24px 0; }
.card > :last-child { padding-bottom: 24px; }
.tag { font-size: 12px; color: var(--brass); letter-spacing: .1em; font-weight: 700; }

/* 流れる写真帯 */
.reel { overflow: hidden; display: grid; gap: 8px; padding-block: 8px; }
.reel .track { display: flex; gap: 8px; width: max-content; animation: slide 80s linear infinite; }
.reel .track.rev { animation-direction: reverse; animation-duration: 90s; }
.reel:hover .track { animation-play-state: paused; }
.reel img { height: clamp(140px, 16vw, 220px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 業種・年表・代表 */
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.fields div { background: var(--card); padding: 22px; display: grid; gap: 4px; }
.fields b { font-family: var(--serif); font-size: 17px; }
.fields span { font-size: 13px; color: var(--sub); }
.history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 0 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; background: var(--paper); border: 2px solid var(--brass); border-radius: 50%; }
.timeline time { font-family: var(--serif); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--sub); }
.timeline li.now::before { background: var(--brass); }
.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.photo-slot { aspect-ratio: 4 / 5; background: repeating-linear-gradient(45deg, #e8ebee 0 10px, #f0f2f4 10px 20px); border: 1px dashed #b9c0c8; display: grid; place-items: center; color: var(--sub); font-size: 13px; }

/* 新着 */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news a { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.news a:hover .t { text-decoration: underline; }
.news time { font-variant-numeric: tabular-nums; color: var(--sub); font-size: 14px; }
.news .cat { font-size: 12px; color: var(--brass); font-weight: 700; letter-spacing: .08em; }

/* 問い合わせ帯・フッター */
.contact-band { background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 100px); }
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact-band h2 { color: #fff; margin-top: 10px; }
.contact-band .lead { color: rgba(255,255,255,.75); margin-top: 14px; }
.contact-band .eyebrow { color: var(--gold); }
.contact-band .btn { padding: 16px 40px; font-size: 15px; }
.muted-inv { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 14px; }
.foot { background: #0d1726; color: rgba(255,255,255,.8); padding-block: 48px 24px; font-size: 14px; }
.foot .logo b { color: #fff; }
.foot .muted { color: rgba(255,255,255,.65); margin-top: 12px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.foot-nav .sub-menu { display: grid; grid-template-columns: 1fr; padding-left: 0; margin-top: 4px; }
.foot-nav .sub-menu a { color: rgba(255,255,255,.6); font-size: 13px; }
.foot-nav a { color: #fff; text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.5); }

/* 下層ページの見出し */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-head.has-img { padding-block: clamp(80px, 11vw, 150px); }
.page-head .ph-bg { position: absolute; inset: 0; }
.page-head .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,32,51,.92) 0%, rgba(19,32,51,.7) 45%, rgba(19,32,51,.25) 100%); }
.page-head .wrap { position: relative; z-index: 1; display: grid; gap: 14px; }
.page-head .eyebrow { color: var(--gold); }
.page-head h1 { font-size: clamp(28px, 3.6vw, 48px); color: #fff; }
.page-head .lead { color: rgba(255,255,255,.82); }
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "／"; margin-right: 8px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }

/* 本文 */
.entry { padding-block: clamp(48px, 6vw, 80px); }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { margin-top: 2.4em; }
.entry h3 { margin-top: 2em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .3em; }
.entry a { color: var(--navy); }
.entry table { border-collapse: collapse; width: 100%; }
.entry th, .entry td { border: 1px solid var(--rule); padding: 12px 16px; text-align: left; vertical-align: top; }
.entry th { background: #f1ece2; width: 10em; font-weight: 700; }
.entry .wp-block-table { overflow-x: auto; }
.entry .ds-grid th { width: auto; white-space: nowrap; }
.entry .ds-grid td { font-variant-numeric: tabular-nums; }
.entry .ds-grid table { min-width: 520px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry .wp-block-image img, .entry .wp-block-gallery img { border: 1px solid var(--rule); }
.entry .wp-block-columns { gap: 28px; }
.entry .wp-block-buttons .wp-block-button__link { background: var(--navy); color: #fff; border-radius: 0; font-weight: 700; letter-spacing: .1em; padding: 12px 26px; }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry .ds-box { background: var(--card); border: 1px solid var(--rule); padding: 26px 28px; }
.entry .ds-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.entry .ds-points li { background: var(--card); padding: 20px 22px; margin: 0; }
.entry .ds-points li strong { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.entry .wp-block-embed { margin-block: 2em; }
.children { padding-bottom: clamp(56px, 7vw, 96px); }

/* 事例・作品の詳細 */
.case-body { padding-top: clamp(40px, 5vw, 64px); }
.case-hero { margin: 0; }
.case-hero img { width: 100%; border: 1px solid var(--rule); }
.case-body .entry { max-width: 820px; }
.related { padding-bottom: clamp(56px, 7vw, 96px); display: grid; gap: 28px; }
.h-sm { font-size: 20px; }
.work-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; padding-block: clamp(40px, 5vw, 64px); align-items: start; }
.work-info .entry { padding-block: 20px 0; }
.spec { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; border-top: 1px solid var(--rule); padding-top: 16px; }
.spec dt { color: var(--sub); }
.spec dd { margin: 0; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(19,32,51,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l8 5-8 5z'/%3E%3C/svg%3E") center / 36px no-repeat; }
.yt:hover .yt-play { background-color: var(--brass); }
.post-body { max-width: 820px; padding-top: clamp(32px, 4vw, 48px); }
.post-meta { color: var(--sub); font-size: 14px; }
.post-thumb { margin: 20px 0 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding-block: 24px 64px; font-size: 14px; }
.archive-body { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs a { text-decoration: none; border: 1px solid var(--rule); background: var(--card); padding: 6px 16px; font-size: 14px; }
.tabs a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--rule); text-decoration: none; }
.page-numbers.current { background: var(--navy); color: #fff; }

/* ギャラリーの拡大表示 */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(13,23,38,.96); display: grid; place-items: center; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lb-cap { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 12px; text-align: center; }
.lb button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; width: 44px; height: 44px; cursor: pointer; font-size: 18px; }
.lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; }

/* 動き */
@media (prefers-reduced-motion: no-preference) {
  .sec-head h2.in::after, .entry h2.in::after { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .bg img.on, .reel .track, .hero .bar i.run { animation: none; }
  .hero .bar i { width: 100%; }
}

/* スマホ・タブレット */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 16px var(--gr) 24px var(--gl); flex-direction: column; align-items: stretch; gap: 16px; }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 4px; font-size: 16px; }
  .nav-list .sub-menu { display: block; position: static; box-shadow: none; background: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav-list .sub-menu a { padding: 2px 0; font-size: 14px; }
  .hero { padding-block: 96px 150px; }
  .hero .bg::after { background: linear-gradient(0deg, rgba(19,32,51,.92) 0%, rgba(19,32,51,.55) 60%, rgba(19,32,51,.35) 100%); }
  .hero .slide-cap { display: none; }
  .facts .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0; border-top: 1px solid var(--rule); }
  .services, .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history, .profile, .contact-band .wrap, .work-body, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .entry .ds-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .services, .cards { grid-template-columns: minmax(0, 1fr); }
  .news a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-nav ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .entry th { width: auto; display: block; }
  .entry td { display: block; }
}

/* お問い合わせフォーム（Contact Form 7） */
.entry .wpcf7 { background: var(--card); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.wpcf7 form > p { margin: 0 0 22px; }
.wpcf7 label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; color: var(--ink); background: #fbfbfc;
  border: 1px solid #c9ced6; border-radius: 4px; padding: 14px 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
.wpcf7 select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235b6573' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 44px; }
.wpcf7 textarea { min-height: 220px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,32,51,.12); background: #fff; }
.wpcf7 input[type=submit] { appearance: none; background: var(--navy); color: #fff; border: 0; border-radius: 0; padding: 16px 56px; font: inherit; font-weight: 700; letter-spacing: .14em; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #22324b; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7 fieldset.ds-check { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.wpcf7 fieldset.ds-check legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.wpcf7 .ds-check .wpcf7-checkbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.wpcf7 .ds-check .wpcf7-list-item { margin: 0; }
.wpcf7 .ds-check .wpcf7-list-item label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; line-height: 1.5; cursor: pointer; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; height: 100%; box-sizing: border-box; }
.wpcf7 .ds-check .wpcf7-list-item label:hover { border-color: var(--navy); }
.wpcf7 .ds-check .wpcf7-list-item label:has(input:checked) { border-color: var(--navy); background: #eef1f6; }
.wpcf7 .ds-check input[type=checkbox] { margin: 0; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.case-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.wpcf7-not-valid-tip { font-size: 13px; font-weight: 400; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-width: 1px; font-size: 14px; }
