/*
 * Web制作事業サブサイト（固定ページテンプレート page-web-shukyaku.php）専用CSS。
 * サイト共通のTailwind（style.css / tailwind-generated.css）とは独立して読み込む。
 * 差し色は --accent / --accent-deep の2変数にまとめてあるので、色の方向性を
 * 変える際はここだけ書き換えれば全体に反映される。
 */
:root {
  --ink: #171a17;
  --ink-soft: #272c27;
  --paper: #f4f6f1;
  --white: #ffffff;
  --line: #d9ddd5;
  --muted: #6d736b;
  /* ─ 差し色（現在：コーポレートブルー案①・ライムに近づけて明るめに調整）─ */
  --accent: #5BC8FF;
  --accent-deep: #0F8DE0;
  --accent-ink: #0a2540; /* 差し色の上に乗せる濃色テキスト用 */
  --max: 1320px;
  --gutter: clamp(22px, 5.1vw, 78px);
  --ease: cubic-bezier(.22,.7,.2,1);
}
* { box-sizing: border-box; }

/* reCAPTCHAの浮遊バッジを非表示（本ページにフォームはなく、サイト全体のスクリプト読み込みに伴う表示のため） */
.grecaptcha-badge { visibility: hidden !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 16px;
  background: var(--accent); color: var(--ink); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0;
  font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; display: block; width: 24px; height: 3px; background: var(--accent-deep); }
.section { padding-block: clamp(84px, 11vw, 156px); }
.section-head { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; gap: 32px; align-items: start; margin-bottom: clamp(40px, 6vw, 76px); }
.section-label { padding-top: 13px; }
.section-label .eyebrow { color: var(--muted); }
.section-label .index {
  display: block; margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: var(--accent-deep);
}
.expertise .section-label .index { color: var(--accent); }
h2 { margin: 0; font-size: clamp(34px, 5.2vw, 70px); line-height: 1.24; letter-spacing: -.055em; font-weight: 850; }
.section-intro { max-width: 690px; margin: 22px 0 0; color: #5d635b; font-size: clamp(14px, 1.4vw, 16px); line-height: 2; }
.arrow-link { display: inline-flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.arrow-link .arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; transition: background .25s var(--ease), transform .25s var(--ease); }
.arrow-link:hover .arrow { background: var(--accent); color: var(--ink); transform: translateX(4px); }
.arrow svg { width: 15px; height: 15px; }

/* Header */
body.menu-open .site-header { background: var(--paper); }
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(244,246,241,.94);
  border-bottom: 1px solid rgba(23,26,23,.1);
  /* backdrop-filterはfilter系プロパティのため、position:fixedな子孫(.nav)の
     containing blockをビューポートではなくこの要素自身にしてしまい、
     スマホメニューの位置ズレ・透過の原因になっていたため削除 */
}
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 5px; }
.brand-text strong { font-size: 16px; letter-spacing: .02em; }
.brand-text span { font-size: 8px; font-weight: 800; letter-spacing: .17em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 36px); }
.nav a:not(.nav-contact) { position: relative; font-family: 'Space Grotesk', "Noto Sans JP", sans-serif; font-size: 11px; color: #454a44; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .45s var(--ease); }
.nav a:not(.nav-contact):hover::after { transform: scaleX(1); }
.nav-contact { display: inline-flex; align-items: center; gap: 14px; padding: 14px 17px; background: var(--ink); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .03em; transition: background .2s, color .2s; }
.nav-contact:hover { background: var(--accent); color: var(--ink); }
.nav-contact span { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; border: 0; background: var(--ink); color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; margin: 5px auto; transition: transform .2s; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(65px, 7.8vw, 110px) 0 clamp(78px, 8vw, 112px); }
.hero::before {
  position: absolute; z-index: -2; inset: 0; content: "";
  background-image: linear-gradient(rgba(23,26,23,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,26,23,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 96%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); align-items: center; gap: clamp(25px, 5vw, 78px); }
.hero-index { display: inline-block; margin-bottom: 14px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 2.8vw, 36px); color: var(--accent-deep); }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 30px; color: #5c6359; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-kicker .pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #c5ccc0; color: var(--ink); letter-spacing: .08em; }
.hero-kicker .pill::before { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; content: ""; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.05vw, 86px); font-weight: 900; line-height: 1.19; letter-spacing: -.075em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .accent { position: relative; z-index: 0; display: inline-block; }
.hero h1 .accent::after { content: ""; position: absolute; z-index: -1; left: -.03em; right: -.08em; height: .16em; bottom: -.03em; background: var(--accent); transform: skewX(-9deg); }
.hero-lead { max-width: 530px; margin: 30px 0 0; color: #565d54; font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 54px; padding: 0 20px; border: 1px solid var(--ink); font-size: 14px; font-weight: 800; transition: transform .25s var(--ease), background .25s, color .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--white); }
.button .button-arrow { font-size: 18px; line-height: 1; }
.hero-visual { min-height: 510px; position: relative; }
.visual-meta { position: absolute; top: 0; right: 7px; display: flex; gap: 14px; align-items: center; font: 800 9px/1.2 'Space Grotesk', Arial, sans-serif; letter-spacing: .14em; color: #737a70; }
.visual-meta b { color: var(--ink); }
.visual-board { position: absolute; inset: 34px 0 22px 18px; overflow: hidden; background: var(--ink); box-shadow: 22px 22px 0 rgba(23,26,23,.07); }
.board-top { display: flex; justify-content: space-between; align-items: center; height: 48px; padding-inline: 21px; border-bottom: 1px solid rgba(255,255,255,.17); color: #e8ebe5; font: 700 8px/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .17em; }
.board-top .board-status { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.board-status::before { content: ""; display: block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.board-content { position: relative; padding: clamp(23px, 3vw, 39px); height: calc(100% - 48px); }
.board-small { margin: 0; color: #b7beb3; font: 700 9px/1.5 'Space Grotesk', Arial, sans-serif; letter-spacing: .2em; }
.board-heading { margin: 17px 0 25px; max-width: 330px; color: white; font-size: clamp(27px, 3.4vw, 46px); font-weight: 900; line-height: 1.12; letter-spacing: -.05em; }
.board-heading span { color: var(--accent); }
.board-lines { display: grid; gap: 7px; width: 63%; }
.board-lines i { display: block; height: 4px; background: rgba(255,255,255,.18); }
.board-lines i:nth-child(2) { width: 81%; }
.board-lines i:nth-child(3) { width: 54%; }
.board-cta { display: inline-flex; gap: 20px; align-items: center; margin-top: 23px; padding: 12px 15px; background: var(--accent); color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.board-cta span { font-size: 15px; }
.board-graphic { position: absolute; right: 0; bottom: 0; width: 42%; height: 59%; background: var(--accent); }
.board-graphic::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(23,26,23,.3); }
.board-graphic::after { content: "M"; position: absolute; right: 13px; bottom: -29px; font: 900 clamp(110px, 15vw, 210px)/1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.12em; color: var(--ink); }
.board-chart { position: absolute; right: 25px; top: 23px; width: 36%; height: 34%; border-bottom: 1px solid rgba(255,255,255,.4); border-left: 1px solid rgba(255,255,255,.4); }
.board-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.board-chart path { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.board-chart circle { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.floating-tag { position: absolute; right: -16px; top: 102px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: white; box-shadow: 0 12px 36px rgba(0,0,0,.12); font-size: 9px; font-weight: 850; letter-spacing: .07em; transform: rotate(3deg); }
.floating-tag strong { display: grid; place-items: center; width: 24px; height: 24px; background: var(--accent); color: var(--ink); font-size: 14px; }
.floating-index { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 11px; font: 800 9px/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .14em; color: #6c7468; }
.floating-index::before { content: ""; width: 42px; height: 1px; background: var(--ink); }

/* Moving type strip */
.marquee { overflow: hidden; background: var(--accent); border-block: 1px solid var(--ink); color: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 44px; flex-shrink: 0; padding: 26px 22px; font: 900 clamp(20px, 2.6vw, 30px)/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .1em; }
.marquee-group .mark { display: inline-block; width: 13px; height: 13px; background: var(--ink); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.service-card { grid-column: span 2; position: relative; min-height: 260px; padding: 26px 26px 24px; border: 1px solid var(--line); background: #fff; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; min-height: 230px; }
.service-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 7px 7px 0 var(--accent); }
.service-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; color: #777f74; font: 800 10px/1.3 'Space Grotesk', Arial, sans-serif; letter-spacing: .13em; }
.service-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #cbd1c7; color: var(--ink); }
.service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 28px 0 10px; font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.04em; line-height: 1.3; }
.service-card p { max-width: 450px; margin: 0; color: #4d554b; font-size: 14.5px; line-height: 1.8; }
/* カード右上の極細の十字（＋）。図面・照準器を思わせる控えめな意匠 */
.service-cross { position: relative; flex-shrink: 0; width: 14px; height: 14px; color: var(--ink); opacity: .45; transition: transform .45s var(--ease), color .25s, opacity .25s; }
.service-cross::before, .service-cross::after { content: ""; position: absolute; background: currentColor; }
.service-cross::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.service-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.service-card:hover .service-cross { color: var(--accent-deep); opacity: 1; transform: rotate(90deg); }
.service-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; padding-top: 15px; border-top: 1px solid #e7eae4; color: #7a8177; font: 700 9px/1.4 'Space Grotesk', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.service-link { flex-shrink: 0; color: var(--ink); font: 800 12px/1.4 'Noto Sans JP', sans-serif; letter-spacing: .04em; text-transform: none; border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s; }
.service-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
/* Industry knowledge */
.expertise { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.expertise::after { content: "RULES / CONTEXT / TRUST"; position: absolute; right: -10px; bottom: -26px; white-space: nowrap; font: 900 clamp(50px, 10vw, 140px)/1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.07em; color: rgba(255,255,255,.035); pointer-events: none; }
.expertise .section-label .eyebrow { color: #aab3a6; }
.expertise h2 { max-width: 950px; }
.expertise h2 .accent-word { color: var(--accent); }
.expertise .section-intro { color: #b8bfb5; max-width: 760px; }
.expertise-content { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(35px, 7vw, 100px); align-items: start; }
.expertise-statement { font-size: clamp(23px, 3vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.55; }
.expertise-statement small { display: block; margin-bottom: 17px; color: var(--accent); font: 800 10px/1.4 'Space Grotesk', Arial, sans-serif; letter-spacing: .18em; }
.expertise-statement .underline { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.law-panel { border-top: 1px solid #4a5048; }
.law-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 22px 14px; margin: 0 -14px; border-bottom: 1px solid #4a5048; transition: background .2s ease; }
.law-row:hover { background: rgba(255,255,255,.05); }
.law-row .category { padding-top: 3px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; transition: color .2s ease; }
.law-row h3 { margin: 0; font-size: 16px; line-height: 1.5; transition: color .2s ease; }
.law-row p { margin: 7px 0 0; color: #cdd3c9; font-size: 13px; line-height: 1.8; }
.law-row:hover h3 { color: var(--accent); }
.law-row:hover .category { color: var(--white); }
.expertise-foot { margin-top: 40px; color: #a3ab9f; font-size: 12.5px; line-height: 1.85; }

/* Work */
.works { background: var(--paper); }
.works-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 48px 22px; }
.work-card { grid-column: span 6; min-width: 0; }
.work-card.featured { grid-column: span 7; }
.work-card.side { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-visual { display: block; position: relative; overflow: hidden; min-height: 300px; aspect-ratio: 1.36; background: #dfe4d9; border: 1px solid rgba(23,26,23,.08); }
.work-card.featured .work-visual { aspect-ratio: 1.55; min-height: 340px; }
.work-card.side .work-visual { aspect-ratio: .99; min-height: 340px; }
/* 写真の切り替え：ホバーでは即時1に、未ホバー時はスクロール連動の --shot-progress（0〜1、JS側で算出）に追従する */
.work-art { position: absolute; inset: 0; padding: clamp(18px, 3.2vw, 38px); overflow: hidden; opacity: calc(1 - var(--shot-progress, 0)); transition: opacity .3s ease; }
/* balance.様・東亜設備工業様は写真を持たない＜div＞のため対象外。写真を持つ3件だけ＜a＞タグなので、タグで限定する */
a.work-visual:hover .work-art { opacity: 0; }
.work-shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: var(--shot-progress, 0); transition: opacity .3s ease;
}
.work-visual:hover .work-shot { opacity: 1; }
.work-shot-label {
  position: absolute; left: 22px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(2px);
  background: rgba(23,26,23,.5); color: var(--white); font: 700 8.5px/1.2 'Space Grotesk', Arial, sans-serif; letter-spacing: .13em;
  opacity: var(--shot-progress, 0); transition: opacity .3s ease;
}
.work-visual:hover .work-shot-label { opacity: 1; }
.work-art .art-label { position: absolute; left: 24px; top: 22px; z-index: 3; font: 800 9px/1.2 'Space Grotesk', Arial, sans-serif; letter-spacing: .18em; }
.work-art .art-number { position: absolute; right: 22px; top: 17px; z-index: 3; font: 800 9px/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .12em; }
.art-kanzaki { background: #e7e9df; color: #171a17; }
.paper-sheet { position: absolute; top: 21%; left: 12%; width: 52%; height: 73%; background: #f8f8f4; box-shadow: 12px 12px 0 rgba(23,26,23,.1); padding: 12% 8%; }
.paper-sheet .mini-logo { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 900; letter-spacing: .1em; border-bottom: 1px solid #b8beb1; padding-bottom: 9px; }
.paper-sheet .mini-logo span { width: 15px; height: 15px; display: block; border: 1px solid currentColor; transform: rotate(45deg); }
.paper-title { margin-top: 17%; font-size: clamp(16px,2.3vw,29px); font-weight: 900; line-height: 1.45; letter-spacing: -.05em; }
.paper-rules { margin-top: 12%; display: grid; gap: 5px; }
.paper-rules i { display: block; height: 3px; background: #d1d5ca; }
.paper-rules i:nth-child(2) { width: 74%; }
.paper-rules i:nth-child(3) { width: 89%; }
.result-stamp { position: absolute; right: 6%; bottom: 10%; width: clamp(120px, 16vw, 185px); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--accent); color: var(--ink); border-radius: 50%; transform: rotate(10deg); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.result-stamp span { font-size: 13.5px; font-weight: 800; letter-spacing: .08em; }
.result-stamp strong { font-size: clamp(40.5px,6vw,63px); line-height: 1.15; letter-spacing: -.07em; }
.art-balance { background: #dcebfa; color: #0a2540; }
.balance-typography { position: absolute; left: 7%; bottom: 10%; z-index: 2; font-size: clamp(47px, 9.5vw, 132px); line-height: .8; font-weight: 900; letter-spacing: -.1em; }
.balance-typography small { display: block; margin-top: 19px; font: 800 10px/1.5 'Space Grotesk', Arial, sans-serif; letter-spacing: .22em; }
.balance-orb { position: absolute; top: 15%; right: 8%; width: 46%; aspect-ratio: 1; background: var(--accent); border-radius: 50%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.balance-orb::before { content: "180%"; font: 900 clamp(31px,5vw,67px)/1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.08em; color: var(--ink); }
.balance-orb::after { content: "UP"; margin-top: 2px; font: 900 30px/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .06em; color: var(--ink); }
.balance-rings { position: absolute; top: 8%; right: 1%; width: 57%; aspect-ratio: 1; border: 1px solid rgba(10,37,64,.35); border-radius: 50%; }
.art-toa { background: #222923; color: white; }
.toa-grid { position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 30px 30px; }
.toa-big { position: absolute; left: 7%; bottom: 12%; font: 900 clamp(70px,12vw,160px)/.8 'Space Grotesk', Arial, sans-serif; letter-spacing: -.11em; color: var(--accent); }
.toa-big small { display: block; color: white; margin-top: 18px; font: 800 9px/1.5 'Space Grotesk', Arial, sans-serif; letter-spacing: .19em; }
.toa-sticker { position: absolute; top: 16%; right: 4%; width: 34%; aspect-ratio: 1; display: grid; place-items: center; background: var(--accent); color: var(--ink); transform: rotate(8deg); }
.toa-sticker span { font-size: clamp(10px,1.4vw,15px); font-weight: 900; line-height: 1.7; text-align: center; }
.toa-sticker span::before { content: "RECRUIT"; display: block; font: 800 8px/1.5 'Space Grotesk', Arial, sans-serif; letter-spacing: .15em; }
.art-ukai { background: #e2e5e2; color: var(--ink); }
.ukai-frame { position: absolute; inset: 14% 13%; border: 1px solid #9ea69c; }
.ukai-frame::before { content: "司法書士"; position: absolute; left: 12%; top: 14%; writing-mode: vertical-rl; font-size: clamp(25px,4vw,52px); font-weight: 800; letter-spacing: .1em; }
.ukai-frame::after { content: "UKAI LEGAL OFFICE"; position: absolute; left: 32%; bottom: 14%; font: 800 9px/1.5 'Space Grotesk', Arial, sans-serif; letter-spacing: .16em; }
.ukai-square { position: absolute; top: 23%; right: 17%; width: 26%; aspect-ratio: 1; border: 1px solid var(--ink); }
.ukai-square::before,.ukai-square::after { content: ""; position: absolute; background: var(--accent-deep); }
.ukai-square::before { width: 3px; top: -13px; bottom: -13px; left: 50%; }
.ukai-square::after { height: 3px; left: -13px; right: -13px; top: 50%; }
.art-hitomi { background: var(--accent); color: var(--ink); }
.hitomi-giant { position: absolute; left: 7%; top: 22%; font: 900 clamp(43px,8vw,112px)/.9 'Space Grotesk', Arial, sans-serif; letter-spacing: -.1em; }
.hitomi-sub { position: absolute; left: 8%; top: 48%; font-size: clamp(12px,1.7vw,20px); font-weight: 800; letter-spacing: .12em; }
.hitomi-line { position: absolute; left: 8%; right: 8%; bottom: 18%; height: 1px; background: rgba(23,26,23,.35); }
.work-info { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-top: 19px; }
.work-info h3 { margin: 0; font-size: clamp(17px, 2vw, 23px); line-height: 1.5; letter-spacing: -.035em; }
.work-info p { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: #61695f; }
.work-no { flex-shrink: 0; font: 800 10px/1.4 'Space Grotesk', Arial, sans-serif; letter-spacing: .12em; color: #7a8277; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.work-tags span { padding: 5px 8px; border: 1px solid #d1d6cd; color: #575f55; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.works-note { display: flex; align-items: start; gap: 13px; margin-top: 50px; padding-top: 20px; border-top: 1px solid #d5dad1; color: #747b71; font-size: 11px; line-height: 1.8; }
.works-note::before { content: "NOTE"; flex-shrink: 0; color: var(--ink); font: 800 9px/1.8 'Space Grotesk', Arial, sans-serif; letter-spacing: .12em; }

/* Process */
.process { background: #e8ebe4; }
.process-list { border-top: 1px solid #c5cbc0; }
.process-item { display: grid; grid-template-columns: 86px minmax(180px,.8fr) minmax(0,1.2fr) 35px; align-items: center; gap: 22px; padding: 26px 0; border-bottom: 1px solid #c5cbc0; }
.process-no { color: #6c7569; font: 800 12px/1 'Space Grotesk', Arial, sans-serif; letter-spacing: .1em; }
.process-item h3 { margin: 0; font-size: clamp(18px,2.2vw,26px); letter-spacing: -.04em; transition: transform .25s var(--ease); }
.process-item p { margin: 0; max-width: 540px; color: #4e544a; font-size: 14px; line-height: 1.9; }
.process-symbol { justify-self: center; width: 2px; height: 12px; background: #c7cdc1; transition: height .25s var(--ease), background .25s var(--ease); }
.process-item:hover .process-symbol { background: var(--accent); height: 24px; }
.process-item:hover h3 { transform: translateX(10px); color: var(--accent-deep); }

/* Company */
.company { background: var(--white); }
.company-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 40px; align-items: stretch; }
.company-table { border-top: 1px solid var(--line); }
.company-row { display: grid; grid-template-columns: 76px 1fr; gap: 36px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.company-row dt { color: var(--muted); font-weight: 700; text-align: justify; text-align-last: justify; }
.company-row dd { margin: 0; color: var(--ink); line-height: 1.8; }
.company-row a { color: var(--accent-deep); }
.company-map { border: 1px solid var(--line); overflow: hidden; }
.company-map iframe { width: 100%; height: 100%; min-height: 280px; display: block; border: 0; }

/* Contact band（見出し＋区切り線＋メッセージ／電話番号の2列） */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); padding-top: clamp(134px, calc(10.5vw + 30px), 200px); padding-bottom: clamp(84px, 10.5vw, 150px); }
.contact::before {
  position: absolute; z-index: -1; inset: 0; content: "";
  background-image: linear-gradient(rgba(23,26,23,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,26,23,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.contact-heading { margin: 0; font-family: "Noto Sans JP", sans-serif; font-size: clamp(46px, 7.2vw, 92px); font-weight: 900; letter-spacing: -.045em; line-height: 1.18; color: var(--ink); }
.contact-divider { position: relative; top: 10px; height: 1.2px; background: rgba(23,26,23,.55); margin: clamp(30px, 4.5vw, 54px) 0; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.contact-text { max-width: 420px; margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink); }
.contact-phone-link { display: inline-flex; align-items: center; gap: 22px; color: var(--ink); flex-shrink: 0; }
.contact-phone { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 800; font-size: clamp(36px,5.1vw,60px); line-height: 1; white-space: nowrap; }
.contact-phone-arrow { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--white); transition: transform .3s var(--ease); flex-shrink: 0; }
.contact-phone-link:hover .contact-phone-arrow { transform: rotate(-45deg); }
.contact-phone-block { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-form-trigger { margin: 0; font-size: 12.5px; color: var(--muted); }
.contact-form-trigger__link { background: none; border: none; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-form-trigger__link:hover { color: var(--white); }

/* ─── 問い合わせフォーム（モーダル） ───────────── */
.ws-form-modal {
  width: min(560px, 92vw); max-height: 88vh; overflow-y: auto;
  /* position指定なし＝dialog:modalの既定（position:fixed; inset:0; margin:auto;）で画面中央に固定表示させる。
     ここでposition:relativeを指定すると通常のドキュメントフロー上の位置に流れてしまい、
     スマホ（画面が短い）だと本文より下へずれて見えなくなる不具合があったため削除した（2026-10-29） */
  margin: auto; border: none; border-radius: 18px;
  padding: clamp(28px, 4vw, 44px); background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px rgba(23,26,23,.25);
}
.ws-form-modal::backdrop { background: rgba(10,15,10,.55); backdrop-filter: blur(2px); }
.ws-form-modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white);
  font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer;
}
.ws-form-modal__title { margin: 0 0 24px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ws-form { display: grid; gap: 16px; }
.ws-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-form label { display: grid; gap: 7px; font-size: 12.5px; font-weight: 700; }
/* ラベル文字と必須タグをひとまとまりにして、gridの行に単独で広がらないようにする */
.ws-form__label-text { display: inline-flex; align-items: center; gap: 7px; }
.ws-form__required { flex-shrink: 0; display: inline-block; padding: 2px 7px; background: #fde8e8; color: #c0392b; font-size: 10px; font-weight: 800; border-radius: 4px; line-height: 1.4; }
.ws-form input, .ws-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font: inherit; font-size: 14px; color: var(--ink);
}
.ws-form input:focus, .ws-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ws-form textarea { resize: vertical; min-height: 110px; }
/* .ws-form label { display:grid } より詳細度を上げないと、チェックボックスと文章が
   別々の行に分かれてしまう（gridの自動行配置が優先されてしまうため） */
.ws-form label.ws-form__consent { display: flex; flex-direction: row; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ws-form__consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
.ws-form__consent a { color: var(--accent-ink); text-decoration: underline; }
.ws-form__error { color: #c0392b; font-size: 12.5px; }
.ws-form__submit { width: 100%; border: none; cursor: pointer; }
.ws-form__submit:disabled { opacity: .5; cursor: not-allowed; }
.ws-form__success { text-align: center; padding: 20px 0; font-size: 14px; line-height: 1.8; }

/* Footer（巨大ワードマーク＋左端の差し色バー＋上下の区切り線） */
.footer { background: var(--paper); color: var(--ink); padding: 61.776px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 24px; padding-bottom: 116.64px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: end; padding-top: 4px; }
.footer-nav a { position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #454a44; font-size: 12.5px; letter-spacing: .03em; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .45s var(--ease); }
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-wordmark-wrap { padding: clamp(10px, 1.6vw, 18px) 0 clamp(7px, 1.12vw, 12.6px); border-bottom: 1.5px solid var(--line); }
.footer-wordmark { margin: 0; text-align: left; letter-spacing: -.06em; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(111px, 25.5vw, 315px); line-height: .85; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; color: var(--muted); font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .03em; font-variant-numeric: normal; font-feature-settings: normal; }
.back-top { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.back-top span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c5ccc0; border-radius: 50%; font-size: 13px; }

/* Motion and focus */
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s var(--ease), transform .72s var(--ease); }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-ready .reveal-delay-1 { transition-delay: .08s; }
.js-ready .reveal-delay-2 { transition-delay: .16s; }
.js-ready .reveal-delay-3 { transition-delay: .24s; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}

@media (min-width: 1500px) {
  .hero-grid { gap: 90px; }
  .hero-visual { min-height: 560px; }
}
@media (max-width: 980px) {
  :root { --gutter: clamp(22px, 4.2vw, 44px); }
  .header-inner { height: 76px; }
  .brand-mark { height: 44px; }
  .nav { gap: 17px; }
  .nav a:not(.nav-contact) { font-size: 10px; }
  .nav-contact { padding: 12px 13px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.85fr); gap: 25px; }
  .hero h1 { font-size: clamp(32px, 4.4vw, 54px); }
  .hero-visual { min-height: 440px; }
  .board-content { padding: 25px; }
  .board-heading { font-size: clamp(28px,3.3vw,38px); }
  .work-card.side .work-visual { min-height: 290px; }
  .work-card.featured .work-visual { min-height: 300px; }
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  /* .navは.site-header(position:sticky)の子孫のため、スクロールして「貼り付いた」状態だと
     position:fixedの基準点がビューポートではなくヘッダー側にズレ、開く位置がずれたり
     ページ本文と重なって見える不具合が発生していた。メニューを開いている間だけ
     site-headerをsticky→fixedに切り替え、ハンバーガー（×）ボタンは見えたまま
     navを確実にビューポート基準で固定させる */
  body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
  .header-inner { height: 66px; }
  .brand-mark { height: 52px; }
  .brand-text strong { font-size: 14px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav { position: fixed; inset: 66px 0 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 25px var(--gutter) 45px; background: var(--paper); z-index: 101; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a:not(.nav-contact) { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-contact { justify-content: space-between; margin-top: 23px; padding: 17px; font-size: 13px; }
  .hero { padding-top: 48px; padding-bottom: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-kicker { margin-bottom: 23px; font-size: 9px; }
  .hero h1 { font-size: clamp(42px, 9vw, 66px); }
  .hero-lead { margin-top: 23px; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  /* テキスト量に対して必要な高さまで引き上げ（以前の90vw/490pxだと見出し4行＋CTAが
     visual-boardのoverflow:hiddenで下端が切れていたため）。ただし余白が出すぎない範囲に抑制 */
  .hero-visual { min-height: clamp(420px, 105vw, 540px); margin: 0 7px 0 0; }
  .visual-board { inset: 30px 7px 20px 4px; }
  .floating-tag { right: -4px; top: 82px; }
  .board-heading { font-size: clamp(31px,7vw,47px); }
  /* width/heightを%指定(親基準)にしていたため、hero-visualの高さを増やすと
     この四角自体が縦に間延びしていた。幅vw基準の固定サイズに変更し、
     親の高さに左右されない一定の大きさ・比率に固定 */
  .board-graphic { width: clamp(120px, 34vw, 160px); height: clamp(135px, 38vw, 180px); }
  .board-graphic::after { font-size: clamp(90px, 26vw, 170px); bottom: -4px; }
  .floating-index { bottom: -3px; }
  .marquee-group { padding: 16px 13px; font-size: 10px; gap: 22px; }
  .section { padding-block: 78px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 36px; }
  .section-label { padding: 0; }
  h2 { font-size: clamp(34px, 8vw, 52px); }
  .section-intro { margin-top: 17px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; min-height: 240px; padding: 19px; }
  .service-card:first-child { grid-column: span 2; min-height: 220px; }
  .service-card h3 { margin-top: 20px; font-size: 21px; }
  .service-card p { font-size: 13.5px; }
  .service-bottom { margin-top: 18px; }
  .expertise-content { grid-template-columns: 1fr; gap: 38px; }
  .expertise-statement { font-size: clamp(24px, 6vw, 35px); }
  .law-row { grid-template-columns: 92px 1fr; gap: 12px; }
  .law-row h3 { font-size: 15px; }
  .works-grid { grid-template-columns: 1fr; gap: 42px; }
  .work-card, .work-card.featured, .work-card.side, .work-card:nth-child(3), .work-card:nth-child(4) { grid-column: 1; }
  .work-card .work-visual, .work-card.featured .work-visual, .work-card.side .work-visual { aspect-ratio: 1.18; min-height: 280px; }
  .balance-typography { font-size: clamp(76px,20vw,130px); }
  .result-stamp { width: 150px; }
  .result-stamp strong { font-size: 44px; }
  .toa-big { font-size: clamp(105px,28vw,170px); }
  .hitomi-giant { font-size: clamp(66px,17vw,105px); }
  .work-info h3 { font-size: 20px; }
  .works-note { margin-top: 37px; }
  .process-item { grid-template-columns: 45px 1fr 30px; gap: 10px 15px; padding: 23px 0; }
  .process-item h3 { font-size: 21px; }
  .process-item p { grid-column: 2 / 4; grid-row: 2; }
  .process-symbol { grid-column: 3; grid-row: 1; width: 2px; height: 10px; }
  .contact-row { flex-direction: column; align-items: start; gap: 22px; }
  .contact-phone-block { align-items: flex-start; }
  .ws-form__row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 22px; }
  .footer-nav { display: none; }
  .footer-wordmark { font-size: clamp(60px, 22vw, 100px); }
  /* 「Back to top」をフッター内の通常配置ではなく、常時追従するFABに変更 */
  .back-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; width: 50px; height: 50px; font-size: 0; gap: 0; background: var(--paper); border: 1px solid #c5ccc0; border-radius: 50%; box-shadow: 0 10px 24px rgba(23,26,23,.18); }
  /* ↑の文字をフォントの行送りで中央揃えすると字形の重心のせいでずれるため、
     文字は非表示にしてborderで組んだ矢印(山形)に置き換えて幾何学的に中央配置 */
  .back-top span { position: relative; display: block; width: 10px; height: 10px; font-size: 0; border: none; border-radius: 0; }
  .back-top span::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(-45deg); }
}
@media (max-width: 420px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: 40px; letter-spacing: -.08em; }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 auto; padding-inline: 14px; gap: 12px; font-size: 13px; }
  .hero-visual { min-height: 400px; }
  .board-content { padding: 19px; }
  .board-heading { font-size: 30px; margin: 14px 0 20px; }
  .board-graphic { width: clamp(105px, 32vw, 130px); height: clamp(118px, 36vw, 145px); }
  .board-cta { padding: 10px; gap: 10px; }
  .floating-tag { padding: 8px 10px; font-size: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5), .service-card:first-child { grid-column: 1; min-height: auto; padding: 22px; }
  .service-card h3 { margin-top: 22px; }
  .work-card .work-visual, .work-card.featured .work-visual, .work-card.side .work-visual { min-height: 245px; }
  .contact-phone { font-size: 29px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 340px) {
  .hero h1 { font-size: 36px; }
  .hero-kicker { gap: 8px; letter-spacing: .1em; }
}
