/* ═══════════════════════════════════════════════
   common.css — 全ページ共通スタイル
   エーアイプロシステム（白ベースデザイン）
   ═══════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --blue: #46A3E0;
  --blue2: #2E8CC8;
  --green: #9FC238;
  --green2: #7DA81E;
  --grad: linear-gradient(120deg, #46A3E0 0%, #9FC238 100%);
  --dark:  #FFFFFF;          /* ページ背景：白 */
  --dark2: #F5F7FA;          /* セクション背景：薄いグレー */
  --dark3: #EEF2F7;          /* フッター背景 */
  --surface: #F0F4F8;
  --white: #FFFFFF;
  --navy: #121A2A;           /* 見出しテキスト */
  --text: rgba(18, 26, 42, 0.88);   /* 本文テキスト（濃い） */
  --muted: rgba(18, 26, 42, 0.52);  /* 補足テキスト */
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth }

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70, 163, 224, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: background .3s;
}

nav.scrolled { background: rgba(255, 255, 255, 0.98) }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img { height: 40px; width: auto }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .2s;
}

.nav-links a:hover {
  color: var(--navy);
  background: rgba(70, 163, 224, 0.08);
}

.nav-cta {
  background: var(--grad) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(70, 163, 224, .25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(70, 163, 224, .38) !important;
}

/* ─── SECTION BASE ─── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 56px;
}

.tag {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--navy);
}

.sec-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 56px;
}

/* ─── HERO BASE ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 56px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(70, 163, 224, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 163, 224, .07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb1 { width: 500px; height: 500px; background: rgba(70, 163, 224, .10); top: -60px; right: 8% }
.orb2 { width: 320px; height: 320px; background: rgba(159, 194, 56, .08); bottom: -40px; right: 28% }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeUp .8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(70, 163, 224, .4);
  color: var(--blue2);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  background: rgba(70, 163, 224, .07);
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--navy);
}

h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── BUTTONS ─── */
.btns { display: flex; gap: 16px; flex-wrap: wrap }

.btn-grad {
  background: var(--grad);
  color: white;
  padding: 15px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(70, 163, 224, .25);
  transition: all .25s;
}

.btn-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(70, 163, 224, .4);
}

.btn-out {
  background: transparent;
  color: rgba(18, 26, 42, .75);
  padding: 15px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(18, 26, 42, .18);
  transition: all .25s;
}

.btn-out:hover {
  border-color: var(--blue);
  color: var(--navy);
  background: rgba(70, 163, 224, .07);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px) }
  to   { opacity: 1; transform: translateY(0) }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50%       { opacity: .4; transform: scale(1.4) }
}

/* ─── CONTACT ─── */
#contact { background: var(--dark2) }

.contact-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 96px 56px;
  text-align: center;
}

.contact-form {
  background: #FFFFFF;
  border: 1px solid rgba(70, 163, 224, .15);
  border-radius: 24px;
  padding: 48px;
  text-align: left;
  margin-top: 48px;
  box-shadow: 0 4px 24px rgba(70, 163, 224, .08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.fg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px }

.fg label {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(18, 26, 42, .7);
}

.req { color: var(--blue) }

.fg input, .fg select, .fg textarea {
  background: #FFFFFF;
  border: 1.5px solid rgba(70, 163, 224, .2);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70, 163, 224, .1);
}

.fg input::placeholder, .fg textarea::placeholder {
  color: rgba(18, 26, 42, .3);
}

.fg select option { background: #FFFFFF; color: var(--text) }

.fg textarea { resize: vertical; min-height: 130px }

.form-foot { text-align: center; margin-top: 8px }

.submit-btn {
  background: var(--grad);
  color: white;
  border: none;
  padding: 16px 52px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(70, 163, 224, .28);
  transition: all .25s;
  font-family: "Noto Sans JP", sans-serif;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(70, 163, 224, .42);
}

.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none }

/* ─── FOOTER ─── */
footer {
  background: var(--dark3);
  border-top: 1px solid rgba(70, 163, 224, .12);
  padding: 0;
}

.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 56px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
}

.foot-brand img { height: 36px; width: auto; margin-bottom: 16px }
.foot-brand p { color: var(--muted); font-size: .82rem; line-height: 1.7 }

.foot-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(18, 26, 42, .4);
  margin-bottom: 16px;
}

.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px }

.foot-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.foot-col ul a:hover { color: var(--navy) }

.foot-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 56px 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(18, 26, 42, .08);
  font-size: .75rem;
  color: rgba(18, 26, 42, .4);
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px }
  .nav-links { display: none }
  #hero, .contact-wrap { padding: 100px 24px 60px }
  .section { padding: 64px 24px }
  .form-row { grid-template-columns: 1fr }
  .contact-form { padding: 28px 20px }
  .foot-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 32px }
  .foot-bottom { padding: 16px 24px 24px }
}
