/* =============================================================
   FluxIO — styles
   青を基調に、流線（ストリームライン）をモチーフにしたデザイン
   ============================================================= */

:root {
  /* Blue scale */
  --navy-950: #030b1c;
  --navy-900: #061430;
  --navy-800: #0a2150;
  --blue-700: #1247d6;
  --blue-600: #1a5cff;
  --blue-500: #2f7bff;
  --cyan-400: #38d0ff;
  --cyan-300: #7be3ff;
  --ice-50: #f5f9ff;
  --ice-100: #e8f1ff;
  --ice-200: #d3e3ff;

  --ink: #0b1b3a;
  --muted: #55668a;
  --soft: rgba(232, 241, 255, 0.8);
  --line: rgba(123, 227, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.06);
  --white: #fff;

  --grad: linear-gradient(120deg, var(--cyan-400), var(--blue-600));
  --font-en: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;

  --radius: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 8px 16px; border-radius: 8px;
  background: var(--white); color: var(--blue-700);
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 48px); }

.pc { display: none; }
@media (min-width: 800px) { .pc { display: inline; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 48px);
  color: var(--ink);
  transition: background 0.35s, box-shadow 0.35s, color 0.35s;
}
.header.is-scrolled {
  background: rgba(6, 20, 48, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  color: var(--white);
}

.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; }
.logo__text {
  font-family: var(--font-en);
  font-size: 24px; font-weight: 400; letter-spacing: 0.01em; line-height: 1;
}
.logo__text b {
  font-weight: 700; letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  position: relative;
  font-family: var(--font-en); font-size: 15px; letter-spacing: 0.06em;
  padding: 6px 0;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav .nav__cta {
  padding: 8px 22px; border-radius: 999px;
  background: var(--grad); color: var(--white); font-weight: 500;
  box-shadow: 0 6px 18px -6px rgba(26, 92, 255, 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav .nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(26, 92, 255, 0.8); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit;
  cursor: pointer; position: relative; z-index: 2;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 799px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: var(--white);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 24px; }
  .nav .nav__cta { padding: 12px 36px; }
  .header.nav-open { color: var(--white); background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: 0.06em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn--primary {
  background: var(--grad); color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(47, 123, 255, 0.85);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(47, 123, 255, 0.95); }
.btn--outline { border: 1px solid rgba(26, 92, 255, 0.4); color: var(--blue-700); background: rgba(255, 255, 255, 0.7); }
.btn--outline:hover { background: var(--ice-100); border-color: var(--blue-600); transform: translateY(-3px); }
.btn--lg { min-height: 62px; padding: 0 40px; font-family: var(--font-en); font-size: 18px; letter-spacing: 0.03em; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 14px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: ""; width: 36px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10'%3E%3Cpath d='M1 5c6-6 11 6 17 0s11-6 17 0' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10'%3E%3Cpath d='M1 5c6-6 11 6 17 0s11-6 17 0' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow--light { color: var(--cyan-300); }
.eyebrow i { font-style: normal; opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--header-h) + clamp(32px, 7vh, 96px)) 24px 0;
  color: var(--ink); text-align: center;
  background: var(--white);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { max-width: 880px; }
.hero .eyebrow { font-size: clamp(11px, 2.9vw, 14px); letter-spacing: 0.18em; }
.hero .eyebrow::before { display: none; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 700; line-height: 1.25; letter-spacing: 0.08em;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-400), var(--blue-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin-top: 24px;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--muted);
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); fill: var(--navy-900); pointer-events: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; color: var(--white); }
#service { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
#works { background: linear-gradient(180deg, var(--navy-800), #0e3596); }
#profile { background: linear-gradient(180deg, #0e3596, var(--navy-800)); }
.section .eyebrow { color: var(--cyan-300); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.section__head h2, .contact h2 {
  margin-top: 14px;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700; line-height: 1.4; letter-spacing: 0.04em;
}
.section__lead { margin-top: 18px; color: var(--soft); }

/* ---------- Service ---------- */
@keyframes dash { to { stroke-dashoffset: -24; } }
.branch { width: 100%; height: 90px; margin-top: -30px; }
.branch path {
  fill: none; stroke: var(--cyan-400); opacity: 0.7; stroke-width: 2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 7; animation: dash 1.6s linear infinite;
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.service {
  position: relative; overflow: hidden;
  padding: clamp(30px, 4vw, 48px); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad);
}
.service:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); border-color: rgba(123, 227, 255, 0.4); }
.service--main {
  background: linear-gradient(150deg, var(--blue-700), var(--blue-500));
  border-color: rgba(123, 227, 255, 0.45);
  box-shadow: 0 34px 70px -34px rgba(47, 123, 255, 0.9);
}
.service--main::before { display: none; }
.service--main:hover { background: linear-gradient(150deg, var(--blue-600), var(--blue-500)); }
.service--main .service__icon { background: var(--white); box-shadow: 0 12px 24px -12px rgba(3, 11, 28, 0.6); }
.service--main .service__icon svg { stroke: var(--blue-600); }
.service--main .service__en { color: var(--white); opacity: 0.85; }
.service--main .service__desc { color: rgba(255, 255, 255, 0.9); }
.service--main .service__list, .service--main .service__list li { border-color: rgba(255, 255, 255, 0.25); }
.service--main .service__list li::before { background: var(--white); }
.service__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px 20px 20px 6px;
  background: var(--grad); box-shadow: 0 12px 24px -12px rgba(26, 92, 255, 0.9);
}
.service__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service__en { margin-top: 26px; font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-300); }
.service h3 { margin-top: 4px; font-size: clamp(21px, 2.4vw, 27px); letter-spacing: 0.04em; }
.service__desc { margin-top: 12px; color: var(--soft); font-size: 15px; }
.service__list { margin-top: 22px; border-top: 1px solid var(--line); }
.service__list li {
  position: relative; padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px;
}
.service__list li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 16px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

@media (max-width: 799px) {
  .branch { display: none; }
  .services { grid-template-columns: 1fr; }
}

/* ---------- Works ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.work {
  padding: 14px 14px 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
}
.work__thumb {
  aspect-ratio: 16 / 10; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-500));
}
.work__thumb::before, .work__thumb::after {
  content: ""; position: absolute; inset: -40% -20%;
  border-radius: 46%; border: 1px solid rgba(123, 227, 255, 0.45);
  transform: translateY(58%) rotate(-8deg);
}
.work__thumb::after { transform: translateY(68%) rotate(6deg); border-color: rgba(255, 255, 255, 0.25); }
.work__thumb--b { background: linear-gradient(140deg, var(--blue-700), var(--cyan-400)); }
.work__thumb--c { background: linear-gradient(140deg, var(--navy-800), var(--blue-500) 60%, var(--cyan-400)); }
.work__tag { margin: 18px 10px 0; font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-300); }
.work h3 { margin: 2px 10px 0; font-family: var(--font-en); font-size: 20px; font-weight: 600; }
.work p:last-child { margin: 6px 10px 0; font-size: 14px; color: var(--soft); }

@media (max-width: 799px) { .works { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.profile { border-top: 1px solid var(--line); }
.profile > div {
  display: grid; grid-template-columns: 170px 1fr; gap: 16px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
}
.profile dt { font-weight: 700; color: var(--cyan-300); letter-spacing: 0.08em; }
@media (max-width: 599px) {
  .profile > div { grid-template-columns: 1fr; gap: 2px; padding: 18px 2px; }
  .profile dt { font-size: 13px; }
}

.todo {
  display: inline-block; padding: 1px 10px; border-radius: 6px;
  font-size: 13px; color: #ffe3a1; background: rgba(255, 214, 110, 0.12); border: 1px dashed rgba(255, 214, 110, 0.5);
}

/* ---------- Contact ---------- */
.contact {
  position: relative; text-align: center; color: var(--white);
  padding: clamp(90px, 12vw, 150px) 0 clamp(90px, 11vw, 140px);
  background:
    radial-gradient(70% 70% at 50% 100%, rgba(56, 208, 255, 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
  overflow: hidden;
}
.contact__lead { margin: 18px 0 36px; color: rgba(232, 241, 255, 0.84); }
.contact__note { margin-top: 18px; }
.contact .btn--lg { max-width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(232, 241, 255, 0.7); padding: 34px 0; border-top: 1px solid rgba(123, 227, 255, 0.12); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer .logo__text { color: var(--white); font-size: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-en); font-size: 14px; letter-spacing: 0.06em; }
.footer nav a:hover { color: var(--cyan-300); }
.footer small { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.services .reveal:nth-child(2), .works .reveal:nth-child(2) { transition-delay: 0.1s; }
.works .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
