/* =========================================
   FluxBase Clean CSS
   style.css をこの内容で丸ごと置き換える
   目的：過去の v9〜v22 の上書きCSSを全削除し、Flowの中央ズレを根本修正
========================================= */

/* ---------- Base ---------- */
:root {
  --dark: #0F172A;
  --blue: #2563EB;
  --blue-2: #60A5FA;
  --gray: #64748B;
  --gray-2: #475569;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 24px 70px rgba(15, 23, 42, .10);
  --radius: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .05), transparent 26rem),
    radial-gradient(circle at 90% 16%, rgba(96, 165, 250, .08), transparent 24rem),
    linear-gradient(180deg, #FAFCFF 0%, #F5F8FD 100%);
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  line-height: 1.8;
  letter-spacing: .02em;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 116px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.04em;
}

h3 {
  font-size: 20px;
  line-height: 1.45;
}

p {
  color: var(--gray);
}

.sp-only {
  display: none;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading {
  max-width: 720px;
}

.section-heading.center {
  margin-inline: auto;
}

.section-heading p {
  max-width: 720px;
}

.section-heading > p:last-child {
  font-size: 17px;
  line-height: 1.9;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 36px rgba(15, 23, 42, .06);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: .35s var(--ease);
}

.site-header.is-scrolled {
  top: 8px;
  height: 66px;
  background: rgba(255, 255, 255, .94);
}

.brand img {
  width: 190px;
}

.site-nav {
  display: flex;
  gap: 34px;
  color: #334155;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 150px;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dark);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .78) 44%, rgba(15, 23, 42, .22)),
    linear-gradient(180deg, rgba(15, 23, 42, .15), rgba(15, 23, 42, .52));
}

@keyframes heroDrift {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.08) translate(-24px, 14px);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 56px;
  align-items: end;
}

.hero .eyebrow,
.hero h1,
.hero__lead {
  color: #fff;
}

.hero__lead {
  max-width: 760px;
  color: #D9E6F7;
  font-size: 18px;
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .32);
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px);
}

.hero__card {
  padding: 32px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  background: rgba(15, 23, 42, .50);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.card-label {
  display: block;
  margin-bottom: 20px;
  color: #93C5FD;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.hero__card li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  color: #E2E8F0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-weight: 800;
  line-height: 1.7;
}

.hero__card li span {
  color: var(--blue-2);
  font-family: "Inter", sans-serif;
}

/* ---------- Intro ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.intro__text {
  padding: 36px;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chips span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #EEF6FF;
  color: #1D4ED8;
  font-size: 13px;
  font-weight: 900;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 46px rgba(15, 23, 42, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, .26);
  box-shadow: 0 26px 72px rgba(15, 23, 42, .12);
}

.service-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
}

.service-num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- Works ---------- */
.works {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .98)), #fff;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.work-item {
  position: relative;
  min-height: 220px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 30px;
  background: var(--light);
  transition: .32s var(--ease);
}

.work-item::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 70%);
}

.work-item:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .25);
}

.num {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.work-item h3 {
  margin-bottom: 14px;
}

.work-item p {
  line-height: 1.9;
}

/* ---------- Flow ---------- */
.flow {
  overflow: hidden;
  padding-top: 74px;
  padding-bottom: 108px;
  background: linear-gradient(180deg, #F8FAFD 0%, #F4F7FB 100%);
}

.flow .container {
  width: min(1400px, calc(100% - 40px));
  max-width: 1400px;
  margin-inline: auto;
}

.flow .section-heading {
  width: min(980px, 100%);
  margin-inline: auto;
  text-align: center;
}

.flow .section-heading h2,
.flow .section-heading > p:last-child {
  margin-inline: auto;
  text-align: center;
}

.flow .section-heading > p:last-child {
  max-width: 760px;
  color: #64748B;
}

.flow-steps {
  position: relative;
  width: fit-content;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 46px auto 0;
  padding: 0;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  z-index: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .10), rgba(37, 99, 235, .30), rgba(37, 99, 235, .10));
  transform: translateY(-50%);
}

.flow-step {
  position: relative;
  z-index: 1;
  flex: 0 0 250px;
  width: 250px;
  min-height: 264px;
  margin-right: -18px;
  padding: 28px 34px 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-top: 3px solid var(--blue);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .03);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.flow-step:last-child {
  margin-right: 0;
}

.flow-step--start {
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

.flow-step--middle {
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%);
}

.flow-step--end {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 50%);
}

.flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, .035), transparent 34%), linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .94));
  pointer-events: none;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 16px;
  z-index: 1;
  width: 46px;
  height: 46px;
  opacity: .14;
  background: var(--blue);
  clip-path: polygon(0 0, 68% 0, 100% 50%, 68% 100%, 0 100%, 24% 50%);
  pointer-events: none;
}

.flow-step span,
.flow-step h3,
.flow-step p {
  position: relative;
  z-index: 2;
}

.flow-step span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.flow-step h3 {
  position: relative;
  margin-bottom: 14px;
  padding-left: 18px;
  color: #0F172A;
  line-height: 1.45;
}

.flow-step h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: #3B82F6;
}

.flow-step p {
  max-width: 14em;
  margin-bottom: 0;
  color: var(--gray-2);
  font-size: 15px;
  line-height: 1.9;
}

.flow-step:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 24px 56px rgba(15, 23, 42, .09), 0 4px 12px rgba(15, 23, 42, .04);
}

.flow-step:nth-child(1) { border-top-color: #60A5FA; }
.flow-step:nth-child(2) { border-top-color: #3B82F6; }
.flow-step:nth-child(3) { border-top-color: #2563EB; }
.flow-step:nth-child(4) { border-top-color: #1D4ED8; }
.flow-step:nth-child(5) { border-top-color: #1E40AF; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), #EEF6FF 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 68px;
  align-items: start;
}

.contact-form {
  padding: 36px;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-form span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #F8FAFC;
  font-size: 15px;
  line-height: 1.7;
  outline: none;
  transition: .2s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.form-note {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 42px 0;
  color: #fff;
  background: var(--dark);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__inner img {
  width: 190px;
  border-radius: 12px;
}

.footer__inner p {
  margin: 0;
  color: #CBD5E1;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .28);
  animation: modalIn .25s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #EEF2F7;
  cursor: pointer;
  font-size: 24px;
}

.modal pre {
  padding: 16px;
  color: #334155;
  white-space: pre-wrap;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #F8FAFC;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(.982);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.flow-step.reveal-left {
  opacity: 0;
  transform: translate3d(-56px, 0, 0) scale(.99);
  filter: blur(6px);
}

.flow-step.reveal-left.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) and (min-width: 1101px) {
  .flow-step {
    flex-basis: 232px;
    width: 232px;
  }
}

@media (max-width: 1100px) {
  .flow .container {
    width: min(1120px, calc(100% - 40px));
  }

  .flow-steps {
    width: min(840px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

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

  .flow-step,
  .flow-step:last-child {
    width: auto;
    min-height: 228px;
    margin-right: 0;
  }

  .flow-step--start,
  .flow-step--middle,
  .flow-step--end {
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  }

  .flow-step p {
    max-width: none;
  }
}

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

  .site-header {
    width: calc(100% - 22px);
    padding: 0 16px;
  }

  .brand img {
    width: 160px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #EEF6FF;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--dark);
    transition: .25s var(--ease);
  }

  .nav-toggle span + span {
    margin-top: -12px;
  }

  .nav-toggle.is-open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav-toggle.is-open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: .25s var(--ease);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .hero__inner,
  .grid-2,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero__lead {
    font-size: 16px;
  }

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

  .service-card {
    min-height: 240px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .flow {
    padding-top: 64px;
  }

  .flow-steps {
    width: min(580px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .contact__inner {
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .container,
  .flow .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 76px 0;
  }

  .sp-only {
    display: block;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    top: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
  }

  .hero__visual::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .82) 58%, rgba(15, 23, 42, .70));
  }

  .hero__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__card,
  .intro__text,
  .service-card,
  .work-item,
  .contact-form {
    padding: 24px;
    border-radius: 26px;
  }

  .service-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .section-heading > p:last-child,
  .service-card p,
  .work-item p,
  .flow-step p {
    font-size: 15px;
  }

  .flow {
    padding-top: 56px;
  }

  .flow-steps {
    width: 100%;
    gap: 12px;
  }

  .flow-step {
    min-height: auto;
    padding: 22px 28px 24px 24px;
  }

  .flow-step--start,
  .flow-step--middle,
  .flow-step--end {
    clip-path: none;
    border-radius: 24px;
  }

  .flow-step::after {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===============================
   v23 logo placement
   Header/Footer: no subtitle logo
   Hero: subtitle logo
================================= */

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

.hero__brand {
  width: min(520px, 78vw);
  margin-bottom: 30px;
}

.hero__brand img {
  width: 100%;
  height: auto;
}

.footer__inner img {
  width: 190px;
  height: auto;
}

@media (max-width: 960px) {
  .brand img {
    width: 160px;
  }
}

@media (max-width: 640px) {
  .hero__brand {
    width: min(360px, 86vw);
    margin-bottom: 24px;
  }
}


/* v24 logo clipping fix */
.brand img,
.footer__inner img {
  max-width: 100%;
  object-fit: contain;
}



/* ===============================
   v25 contact confirmation modal
================================= */

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal__actions[hidden] {
  display: none;
}

.modal__cancel {
  color: #0F172A;
  background: #EEF2F7;
  border-color: #E2E8F0;
  box-shadow: none;
}

.modal__submit:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
}

@media (max-width: 640px) {
  .modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
