:root {
  --ink: #07102f;
  --muted: #51607d;
  --blue: #005de8;
  --blue-deep: #074ab8;
  --blue-soft: #eaf3ff;
  --orange: #ff5637;
  --orange-deep: #df2f16;
  --line: #dce4f2;
  --bg: #f8fbff;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(15, 52, 98, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1080px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 56%, rgba(0, 93, 232, 0.1), transparent 18rem),
    radial-gradient(circle at 98% 86%, rgba(255, 86, 55, 0.12), transparent 18rem),
    var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-break: strict;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

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

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

.page-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.dot-field {
  position: absolute;
  width: 220px;
  height: 260px;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(0, 93, 232, 0.26) 1.5px, transparent 1.8px);
  background-size: 18px 18px;
}

.dot-field-left {
  top: 48%;
  left: -72px;
  border-radius: 48% 52% 58% 42%;
  animation: decor-drift 14s ease-in-out infinite;
}

.dot-field-right {
  top: 15%;
  right: -54px;
  opacity: 0.32;
  transform: rotate(8deg);
  animation: decor-drift-alt 16s ease-in-out infinite;
}

.wave {
  position: absolute;
  width: 360px;
  height: 140px;
  border: 28px solid rgba(255, 86, 55, 0.16);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 58% 42% 62% 38% / 50% 58% 42% 50%;
}

.wave-top {
  top: 18%;
  right: 4%;
  transform: rotate(-14deg);
  animation: wave-float 18s ease-in-out infinite;
}

.wave-bottom {
  left: -64px;
  bottom: 9%;
  border-color: rgba(0, 93, 232, 0.12);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(18deg);
  animation: wave-float-alt 20s ease-in-out infinite;
}

@keyframes decor-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -18px, 0);
  }
}

@keyframes decor-drift-alt {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(-16px, 16px, 0) rotate(3deg);
  }
}

@keyframes wave-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-14deg);
  }
  50% {
    transform: translate3d(-18px, 12px, 0) rotate(-8deg);
  }
}

@keyframes wave-float-alt {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
  50% {
    transform: translate3d(18px, -12px, 0) rotate(24deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot-field,
  .wave {
    animation: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 100px;
  padding: 8px clamp(36px, 4.5vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 228, 242, 0.85);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  height: 84px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 46px);
  width: 100%;
  color: #182242;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta,
.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #ff6a50, #ff4c33);
  box-shadow: 0 16px 30px rgba(255, 86, 55, 0.26);
}

.button-secondary {
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid #9eb2d1;
}

.section-pad {
  padding: clamp(76px, 7vw, 118px) clamp(56px, 7vw, 128px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  align-items: center;
  gap: clamp(52px, 5vw, 90px);
  width: min(100%, 1480px);
  min-height: 720px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.1rem, 3.45vw, 3.75rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.16;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .accent {
  color: var(--orange-deep);
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #27314f;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-visual::before {
  inset: -44px -30px auto auto;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, #acd5ff, #eef7ff);
}

.hero-visual::after {
  right: -22px;
  bottom: 54px;
  width: 45%;
  height: 86px;
  border-radius: 999px 999px 999px 12px;
  background: linear-gradient(135deg, #ff8b67, var(--orange));
  transform: rotate(-18deg);
}

.hero-visual img {
  width: min(100%, 640px);
  margin-left: auto;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: center;
  border-radius: 42% 58% 44% 56% / 35% 36% 64% 65%;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: 640px;
}

.section-heading h2,
.services-intro h2,
.profile-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3.4vw, 3.8rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.25;
}

.section-heading p:last-child,
.services-intro p:last-child,
.contact p {
  color: var(--muted);
  font-weight: 700;
}

.vision {
  background: var(--white);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(100%, 1320px);
}

.vision-card {
  min-height: 280px;
  padding: 36px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 74, 184, 0.08);
}

.vision-card span {
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 1000;
}

.vision-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  line-height: 1.45;
}

.vision-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.portfolio-grid {
  display: flex;
  gap: 32px;
  width: min(100%, 1360px);
  align-items: stretch;
}

.portfolio-grid article {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 18px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 52, 98, 0.1);
}

.portfolio-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
}

.portfolio-grid article:first-child img {
  object-position: right center;
}

.portfolio-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.45;
  word-break: break-all;
  overflow-wrap: break-word;
}

.portfolio-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.services {
  display: grid;
  grid-template-columns: minmax(460px, 0.42fr) minmax(0, 1fr);
  gap: 64px;
  background:
    radial-gradient(circle at 8% 30%, rgba(255, 255, 255, 0.12), transparent 15rem),
    linear-gradient(135deg, #074ab8, #005de8);
  color: var(--white);
}

.services .eyebrow,
.contact .eyebrow {
  color: #9ac9ff;
}

.services-intro p {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0, 32, 92, 0.28);
}

.services-intro {
  min-width: 0;
}

.services-intro h2 {
  color: #ffffff;
  font-size: clamp(3rem, 2.7vw, 3.25rem);
  white-space: nowrap;
}

.services-intro > p:not(.eyebrow) {
  max-width: 430px;
  color: #f7fbff;
  font-size: 1.08rem;
  font-weight: 900;
}

.accordion {
  display: grid;
  overflow: hidden;
  align-self: start;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

details + details {
  border-top: 1px solid var(--line);
}

details {
  transition: background 0.2s ease;
}

details[open] {
  background: #fbfdff;
}

summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 30px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 1000;
  cursor: pointer;
  line-height: 1.45;
  list-style: none;
  word-break: keep-all;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  margin-left: auto;
  color: var(--blue-deep);
  content: "+";
  font-size: 1.8rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

summary span {
  color: var(--blue);
  font-size: 1.55rem;
}

.detail-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding: 0 36px 36px 102px;
  color: var(--ink);
}

.detail-body img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.detail-body p {
  margin: 0 0 16px;
  color: #293654;
  font-weight: 700;
}

.detail-body ul,
.profile-copy ul {
  margin: 0;
  padding-left: 1.2em;
  color: #34415d;
  font-weight: 700;
}

.profile {
  background: var(--white);
}

.profile-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 999px;
}

.profile-copy h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
}

.profile-copy h2 span {
  display: inline-block;
  margin-left: 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.profile-copy p {
  color: #293654;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1fr);
  align-items: start;
  gap: 48px;
  width: min(calc(100% - 112px), 1320px);
  margin: clamp(42px, 5vw, 76px) auto clamp(42px, 5vw, 76px);
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.16), transparent 10rem),
    linear-gradient(135deg, #004fc9, #0066ff);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.contact-copy p {
  max-width: 520px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 30, 88, 0.2);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #213052;
  font-size: 0.95rem;
  font-weight: 900;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #cfd9ea;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 93, 232, 0.12);
}

.contact-form .button {
  width: min(100%, 260px);
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-status {
  min-height: 1.4em;
  margin: -2px 0 0;
  color: var(--blue-deep);
  font-size: 0.95rem;
  font-weight: 900;
}

.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a.is-active::after {
  width: 100%;
}

.lang-toggle {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #9eb2d1;
  background: transparent;
  color: #182242;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero,
  .services {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    margin: 0;
  }

  .vision-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
  }

  .hero-actions,
  .contact {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .detail-body {
    grid-template-columns: 1fr;
    padding: 0 22px 24px;
  }

  summary {
    gap: 14px;
    padding: 18px 22px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card > img {
    max-width: 260px;
  }
}
