/* =========================================================
   YDK合同会社 ウェブサイト
   すべての見た目はこのファイルにまとめています（インラインstyle禁止のセキュリティ設定のため）
   ========================================================= */

:root {
  --ac: #2A4BA0;            /* アクセント（藍） */
  --ac-dk: #1B3477;
  --ink: #17202B;
  --paper: #F7F8F6;
  --white: #FFFFFF;
  --tx2: #3B4552;
  --tx3: #4B5563;
  --tx-on-dark: #C9D1DC;
  --line: #DCE0E6;
  --line2: #CED4DC;
  --line3: #B9C1CC;
  --focus: #4C7BF0;
  --err: #B42318;
  --ok: #1D6B57;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 10vw, 136px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  word-break: auto-phrase; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--ac); }
a:hover { color: var(--ac-dk); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.pretty { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- 見出し ---------- */
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.4; font-weight: 900; font-feature-settings: "palt"; }
.lead { color: var(--tx2); text-wrap: pretty; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 42em; }

/* ---------- ボタン ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 4px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: inherit; text-decoration: none; cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background-color .3s, color .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--ac); }
.btn:hover::after { transform: translateX(110%); }
.btn-p { background: var(--ac); border-color: var(--ac); color: #fff; }
.btn-p:hover { color: #fff; }
.btn-s { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-s:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- ヘッダー ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo b { font-size: 28px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.logo span { font-size: 14px; font-weight: 500; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav .btn { margin-left: 8px; }
.nl {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 50% calc(100% - 9px) / 0 2px no-repeat;
  transition: background-size .35s var(--ease-io);
}
.nl:hover { color: var(--ink); background-size: calc(100% - 24px) 2px; }
.nl[aria-current="page"] { background-size: calc(100% - 24px) 2px; }
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ac); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .prog { animation: grow auto linear both; animation-timeline: scroll(root); }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- ヒーロー ---------- */
.hero {
  --gc: color-mix(in srgb, var(--ac) 10%, transparent);
  --gs: color-mix(in srgb, var(--ac) 42%, transparent);
  --gg: color-mix(in srgb, var(--ac) 12%, transparent);
  position: relative; overflow: hidden; background: var(--paper);
}
.gridbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--gc) 1px, transparent 1px), linear-gradient(90deg, var(--gc) 1px, transparent 1px);
  background-size: 24px 24px; animation: drift 6s linear infinite;
}
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 24px 24px, 24px 24px; } }
.spot {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--ms, 0); transition: opacity .5s ease;
  background-image:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--gg), transparent 70%),
    linear-gradient(var(--gs) 1px, transparent 1px),
    linear-gradient(90deg, var(--gs) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 75%);
  mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 75%);
  animation: drift3 6s linear infinite;
}
@keyframes drift3 { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 24px 24px, 24px 24px; } }
.hero-in {
  position: relative; z-index: 1;
  padding-block: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px 64px; align-items: center;
}
.hero-txt { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero h1 { font-size: clamp(2.375rem, 4.8vw, 4.5rem); line-height: 1.28; font-weight: 900; letter-spacing: .01em; font-feature-settings: "palt"; }
.hero-lead { max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 2; color: var(--tx2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ph { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.ph > span { display: inline-block; animation: phUp 1.1s var(--ease-out) backwards; }
.ph:nth-child(1) > span { animation-delay: .1s; }
.ph:nth-child(2) > span { animation-delay: .24s; }
.ph:nth-child(3) > span { animation-delay: .38s; }
@keyframes phUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.ld { animation: ldUp .9s var(--ease-out) backwards; }
.ld-1 { animation-delay: .6s; }
.ld-2 { animation-delay: .8s; }
.ld-3 { animation-delay: 2.2s; }
@keyframes ldUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* 組織図 */
.org-fig { display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 0; }
.tilt { display: flex; justify-content: center; transform: perspective(1100px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.org { position: relative; width: 480px; height: 408px; flex: none; }
@media (max-width: 560px) { .org { zoom: .66; } }
.org-lines { position: absolute; inset: 0; width: 480px; height: 408px; overflow: visible; fill: none; stroke-width: 2; stroke-linecap: round; }
.org-lines .k { stroke: var(--ink); }
.org-lines .a { stroke: var(--ac); }
.org-lines .ln { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw .5s var(--ease-io) backwards; animation-delay: var(--d, 0s); }
.org-lines .dash { stroke: var(--ac); stroke-dasharray: 6 6; animation: fade .4s ease var(--d, 0s) backwards, march .9s linear infinite; }
.org-lines path:nth-of-type(1) { --d: .6s; }
.org-lines path:nth-of-type(2) { --d: .8s; }
.org-lines path:nth-of-type(3),
.org-lines path:nth-of-type(4),
.org-lines path:nth-of-type(5) { --d: 1.05s; }
.org-lines path:nth-of-type(6) { --d: 1.55s; }
.org-lines path:nth-of-type(7) { --d: 1.85s; }
.org-lines path:nth-of-type(8) { --d: 2.3s; }
.org-lines path:nth-of-type(9) { --d: 2.45s; }
.org-lines path:nth-of-type(10) { --d: 2.6s; }
.org-lines path:nth-of-type(11) { --d: 2.75s; }
.org-lines path:nth-of-type(12) { --d: 2.9s; }
.org-lines path:nth-of-type(13) { --d: 3.05s; }
.org-lines path:nth-of-type(14) { --d: 3.2s; }
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes march { to { stroke-dashoffset: -12; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.oc {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px;
  font-size: 15px; font-weight: 700; line-height: 20px;
  animation: pop .6s var(--ease-spring) backwards; animation-delay: var(--d, 0s);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
.oc-top { left: 172px; top: 0; width: 136px; height: 52px; --d: .35s; }
.oc-1 { left: 0; top: 124px; width: 96px; height: 64px; --d: 1.2s; }
.oc-2 { left: 128px; top: 124px; width: 96px; height: 64px; --d: 1.3s; }
.oc-3 { left: 256px; top: 124px; width: 96px; height: 64px; --d: 1.4s; }
.oc-ydk { left: 384px; top: 124px; width: 96px; height: 64px; background: var(--ac); border: 2px solid var(--ac); color: #fff; font-size: 14px; font-weight: 500; --d: 2s; }
.oc-ydk b { font-weight: 700; }
.oc-chip { left: 384px; width: 96px; height: 36px; padding: 4px; border-color: var(--ac); border-radius: 18px; color: var(--ac); font-size: 13px; line-height: 18px; transition: background-color .25s, color .25s; }
.oc-chip:hover { background: var(--ac); color: #fff; }
.oc-c1 { top: 228px; --d: 2.8s; }
.oc-c2 { top: 276px; --d: 2.95s; }
.oc-c3 { top: 324px; --d: 3.1s; }
.oc-c4 { top: 372px; --d: 3.25s; }
.org-ring { position: absolute; left: 384px; top: 124px; width: 96px; height: 64px; border: 2px solid var(--ac); border-radius: 4px; opacity: 0; animation: ring 2.4s cubic-bezier(.2, .6, .3, 1) 2.7s infinite; }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.3, 1.55); } }
.org-pkt { position: absolute; left: 428px; top: 84px; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 22%, transparent); opacity: 0; animation: pkt 3.2s cubic-bezier(.45, 0, .25, 1) 3.6s infinite; }
@keyframes pkt { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-384px); } }
.org-cap { max-width: 480px; width: 100%; font-size: 14px; line-height: 1.8; color: var(--tx2); }

/* ---------- 流れる帯 ---------- */
.mqband { background: var(--ink); color: #fff; overflow: hidden; padding-block: 28px; display: flex; flex-direction: column; gap: 14px; }
.mq { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq.rev { animation-duration: 62s; animation-direction: reverse; }
.mqband:hover .mq { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.4; white-space: nowrap; letter-spacing: .04em; }
.mq li::after { content: ""; display: inline-block; width: 10px; height: 10px; background: color-mix(in srgb, var(--ac) 55%, #fff); transform: rotate(45deg); }
.mq.rev li { gap: 24px; padding-right: 24px; font-size: 1.0625rem; font-weight: 500; color: #9AA6B5; }
.mq.rev li::after { width: 7px; height: 7px; background: none; border: 1.5px solid #9AA6B5; }

/* ---------- スクロールで現れる ---------- */
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; } .i6 { --i: 6; } .i7 { --i: 7; }
.m-on .rv:not(.in) .rv-i { opacity: 0; }
.rv.in .rv-i { animation: rvIn 1s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; }
.m-on .rv:not(.in) .mask > span { transform: translateY(110%); }
.rv.in .mask > span { animation: phUp 1.1s var(--ease-out) backwards; }
.gx { transform-origin: 0 50%; }
.m-on .rv:not(.in) .gx { transform: scaleX(0); }
.rv.in .gx { animation: grow 1.3s var(--ease-io) backwards; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }

/* ---------- 特長 ---------- */
.sec { padding-block: var(--sec); }
.sec-white { background: #fff; border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 64px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; }
.st { display: flex; flex-direction: column; gap: 18px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.st:hover { transform: translateY(-6px); }
.st .gx { height: 3px; background: var(--ink); transition: background-color .4s; }
.st:hover .gx { background: var(--ac); }
.st h3 { font-size: 1.375rem; line-height: 1.5; font-weight: 700; font-feature-settings: "palt"; }
.st p { color: var(--tx2); text-wrap: pretty; }
.ico { width: 56px; height: 56px; fill: none; stroke: var(--ac); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .dot { fill: var(--ac); stroke: none; }
.ico .thick { stroke-width: 5; }
.ico .dp { stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-on .rv:not(.in) .ico .dp { stroke-dashoffset: 1; }
.rv.in .ico .dp { animation: dash 1.5s var(--ease-io) backwards; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
@keyframes dash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.needle { transform-box: view-box; transform-origin: 24px 34px; }
.m-on .rv:not(.in) .needle { transform: rotate(95deg); }
.rv.in .needle { animation: needle 2s cubic-bezier(.34, 1.5, .5, 1) .7s backwards; }
@keyframes needle { from { transform: rotate(95deg); } to { transform: rotate(0deg); } }
.fc { stroke-dasharray: 3 3; animation: march2 1.1s linear infinite; }
@keyframes march2 { to { stroke-dashoffset: -6; } }
.m-on .rv:not(.in) .fcw { opacity: 0; }
.rv.in .fcw { animation: fade .6s ease 1.5s backwards; }

/* ---------- サービス（お困りごとから選ぶ） ---------- */
.svc-wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.svc-list { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.svc-grp { display: flex; flex-direction: column; gap: 6px; }
.svc-grp-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); font-size: 1.0625rem; font-weight: 700; }
.svc-num { font-size: 1.75rem; line-height: 1; font-weight: 900; color: var(--ac); }
.svc-note { margin-left: auto; font-size: .8125rem; font-weight: 400; color: var(--tx3); }
.sv-btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 64px; padding: 12px 40px 12px 16px; text-align: left;
  font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 6px; cursor: pointer;
  transition: background-color .3s, color .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sv-q { font-size: 1rem; font-weight: 700; line-height: 1.6; }
.sv-a { font-size: .8125rem; line-height: 1.5; color: var(--tx3); transition: color .3s; }
.sv-btn:hover { background: color-mix(in srgb, var(--ac) 8%, #fff); transform: translateX(4px); }
.sv-btn.is-on { background: var(--ink); color: #fff; transform: none; }
.sv-btn.is-on .sv-a { color: #B9C3D0; }
.sv-btn.is-on::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 50%, #fff); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.svc-panels { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1080px) { .tabs-on .svc-panels { position: sticky; top: 96px; } }
.svc-panel { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.5vw, 48px); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; scroll-margin-top: 88px; }
.svc-panel[hidden] { display: none; }
.pin > * { animation: pinIn .7s var(--ease-out) backwards; }
.pin > *:nth-child(2) { animation-delay: 60ms; }
.pin > *:nth-child(3) { animation-delay: 120ms; }
.pin > *:nth-child(4) { animation-delay: 180ms; }
.pin > *:nth-child(5) { animation-delay: 240ms; }
.pin > *:nth-child(6) { animation-delay: 300ms; }
@keyframes pinIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ac); color: #fff; font-size: .8125rem; font-weight: 700; }
.pill-o { background: transparent; border: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.pn-title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.45; font-weight: 900; font-feature-settings: "palt"; }
.pn-name { font-weight: 700; color: var(--ac); }
.pn-desc { color: #2C3643; text-wrap: pretty; }
.pn-block { display: flex; flex-direction: column; gap: 12px; }
.pn-sub { font-size: .9375rem; font-weight: 700; color: var(--tx3); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.ex-grid.tags { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.ex { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.ex:hover { transform: translateY(-3px); border-color: var(--ac); }
.ex b { font-size: 1rem; }
.ex span { font-size: .9375rem; line-height: 1.8; color: var(--tx2); }
.tags .ex { align-items: center; justify-content: center; min-height: 72px; font-size: 1.0625rem; font-weight: 700; text-align: center; }
.pn-foot { font-size: .9375rem; color: var(--tx2); }
.svc-panel .btn { align-self: flex-start; }

/* ---------- 協業 ---------- */
.partner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 64px; padding: clamp(28px, 4vw, 56px); background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
.partner-l { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.partner-l h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; font-weight: 900; font-feature-settings: "palt"; }
.plist { border-top: 1px solid var(--line); }
.prow { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding .35s cubic-bezier(.2, .8, .2, 1), background-color .35s; }
.prow:hover { padding-inline: 14px; background: color-mix(in srgb, var(--ac) 6%, #fff); }
.prow b { font-size: 1.0625rem; }
.prow span { font-size: .9375rem; color: var(--tx2); }

/* ---------- お問い合わせ ---------- */
.contact { --gc: rgba(255, 255, 255, .06); position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: var(--sec); }
.contact-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px 72px; align-items: start; }
.contact-l { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact-l .lead { max-width: 30em; color: var(--tx-on-dark); line-height: 2; }
.contact-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; }
.contact-dl dt { color: var(--tx-on-dark); }
.contact-dl a { color: #fff; overflow-wrap: anywhere; }
.contact-dl a:hover { color: #fff; }
.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: clamp(24px, 3.5vw, 44px); background: #fff; color: var(--ink); border-radius: 6px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 700; }
.req { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 3px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.opt { font-size: .8125rem; font-weight: 500; color: var(--tx3); }
.fi { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #7C8695; border-radius: 4px; transition: border-color .2s, box-shadow .2s; }
textarea.fi { padding: 12px 14px; line-height: 1.8; resize: vertical; min-height: 180px; }
select.fi { padding: 0 12px; }
.fi:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 22%, transparent); }
.fi[aria-invalid="true"] { border-color: var(--err); }
.err { font-size: .875rem; font-weight: 700; color: var(--err); }
.err[hidden] { display: none; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.agree input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--ac); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form .btn { align-self: flex-start; padding: 0 36px; }
.form-status { padding: 14px 16px; border-radius: 4px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: color-mix(in srgb, var(--ok) 12%, #fff); color: var(--ok); }
.form-status.is-err { background: color-mix(in srgb, var(--err) 10%, #fff); color: var(--err); }
.form-note { font-size: .8125rem; color: var(--tx3); }

/* ---------- フッター ---------- */
.ftr { --gf: color-mix(in srgb, var(--ac) 55%, #fff); background: var(--ink); color: var(--tx-on-dark); border-top: 1px solid #2E3A48; overflow: hidden; }
.ftr-in { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.giant {
  display: block; font-size: clamp(5.5rem, 25vw, 22rem); font-weight: 900; line-height: .82; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px #4A5869;
  background: linear-gradient(var(--gf), var(--gf)) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; user-select: none;
}
.rv.in .giant { animation: fillT 2.4s var(--ease-io) .3s forwards; }
@keyframes fillT { to { background-size: 100% 100%; } }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.ftr .logo, .ftr .logo:hover { color: #fff; }
.ftr .logo b { font-size: 24px; }
.ftr .logo span { font-size: 13px; }
.ftr .nl { color: var(--tx-on-dark); font-size: 14px; }
.ftr .nl:hover { color: #fff; }
.copy { font-size: 13px; }

/* ---------- 下層ページ ---------- */
.page-head { display: flex; flex-direction: column; gap: 12px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--tx3); }
.crumb a { color: var(--tx3); }
.page-h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.3; font-weight: 900; font-feature-settings: "palt"; }
.page-sec { padding-block: clamp(48px, 6vw, 88px) var(--sec); }
.page-stack { display: flex; flex-direction: column; gap: 40px; }
.info { max-width: 880px; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.info dt { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line2); font-weight: 700; }
.info dd { padding: 22px 0; border-bottom: 1px solid var(--line2); overflow-wrap: anywhere; }
.info ul { display: flex; flex-direction: column; gap: 2px; }
.cta-band { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-in h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.5; font-weight: 900; font-feature-settings: "palt"; }
.cta-in p { color: var(--tx2); }
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 36px; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: 1.25rem; line-height: 1.5; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.prose p, .prose li { color: #2C3643; }
.prose ul { display: flex; flex-direction: column; gap: 4px; padding-left: 1.2em; list-style: disc; }
.prose .meta { color: var(--tx3); font-size: .9375rem; }
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

/* ---------- 動きを減らす設定の人には止める ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tilt { transform: none !important; }
  .giant { background-size: 100% 100%; }
}
@media print {
  .hdr, .mqband, .spot, .gridbg, .form, .giant { display: none !important; }
}

/* 追記：フッターのメニューと同意欄 */
.ftr nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.field > label.agree { font-weight: 500; }
.agree a { font-weight: 700; }

/* 追記：スマートフォンではヘッダーを1行に収める（固定表示で画面をふさがないように） */
@media (max-width: 640px) {
  .hdr-in { flex-wrap: nowrap; gap: 8px; padding-block: 6px; }
  .logo b { font-size: 22px; }
  .logo span { font-size: 12px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav .nl { padding: 0 8px; font-size: 14px; }
  .nav .nl:hover, .nav .nl[aria-current="page"] { background-size: calc(100% - 16px) 2px; }
  .nav .btn { display: none; }
}
.cta-in > div { display: flex; flex-direction: column; gap: 8px; max-width: 36em; }
.info ul li + li { margin-top: 4px; }
@media (max-width: 480px) { .info { grid-template-columns: minmax(0, 6em) minmax(0, 1fr); } }

/* 追記：Googleフォームの埋め込み */
.gform-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(8px, 1.5vw, 16px); background: #fff; color: var(--ink); border-radius: 6px; }
.gform { display: block; width: 100%; height: 900px; border: 0; background: #fff; }
@media (max-width: 640px) { .gform { height: 1100px; } }
.gform-wrap .form-note { padding: 0 8px 8px; }
