:root {
  color-scheme: light;
  --color-bg: #f8fbff;
  --color-surface: #ffffff;
  --color-surface-alt: #edf4ff;
  --color-primary: #0050d8;
  --color-primary-dark: #002d7a;
  --color-secondary: #0b8ce3;
  --color-accent-red: #d9480f;
  --color-text: #1a2340;
  --color-muted: #5a6786;
  --color-border: rgba(16, 59, 128, 0.12);
  --shadow-soft: 0 20px 60px rgba(8, 44, 94, 0.12);
  --gradient-hero: linear-gradient(135deg, #00297a 0%, #0b8ce3 100%);
  font-family: "Inter", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin: 0;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(34, 59, 131, 0.08);
  box-shadow: 0 6px 18px rgba(34, 59, 131, 0.12);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #223b83;
}

.nav {
  position: relative;
}

.nav__links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav__links a {
  padding: 12px 0;
  color: rgba(34, 59, 131, 0.75);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: #223b83;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #223b83;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  padding: 160px 0 120px;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 19, 44, 0.55), rgba(22, 60, 120, 0.35));
  z-index: -1;
}

.hero__content {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.hero__copy {
  max-width: 560px;
  display: grid;
  gap: 20px;
}

.hero__line--nowrap {
  white-space: nowrap;
}

.hero__copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: #ffffff;
  font-family: "Inter", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.hero__copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 6px 14px;
  background: rgba(0, 45, 122, 0.08);
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 80, 216, 0.3);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 45, 122, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 45, 122, 0.25);
}

.btn--ghost {
  background: rgba(0, 45, 122, 0.06);
  color: var(--color-primary);
}

.hero__actions .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
  background: rgba(0, 45, 122, 0.12);
}

.btn--block {
  width: 100%;
}

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

.hero__card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__card--secondary {
  background: var(--color-surface-alt);
}

.section {
  padding: 120px 0;
  background: transparent;
}

.section--accent {
  background: var(--color-surface-alt);
}

.section--statement {
  padding: clamp(32px, 7vw, 72px) 0;
  background: #05060c;
  color: #ffffff;
}

.statement {
  max-width: 980px;
  margin: 0;
  display: grid;
  gap: 18px;
}

.statement__title {
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.statement__lead {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #ffffff;
}

.statement__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
}

.section--tight {
  padding: 96px 0;
  background: var(--color-surface-alt);
}

.section__header {
  max-width: 680px;
  margin-bottom: 48px;
}

#solutions .section__header h2 {
  max-width: 860px;
}

.section__header--center {
  text-align: center;
  margin: 0 auto 48px;
}

.section__header p {
  color: var(--color-muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

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

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--solutions {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#services .section__header h2,
#solutions .section__header h2 {
  color: #000000;
}

.grid--industries {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.competitive-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.competitive-advantage {
  flex: 1 1 280px;
}

.competitive-advantage h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.competitive-advantage p {
  color: var(--color-muted);
  line-height: 1.8;
}

.competitive-advantage + .competitive-advantage {
  border-left: 1px solid rgba(26, 35, 64, 0.16);
  padding-left: 36px;
}

@media (max-width: 1024px) {
  .competitive-advantages {
    flex-direction: column;
    gap: 32px;
  }

  .competitive-advantage + .competitive-advantage {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(26, 35, 64, 0.16);
    padding-top: 24px;
  }
}

.member-profile {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 36px;
  align-items: start;
}

.member-profile__content {
  display: grid;
  gap: 20px;
  align-content: start;
}

.member-profile__media img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.member-profile__aside {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.member-profile__role {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
}

.member-profile__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
}

.member-profile__name--roman {
  font-size: 0.95rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.member-profile__credential {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.member-profile__details {
  display: grid;
  gap: 16px;
  color: var(--color-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .member-profile {
    grid-template-columns: 1fr;
  }

  .member-profile__media {
    max-width: 360px;
    margin: 0 auto;
  }
}

.card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px rgba(11, 45, 94, 0.08);
}

.card h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.card p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.card ul {
  padding-left: 18px;
  list-style: disc;
  color: var(--color-muted);
}

.card li + li {
  margin-top: 8px;
}

.card--compact {
  padding: 28px;
}

.industry {
  background: rgba(0, 45, 122, 0.08);
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

.service__note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: rgba(26, 35, 64, 0.6);
  letter-spacing: 0.02em;
}

.contact {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.contact__details {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact__heading {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: #000000;
}

.contact__lead {
  margin-top: 12px;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.contact__message {
  margin-top: 12px;
  color: var(--color-muted);
  line-height: 1.8;
}

.contact__details {
  margin-top: 48px;
}

.contact__note {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  color: rgba(26, 35, 64, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
}

.form__required {
  color: var(--color-primary);
  margin-left: 4px;
  font-size: 0.9em;
}

.contact__details dt {
  font-weight: 600;
  color: var(--color-primary);
}

.contact__details dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.section--company {
  background: #ffffff;
}

.section--company .company {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 0;
}

@media (max-width: 1200px) {
  .section--company .company {
    padding: 0 clamp(24px, 5vw, 48px);
  }
}

.company__heading {
  padding-top: 8px;
}

.company__heading h2 {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
}

.company__heading p {
  margin-top: 16px;
  color: var(--color-muted);
  line-height: 1.8;
}

.company__table {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(16, 59, 128, 0.12);
  border-bottom: 1px solid rgba(16, 59, 128, 0.12);
}

.company__row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(16, 59, 128, 0.12);
}

.company__row:last-child {
  border-bottom: none;
}

.company__row dt {
  font-weight: 600;
  color: rgba(26, 35, 64, 0.7);
  letter-spacing: 0.04em;
  white-space: pre-line;
}

.company__row dd {
  margin: 0;
  color: var(--color-text);
}

.company__address span {
  display: block;
}

.company__address span + span {
  margin-top: 6px;
}

.company__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.company__list li {
  line-height: 1.7;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .statement {
    max-width: none;
    gap: 16px;
  }

  .statement__title {
    font-size: 2.1rem;
    letter-spacing: 0.06em;
  }

  .statement__lead {
    font-size: 1.08rem;
  }

  .section--company .company {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  .company__row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .company__row dt {
    letter-spacing: 0.02em;
  }
}

.contact__form {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 20px;
}

.contact__form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
}

.form__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact__form input,
.contact__form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 45, 122, 0.2);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__form input:focus-visible,
.contact__form textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 216, 0.18);
}

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__content p {
  color: var(--color-muted);
  margin-top: 8px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--color-muted);
}

.footer__links a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .header__content {
    min-height: 64px;
  }

  .hero__line--nowrap {
    white-space: normal;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 64px;
    right: 0;
    width: min(280px, 80vw);
    flex-direction: column;
    padding: 16px;
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .hero {
    padding: 120px 0 96px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__content {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
