/* ===========================================================
   AI Neural — site styles
   一般社団法人AIニューラル  https://ai-neural.lds-inc.jp/
   =========================================================== */

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Noto Sans JP', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: #fff; color: #1e293b; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, canvas, svg { max-width: 100%; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.65); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,.5); } 50% { box-shadow: 0 0 0 14px rgba(14,165,233,0); } }

/* ---- scroll reveal ----
   opacity:0 is applied ONLY when JS is running (html.js), so that
   crawlers and no-JS visitors always see the full content.        */
.js [data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .82s cubic-bezier(.4,0,.2,1), transform .82s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--d, 0ms);
}
.js [data-anim].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- nav ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0); border-bottom: 1px solid transparent; box-shadow: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  padding: 0 5%;
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(14,165,233,.1);
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
}
.nav-inner { max-width: 1200px; margin: 0 auto; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.nav-brand-en { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: #0C4A6E; }
.nav-brand-ja { font-size: .62rem; font-weight: 500; color: #0EA5E9; letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: .88rem; font-weight: 500; color: #0C4A6E; transition: color .2s; }
.nav-link--sub { font-weight: 400; color: #64748B; }
.nav-link:hover { color: #0EA5E9; }
.nav-cta {
  font-size: .85rem; font-weight: 600; color: #fff; background: #0EA5E9;
  padding: 10px 22px; border-radius: 100px; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #0284C7; transform: translateY(-1px); }

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; padding: 9px; border-radius: 10px;
}
.nav-toggle:hover { background: rgba(14,165,233,.08); }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #0C4A6E; transition: transform .3s, opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px; background: #0EA5E9; color: #fff;
  font-weight: 600; font-size: .95rem; padding: 14px 28px; border-radius: 100px;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(14,165,233,.38); animation: glowPulse 3s 2s infinite;
}
.btn-primary:hover { background: #0284C7; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(14,165,233,.48); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px; color: #0369A1; font-weight: 500; font-size: .95rem;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid #BAE6FD; transition: background .25s, border-color .25s;
}
.btn-ghost:hover { background: #F0F9FF; border-color: #7DD3FC; }
.btn-light {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; color: #0369A1;
  font-weight: 700; font-size: 1rem; padding: 16px 42px; border-radius: 100px;
  transition: transform .25s, box-shadow .25s; box-shadow: 0 6px 28px rgba(0,0,0,.2); border: 0; cursor: pointer;
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,.3); }

/* ---- hero ---- */
.hero {
  min-height: 100vh; background: linear-gradient(145deg, #F0F9FF 0%, #ffffff 55%, #E8F4FF 100%);
  display: flex; align-items: center; padding: 70px 5% 60px; position: relative; overflow: hidden;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 72px; }
.hero-text { flex: 1; min-width: 0; }
.hero-visual { flex: 0 0 450px; height: 470px; position: relative; }
.hero-title { font-size: clamp(2.3rem, 4.5vw, 3.8rem); font-weight: 700; color: #0C4A6E; line-height: 1.22; letter-spacing: -.025em; margin-bottom: 14px; }

/* ---- sections ---- */
.section { padding: 116px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 700; color: #0C4A6E; letter-spacing: -.02em; line-height: 1.28; }
.eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: .73rem; font-weight: 600; color: #0EA5E9; letter-spacing: .15em; text-transform: uppercase; }

.about-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 88px; align-items: flex-start; }
.about-col { flex: 1; min-width: 0; }
.about-cards { display: flex; flex-direction: column; gap: 18px; }
.about-card { background: #F0F9FF; border-radius: 18px; padding: 26px 28px; border: 1px solid rgba(14,165,233,.1); display: flex; gap: 18px; align-items: flex-start; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: #fff; border-radius: 24px; padding: 40px 34px; border: 1px solid rgba(14,165,233,.1);
  box-shadow: 0 2px 18px rgba(0,0,0,.04); transition: transform .3s, box-shadow .3s;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(14,165,233,.13); }
.svc-card--dark { background: linear-gradient(148deg,#0C4A6E,#0369A1); border: 0; box-shadow: 0 8px 36px rgba(12,74,110,.3); }
.svc-card--dark:hover { transform: translateY(-8px); box-shadow: 0 20px 56px rgba(12,74,110,.42); }
.js .svc-card:hover, .js .svc-card--dark:hover { transform: translateY(-8px); }

/* ---- membership ---- */
.ms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ms-item { background: #F8FBFF; border: 1px solid rgba(14,165,233,.12); border-radius: 18px; padding: 28px 30px; }
.ms-item h3 {
  font-size: 1rem; font-weight: 700; color: #0C4A6E; margin-bottom: 10px; line-height: 1.5;
  padding-left: 16px; position: relative;
}
.ms-item h3::before {
  content: ''; position: absolute; left: 0; top: .38em;
  width: 4px; height: 1em; border-radius: 2px; background: #0EA5E9;
}
.ms-item p { font-size: .88rem; line-height: 1.9; color: #64748B; font-weight: 300; }

@media (max-width: 860px) {
  .ms-grid { grid-template-columns: 1fr; gap: 16px; }
  .ms-item { padding: 24px 22px; }
}

/* ---- contact form ---- */
.contact { padding: 96px 5%; background: linear-gradient(135deg,#0C4A6E 0%,#0369A1 60%,#0EA5E9 100%); position: relative; overflow: hidden; }
.contact-inner { max-width: 740px; margin: 0 auto; position: relative; }
.form-grid { display: grid; gap: 18px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 7px; }
.field .req { font-size: .68rem; font-weight: 600; color: #0C4A6E; background: #7DD3FC; border-radius: 4px; padding: 2px 6px; margin-left: 7px; vertical-align: 1px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .93rem; color: #0F2A3D;
  background: rgba(255,255,255,.96); border: 1.5px solid transparent; border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #7DD3FC; box-shadow: 0 0 0 4px rgba(125,211,252,.3);
}
.field .err { display: block; font-size: .8rem; color: #FEE2E2; margin-top: 6px; font-weight: 500; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FCA5A5; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.85); line-height: 1.7; }
.form-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: #0EA5E9; }
.form-consent a { color: #BAE6FD; text-decoration: underline; }
.form-note { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.8; }
/* honeypot — must stay visually hidden but not display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* reCAPTCHA バッジは隠す。代わりにフォーム下に規約リンクを明記している
   （Google が認めている表示方法。文言を消すと規約違反になるので消さないこと） */
.grecaptcha-badge { visibility: hidden; }
.form-note a { color: #BAE6FD; text-decoration: underline; }
.alert { border-radius: 14px; padding: 16px 20px; font-size: .9rem; line-height: 1.8; margin-bottom: 26px; text-align: left; }
.alert--error { background: rgba(254,226,226,.95); color: #991B1B; }
.alert--ok { background: rgba(220,252,231,.95); color: #14532D; }

/* ---- footer ---- */
.site-footer { background: #0A3352; padding: 60px 5% 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 56px; margin-bottom: 52px; }
.footer-cols { display: flex; gap: 60px; }
.footer-heading { font-size: .7rem; font-weight: 700; color: #fff; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-link { font-size: .86rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-link:hover { color: #38BDF8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal-hero { padding: 120px 5% 56px; background: linear-gradient(145deg, #F0F9FF 0%, #ffffff 100%); }
.legal-hero__inner { max-width: 860px; margin: 0 auto; }
.legal-hero__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 700; color: #0C4A6E; letter-spacing: -.02em; margin: 14px 0 10px; line-height: 1.28; }
.legal-hero__sub { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: #64748B; font-weight: 300; margin-bottom: 16px; }
.legal-hero__date { font-size: .84rem; color: #94A3B8; font-weight: 300; }

.legal { padding: 20px 5% 110px; background: #fff; }
.legal-inner { max-width: 860px; margin: 0 auto; }

.note { padding: 18px 22px; border-radius: 0 12px 12px 0; margin-bottom: 20px; }
.note--info { background: #EFF6FF; border-left: 3px solid #3B82F6; }
.note--warn { background: #FFF8E1; border-left: 3px solid #F59E0B; }
.note__title { font-size: .88rem; font-weight: 700; color: #1E40AF; margin-bottom: 8px; }
.note--info .note__body { font-size: .84rem; color: #1E40AF; line-height: 1.75; }
.note--warn .note__body { font-size: .86rem; color: #92400E; line-height: 1.8; }
.note__body-en { font-family: 'Space Grotesk', sans-serif; font-size: .76rem; color: #3B82F6; font-weight: 300; margin-top: 8px; line-height: 1.7; }
.note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

.legal-rows { border-top: 1px solid #E0F2FE; margin-top: 20px; }
.legal-row { display: grid; grid-template-columns: 220px 1fr; gap: 36px; border-bottom: 1px solid #E0F2FE; padding: 28px 0; }
.legal-row__label { font-size: .9rem; font-weight: 700; color: #0C4A6E; margin-bottom: 4px; }
.legal-row__label-en { font-family: 'Space Grotesk', sans-serif; font-size: .7rem; color: #94A3B8; letter-spacing: .04em; }
.legal-row__value { font-size: .95rem; color: #1E293B; line-height: 1.75; margin-bottom: 6px; }
.legal-row__value.is-missing { color: #B45309; background: #FFFBEB; border: 1px dashed #FCD34D; border-radius: 8px; padding: 8px 12px; font-weight: 500; display: inline-block; }
.legal-row__value-en { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; color: #64748B; font-weight: 300; line-height: 1.75; }

/* プライバシーポリシー */
.pp-intro { background: #F0F9FF; border-radius: 16px; padding: 28px 32px; margin-bottom: 48px; border: 1px solid rgba(14,165,233,.12); }
.pp-intro p { font-size: .95rem; line-height: 1.9; color: #334155; font-weight: 300; margin-bottom: 12px; }
.pp-intro p.en { font-family: 'Space Grotesk', sans-serif; font-size: .84rem; line-height: 1.8; color: #64748B; margin-bottom: 0; }
.pp-sec { margin-bottom: 48px; }
.pp-sec--last { margin-bottom: 0; }
.pp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid #E0F2FE; }
.pp-num {
  width: 32px; height: 32px; background: #0EA5E9; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700; color: #fff;
}
.pp-title { font-size: 1.05rem; font-weight: 700; color: #0C4A6E; line-height: 1.2; }
.pp-title-en { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; color: #94A3B8; letter-spacing: .04em; }
.pp-p { font-size: .93rem; line-height: 1.9; color: #475569; font-weight: 300; margin-bottom: 10px; }
.pp-p a { color: #0284C7; text-decoration: underline; }
.pp-en { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; line-height: 1.85; color: #94A3B8; font-weight: 300; }
.pp-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding-left: 4px; }
.pp-list li { position: relative; padding-left: 18px; font-size: .92rem; color: #475569; font-weight: 300; line-height: 1.7; }
.pp-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #0EA5E9; }
.pp-contact { background: #F0F9FF; border-radius: 14px; padding: 24px 28px; border: 1px solid rgba(14,165,233,.12); }
.pp-contact__name { font-size: .93rem; font-weight: 700; color: #0C4A6E; margin-bottom: 12px; }

/* 長文ポリシー本文 */
.legal-body h2 { font-size: 1.15rem; font-weight: 700; color: #0C4A6E; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #E0F2FE; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: .98rem; font-weight: 700; color: #0369A1; margin: 24px 0 10px; }
.legal-body p { font-size: .93rem; line-height: 1.95; color: #475569; font-weight: 300; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 1.4em; }
.legal-body li { font-size: .93rem; line-height: 1.9; color: #475569; font-weight: 300; margin-bottom: 7px; }
.legal-body a { color: #0284C7; text-decoration: underline; }
.legal-body strong { font-weight: 700; color: #1E293B; }

@media (max-width: 860px) {
  .legal-hero { padding: 96px 5% 40px; }
  .legal { padding: 16px 5% 76px; }
  .legal-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .legal-body h2 { font-size: 1.05rem; margin-top: 32px; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-visual { flex: 0 0 380px; height: 400px; }
  .about-inner { gap: 48px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { gap: 32px; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 10px 5% 22px; border-bottom: 1px solid rgba(14,165,233,.12);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 15px 4px; border-bottom: 1px solid rgba(14,165,233,.08); font-size: .95rem; }
  .nav-cta { margin-top: 16px; text-align: center; justify-content: center; display: block; padding: 14px 22px; }

  .hero { min-height: auto; padding: 110px 5% 72px; }
  .hero-inner { flex-direction: column; gap: 48px; }
  .hero-visual { flex: 0 0 auto; width: 100%; max-width: 420px; height: 360px; margin: 0 auto; }
  .hero-scroll-hint { display: none; }

  .section { padding: 80px 5%; }
  .about-inner { flex-direction: column; gap: 44px; }
  .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-card, .svc-card--dark { padding: 34px 28px; }

  .contact { padding: 76px 5%; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 48px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .legal { padding: 100px 5% 72px; }
  .legal-inner { padding: 36px 24px 44px; border-radius: 18px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 5% 60px; }
  .hero-visual { height: 300px; }
  .nav-brand-en { font-size: 1.25rem; }
  .section { padding: 64px 5%; }
  .about-card { padding: 22px 20px; gap: 14px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .btn-light { width: 100%; justify-content: center; padding: 16px 24px; }
}
