:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --surface-deep: #0f1f38;
  --surface-soft: #f8fbff;
  --text: #122033;
  --text-strong: #08111f;
  --muted: #546377;
  --line: #d7dfeb;
  --line-strong: #c4cedd;
  --navy: #15335b;
  --navy-strong: #0b2342;
  --accent: #b98a3f;
  --accent-soft: #efe3cf;
  --success: #116149;
  --shadow: 0 22px 56px rgba(12, 27, 52, 0.08);
  --shadow-strong: 0 28px 72px rgba(9, 20, 40, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(21, 51, 91, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #f2f5fa 100%);
  line-height: 1.72;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
li,
dt,
dd,
small,
strong,
span,
a,
button,
input,
textarea,
select {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.nowrap {
  overflow-wrap: normal;
  word-break: keep-all;
}

.nowrap {
  white-space: nowrap;
}

.phrase-nowrap {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-title-line {
  display: inline;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(236, 242, 249, 0.95));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  color: var(--text-strong);
  line-height: 1.25;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(21, 51, 91, 0.18);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(18, 32, 51, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--navy-strong);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 23px;
}

.nav-toggle span:nth-child(3) {
  top: 30px;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-section {
  padding-top: 72px;
}

.hero-grid,
.detail-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.hero-grid > *,
.detail-grid > *,
.contact-grid > *,
.service-grid > *,
.partner-grid > *,
.engagement-grid > *,
.trust-grid > *,
.about-hero-grid > *,
.about-detail-grid > *,
.about-card-grid > *,
.principle-list > * {
  min-width: 0;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(1.95rem, 3vw, 3rem);
}

.hero-lead,
.section-heading p,
.panel p,
.card p,
.card li,
.contact-copy p,
.contact-preview,
.form-note,
.firm-facts dt,
.firm-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-lead {
  margin-top: 24px;
  max-width: 760px;
}

.hero-note {
  margin-top: 16px;
  max-width: 560px;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 600;
}

.eyebrow,
.card-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.card-kicker::before,
.panel-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 34px rgba(21, 51, 91, 0.18);
}

.button-secondary {
  background: #fff;
  color: var(--navy-strong);
  border-color: rgba(18, 32, 51, 0.12);
}

.button-tertiary {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button-tertiary:hover,
.button-tertiary:focus-visible {
  transform: none;
  color: var(--navy-strong);
}

.panel,
.card,
.trust-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.panel,
.card,
.trust-card {
  padding: 28px;
}

.hero-panel {
  background: linear-gradient(180deg, #11233e, #0b1b31);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-panel .panel-label,
.hero-panel strong {
  color: #fff;
}

.hero-panel .panel-label::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), var(--accent));
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-points,
.service-grid,
.partner-grid,
.engagement-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.hero-points div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-points div:first-child {
  padding-top: 0;
  border-top: 0;
}

.partner-sections {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.partner-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.partner-section h4 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-points strong,
.credential-list strong,
.card h3,
.trust-card h2,
.firm-facts h3 {
  display: block;
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 1.28rem;
  line-height: 1.28;
}

.hero-panel .hero-points strong {
  color: #fff;
}

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

.trust-card span,
.engagement-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trust-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

.partner-grid {
  gap: 22px;
}

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

.service-card ul,
.partner-card ul,
.detail-group ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.service-card li,
.partner-card li,
.detail-group li {
  margin-bottom: 10px;
}

.partner-card li {
  margin-bottom: 12px;
}

.detail-card {
  display: grid;
  gap: 18px;
}

.detail-group {
  padding: 2px 0;
}

.note-block {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.partner-highlight {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-color: rgba(21, 51, 91, 0.14);
  box-shadow: var(--shadow-strong);
}

.partner-highlight::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}

.partner-summary {
  margin-bottom: 18px !important;
}

.credential-list p {
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(180deg, #f5f7fb 0%, #edf2f8 100%);
}

.contact-copy {
  display: grid;
  gap: 22px;
}

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

.contact-meta {
  margin-top: -6px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-checklist h3 {
  margin: 0 0 14px;
}

.contact-checklist ul {
  margin: 0;
  padding-left: 20px;
}

.contact-checklist li {
  margin-bottom: 10px;
  color: var(--text);
}

.contact-checklist p {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-form span {
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(21, 51, 91, 0.45);
  box-shadow: 0 0 0 4px rgba(21, 51, 91, 0.08);
}

.contact-preview,
.form-note {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  white-space: pre-line;
}

.form-note.is-success {
  color: var(--success);
  border-color: rgba(17, 97, 73, 0.18);
  background: rgba(17, 97, 73, 0.06);
}

.firm-facts {
  margin-top: 4px;
}

.firm-facts dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.firm-facts dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.firm-facts dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.firm-facts dt {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

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

.site-footer {
  border-top: 1px solid rgba(18, 32, 51, 0.08);
  background: #fff;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
}

.footer-wrap p,
.footer-wrap a {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.about-hero {
  padding-top: 72px;
}

.about-hero-grid,
.about-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.about-statement h2 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.company-profile dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.company-profile dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-profile dl div:first-child {
  padding-top: 0;
}

.company-profile dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-profile dt {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-domain-card h3 {
  margin-top: 0;
  color: var(--text-strong);
  font-size: 1.35rem;
  line-height: 1.38;
}

.operating-principles {
  display: grid;
  gap: 28px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-list article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 16px 36px rgba(12, 27, 52, 0.06);
}

.principle-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.principle-list h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 1.15rem;
  line-height: 1.38;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .brand-copy strong {
    max-width: 240px;
    font-size: 0.86rem;
    line-height: 1.18;
  }

  .brand-copy small {
    display: none;
  }

  .about-statement h2 {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(18, 32, 51, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 6px;
  }

  .hero-grid,
  .detail-grid,
  .contact-grid,
  .service-grid,
  .partner-grid,
  .engagement-grid,
  .trust-grid,
  .about-hero-grid,
  .about-detail-grid,
  .about-card-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 36px, 1000px);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 14px;
    --shadow: 0 14px 34px rgba(12, 27, 52, 0.08);
    --shadow-strong: 0 18px 46px rgba(9, 20, 40, 0.14);
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    background: linear-gradient(180deg, #f7f9fc 0%, #f2f5fa 100%);
  }

  .site-header {
    background: rgba(247, 250, 252, 0.97);
    box-shadow: 0 8px 22px rgba(12, 27, 52, 0.06);
  }

  .nav-wrap {
    min-height: 60px;
    gap: 12px;
  }

  .brand-copy strong {
    max-width: 230px;
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
  }

  .nav-toggle span {
    left: 11px;
    width: 20px;
  }

  .site-nav {
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(245, 247, 251, 0.72);
  }

  .site-nav .nav-cta {
    margin-top: 4px;
    background: var(--navy);
  }

  .section {
    padding: 56px 0;
  }

  .hero-section {
    padding-top: 44px;
  }

  .hero-grid,
  .detail-grid,
  .contact-grid {
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 2.38rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .hero-title-line {
    display: block;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.78rem, 7vw, 2.18rem);
    line-height: 1.14;
  }

  .section-heading,
  .service-card,
  .detail-card,
  .engagement-card,
  .partner-card,
  .trust-card,
  .panel,
  .card,
  .note-block {
    min-width: 0;
    max-width: 100%;
  }

  .section-heading h2,
  .card h3,
  .trust-card h2,
  .firm-facts h3,
  .detail-group h3,
  .partner-section h4,
  .about-domain-card h3,
  .principle-list h3 {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .section-heading p,
  .card p,
  .card li,
  .panel p,
  .note-block p,
  .firm-facts dd,
  .company-profile dd {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .eyebrow,
  .card-kicker,
  .panel-label {
    display: flex;
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
  }

  .about-statement h2 {
    font-size: clamp(1.35rem, 6vw, 1.72rem);
    line-height: 1.28;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-lead,
  .section-heading p,
  .panel p,
  .card p,
  .card li,
  .contact-copy p,
  .contact-preview,
  .form-note,
  .firm-facts dt,
  .firm-facts dd {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-actions,
  .form-actions {
    gap: 10px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
  }

  .hero-note {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .panel,
  .card,
  .trust-card {
    padding: 20px;
    box-shadow: 0 12px 28px rgba(12, 27, 52, 0.07);
  }

  .hero-panel {
    margin-top: 4px;
  }

  .hero-points div {
    padding-top: 14px;
  }

  .hero-points div:first-child {
    padding-top: 0;
  }

  .trust-grid,
  .service-grid,
  .partner-grid,
  .engagement-grid,
  .about-card-grid,
  .principle-list {
    gap: 14px;
  }

  .trust-strip {
    padding-top: 48px;
  }

  .eyebrow,
  .card-kicker,
  .panel-label {
    margin-bottom: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .eyebrow::before,
  .card-kicker::before,
  .panel-label::before {
    width: 24px;
  }

  .company-profile dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-wrap {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: min(100vw - 32px, 1000px);
  }

  .brand-copy strong {
    max-width: 210px;
    font-size: 0.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.96rem, 9.5vw, 2.24rem);
  }

  .panel,
  .card,
  .trust-card {
    padding: 18px;
  }
}
