/* ==========================================================
   Aileron Inc. — Corporate Site (WordPress Theme Demo)
   ========================================================== */

:root {
  --navy: #1A2A4A;
  --navy-dark: #0F1A33;
  --blue: #4A6FB5;
  --blue-light: #6E8FCF;
  --gray-100: #F7F8FA;
  --gray-200: #EEF0F4;
  --gray-300: #D8DCE3;
  --gray-500: #8B92A0;
  --gray-700: #4A5160;
  --text: #1A2233;
  --white: #FFFFFF;
  --max-w: 1180px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--easing); }
a:hover { opacity: 0.7; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.header__logo span { color: var(--blue); }
.gnav { display: flex; align-items: center; gap: 32px; }
.gnav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.gnav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--easing);
}
.gnav__link:hover::after { width: 100%; }
.gnav__cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.gnav__cta:hover { background: var(--blue); opacity: 1; }

.hamburger {
  display: none;
  width: 28px; height: 22px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s var(--easing);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.is-active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, #0F1A33 0%, #1A2A4A 50%, #2B3F6E 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(74, 111, 181, 0.25), transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(74, 111, 181, 0.15), transparent 50%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-size: 56px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  max-width: 880px;
}
.hero__title em {
  font-style: normal;
  color: var(--blue-light);
}
.hero__desc {
  font-size: 17px;
  line-height: 2;
  max-width: 720px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  font-family: inherit;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-light); opacity: 1; }
.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--secondary:hover { border-color: var(--white); opacity: 1; }
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--blue); opacity: 1; }

/* ===== Section ===== */
.section {
  padding: 100px 0;
}
.section--gray { background: var(--gray-100); }
.section__head { text-align: center; margin-bottom: 64px; }
.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__title {
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section__desc {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.3s var(--easing);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(26, 42, 74, 0.08);
}
.service-card__icon {
  width: 56px; height: 56px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}
.service-card__num {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}
.service-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 24px;
}
.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__link::after {
  content: '→';
  transition: transform 0.3s var(--easing);
}
.service-card:hover .service-card__link::after { transform: translateX(4px); }

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stat__num {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__num span { color: var(--blue); font-size: 28px; margin-left: 4px; }
.stat__label {
  font-size: 13px;
  color: var(--gray-700);
  letter-spacing: 0.05em;
}

/* ===== Cases Grid ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--easing);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 42, 74, 0.08);
}
.case-card__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.case-card__cat {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 2px;
  z-index: 2;
}
.case-card__body { padding: 24px; }
.case-card__client {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.case-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.case-card__tag {
  font-size: 11px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ===== News List ===== */
.news-list { max-width: 880px; margin: 0 auto; }
.news-item {
  display: grid;
  grid-template-columns: 110px 100px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.news-item__date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--gray-700);
  letter-spacing: 0.04em;
}
.news-item__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 4px 0;
  border-radius: 2px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.news-item__cat--press { background: var(--navy); color: var(--white); }
.news-item__cat--service { background: var(--blue); color: var(--white); }
.news-item__cat--info { background: var(--gray-200); color: var(--navy); }
.news-item__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.news-item:hover .news-item__title { color: var(--blue); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,111,181,0.2), transparent 60%);
}
.cta-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-banner__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 80px 0 24px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__brand-name span { color: var(--blue-light); }
.footer__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  max-width: 320px;
}
.footer__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
}
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer__list a:hover { color: var(--white); opacity: 1; }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--gray-100);
  padding: 16px 0;
  margin-top: 72px;
  font-size: 12px;
  color: var(--gray-700);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb__sep { margin: 0 10px; color: var(--gray-300); }

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(74,111,181,0.25), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

/* ===== Article ===== */
.article { max-width: 760px; margin: 0 auto; }
.article h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
}
.article h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
}
.article p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 20px;
}
.article ul, .article ol {
  margin: 0 0 24px 24px;
  font-size: 15px;
  line-height: 2;
}
.article li { margin-bottom: 6px; }
.article strong { color: var(--navy); font-weight: 600; }
.article figure { margin: 32px 0; }
.article figcaption {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 8px;
}

/* ===== Two Column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ===== Process Steps ===== */
.process { display: flex; flex-direction: column; gap: 32px; max-width: 880px; margin: 0 auto; }
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  border-left: 4px solid var(--blue);
}
.process__num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}
.process__title { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process__desc { font-size: 14px; line-height: 1.9; color: var(--gray-700); }

/* ===== FAQ ===== */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__q {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.3s var(--easing);
}
.faq__q:hover { background: var(--gray-100); }
.faq__q::before {
  content: 'Q';
  font-family: 'Inter', sans-serif;
  color: var(--blue);
  font-weight: 700;
  margin-right: 16px;
}
.faq__icon {
  width: 16px; height: 16px;
  position: relative;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--easing);
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a {
  padding: 0 24px;
  font-size: 14px;
  line-height: 2;
  color: var(--gray-700);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--easing), padding 0.4s var(--easing);
}
.faq__item.is-open .faq__a { max-height: 500px; padding: 0 24px 24px; }

/* ===== Form ===== */
.form { max-width: 720px; margin: 0 auto; }
.form__row { margin-bottom: 24px; }
.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form__label span {
  font-size: 11px;
  background: var(--blue);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 6px;
}
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.3s var(--easing);
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,111,181,0.1);
}
.form__textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.form__submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 500;
}
.form__notice {
  font-size: 12px;
  color: var(--gray-700);
  margin-top: 16px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: 4px;
  border-left: 3px solid var(--blue);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== WordPress-style Demo Badge ===== */
.demo-badge {
  position: fixed;
  bottom: 16px; right: 16px;
  background: rgba(26, 42, 74, 0.9);
  color: var(--white);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 999;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}
.demo-badge a { color: var(--blue-light); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero { padding: 80px 0; }
  .hero__title { font-size: 36px; }
  .hero__desc { font-size: 15px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 28px; }
  .services-grid, .cases-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 48px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .news-item { grid-template-columns: 100px 80px; grid-template-rows: auto auto; }
  .news-item__title { grid-column: 1/-1; }

  .hamburger { display: block; }
  .gnav {
    position: fixed;
    top: 72px; right: 0;
    background: var(--white);
    flex-direction: column;
    width: 100%;
    padding: 32px 24px;
    gap: 24px;
    align-items: stretch;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform 0.4s var(--easing);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .gnav.is-open { transform: translateY(0); }
  .gnav__cta { text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .page-hero__title { font-size: 30px; }
  .section__title { font-size: 24px; }
  .cta-banner__title { font-size: 24px; }
  .cta-banner__inner { flex-direction: column; align-items: stretch; }
  .process__step { grid-template-columns: 1fr; gap: 12px; }
  .article h2 { font-size: 22px; }
  .stat__num { font-size: 36px; }
}
