:root {
  --bg: #061c28;
  --ink: #0a2332;
  --muted: rgba(10, 35, 50, 0.7);
  --paper: #ffffff;

  /* Logo-based palette */
  --blue: #1b7fbf;
  --green: #55b37a;

  --line: rgba(8, 28, 40, 0.12);
  --soft: rgba(8, 28, 40, 0.08);

  --radius: 20px;
  --shadow: 0 18px 45px rgba(6, 28, 40, 0.14);
  --shadow2: 0 10px 24px rgba(6, 28, 40, 0.1);

  --max: 980px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Noto Sans JP",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      900px 520px at 16% 12%,
      rgba(27, 127, 191, 0.08),
      rgba(27, 127, 191, 0) 70%
    ),
    radial-gradient(
      900px 520px at 86% 30%,
      rgba(85, 179, 122, 0.08),
      rgba(85, 179, 122, 0) 70%
    ),
    #f6fbff;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

/* Curvy backgrounds are applied per section (BUSINESS/COMPANY). */

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

/* Prevent awkward line breaks for short phrases */
.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow2);
  border: 1px solid var(--line);
}
.skip:focus {
  left: 10px;
  z-index: 9999;
}

/* Header (hidden on TOP, shown after scroll) */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 60;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 28, 40, 0.1);

  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.header.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  width: 100%;
  max-width: calc(var(--max) + 140px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand img {
  height: 72px;
  width: auto;
}
.brand-text {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(10, 35, 50, 0.62);
  transition: color 0.3s ease;
}
.nav a[aria-current="page"] {
  background: transparent;
  border: none;
  color: rgba(27, 127, 191, 0.95);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(27, 127, 191, 0.24);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 18px rgba(6, 28, 40, 0.06);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(27, 127, 191, 0.95),
    rgba(85, 179, 122, 0.95)
  );
  border-color: rgba(255, 255, 255, 0);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.66);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px 18px 84px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;

  background-image: image-set(
    url("assets/hero.webp") type("image/webp"),
    url("assets/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 52%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 28, 40, 0.7) 0%,
      rgba(6, 28, 40, 0.44) 42%,
      rgba(6, 28, 40, 0.1) 78%,
      rgba(6, 28, 40, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 28, 40, 0.18) 0%,
      rgba(6, 28, 40, 0.06) 40%,
      rgba(246, 251, 255, 1) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(
    180deg,
    rgba(246, 251, 255, 0),
    rgba(246, 251, 255, 1)
  );
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 84px;

  .details {
    margin-top: 2rem;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}
.k-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  text-wrap: balance;
}

.lead {
  margin: 0 0 20px;
  max-width: 80ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(10, 35, 50, 0.75);
}
.scroll .mouse {
  width: 22px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid rgba(10, 35, 50, 0.35);
  position: relative;
  background: rgba(255, 255, 255, 0.6);
}
.scroll .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 7px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--blue), var(--green));
  animation: wheel 1.35s infinite;
}
@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, 10px);
    opacity: 0.25;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
  /* display: none; */
}
.wave {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.w1 {
  stroke-dasharray: 12 8;
  animation: dash 18s linear infinite;
}
.w2 {
  stroke-dasharray: 20 10;
  animation: dash 26s linear infinite;
  opacity: 0.75;
}
.w3 {
  stroke-dasharray: 16 10;
  animation: dash 22s linear infinite;
  opacity: 0.65;
}

@keyframes dash {
  to {
    stroke-dashoffset: -320;
  }
}

.dots circle {
  fill: rgba(255, 255, 255, 0.68);
  opacity: 0.65;
  animation: float 6s ease-in-out infinite;
}
.dots circle:nth-child(2) {
  animation-duration: 7s;
}
.dots circle:nth-child(3) {
  animation-duration: 8.2s;
}
.dots circle:nth-child(4) {
  animation-duration: 6.8s;
}
.dots circle:nth-child(5) {
  animation-duration: 7.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.9;
  }
}

/* Sections */
main {
  padding: 0 18px 90px;
}

/* Bridge (between HERO and BUSINESS) */
.bridge {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 0 18px;
  position: relative;
}
.bridge-inner {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(8, 28, 40, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow2);
  padding: 34px 28px;
  overflow: hidden;
}
.bridge-inner::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(
      700px 260px at 18% 10%,
      rgba(27, 127, 191, 0.14),
      rgba(27, 127, 191, 0) 70%
    ),
    radial-gradient(
      700px 260px at 78% 80%,
      rgba(85, 179, 122, 0.14),
      rgba(85, 179, 122, 0) 70%
    );
  pointer-events: none;
}
.bridge-lead {
  position: relative;
  margin: 0;
  font-size: 18px;
  line-height: 2.05;
  color: rgba(10, 35, 50, 0.82);
  text-wrap: balance;
}
.bridge-lead strong {
  color: rgba(10, 35, 50, 0.92);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 0;
  position: relative;
  z-index: 0;
  scroll-margin-top: 96px;
}

/* section background blobs (per section) */
.section::before {
  content: "";
  position: absolute;
  inset: -120px -20vw -120px -20vw;
  background:
    radial-gradient(
      820px 420px at 12% 18%,
      rgba(27, 127, 191, 0.07),
      rgba(27, 127, 191, 0) 72%
    ),
    radial-gradient(
      820px 420px at 88% 62%,
      rgba(85, 179, 122, 0.07),
      rgba(85, 179, 122, 0) 72%
    );
  pointer-events: none;
  z-index: -2;
}

.section-services::before {
  background:
    radial-gradient(
      900px 460px at 16% 18%,
      rgba(27, 127, 191, 0.11),
      rgba(27, 127, 191, 0) 72%
    ),
    radial-gradient(
      720px 380px at 90% 70%,
      rgba(85, 179, 122, 0.06),
      rgba(85, 179, 122, 0) 72%
    );
}

.section-company::before {
  background:
    radial-gradient(
      720px 380px at 16% 18%,
      rgba(27, 127, 191, 0.05),
      rgba(27, 127, 191, 0) 72%
    ),
    radial-gradient(
      900px 460px at 88% 62%,
      rgba(85, 179, 122, 0.11),
      rgba(85, 179, 122, 0) 72%
    );
}

/* Curvy pattern overlays */
.section-services::after,
.section-company::after {
  content: "";
  position: absolute;
  inset: -140px -22vw -140px -22vw;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.section-services::after {
  background-image: url("assets/bg-curves-business.svg");
}

.section-company::after {
  background-image: url("assets/bg-curves-company.svg");
  background-position: center 20%;
}

.section-head {
  margin-bottom: 64px;
}
.section-titles {
  margin-bottom: 10px;
}

.en-head {
  font-family:
    "Montserrat",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(27, 127, 191, 1),
    rgba(85, 179, 122, 1)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jp-head {
  margin: 8px 0 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: rgba(10, 35, 50, 0.8);
}

.section-head p {
  margin: 10px 0 0;
  max-width: 74ch;
  color: rgba(10, 35, 50, 0.76);
  line-height: 1.95;
  font-size: 16px;
  text-wrap: balance;
}

/* Services (3 columns) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 28px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 16% 18%,
      rgba(27, 127, 191, 0.14),
      rgba(27, 127, 191, 0) 72%
    ),
    radial-gradient(
      520px 260px at 86% 70%,
      rgba(85, 179, 122, 0.14),
      rgba(85, 179, 122, 0) 72%
    );
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0.95;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Photo cutouts (subtle) */
.service-photo {
  position: absolute;
  z-index: 0;
  inset: -26px -26px -26px -26px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.13;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    closest-side at 70% 30%,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0) 72%
  );
  mask-image: radial-gradient(
    closest-side at 70% 30%,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0) 72%
  );
}
.service-card.s1 .service-photo {
  background-image: url("assets/service-cutout-1.webp");
  background-position: 62% 36%;
}
.service-card.s2 .service-photo {
  background-image: url("assets/service-cutout-2.webp");
  background-position: 78% 26%;
}
.service-card.s3 .service-photo {
  background-image: url("assets/service-cutout-3.webp");
  background-position: 58% 44%;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(27, 127, 191, 0.14),
    rgba(85, 179, 122, 0.14)
  );
  border: 1px solid rgba(27, 127, 191, 0.18);
  color: rgba(10, 35, 50, 0.76);
}

.service-no {
  font-family:
    "Montserrat",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(10, 35, 50, 0.34);
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.service-card p {
  margin: 0;
  color: rgba(10, 35, 50, 0.78);
  line-height: 1.95;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(27, 127, 191, 0.18);
  background: rgba(27, 127, 191, 0.06);
}

.note {
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 127, 191, 0.18);
  background: linear-gradient(
    90deg,
    rgba(27, 127, 191, 0.08),
    rgba(85, 179, 122, 0.08)
  );
  color: rgba(10, 35, 50, 0.8);
  line-height: 1.95;
}

/* Company */
.statement {
  border-radius: var(--radius);
  border: 1px solid rgba(8, 28, 40, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow2);
  padding: 28px 26px;
}

.st-strong {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(
    135deg,
    rgba(27, 127, 191, 1),
    rgba(85, 179, 122, 1)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.st-sub {
  margin: 10px 0 0;
  color: rgba(10, 35, 50, 0.78);
  line-height: 1.95;
}

.profile-card,
.access-card {
  margin-top: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow2);
  padding: 30px 26px;
}

.card-title {
  margin: 0 0 12px;
  font-family:
    "Montserrat",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: rgba(10, 35, 50, 0.7);
  text-transform: uppercase;
}

.profile-list {
  margin: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px 28px;
}
.profile-list dt {
  margin: 0;
  font-weight: 900;
  color: rgba(10, 35, 50, 0.72);
  letter-spacing: 0.02em;
}
.profile-list dd {
  margin: 0;
  color: rgba(10, 35, 50, 0.84);
  line-height: 1.95;
}
.profile-list dd strong {
  color: rgba(10, 35, 50, 0.92);
}

.profile-map {
  margin-top: 12px;
}

.map-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: rgba(10, 35, 50, 0.82);
}

.access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.access-addr {
  margin: 0 0 14px;
  color: rgba(10, 35, 50, 0.8);
  line-height: 1.9;
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 12px 26px rgba(6, 28, 40, 0.08);
}

/* Footer */
.footer {
  padding: 44px 18px 64px;
  background:
    radial-gradient(
      760px 320px at 18% 20%,
      rgba(27, 127, 191, 0.42),
      rgba(27, 127, 191, 0) 70%
    ),
    radial-gradient(
      760px 320px at 86% 68%,
      rgba(85, 179, 122, 0.4),
      rgba(85, 179, 122, 0) 70%
    ),
    linear-gradient(180deg, rgba(6, 28, 40, 0.92), rgba(6, 28, 40, 0.98));
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-nav {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family:
    "Montserrat",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.94);
}
.footer strong {
  color: rgba(255, 255, 255, 0.96);
}
.copy {
  display: flex;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.62);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal[data-reveal="left"] {
  transform: translateX(-18px);
}
.reveal[data-reveal="right"] {
  transform: translateX(18px);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-in[data-reveal="left"],
.reveal.is-in[data-reveal="right"] {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 760px) {
  .header {
    height: 66px;
  }
  .brand img {
    height: 66px;
  }
  .nav {
    display: none;
  }
  .hero {
    padding: 100px 16px 78px;
  }
  .lead {
    max-width: 58ch;
  }
  .section {
    padding: 102px 0;
  }
  .bridge {
    padding: 68px 0 10px;
  }
  .bridge-inner {
    padding: 26px 18px;
  }
  .profile-list {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  .profile-list dt {
    font-size: 13px;
    color: rgba(10, 35, 50, 0.62);
  }
  .profile-list dd {
    padding-bottom: 10px;
  }

  .map-embed iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll .mouse::after {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
  .reveal {
    transition: none;
  }
  .w1,
  .w2,
  .w3 {
    animation: none;
  }
  .dots circle {
    animation: none;
  }
}
