/* W567: 外国企業向けの入口 LP(/en/intake)の足し分。karte_lp_look.css(lp.tax.men と同じ配色・書体)の上に重ねる。
   🔴 .lpf の中だけに効く。本文の文字は 14px 未満にしない(bunsho-moji-10-5-20261012)。
   動きの目安は motion-reference(ai-00-owner)から: 出現 400〜600ms の ease-out・浮き上がり 8〜24px・順次表示は 40〜80ms ずつ・ホバー 150〜250ms・
   ポップは ease-out-back で行き過ぎを数%に。動きを減らす設定(prefers-reduced-motion)の人には全部止める。 */
.lpf { --ease-out: cubic-bezier(.22, .61, .36, 1); --ease-back: cubic-bezier(.34, 1.4, .64, 1); }
html { scroll-behavior: smooth; }
.lpf [id] { scroll-margin-top: 88px; }

/* 14px 未満にしない(足し分の側で、元の CSS の 13px を引き上げる) */
.lpf .lpx-eyebrow, .lpf .lpx-lang, .lpf .lpx-foot, .lpf .lpx-btn-sm { font-size: 14px; }

/* ---- ヒーロー ---- */
.lpf-hero { position: relative; isolation: isolate; }
.lpf-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; }
.lpf-orb-a { width: 420px; height: 420px; right: -80px; top: -120px; background: radial-gradient(circle at 35% 35%, #fff 0%, var(--teal) 60%, transparent 72%); }
.lpf-orb-b { width: 300px; height: 300px; left: -90px; bottom: -110px; background: radial-gradient(circle at 60% 40%, #fff 0%, #ffe3cf 58%, transparent 72%); }
.lpf-subtitle { font-size: 18px; font-weight: 700; line-height: 1.6; max-width: 30em; margin-bottom: 14px; }
.lpf-minutes { margin-top: 14px; font-size: 15px; color: var(--muted); }
.lpf-login { margin-top: 8px; font-size: 15px; color: var(--muted); }
.lpf-login a { color: inherit; text-decoration: underline; font-weight: 600; }
.lpf-btn-main { box-shadow: 0 10px 22px -12px rgba(217, 101, 26, .9); transition: background .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.lpf-btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(217, 101, 26, .9); }
.lpf-btn-main:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.lpf-arrow { display: inline-block; transition: transform .2s var(--ease-out); }
.lpf-btn-main:hover .lpf-arrow { transform: translateX(4px); }

/* ---- 4つの柱 ---- */
.lpf-pillars { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lpf-pillars li { display: flex; }
.lpf-pillars a { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 24px; transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.lpf-pillars a:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 14px 26px -16px rgba(23, 60, 68, .5); }
.lpf-pillars h3 { font-size: 20px; margin-bottom: 10px; }
.lpf-pillars p { font-size: 16px; color: var(--muted); flex: 1; }
.lpf-pillars em { margin-top: 16px; font-style: normal; font-size: 15px; font-weight: 700; color: var(--orange-dark); }
.lpf-pillars em span { display: inline-block; transition: transform .2s var(--ease-out); }
.lpf-pillars a:hover em span { transform: translateX(4px); }

/* ---- くわしい説明 ---- */
.lpf-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lpf-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px; position: relative; overflow: hidden; }
.lpf-panel::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out) .2s; }
.lpf-panel.in::before { transform: scaleX(1); }
.lpf-panel h3 { font-size: 24px; margin-bottom: 14px; }
.lpf-intro { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.lpf-panel ul { list-style: none; display: grid; gap: 14px; }
.lpf-panel li { position: relative; padding-left: 26px; font-size: 16px; }
.lpf-panel li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }


.lpf-final .lpx-h2 { margin-bottom: 16px; }

/* ---- 動き ---- */
@keyframes lpf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lpf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lpf-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, 14px); } }
@keyframes lpf-pop { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: none; } }

.lpf-rise { animation: lpf-rise .6s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.lpf-float { animation: lpf-float 6s ease-in-out 1s infinite; }
.lpf-orb-a { animation: lpf-drift 12s ease-in-out infinite; }
.lpf-orb-b { animation: lpf-drift 15s ease-in-out -4s infinite; }

/* スクロールで出す: JS が動くとき(html.js)だけ隠す。動かないときは最初から見える */
.js .lpf-rv { opacity: 0; transform: translateY(20px); transition: opacity .56s var(--ease-out), transform .56s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .lpf-rv.in { opacity: 1; transform: none; }
.js .lpf-pop { opacity: 0; }
.js .lpf-pop.in { animation: lpf-pop .5s var(--ease-back) .15s both; }

@media (max-width: 1000px) {
  .lpf-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lpf-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* 狭い画面ではヘッダーに全部は入らない: OPTI のロゴ（2つ目）をたたむ */
  .lpf .lpx-logos span, .lpf .lpx-logos img + span + img { display: none; }
  .lpf .lpx-bar-r { gap: 10px; }
  .lpf-pillars { grid-template-columns: 1fr; }
  .lpf-panel { padding: 28px 22px; }
  .lpf-subtitle { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lpf *, .lpf *::before, .lpf *::after { animation: none !important; transition: none !important; }
  .js .lpf-rv, .js .lpf-pop { opacity: 1 !important; transform: none !important; }
  .lpf-panel::before { transform: scaleX(1); }
}
