/* ════════════════════════════════════════════════════════
   RESET & VARIABLES
════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-dark:  #060e2c;
  --navy:       #0d2461;
  --navy-light: #1b3f8a;
  --accent:     #4e8fd4;
  --accent-lt:  #85b8e8;
  --white:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--navy-dark);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .5s ease;
}
body.loaded { opacity: 1; }

.en { font-family: 'Share Tech', sans-serif; }


/* ════════════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes stripeScroll {
  from { background-position: 0 0; }
  to   { background-position: 300px 300px; }
}
@keyframes diamondPulse {
  0%, 100% { transform: rotate(45deg) scale(1);   opacity: 1; }
  50%       { transform: rotate(45deg) scale(1.5); opacity: .7; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); transform-origin: center; }
  to   { transform: scaleX(1); transform-origin: center; }
}
@keyframes progressGlow {
  0%, 100% { box-shadow: 0 0 4px var(--accent); }
  50%       { box-shadow: 0 0 10px var(--accent-lt); }
}


/* ════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  z-index: 300;
  transition: width .1s linear;
  animation: progressGlow 2s ease-in-out infinite;
}


/* ════════════════════════════════════════════════════════
   SCROLL-REVEAL SYSTEM
════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1),
              transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.scale-in   { transform: scale(.94) translateY(16px); }

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }
.reveal.d4 { transition-delay: .38s; }
.reveal.d5 { transition-delay: .48s; }


/* ════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .4s, border-color .4s, padding .4s;
}
#site-header.scrolled {
  background: rgba(6, 14, 44, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: 'Share Tech', sans-serif;
  font-size: .9rem;
  letter-spacing: .25em;
  color: #fff;
  text-decoration: none;
  transition: opacity .3s;
}
.logo:hover { opacity: .75; }

nav ul { display: flex; list-style: none; gap: 38px; }
nav a {
  font-family: 'Share Tech', sans-serif;
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  position: relative;
  transition: color .3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}
nav a:hover { color: #fff; }
nav a:hover::after { width: 100%; }


/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
  z-index: 10;
  padding: 0 24px calc(5vw + 60px);
}

/* Moving diagonal stripe texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 120px,
    rgba(255,255,255,.022) 120px,
    rgba(255,255,255,.022) 121px
  );
  animation: stripeScroll 30s linear infinite;
  pointer-events: none;
}

/* Radial glow at center */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(78,143,212,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Share Tech', sans-serif;
  font-size: .68rem;
  letter-spacing: .65em;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  margin-bottom: 52px;
  /* auto-play */
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both;
  animation-delay: .3s;
}

.hero-title {
  font-family: 'Share Tech', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: .03em;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: .55s;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-lt);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 46px auto;
  animation: fadeIn .8s ease both;
  animation-delay: 1s;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: .5;
  animation: lineGrow .7s ease both;
  animation-delay: 1.1s;
}

.hero-diamond {
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  animation: diamondPulse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.hero-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.60);
  line-height: 2;
  letter-spacing: .08em;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 1.1s;
}


/* ════════════════════════════════════════════════════════
   SHARED
════════════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.eyebrow {
  font-family: 'Share Tech', sans-serif;
  font-size: .68rem;
  letter-spacing: .55em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}


/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
.about {
  position: relative;
  background: var(--white);
  margin-top: -5vw;
  padding: calc(5vw + 90px) 0 calc(5vw + 90px);
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
  z-index: 9;
}
.about .eyebrow { color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.55;
  margin-bottom: 36px;
}

.about-body {
  color: #3a4b6a;
  font-size: .95rem;
  line-height: 2.1;
}
.about-body p + p { margin-top: 18px; }

/* service list */
.svc-list { list-style: none; border-top: 1px solid #dce4f0; }
.svc-list li {
  padding: 18px 0;
  border-bottom: 1px solid #dce4f0;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  /* override default reveal transform for list items */
}
.svc-list li .dia {
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .3s ease, background .3s;
}
.svc-list li:hover .dia {
  transform: rotate(45deg) scale(1.6);
  background: var(--navy-light);
}
.svc-list li:hover { color: var(--navy-light); }


/* ════════════════════════════════════════════════════════
   BUSINESS
════════════════════════════════════════════════════════ */
.business {
  position: relative;
  background: var(--navy);
  margin-top: -5vw;
  padding: calc(5vw + 90px) 0 calc(5vw + 90px);
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
  z-index: 8;
}
.business .eyebrow { color: rgba(78,143,212,.8); }

.biz-intro {
  text-align: center;
  margin-bottom: 70px;
}
.biz-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}
.biz-sub {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  letter-spacing: .06em;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 50px 36px;
  overflow: hidden;
  transition: background .35s, transform .4s cubic-bezier(.16,1,.3,1),
              border-color .35s;
}
/* top-edge sweep line */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: translateX(-101%);
  transition: transform .5s ease;
}
.card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.16);
}
.card:hover::after { transform: translateX(0); }

.card-idx {
  font-family: 'Share Tech', sans-serif;
  font-size: .65rem;
  letter-spacing: .38em;
  color: var(--accent);
  opacity: .75;
  margin-bottom: 30px;
}
.card-en {
  font-family: 'Share Tech', sans-serif;
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.card-ja {
  font-size: .78rem;
  color: rgba(255,255,255,.42);
  margin-bottom: 28px;
}
.card-rule {
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: .65;
  margin-bottom: 24px;
  transition: width .4s ease;
}
.card:hover .card-rule { width: 56px; }
.card-text {
  font-size: .875rem;
  line-height: 2;
  color: rgba(255,255,255,.6);
}


/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
.contact {
  position: relative;
  background: var(--navy-dark);
  margin-top: -5vw;
  padding: calc(5vw + 90px) 0 80px;
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  z-index: 7;
}
.contact .eyebrow { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 24px;
}
.contact-left p {
  color: rgba(255,255,255,.60);
  font-size: .9rem;
  line-height: 2;
}

.contact-instagram {
  display: block;
  margin-top: 1rem;
  width: fit-content;
}

.contact-box {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  padding: 48px;
  transition: border-color .4s, background .4s;
}
.contact-box:hover {
  border-color: rgba(78,143,212,.3);
  background: rgba(78,143,212,.04);
}

.cbox-company {
  font-size: .95rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cbox-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.cbox-row:last-child { margin-bottom: 0; }
.cbox-label {
  font-family: 'Share Tech', sans-serif;
  font-size: .62rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
  width: 96px;
  flex-shrink: 0;
}
.cbox-val {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
}

.contact-link {
  text-decoration: none;
}


/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer {
  background: var(--navy-dark);
  padding: 26px 60px;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
footer p {
  font-family: 'Share Tech', sans-serif;
  font-size: .7rem;
  color: rgba(255,255,255,.22);
  letter-spacing: .22em;
}


/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  #site-header { padding: 18px 24px; }
  #site-header.scrolled { padding: 14px 24px; }
  nav ul { display: none; }
  .container { padding: 0 24px; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr; }
  footer { padding: 24px; }

  /* simplify clip-path on small screens */
  .about, .business, .contact {
    clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
    margin-top: -3vw;
    padding: calc(3vw + 70px) 0 calc(3vw + 70px);
  }
  .contact { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }
}
