/* ===================================================
   ACHILON株式会社 - 共通デザインシステム
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1528;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-card: rgba(10, 186, 181, 0.15);

  --cyan: #0ABAB5;
  --violet: #7b2fff;
  --coral: #ff6b47;
  --white: #e8eaf6;
  --muted: #8892a4;

  --gradient-hero: linear-gradient(135deg, rgba(10, 186, 181, 0.15) 0%, rgba(123, 47, 255, 0.15) 100%);
  --gradient-btn: linear-gradient(90deg, var(--cyan), var(--violet));
  --gradient-glow: linear-gradient(180deg, rgba(10, 186, 181, 0.08) 0%, transparent 100%);

  --shadow-glow: 0 0 40px rgba(10, 186, 181, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-card: 16px;
  --radius-btn: 8px;

  --nav-h: 72px;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-jp);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 186, 181, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.3s;
}

.nav__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg,
      #0abab5,
      #00d4ff,
      #7b2fff,
      #a78bfa,
      #0abab5,
      #00d4ff,
      #7b2fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoColorFlow 6s ease-in-out infinite;
}

@keyframes logoColorFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-btn);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(10, 186, 181, 0.3);
}

.nav__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(10, 186, 181, 0.4);
  color: #fff !important;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Page Header / Hero ---- */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 24px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(10, 186, 181, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-hero__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Section ---- */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section__desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 56px;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  padding: 36px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  border-color: rgba(10, 186, 181, 0.35);
}

/* ---- Grid ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 24px rgba(10, 186, 181, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 40px rgba(10, 186, 181, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.btn--outline:hover {
  background: rgba(10, 186, 181, 0.1);
  color: var(--white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Info Table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.info-table th {
  color: var(--cyan);
  font-weight: 600;
  width: 200px;
  white-space: nowrap;
}

.info-table td {
  color: var(--white);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(10, 186, 181, 0.6);
}

.timeline__year {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.timeline__text {
  color: var(--white);
  font-size: 0.95rem;
}

/* ---- Icon Box ---- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.15), rgba(123, 47, 255, 0.15));
  border: 1px solid rgba(10, 186, 181, 0.2);
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.badge--cyan {
  background: rgba(10, 186, 181, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(10, 186, 181, 0.3);
}

.badge--violet {
  background: rgba(123, 47, 255, 0.15);
  color: #a67fff;
  border: 1px solid rgba(123, 47, 255, 0.3);
}

.badge--coral {
  background: rgba(255, 107, 71, 0.15);
  color: var(--coral);
  border: 1px solid rgba(255, 107, 71, 0.3);
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 186, 181, 0.3), transparent);
  margin: 64px 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(10, 186, 181, 0.1);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer__address {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.9;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.3s;
}

.footer__social a:hover {
  background: rgba(10, 186, 181, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Scroll Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- Neon Glow Decorations ---- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--cyan {
  background: rgba(10, 186, 181, 0.12);
  width: 400px;
  height: 400px;
}

.glow-orb--violet {
  background: rgba(123, 47, 255, 0.1);
  width: 500px;
  height: 500px;
}

/* ---- Step Flow ---- */
.steps {
  display: flex;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px rgba(10, 186, 181, 0.4);
}

.step__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.step__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Accordion (FAQ) ---- */
.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 600;
  gap: 16px;
}

.accordion__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 186, 181, 0.15);
  border: 1px solid rgba(10, 186, 181, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1rem;
  transition: transform 0.3s;
}

.accordion__item.open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__body p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.08) 0%, rgba(123, 47, 255, 0.12) 100%);
  border: 1px solid rgba(10, 186, 181, 0.2);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(10, 186, 181, 0.06);
  filter: blur(60px);
}

.cta-banner__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-banner__desc {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav {
    padding: 0 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid>*:first-child {
    grid-column: 1 / -1;
  }

  /* item.html - service grid 2col */
  .service-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {

  /* === Navigation === */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(10, 186, 181, 0.15);
    z-index: 999;
  }

  .nav__toggle {
    display: flex;
  }

  /* === Grids → 1col === */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* === item.html service grid === */
  .service-grid {
    grid-template-columns: 1fr !important;
  }

  /* service-wide override */
  .service-wide {
    grid-column: auto !important;
  }

  /* === corporate.html greeting === */
  .greeting-wrap {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .greeting-left {
    width: 100% !important;
    min-height: auto !important;
    padding: 40px 24px !important;
  }

  .greeting-right {
    width: 100% !important;
    min-height: 50vw !important;
    padding: 32px 24px !important;
  }

  /* === dx.html service-card === */
  .service-card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .service-card--reverse {
    direction: ltr !important;
  }

  .service-card__visual {
    aspect-ratio: 16 / 7 !important;
  }

  /* === Section spacing === */
  .section {
    padding: 64px 0;
  }

  /* === Footer === */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* === Steps / flow === */
  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  /* === Tables === */
  .info-table th {
    width: 120px;
  }

  /* === CTA banner === */
  .cta-banner {
    padding: 36px 20px;
  }

  /* === Page hero === */
  .page-hero {
    min-height: 30vh;
  }

  /* === index.html hero stats === */
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  /* === index.html notice bar === */
  .notice-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* === corporate.html info-table === */
  .info-table {
    display: block;
    overflow-x: auto;
  }

  .info-table tr {
    display: flex;
    flex-direction: column;
  }

  .info-table th,
  .info-table td {
    width: 100% !important;
    display: block;
  }

  /* === digitalcatalog.html capability grid === */
  .capability-grid {
    grid-template-columns: 1fr !important;
  }

  /* === digitalcatalog.html feature rows === */
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .feature-row--rev {
    direction: ltr !important;
  }

  /* === digitalcatalog.html cases === */
  .cases-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* === digitalcatalog.html flow === */
  .flow-steps {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .flow-steps::before {
    display: none !important;
  }

  /* === digitalcatalog.html price === */
  .price-cards {
    grid-template-columns: 1fr !important;
  }

  /* === consultant.html achievement === */
  .achievement-grid {
    grid-template-columns: 1fr !important;
  }

  /* === Buttons inline → stack === */
  .cta-banner div[style*="flex"],
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .glass-card {
    padding: 20px 16px;
  }

  /* item.html - min-height reduction */
  .glass-card[style*="min-height"] {
    min-height: 260px !important;
  }

  /* digitalcatalog.html cases → 1col on tiny screens */
  .cases-grid {
    grid-template-columns: 1fr !important;
  }

  /* price card amount slightly smaller */
  .price-card__amount {
    font-size: 2rem !important;
  }

  /* hero stat nums */
  .hero-stat__num {
    font-size: 1.5rem !important;
  }

  /* consultant stat */
  .stat-num {
    font-size: 2rem !important;
  }

  /* achievement box num */
  .achievement-box__num {
    font-size: 2.5rem !important;
  }

  /* dx.html flow circle */
  .flow-step__circle {
    width: 52px;
    height: 52px;
  }

  /* section label */
  .section__title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
  }

  /* footer */
  .footer {
    padding: 48px 0 32px;
  }
}


/* ---- Keyframe Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ---- Highlight Text ---- */
.text-cyan {
  color: var(--cyan);
}

.text-violet {
  color: #a67fff;
}

.text-coral {
  color: var(--coral);
}

.text-muted {
  color: var(--muted);
}

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