/* ==========================================================
   FLECT Public Sector LP
   ========================================================== */

:root {
  --color-primary: #3A82F3;
  --color-navy: #22304F;
  --color-navy-soft: #4C5D80;
  --color-text: #33405C;
  --color-text-light: #6B7690;
  --gradient-main: linear-gradient(135deg, #22304F 0%, #3A82F3 100%);
  --bg-hero: #F4F7FC;
  --bg-tint: #F5F8FC;
  --bg-gray: #F3F5F9;
  --border-color: #E4E9F1;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(34, 48, 79, 0.05);
  --shadow-md: 0 10px 30px rgba(34, 48, 79, 0.09);
  --shadow-lg: 0 20px 50px rgba(34, 48, 79, 0.16);
  --container-width: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-height: 84px;

  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 17px;
  --fs-2xl: 19px;
  --fs-3xl: 20px;
  --fs-4xl: 24px;
  --fs-5xl: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Josefin Sans", sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.45;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Eyebrow / Headings ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  font-size: var(--fs-base);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--color-primary);
}

h2 {
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-desc {
  font-size: var(--fs-lg);
  max-width: 640px;
  margin-bottom: 52px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-weight: 400;
  font-size: var(--fs-lg);
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

.btn-primary:hover .icon-arrow {
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--gradient-main);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  position: relative;
  min-width: 400px;
  padding: 30px 30px;
  text-align: center;
  justify-content: center;
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover .icon-arrow {
  transform: translateY(-50%);
}

.btn-sm {
  padding: 12px 22px;
  font-size: var(--fs-base);
}

/* ---------------- Icons (CSS-based, no inline SVG) ---------------- */
.icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  background-repeat: no-repeat;
}

.icon-mail {
  width: 30px;
  height: 18px;
  -webkit-mask: url("../img/mail-icon.svg") center / contain no-repeat;
  mask: url("../img/mail-icon.svg") center / contain no-repeat;
}

.btn-white span:nth-of-type(2) {
  color: #22304F;
}

.btn-white .icon-mail {
  width: 30px;
  height: 20px;
}

.btn-white .icon-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  background-color: transparent;
  background-image: url("../img/new-window.svg");
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-mask: none;
  mask: none;
}

.icon-arrow {
  width: 8px;
  height: 10px;
  -webkit-mask: url("../img/process-arrow.svg") center / contain no-repeat;
  mask: url("../img/process-arrow.svg") center / contain no-repeat;
  transition: transform .3s var(--ease);
}

.icon-check {
  width: 26px;
  height: 26px;
  background-color: transparent;
  background-image: url("../img/check-icon.svg");
  background-size: contain;
  filter: drop-shadow(0px 0px 8px rgba(167, 195, 239, 0.8));
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 20px rgba(34, 48, 79, 0.08);
  height: 72px;
}

.site-header .container {
  max-width: 100%;
  padding: 0 40px;
}

.header-inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.logo-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
}

.logo-sub {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-base);
  color: var(--color-primary);
  font-weight: 500;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  padding-right: 20px;
}

.nav-link {
  position: relative;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  transition: color .25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width .3s var(--ease);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

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

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

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

/* ---------------- Hero ---------------- */
.hero {
  padding: calc(var(--header-height) + 64px) 0 100px;
  background: radial-gradient(ellipse at 80% 10%, #EAF0FD 0%, var(--bg-hero) 55%, #fff 100%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.hero-content {
  width: 53%;
}

/* --- ここから復元エリア --- */
.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E9F0FE;
  color: var(--color-primary);
  font-size: var(--fs-base);
  padding: 7px 20px;
  margin-bottom: 28px;
}

.badge-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.3em;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  margin-bottom: 38px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-buttons .btn {
  position: relative;
  width: calc(50% - 8px);
  min-height: 70px;
  justify-content: center;
}

.hero-buttons .icon-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 10px;
  height: 8px;
  -webkit-mask: url("../img/down-arrow.svg") center / contain no-repeat;
  mask: url("../img/down-arrow.svg") center / contain no-repeat;
}

.hero-buttons .btn:hover .icon-arrow {
  transform: translateY(-50%);
}


/* 右側ビジュアルエリア */
.hero-visual {
  position: relative;
  width: 40%;
  display: flex;
  z-index: 2;
}

/* 実績リスト */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  flex-shrink: 0;
  z-index: 2;
  margin-bottom: 0;
}

.hero-stats li {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(34, 48, 79, 0.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}

.hero-stats li strong {
  font-size: var(--fs-3xl);
  line-height: 1.4em;
  position: relative;
  padding-left: 25px;
}

/* ::before でチェックアイコンを表示 */
.hero-stats li strong::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("../img/check-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0px 0px 8px rgba(167, 195, 239, 0.8));
  position: absolute;
  top: 6px;
  left: 0;
}

.hero-stats li span {
  display: block;
  padding-left: 25px;
}

/* イラスト（右下背景） */
.hero-illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 340px;
  z-index: 1;
  pointer-events: none;
}

.hero-illustration img {
  width: 100%;
  height: auto;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 70px 0 100px;
}

.section-gray {
  background: var(--bg-gray);
}

.section-nopad-top {
  padding-top: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  background: #fff;
  filter: drop-shadow(0px 0px 4px rgba(167, 195, 239, 0.8));
}


/* Challenge cards */
.challenge-card {
  padding: 25px 30px;
}

.challenge-card .num {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-5xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 5px;
  line-height: 1.2em;
}

.challenge-card h3 {
  font-size: var(--fs-3xl);
  font-weight: 400;
  margin-bottom: 14px;
}

.challenge-card p {
  font-size: var(--fs-md);
  color: var(--color-text-light);
}

/* Solution cards */
.solution-card {
  background: var(--bg-tint);
  padding: 30px 25px 32px;
  display: flex;
  flex-direction: column;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 22px 3px 12px;
  margin-bottom: 17px;
  width: fit-content;
  line-height: 1em;
  border-radius: var(--radius-pill);
}

.pill-dark {
  background: var(--gradient-main);
  color: #fff;
}

.pill-dark .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  top: -1px;
}

.pill.pill-light {
  background: #E9F0FE;
  color: var(--color-primary);
  font-family: "Noto Sans JP", sans-serif;
  padding: 7px 12px 7px 12px;
  margin-bottom: 0;
  gap: 0;
}

.solution-card h3 {
  font-size: var(--fs-4xl);
  font-weight: 400;
  margin-bottom: 16px;
}

.solution-card h3~p:nth-of-type(1) {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  margin-bottom: 24px;
  min-height: 104px;
}

.divider-dotted {
  border-top: 1px dashed #C9D4E8;
  margin-bottom: 20px;
}

.label-blue {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-primary) !important;
  margin-bottom: 10px;
  line-height: 1.1em;
}

.scope-text {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: #fff;
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}


/* AI cards */
.ai-card {
  padding: 32px 30px;
}

.ai-card h3 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  margin: 18px 0 14px;
}

.ai-card p {
  font-size: var(--fs-base);
  color: var(--color-text-light);
}

/* Government cloud diagram */
.gov-cloud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.gov-cloud-grid .section-desc {
  margin-bottom: 18px;
}

.gov-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.diagram-box {
  background: #fff;
  padding: 26px;
  text-align: center;
  filter: drop-shadow(0px 0px 4px rgba(167, 195, 239, 0.8));
}

.diagram-title {
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--color-navy);
  line-height: 1.4em;
}

.diagram-sub {
  font-size: var(--fs-base);
  color: var(--color-primary);
}

.diagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 10px 0;
}

.icon-updown {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1;
}

/* Track record */
.record-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.record-head {
  padding: 22px 30px 14px;
}

.record-head h3 {
  font-size: var(--fs-3xl);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.record-body {
  background: var(--bg-tint);
  padding: 20px 30px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.record-body p {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* Why FLECT */
.why-card {
  padding: 25px 20px;
  text-align: center;
}

.why-card .icon-check {
  margin: 0 auto;
  width: 20px;
}

.why-title {
  font-size: var(--fs-4xl);
  font-weight: 600;
  line-height: 1.6em;
  color: var(--color-navy);
}

.why-sub {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.why-desc {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  text-align: left;
}

/* Process */
.process-row {
  display: flex;
  align-items: stretch;
  gap: 25px;
}

.process-card {
  flex: 1;
  padding: 20px 20px;
  position: relative;
}

.process-card:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 25%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 14px;
  background-color: transparent;
  background-image: url("../img/process-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.process-card .num {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-5xl);
  font-weight: 400;
  color: var(--color-primary);
}

.process-card h3 {
  font-size: var(--fs-3xl);
  font-weight: 500;
  margin-bottom: 14px;
}

.process-card p {
  font-size: var(--fs-base);
  color: var(--color-text-light);
}

/* ---------------- Footer CTA ---------------- */
.footer-gradient-wrap {
  background: var(--gradient-main);
}

.footer-cta {
  padding: 100px 0;
  text-align: center;
}

.footer-cta-inner h2 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lg);
  margin-bottom: 40px;
}

.footer-cta-inner .btn {
  margin: 0 auto;
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  padding: 30px 0 20px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.site-footer .container {
  max-width: 100%;
  padding: 0 80px 0 15px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  font-size: var(--fs-3xl);
  color: #fff;
}

.footer-logo .logo-img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-links a {
  position: relative;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.75);
  transition: color .25s var(--ease);
}

.footer-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #3A82F3;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------------- Scroll to top ---------------- */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  background-image: url("../img/pagetop.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease), visibility .3s;
  z-index: 90;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  filter: brightness(1.15);
  transform: translateY(-4px);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }



  .gov-cloud-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .site-header.scrolled {
    height: 56px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: calc(var(--header-height) + 34px) 0 100px;
  }

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

  .hero-content {
    display: contents;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    display: flex;
    z-index: 2;
  }

  .hero-buttons {
    order: 3;
    margin-top: 24px;
    padding-bottom: 200px;
  }

  .hero-stats {
    gap: 8px;
    width: 100%;
  }

  .hero-illustration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 240px;
    z-index: 1;
    pointer-events: none;
  }

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

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

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

  .process-row {
    flex-direction: column;
  }

  .process-card:not(:first-child)::before {
    left: 26px;
    top: -12px;
    transform: rotate(90deg) translate(-50%, -50%);
  }

  .section {
    padding: 40px 0 50px;
  }

  .footer-cta {
    padding: 72px 0;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-base: 13px;
    --fs-md: 14px;
    --fs-lg: 15px;
    --fs-xl: 16px;
    --fs-2xl: 18px;
    --fs-3xl: 18px;
    --fs-4xl: 21px;
    --fs-5xl: 26px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .btn-white {
    min-width: 0;
    width: 100%;
  }

  .site-header .container {
    padding: 0 12px;
  }

  .header-inner {
    padding: 0 20px;
    gap: 8px;
  }

  .logo {
    gap: 10px;
  }

  .logo-img {
    height: 18px;
  }

  .logo-divider {
    height: 12px;
  }

  .logo-sub {
    font-size: 14px;
    white-space: nowrap;
  }

  .header-cta {
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .header-cta .icon-mail {
    width: 16px;
    height: 10px;
  }

  .section-desc {
    margin-bottom: 32px;
  }

  .site-footer .container {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-links a:not(:last-child)::after {
    display: none;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}