/* ===================================================
   common.css — AIアークス 全ページ共通スタイル
   =================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
body > header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px 0 60px;
  background: #eeeeee;
  z-index: 1000;
}
.logo { display: flex; align-items: center; }
nav { display: flex; align-items: center; }
.nav-toggle { display: none; }
.nav-links { display: flex; }
.nav-links a {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  border-left: 1px solid #d0d0d0;
}
.nav-links a:last-child { border-right: 1px solid #d0d0d0; }
.nav-links .nav-en { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; }
.nav-links .nav-ja { font-size: 11px; color: #666; letter-spacing: 0.06em; }
.nav-links a.active { color: #1a1a2e; font-weight: 700; }
.nav-links a.active .nav-en { color: #1a1a2e; font-weight: 700; }
.nav-contact {
  display: flex; align-items: center; justify-content: center;
  margin-left: 24px;
  background: #1a1a2e; color: #fff;
  font-size: 14px; font-family: 'Poppins', sans-serif;
  letter-spacing: 0.08em; padding: 12px 32px; height: 52px;
}

@media (max-width: 1180px) {
  body > header {
    padding: 0 24px 0 32px;
  }

  .nav-links a {
    padding: 0 9px;
  }

  .nav-links .nav-en {
    font-size: 12px;
  }

  .nav-contact {
    margin-left: 16px;
    padding: 12px 22px;
  }
}

@media (max-width: 768px) {
  body > header {
    height: 72px;
    padding: 0 18px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 1px 0 rgba(16,24,40,0.08);
  }

  body > header .logo img {
    height: 48px !important;
  }

  .nav-toggle {
    position: relative;
    z-index: 1003;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #d7dce8;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #1a1a2e;
    transition: transform 0.2s, opacity 0.2s;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body > header nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: grid;
    gap: 18px;
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid #e5e9f2;
    box-shadow: 0 18px 40px rgba(19, 28, 54, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1002;
  }

  body.nav-open > header nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e9f2;
  }

  .nav-links a {
    min-height: 52px;
    padding: 12px 14px;
    align-items: flex-start;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #eef1f6;
    color: #1a1a2e;
  }

  .nav-links a:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .nav-links .nav-en {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .nav-links .nav-ja {
    font-size: 11px;
    color: #666;
    letter-spacing: 0;
  }

  .nav-links a.active .nav-en,
  .nav-links a.active .nav-ja {
    color: #1a1a2e;
  }

  .nav-contact {
    height: 44px;
    margin-left: 0;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.04em;
    width: 100%;
  }

  .page-hero {
    padding: 112px 0 46px;
  }

  .page-hero .en-title {
    font-size: clamp(40px, 12vw, 56px);
    margin-bottom: 10px;
  }

  .page-hero .ja-title {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .section-head {
    padding-bottom: 28px;
    margin-bottom: 34px;
  }

  .section-head .ja {
    font-size: 24px;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .section-head .en {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 80px; }

/* ===== PAGE HERO (サブページ共通) ===== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: #eeeeee;
}
.page-hero .en-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px; font-weight: 700;
  color: #1a1a2e; letter-spacing: 0.04em;
  line-height: 1; margin-bottom: 16px;
}
.page-hero .ja-title {
  font-size: 18px; font-weight: 600;
  color: #4a5568; letter-spacing: 0.1em;
}

/* ===== SECTION HEAD ===== */
.section-head {
  padding: 0 0 48px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 56px;
}
.section-head .ja {
  font-size: 28px; font-weight: 700;
  color: #1a1a2e; letter-spacing: 0.04em;
  line-height: 1; margin-bottom: 8px;
}
.section-head .en {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #a0aec0; letter-spacing: 0.2em;
}

/* ===== SHARED CTA ===== */
.section-cta {
  padding: 96px 0 112px;
  background: #fff;
}
.section-cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 52px 0 58px;
  border-top: 1px solid #dce3f1;
  border-bottom: 1px solid #dce3f1;
  text-align: center;
}
.section-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-cta-label {
  margin-bottom: 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  color: #1e57d7;
}
.section-cta-title {
  margin-bottom: 24px;
  color: #08090f;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}
.section-cta-desc {
  width: min(100%, 640px);
  margin-bottom: 28px;
  color: #4b5568;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}
.section-cta-points {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  margin: 0 0 32px;
  color: #1f2937;
  text-align: left;
}
.section-cta-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.section-cta-points .material-icons {
  color: #2f63d9;
  font-size: 20px;
  line-height: 1.45;
}
.section-cta-button {
  position: relative;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 64px;
  padding: 18px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #153070 0%, #1e57d7 100%);
  box-shadow: 0 16px 34px rgba(31, 86, 205, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.section-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(31, 86, 205, 0.26);
}
.section-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(31, 86, 205, 0.2);
}

/* ===== FOOTER ===== */
footer { background: #eeeeee; padding: 60px 80px 30px; }
.footer-inner {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 60px; margin-bottom: 50px;
}
.footer-address { font-size: 11px; color: #666; line-height: 1.9; margin-top: 16px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 8px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 14px; }
.footer-nav-col a {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; letter-spacing: 0.08em; color: #444;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
}
.footer-link-en {
  font-weight: 600;
}
.footer-link-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  color: #777;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #d8d8d8; padding-top: 24px;
}
.footer-bottom a { font-size: 11px; color: #666; }
.footer-copy { font-family: 'Poppins', sans-serif; font-size: 11px; color: #999; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: #1a1a2e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; z-index: 999; border-radius: 2px;
}

/* ===== 共通ボタン ===== */
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; padding: 18px 48px;
  border-radius: 4px; transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .container,
  .section-inner {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  footer {
    padding: 48px 20px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .scroll-top {
    right: 18px;
    bottom: 24px;
  }

  .section-cta {
    padding: 72px 0 84px;
  }

  .section-cta-card {
    padding: 42px 0 48px;
  }

  .section-cta-label {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .section-cta-title {
    margin-bottom: 20px;
    font-size: clamp(32px, 10vw, 42px);
  }

  .section-cta-desc {
    font-size: 13px;
    line-height: 1.9;
  }

  .section-cta-points {
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-cta-points li {
    font-size: 13px;
  }

  .section-cta-button {
    min-height: 58px;
    padding: 16px 22px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .container,
  .section-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}
