/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --color-primary: #1f6feb;
  --color-primary-dark: #164faa;
  --color-secondary: #f4f7fb;
  --color-text: #1d2939;
  --color-text-light: #475467;
  --color-border: #d0d5dd;
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0f1f4c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 48px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: rgba(243, 246, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 130;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  border-radius: 0.75rem;
}

.nav-toggle:hover {
  opacity: 0.8;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
}

body.nav-open .nav-toggle {
  background: transparent;
}

body.nav-open .floating-cta {
  display: none;
}

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

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

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(31, 111, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.22);
}

.hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.85)),
    url("../img/bg-hero-main.jpg") center/cover no-repeat;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.hero--services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-services.jpg") center/cover no-repeat;
}

.hero--service-line {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82)),
    url("../img/bg-hero-service-line.jpg") center/cover no-repeat;
}

.hero--service-app {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82)),
    url("../img/bg-hero-service-app.jpg") center/cover no-repeat;
}

.hero--service-system {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82)),
    url("../img/bg-hero-service-system.jpg") center/cover no-repeat;
}

.hero--service-web {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82)),
    url("../img/bg-hero-service-web.jpg") center/cover no-repeat;
}

.hero--works {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-works.jpg") center/cover no-repeat;
}

.hero--work-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-work-detail.jpg") center/cover no-repeat;
}

.hero--news {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-news.jpg") center/cover no-repeat;
}

.hero--news-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-news-detail.jpg") center/cover no-repeat;
}

.hero--about {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-about.jpg") center/cover no-repeat;
}

.hero--contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-contact.jpg") center/cover no-repeat;
}

.hero--note {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.84)),
    url("../img/bg-hero-note.jpg") center/cover no-repeat;
}

.hero-eyebrow {
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-block {
  border-radius: 1.25rem;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.image-block--hero {
  min-height: 320px;
}

.image-block--card {
  min-height: 180px;
}

.image-block--wide {
  min-height: 220px;
}

.image-block--thumb {
  width: 140px;
  height: 90px;
  border-radius: 1rem;
}

.image-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-block:hover::after {
  opacity: 1;
}

/* Image assignments */
.hero-side-slideshow {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 320px;
}

.hero-side-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSideSlideshow 15s infinite;
  border-radius: 1.25rem;
}

.hero-side-slide-1 {
  background-image: url("../img/hero-home-side.jpg");
  animation-delay: 0s;
}

.hero-side-slide-2 {
  background-image: url("../img/hero-home-side-2.jpg");
  animation-delay: 5s;
}

.hero-side-slide-3 {
  background-image: url("../img/hero-home-side-3.jpg");
  animation-delay: 10s;
}

@keyframes heroSideSlideshow {
  0% {
    opacity: 0;
  }
  8.33% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  41.66% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.img-card-service-line {
  background-image: url("../img/service-card-line.jpg");
}

.img-card-service-app {
  background-image: url("../img/service-card-app.jpg");
}

.img-card-service-system {
  background-image: url("../img/service-card-system.jpg");
}

.img-card-service-web {
  background-image: url("../img/service-card-web.jpg");
}

.img-card-work-education {
  background-image: url("../img/work-education.jpg");
}

.img-card-work-medical {
  background-image: url("../img/work-medical.jpg");
}

.img-card-work-d2c {
  background-image: url("../img/work-d2c.jpg");
}

.img-card-work-professional {
  background-image: url("../img/work-professional.jpg");
}

.img-card-news-press {
  background-image: url("../img/news-press.jpg");
}

.img-card-news-summer {
  background-image: url("../img/news-summer.jpg");
}

.img-card-news-seminar {
  background-image: url("../img/news-seminar.jpg");
}

.img-hero-services-overview {
  background-image: url("../img/hero-services-overview.jpg");
}

.img-hero-service-line-overview {
  background-image: url("../img/hero-service-line-overview.jpg");
}

.img-hero-service-app-overview {
  background-image: url("../img/hero-service-app-overview.jpg");
}

.img-hero-service-system-overview {
  background-image: url("../img/hero-service-system-overview.jpg");
}

.img-hero-service-web-overview {
  background-image: url("../img/hero-service-web-overview.jpg");
}

.img-hero-works-overview {
  background-image: url("../img/hero-works-overview.jpg");
}

.img-hero-work-detail {
  background-image: url("../img/hero-work-detail.jpg");
}

.img-hero-news-overview {
  background-image: url("../img/hero-news-overview.jpg");
}

.img-hero-news-detail {
  background-image: url("../img/hero-news-detail.jpg");
}

.img-hero-about-overview {
  background-image: url("../img/hero-about-overview.jpg");
}

.img-hero-contact-overview {
  background-image: url("../img/hero-contact-overview.jpg");
}

.img-hero-note-overview {
  background-image: url("../img/hero-note-overview.jpg");
}

.img-case-line-medical {
  background-image: url("../img/case-line-medical.jpg");
}

.img-case-app-d2c {
  background-image: url("../img/case-app-d2c.jpg");
}

.img-case-system-education {
  background-image: url("../img/case-system-education.jpg");
}

.img-case-web-professional {
  background-image: url("../img/case-web-professional.jpg");
}

.img-news-detail-body {
  background-image: url("../img/news-detail-body.jpg");
}

.img-about-ceo {
  background-image: url("../img/about-ceo.jpg");
}

.img-contact-office {
  background-image: url("../img/contact-office.jpg");
}

.img-note-rank-01 {
  background-image: url("../img/note-rank-01.jpg");
}

.img-note-rank-02 {
  background-image: url("../img/note-rank-02.jpg");
}

.img-note-rank-03 {
  background-image: url("../img/note-rank-03.jpg");
}

.img-note-categories {
  background-image: url("../img/note-categories.jpg");
}

.img-note-distribution {
  background-image: url("../img/note-distribution.jpg");
}

.floating-cta {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #1f6feb, #164faa);
  color: #ffffff;
  text-decoration: none;
  border-radius: 1.25rem 0 0 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  font-weight: 700;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 110;
}

.floating-cta span {
  writing-mode: horizontal-tb;
  text-orientation: initial;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
}

.floating-cta:hover {
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.22);
  transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 1024px) {
  .floating-cta {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .floating-cta {
    display: none;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

/* Client Logos Slider */
.client-logos-section {
  padding: 4rem 0;
  background: var(--color-secondary);
  overflow: hidden;
}

.hero-client-logos {
  grid-column: 1 / -1;
  margin-top: 3rem;
}

.hero-client-logos-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-client-logos-header h3 {
  position: relative;
  padding-bottom: 0.4rem;
}

.hero-client-logos-header h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(31, 111, 235, 0.2));
  border-radius: 2px;
}

.client-logos-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.client-logos-track {
  display: flex;
  gap: 1.5rem;
  animation: clientLogosScroll 45s linear infinite;
  will-change: transform;
}

.client-logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.client-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(31, 111, 235, 0.05));
  border: 2px dashed rgba(31, 111, 235, 0.3);
  border-radius: 0.5rem;
  color: rgba(31, 111, 235, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.client-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes clientLogosScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-160px * 10 - 1.5rem * 10));
  }
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(31, 111, 235, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(31, 111, 235, 0.4));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  border-color: rgba(31, 111, 235, 0.2);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-info {
  display: grid;
  gap: 0.5rem;
  flex: 1;
}

.stat-info strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary), rgba(31, 111, 235, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-info span {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.stat-character-slot {
  min-width: 72px;
  min-height: 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2.5px dashed rgba(31, 111, 235, 0.4);
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.08), rgba(31, 111, 235, 0.04));
  color: rgba(31, 111, 235, 0.7);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.stat-character-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(31, 111, 235, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover .stat-character-slot {
  border-color: rgba(31, 111, 235, 0.6);
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(31, 111, 235, 0.06));
  transform: scale(1.05);
}

.stat-card:hover .stat-character-slot::before {
  opacity: 1;
}

.stat-character-slot span {
  pointer-events: none;
  text-transform: uppercase;
  font-size: 0.65rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

@keyframes underlineSweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero h1,
.section-header h2,
.content-header h1,
.content-header h2,
.card > h3,
.news-item h3,
.ranking-item h3 {
  position: relative;
  padding-bottom: 0.4rem;
}

.hero h1::after,
.section-header h2::after,
.content-header h1::after,
.content-header h2::after,
.card > h3::after,
.news-item h3::after,
.ranking-item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(31, 111, 235, 0.2));
  transform-origin: left center;
  transform: scaleX(0);
  animation: underlineSweep 1s ease forwards;
}

.content-header h1::after,
.content-header h2::after {
  animation-delay: 0.1s;
}

.card > h3::after,
.news-item h3::after,
.ranking-item h3::after {
  height: 2px;
  animation-duration: 0.85s;
}

.hero-subline {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: rgba(15, 23, 42, 0.78);
}

.underline-animated {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.underline-animated::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(31, 111, 235, 0.2));
  transform-origin: left center;
  transform: scaleX(0);
  animation: underlineSweep 1s ease forwards;
}

section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-header > div {
  display: grid;
  gap: 0.75rem;
}

.section-header > a {
  align-self: flex-start;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin: 0 0 0.75rem;
  color: var(--color-primary-dark);
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 1.5rem;
  color: var(--color-text-light);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 52, 140, 0.5);
  background: linear-gradient(135deg, #164faa, #0d3b89);
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(8, 27, 78, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  position: relative;
}

.card-link:hover,
.card-link:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 20px rgba(8, 27, 78, 0.42);
  filter: brightness(1.05);
  color: #ffffff;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.card-link:hover::after,
.card-link:focus::after {
  border-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.card-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.65em;
  height: 0.65em;
}

.news-item .card-link {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 14px rgba(8, 27, 78, 0.3);
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--color-secondary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-banner {
  background: linear-gradient(135deg, #1f6feb, #164faa);
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 3rem;
  display: grid;
  gap: 1.5rem;
}

.cta-banner h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.84);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand img {
  width: 56px;
}

.footer-nav a {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.note-ranking {
  display: grid;
  gap: 1.25rem;
}

.ranking-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
  align-items: center;
}

.ranking-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 48px;
}

.ranking-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.layout-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

.table thead {
  background-color: var(--color-secondary);
}

.table th,
.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.4rem;
  width: 2px;
  height: 100%;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.faq-item h4 {
  margin: 0 0 0.5rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-list .badge {
  background: rgba(31, 111, 235, 0.16);
}

.news-list {
  display: grid;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}

.news-item:hover {
  transform: translateY(-4px);
}

.news-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.news-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-primary);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15);
  outline: none;
}

.form-footnote {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-primary);
}

blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(31, 111, 235, 0.08);
  border-radius: 0.5rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-highlight strong {
  font-size: 2rem;
  color: var(--color-primary);
}

.list-check {
  display: grid;
  gap: 0.5rem;
}

.list-check li::before {
  content: "✔";
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.project-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background-color: #ffffff;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-header h1,
.content-header h2 {
  margin: 0;
}

article {
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.25rem 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 120;
    max-height: calc(100vh - 3rem);
    overflow: auto;
  }

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

  .nav a {
    font-size: 1.05rem;
    display: block;
    width: 100%;
    color: var(--color-text);
    border-color: transparent;
  }

  .nav a:hover,
  .nav a:focus {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }

  .header-inner {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }

  .header-inner {
    padding: 0.5rem 0;
  }

  .brand img {
    width: 40px;
  }

  .brand-text {
    font-size: 0.85rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero-content {
    text-align: center;
    gap: 1.5rem;
  }

  .hero-content > div:first-child {
    display: grid;
    justify-items: center;
    gap: 1rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin: 0.5rem 0;
  }

  .hero-subline {
    font-size: 0.85em;
  }

  .hero-lead {
    display: none;
  }

  .hero-aside {
    order: -1;
  }

  .hero-side-slideshow {
    min-height: 180px;
    margin-bottom: 0;
  }

  .hero-aside .feature-list {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem !important;
  }

  .client-logos-section {
    padding: 3rem 0;
  }

  .hero-client-logos {
    margin-top: 2rem;
  }

  .hero-client-logos-header h3 {
    font-size: 1.35rem;
  }

  .client-logo-item {
    width: 140px;
    height: 90px;
    padding: 1rem;
  }

  .client-logos-track {
    gap: 1.25rem;
    animation-duration: 40s;
  }

  @keyframes clientLogosScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-140px * 10 - 1.25rem * 10));
    }
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .stat-card::before {
    height: 2px;
  }

  .stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .stat-info strong {
    font-size: 1.65rem;
  }

  .stat-info span {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .stat-character-slot {
    min-width: 56px;
    min-height: 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 0.6rem;
  }

  .stat-character-slot span {
    font-size: 0.55rem;
  }

  .image-block--hero {
    min-height: 180px;
  }

  .feature-list {
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .card {
    padding: 1.75rem;
  }

  .news-item {
    padding: 1.25rem;
  }

  .note-ranking {
    gap: 1rem;
  }

  .ranking-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .layout-two-column {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1rem;
  }

  footer {
    padding: 2.5rem 0;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0.4rem 0;
  }

  .brand img {
    width: 36px;
  }

  .brand-text {
    font-size: 0.75rem;
  }

  .brand-text strong {
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-content > div:first-child {
    gap: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-info strong {
    font-size: 1.5rem;
  }

  .stat-info span {
    font-size: 0.7rem;
  }

  .stat-character-slot {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .client-logos-section {
    padding: 2.5rem 0;
  }

  .hero-client-logos {
    margin-top: 1.5rem;
  }

  .hero-client-logos-header {
    margin-bottom: 1rem;
  }

  .hero-client-logos-header h3 {
    font-size: 1.2rem;
  }

  .hero-client-logos-header p {
    font-size: 0.85rem;
  }

  .client-logo-item {
    width: 120px;
    height: 80px;
    padding: 0.75rem;
  }

  .client-logos-track {
    gap: 1rem;
    animation-duration: 35s;
  }

  .client-logo-placeholder {
    font-size: 0.7rem;
  }

  @keyframes clientLogosScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-120px * 10 - 1rem * 10));
    }
  }

  .cta-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .nav {
    left: 0.75rem;
    right: 0.75rem;
    padding: 2rem 1.75rem;
  }
}


