/* 株式会社LINK LP 4案の共通CSS：リセット・イラストの動き・入場・ダイアログ。
   色と書体は各ページの :root（--c-* と --f-*）で決める。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; line-height: 1.8; font-feature-settings: "palt"; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
:focus-visible { outline: 3px solid var(--c-focus, #3d8bff); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { display: inline-block; }
.wrap { width: 100%; max-width: var(--max, 1200px); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* 上部の安全域（スマホのノッチ）をヘッダー色で塗る */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--c-head, #fff); }

/* ---------- イラスト ---------- */
[data-art] { position: relative; overflow: hidden; }
[data-art] > svg { width: 100%; height: 100%; }
.lk-spin { animation: lk-spin 7s linear infinite; transform-box: view-box; }
@keyframes lk-spin { to { transform: rotate(360deg); } }
.lk-glow { animation: lk-glow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lk-glow { 50% { transform: scale(1.12); opacity: .8; } }
.lk-sheen { animation: lk-sheen 4.5s ease-in-out infinite; }
@keyframes lk-sheen { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(560px); } }
.lk-pulse { stroke-dasharray: 9 100; stroke-dashoffset: 109; animation: lk-pulse 2.6s linear infinite; }
@keyframes lk-pulse { to { stroke-dashoffset: -9; } }
.lk-node { animation: lk-node 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lk-node { 50% { transform: scale(1.35); } }
.lk-chip { animation: lk-chip 2.4s ease-in-out infinite; }
@keyframes lk-chip { 50% { filter: drop-shadow(0 0 8px #8fe3ff); } }
.lk-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: lk-draw 7s ease-in-out infinite; }
@keyframes lk-draw { 0% { stroke-dashoffset: 1; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.lk-pencil { animation: lk-pencil 7s ease-in-out infinite; }
@keyframes lk-pencil { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-150px, -70px); } 60% { transform: translate(-60px, 20px); } }
.lk-beam { animation: lk-beam 4.8s ease-in-out infinite alternate; transform-box: view-box; transform: rotate(-14deg); }
.lk-beam--b { animation-duration: 3.6s; animation-direction: alternate-reverse; }
@keyframes lk-beam { to { transform: rotate(14deg); } }
.lk-twinkle, .lk-win { animation: lk-twinkle 3s ease-in-out infinite; }
@keyframes lk-twinkle { 50% { opacity: .15; } }
.lk-win { animation-duration: 5s; }
.lk-rays { animation: lk-rays 2.4s ease-in-out infinite; }
@keyframes lk-rays { 50% { opacity: .35; } }
.lk-wire { stroke-dasharray: 100; animation: lk-wire 5s ease-in-out infinite; }
@keyframes lk-wire { 0% { stroke-dashoffset: 100; } 40%, 100% { stroke-dashoffset: 0; } }
.lk-streak { stroke-dashoffset: 110; animation: lk-streak 1.8s linear infinite; }
@keyframes lk-streak { to { stroke-dashoffset: -30; } }

/* ---------- 写真（ゆっくり寄る＋光が横切る） ---------- */
.lk-photo { position: relative; overflow: hidden; }
.lk-photo > img { width: 100%; height: 100%; object-fit: cover; animation: lk-kb 16s ease-in-out infinite alternate; }
@keyframes lk-kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.lk-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%); transform: translateX(-120%); animation: lk-glint 7s ease-in-out infinite; animation-delay: var(--gd, 0s); }
@keyframes lk-glint { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- 会社概要（4案共通の形。色と書体は各ページの --ab-* で決める） ---------- */
.lk-about { background: var(--ab-bg); color: var(--ab-fg); padding-block: 96px; }
.lk-about-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.lk-about-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--ab-radius, 16px); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.lk-about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 16px 12px; font-size: 12px; letter-spacing: .08em; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); }
.lk-about-body { min-width: 0; }
.lk-about-en { font-family: var(--ab-latin, serif); font-size: 12px; letter-spacing: .32em; color: var(--ab-accent); }
.lk-about-body h2 { margin-top: 6px; font-family: var(--ab-display, inherit); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; color: var(--ab-head); }
.lk-about-lead { margin-top: 10px; color: var(--ab-muted); }
.lk-about-table { display: grid; margin: 22px 0 0; border-top: 1px solid var(--ab-line); }
.lk-about-table > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--ab-line); }
.lk-about-table dt { font-size: 14px; font-weight: 700; color: var(--ab-head); }
.lk-about-table dd { margin: 0; font-size: 14px; line-height: 1.8; }
.lk-todo { display: inline-block; padding: 0 10px; border: 1px dashed var(--ab-accent); border-radius: 4px; font-size: 12px; color: var(--ab-muted); }
.lk-about-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; margin-top: 24px; padding: 0 26px; border-radius: 99px; background: var(--ab-accent-bg, var(--ab-accent)); color: var(--ab-accent-fg, #fff); font-size: 14px; font-weight: 700; transition: transform .25s, filter .25s; }
.lk-about-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
@media (max-width: 880px) { .lk-about { padding-block: 72px; } .lk-about-in { grid-template-columns: 1fr; } }

/* ---------- 入場（何もしなければ全部見えている。画面に入る直前に動きを再生） ---------- */
.reveal.is-play { animation: lk-rise .9s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0ms); }
@keyframes lk-rise { from { opacity: 0; transform: translateY(28px); } }
.js [data-split] .ch { display: inline-block; animation: lk-ch .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--base, 200ms) + var(--i) * var(--step, 45ms)); }
@keyframes lk-ch { from { opacity: 0; transform: translateY(.45em) rotate(6deg); filter: blur(6px); } }

/* ---------- ダイアログ ---------- */
.lk-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--c-dialog, #fff); color: var(--c-dialog-fg, #0d1f3c); box-shadow: 0 30px 80px rgba(4, 16, 40, .45); overflow: auto; }
.lk-dialog::backdrop { background: rgba(5, 14, 32, .62); backdrop-filter: blur(4px); }
.lk-dialog[open] { animation: lk-pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes lk-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lk-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #0d1f3c; font-size: 22px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.lk-md { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lk-md-img { background: var(--c); }
.lk-md-img img { width: 100%; height: 100%; object-fit: cover; }
.lk-md-body { display: grid; gap: 14px; align-content: center; padding: 34px 32px; min-width: 0; }
.lk-md-roman { color: var(--c); font-weight: 800; letter-spacing: .18em; font-size: 12px; }
.lk-md-roman span { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--c); border-radius: 99px; font-size: 10px; }
.lk-md-body h2 { font-size: 34px; line-height: 1.2; }
.lk-md-body h2 small { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--c-dialog-muted, #5a6a80); letter-spacing: .08em; }
.lk-md-catch { color: var(--c); font-weight: 800; font-size: 18px; }
.lk-md-career { justify-self: start; margin-top: -6px; padding: 3px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c-dialog-fg, #0d1f3c); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.lk-md-body > p:not([class]) { font-size: 14px; line-height: 1.9; }
.lk-md-quals { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; line-height: 1.7; }
.lk-md-quals b { color: var(--c); }
.lk-md-quote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--c); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--c) 9%, transparent); font-size: 14px; line-height: 1.85; }
.lk-md-quote b { display: block; margin-bottom: 2px; color: var(--c); font-size: 11px; letter-spacing: .1em; }
.lk-note { font-size: 12px; color: var(--c-dialog-muted, #5a6a80); }
.lk-submit { justify-self: start; border: 0; border-radius: 99px; padding: 13px 26px; background: var(--c, var(--c-dialog-accent, #0b2a5b)); color: #fff; font-weight: 800; letter-spacing: .04em; }
.lk-submit:hover { filter: brightness(1.1); }
.lk-dialog--form { padding: 34px 32px 30px; width: min(620px, calc(100vw - 32px)); }
.lk-dialog--form h2 { font-size: 24px; margin: 6px 0 8px; }
.lk-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .26em; color: var(--c-dialog-accent, #1f5fc4); }
#contact-form { display: grid; gap: 6px; margin-top: 16px; }
#contact-form label { font-size: 13px; font-weight: 700; margin-top: 8px; }
#contact-form input, #contact-form select, #contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--c-dialog-line, #c9d3e0); border-radius: 10px; background: var(--c-dialog-field, #f6f8fb); }
#contact-form .lk-submit { margin-top: 16px; background: var(--c-dialog-accent, #0b2a5b); }
#contact-form .lk-submit:disabled { opacity: .6; cursor: wait; }
.lk-direct { margin-top: 6px; font-size: 13px; font-weight: 700; }
.lk-direct a, .lk-result a { color: var(--c-dialog-accent, #1f5fc4); text-decoration: underline; text-underline-offset: 3px; }
#contact-form .lk-agree { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
#contact-form .lk-agree input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--c-dialog-accent, #0b2a5b); }
#contact-form .lk-agree a { color: var(--c-dialog-accent, #1f5fc4); text-decoration: underline; text-underline-offset: 3px; }
.lk-foot-link { text-decoration: underline; text-underline-offset: 3px; }
.lk-foot-link:hover { opacity: .8; }
.lk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lk-req { margin-left: 6px; padding: 1px 7px; border-radius: 4px; background: #c42a6a; color: #fff; font-size: 10px; }
.lk-result { min-height: 1.5em; font-size: 13px; font-weight: 700; }
.lk-result[data-state="error"] { color: #c42a3a; }
.lk-result[data-state="ok"] { color: #0d8a5c; }
@media (max-width: 640px) {
  .lk-md { grid-template-columns: 1fr; }
  .lk-md-img { max-height: 46vh; }
  .lk-md-body { padding: 24px 22px 28px; }
  .lk-dialog--form { padding: 30px 20px 24px; }
}

/* ---------- 4案の切り替え（確認用。公開時は消す） ---------- */
.lk-switch { position: fixed; z-index: 50; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(8, 18, 38, .86); color: #fff; font: 700 11px/1 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.lk-switch span { padding: 0 8px 0 10px; opacity: .7; letter-spacing: .08em; }
.lk-switch a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.lk-switch a:hover { background: rgba(255, 255, 255, .16); }
.lk-switch a[aria-current="page"] { background: #fff; color: #0b2148; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
