@charset "UTF-8";

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --c-white: #FFFFFF;
  --c-navy: #10243A;
  --c-blue: #247BFF;
  --c-cyan: #46C9E8;
  --c-bg: #F5F8FC;
  --c-text: #333333;
  --c-text-light: #666666;
  --c-border: #E5EAF2;

  --font-base: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-base);
  color: var(--c-text);
  line-height: 1.6;
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 120px 0;
}
.bg-gray {
  background-color: var(--c-bg);
}
.sp-only {
  display: none;
}
@media (max-width: 767px) {
  .section { padding: 80px 0; }
  .sp-only { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Typography & Titles
   ========================================================================== */
.sec-title {
  text-align: center;
  margin-bottom: 60px;
}
.sec-title__en {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sec-title__jp {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
}
@media (max-width: 767px) {
  .sec-title { margin-bottom: 40px; }
  .sec-title__jp { font-size: 24px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
  min-width: 200px;
}
.btn--primary {
  background-color: var(--c-blue);
  color: var(--c-white);
  box-shadow: 0 4px 15px rgba(36, 123, 255, 0.3);
}
.btn--primary:hover {
  background-color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 36, 58, 0.3);
}
.btn--outline {
  background-color: transparent;
  color: var(--c-navy);
  border: 1px solid var(--c-border);
}
.btn--outline:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}
.btn--white {
  background-color: var(--c-white);
  color: var(--c-blue);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.header__logo a {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-navy);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__list {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.header__list a {
  transition: color 0.3s;
}
.header__list a:hover {
  color: var(--c-blue);
}
.header__btn {
  background-color: var(--c-blue);
  color: var(--c-white);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s;
}
.header__btn:hover {
  background-color: var(--c-navy);
}
.header__hamburger {
  display: none;
  width: 30px; height: 24px;
  position: relative;
  z-index: 101;
}
.header__hamburger span {
  position: absolute;
  width: 100%; height: 2px;
  background-color: var(--c-navy);
  transition: var(--transition);
}
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 11px; }
.header__hamburger span:nth-child(3) { bottom: 0; }
.header__hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.header__sp-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.header__sp-nav.is-active {
  opacity: 1;
  visibility: visible;
}
.header__sp-nav ul {
  text-align: center;
}
.header__sp-nav li {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .header__inner { padding: 0 20px; }
  .header__nav { display: none; }
  .header__hamburger { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero__content {
  max-width: 800px;
}
.hero__en {
  display: block;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.hero__title {
  font-size: 56px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
  margin-bottom: 24px;
}
.hero__desc {
  font-size: 18px;
  color: var(--c-text-light);
  margin-bottom: 40px;
}
.hero__buttons {
  display: flex;
  gap: 20px;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background-color: var(--c-navy);
  margin-top: 10px;
  animation: scrollDown 2s infinite ease-in-out;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 32px; }
  .hero__desc { font-size: 15px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.about__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 32px;
}
.about__text {
  font-size: 16px;
  color: var(--c-text-light);
  text-align: justify;
}
@media (max-width: 767px) {
  .about__title { font-size: 24px; }
  .about__text { text-align: left; }
}

/* ==========================================================================
   Problems
   ========================================================================== */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problems__card {
  background-color: var(--c-white);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
}
.problems__card::before {
  content: '✓';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background-color: var(--c-blue);
  color: var(--c-white);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.problems__card p {
  font-weight: 600;
  color: var(--c-navy);
  font-size: 15px;
}
@media (max-width: 1023px) {
  .problems__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .problems__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__ai {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.services__web {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.service-card {
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16,36,58,0.05);
  border-color: var(--c-cyan);
}
.service-card__icon {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 700;
  color: var(--c-bg);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 var(--c-blue), -1px -1px 0 var(--c-blue), 1px -1px 0 var(--c-blue), -1px 1px 0 var(--c-blue);
}
.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 16px;
}
.service-card__text {
  font-size: 15px;
  color: var(--c-text-light);
}
@media (max-width: 1023px) {
  .services__ai { grid-template-columns: repeat(2, 1fr); }
  .services__web { grid-template-columns: 1fr; max-width: 100%; }
}
@media (max-width: 767px) {
  .services__ai { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
}

/* ==========================================================================
   Use Case
   ========================================================================== */
.usecase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usecase-card {
  background-color: var(--c-white);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.usecase-card__num {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.usecase-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 16px;
}
.usecase-card__flow p {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.usecase-card__flow span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.usecase-card__flow .before span {
  background-color: var(--c-border);
  color: var(--c-text-light);
}
.usecase-card__flow .after span {
  background-color: rgba(36,123,255,0.1);
  color: var(--c-blue);
}
@media (max-width: 1023px) {
  .usecase__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .usecase__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Strengths
   ========================================================================== */
.strengths__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.strength-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.strength-item__icon {
  font-size: 40px;
  flex-shrink: 0;
  width: 80px; height: 80px;
  background-color: var(--c-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength-item__content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.strength-item__content h3 span {
  font-family: var(--font-en);
  color: var(--c-blue);
}
.strength-item__content p {
  font-size: 15px;
  color: var(--c-text-light);
}
@media (max-width: 767px) {
  .strength-item { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   Flow
   ========================================================================== */
.flow__wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.flow__wrap::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-border);
  z-index: 1;
}
.flow-step {
  flex: 1;
  background-color: var(--c-white);
  padding: 32px 16px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.flow-step__num {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.flow-step h4 {
  font-size: 16px;
  color: var(--c-navy);
}
@media (max-width: 1023px) {
  .flow__wrap { flex-direction: column; }
  .flow__wrap::before {
    top: 0; left: 40px;
    width: 2px; height: 100%;
  }
  .flow-step {
    padding: 24px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 24px;
  }
  .flow-step__num { margin-bottom: 0; min-width: 80px; }
  .flow-step h4 { br { display: none; } }
}

/* ==========================================================================
   Works & Insights
   ========================================================================== */
.works__grid, .insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card, .insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--c-bg);
  transition: var(--transition);
}
.work-card:hover, .insight-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transform: translateY(-4px);
}
.work-card__img, .insight-card__img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  background: linear-gradient(45deg, var(--c-border), var(--c-white));
  position: relative;
}
.work-card__img::after, .insight-card__img::after {
  content: 'Image';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #ccc;
  font-size: 14px;
  font-family: var(--font-en);
}
.insight-card__img .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--c-white);
}
.insight-card__img .tag--ai { background-color: var(--c-blue); }
.insight-card__img .tag--ops { background-color: #0E8A9A; }
.insight-card__img .tag--web { background-color: #173656; }
.insight-card__img .tag--news {
  background-color: var(--c-white);
  color: var(--c-navy);
  box-shadow: 0 0 0 1px var(--c-border);
}
.work-card__info, .insight-card__info {
  flex: 1;
  padding: 24px;
  background-color: var(--c-white);
}
.work-card__info .tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 12px;
  background-color: var(--c-bg);
  color: var(--c-navy);
  border-radius: 20px;
  margin-bottom: 12px;
}
.work-card__info h4, .insight-card__info h4 {
  font-size: 16px;
  color: var(--c-navy);
  line-height: 1.5;
  min-height: 4.5em;
}
.insight-card__info time {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-text-light);
  margin-bottom: 8px;
}
@media (max-width: 1023px) {
  .works__grid, .insights__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .works__grid, .insights__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--c-border);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 24px 40px 24px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item__q span {
  color: var(--c-blue);
  font-family: var(--font-en);
}
.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-blue);
  transition: transform 0.3s;
}
.faq-item__q.is-open::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item__a {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.faq-item__a p {
  padding: 0 0 24px 0;
  font-size: 15px;
  color: var(--c-text-light);
  display: flex;
  gap: 12px;
}
.faq-item__a span {
  color: var(--c-cyan);
  font-family: var(--font-en);
  font-weight: 700;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  padding: 100px 20px;
  text-align: center;
  color: var(--c-white);
}
.cta__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}
.cta__desc {
  font-size: 16px;
  margin-bottom: 40px;
  opacity: 0.9;
}
@media (max-width: 767px) {
  .cta__title { font-size: 24px; }
  .cta { padding: 80px 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--c-white);
  padding: 60px 0 24px;
  border-top: 1px solid var(--c-border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
.footer__logo {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.footer__desc {
  font-size: 14px;
  color: var(--c-text-light);
}
.footer__links {
  display: flex;
  gap: 60px;
}
.footer__links ul li {
  margin-bottom: 12px;
}
.footer__links ul li a {
  font-size: 14px;
  color: var(--c-navy);
  transition: color 0.3s;
}
.footer__links ul li a:hover {
  color: var(--c-blue);
}
.footer__copy {
  text-align: center;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-text-light);
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
}
@media (max-width: 767px) {
  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links { flex-direction: column; gap: 20px; }
}

/* ==========================================================================
   Utilities (JS classes)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  visibility: hidden;
}
.stagger-item {
  opacity: 0;
  visibility: hidden;
}