:root {
  --navy: #071f3d;
  --navy-2: #0c335e;
  --ink: #061b35;
  --text: #243246;
  --muted: #687485;
  --line: #dbe2ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --sand: #d7c7b1;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

main,
section,
article,
div {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 226, 234, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr auto;
  gap: 28px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  color: var(--ink);
}

.logo-mark {
  width: 27px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-block;
  background:
    linear-gradient(135deg, transparent 0 44%, var(--sand) 45% 100%),
    linear-gradient(90deg, var(--navy) 0 52%, #f5f1eb 52% 100%);
}

.logo strong {
  display: block;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.logo small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding: 12px 0;
}

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

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

.header-button {
  min-width: 116px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(7, 31, 61, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #fff 0%, #fff 52%, #eef2f6 52%, #eef2f6 100%);
}

.hero::before {
  content: "";
  width: 46vw;
  height: 46vw;
  min-width: 520px;
  min-height: 520px;
  position: absolute;
  right: -18vw;
  top: -18vw;
  border-radius: 50%;
  background: rgba(7, 31, 61, 0.05);
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--navy-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 26px;
  color: var(--ink);
  font-size: clamp(34px, 3.9vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.03em;
  font-weight: 500;
  word-break: keep-all;
}

.hero h1 span,
.problem-band h2 span {
  white-space: nowrap;
}

.hero-text {
  max-width: 560px;
  margin-top: 30px;
  color: #304157;
  font-size: 17px;
  line-height: 2.05;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.primary-button,
.ghost-button,
.outline-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 850;
}

.primary-button {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 34px rgba(7, 31, 61, 0.18);
}

.ghost-button,
.outline-button {
  border: 1px solid rgba(7, 31, 61, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.primary-button::after,
.ghost-button::after,
.outline-button::after {
  content: "→";
  margin-left: 15px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-visual img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: 55% center;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  box-shadow: 0 34px 70px rgba(7, 31, 61, 0.14);
}

.floating-note {
  width: 280px;
  padding: 24px;
  position: absolute;
  left: -10px;
  bottom: 38px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px rgba(7, 31, 61, 0.12);
}

.floating-note span {
  color: var(--navy-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.floating-note p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

.metric-row {
  width: min(var(--max), calc(100% - 48px));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(219, 226, 234, 0.9);
  background: #fff;
  box-shadow: 0 20px 45px rgba(7, 31, 61, 0.08);
}

.metric-row div {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.metric-row div:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
}

.metric-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.problem-band {
  margin-top: 96px;
  padding: 86px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  background: var(--navy);
  color: #fff;
}

.problem-band .eyebrow {
  color: #9fb8d3;
}

.problem-band h2,
.section-heading h2,
.about-copy h2,
.pricing-strip h2,
.contact-section h2 {
  margin-top: 18px;
  color: inherit;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.42;
  letter-spacing: 0.03em;
  font-weight: 500;
  word-break: keep-all;
}

.band-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.band-list article {
  display: grid;
  grid-template-columns: 52px 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.band-list span,
.service-card span {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.band-list h3 {
  font-size: 20px;
  line-height: 1.55;
}

.band-list p {
  color: #d6e0eb;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 600;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 106px 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading h2 {
  color: var(--ink);
}

.section-heading p:last-child {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.service-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 34px;
  display: grid;
  grid-template-rows: 18px minmax(70px, auto) auto 1fr;
  align-content: start;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(7, 31, 61, 0.08);
}

.service-card.dark {
  background: var(--navy);
  color: #fff;
}

.service-card span {
  color: var(--navy-2);
  position: relative;
  z-index: 1;
}

.service-card.dark span {
  color: #9fb8d3;
}

.service-card h3 {
  margin-top: 18px;
  color: inherit;
  font-size: 24px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.service-card p {
  margin-top: 16px;
  color: #5f6c7a;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 650;
  position: relative;
  z-index: 1;
}

.service-card.dark p {
  color: #d6e0eb;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 78px;
  align-items: center;
  padding-top: 28px;
}

.portrait {
  position: relative;
}

.portrait::before {
  content: "";
  width: 58%;
  height: 74%;
  position: absolute;
  left: -30px;
  bottom: -30px;
  background: var(--navy);
  z-index: -1;
}

.portrait img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: 43% center;
}

.about-copy h2 {
  color: var(--ink);
}

.about-copy p {
  margin-top: 28px;
  color: #33445a;
  font-size: 15px;
  line-height: 2.1;
  font-weight: 650;
}

.outline-button {
  margin-top: 34px;
}

.pricing-strip {
  padding: 74px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}

.pricing-strip h2 {
  color: var(--ink);
  max-width: 860px;
}

.pricing-strip p:last-child {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.contact-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 96px auto;
  padding: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 62px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(159, 184, 211, 0.28), transparent 28%),
    linear-gradient(135deg, #071f3d 0%, #09294f 58%, #0e3b6d 100%);
  color: #fff;
}

.contact-section h2 {
  font-size: clamp(28px, 2.9vw, 40px);
}

.contact-section .eyebrow {
  color: #9fb8d3;
}

.contact-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.contact-card p {
  color: #e6edf5;
  font-size: 15px;
  line-height: 2;
  font-weight: 650;
}

.contact-card .primary-button {
  margin-top: 28px;
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.footer-brand p,
.footer-info p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 650;
}

.footer-nav {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.to-top {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: minmax(250px, 1fr) auto;
  }

  .nav {
    display: none;
  }

  .hero-inner,
  .problem-band,
  .section-heading,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 76px 0 88px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: 460px;
  }

  .metric-row {
    margin-top: 0;
  }

  .band-list article {
    grid-template-columns: 48px 1fr;
  }

  .band-list p {
    grid-column: 2;
  }

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

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

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    position: relative;
  }

  h1,
  h2,
  h3,
  p,
  a,
  strong,
  span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-header,
  main,
  .hero,
  .problem-band,
  .pricing-strip,
  .contact-section,
  .footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner,
  .hero-inner,
  .metric-row,
  .section,
  .contact-section,
  .footer {
    width: auto;
    max-width: none;
    margin-inline: clamp(20px, 6vw, 32px);
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-inline: clamp(16px, 4.5vw, 24px);
  }

  .logo {
    gap: 8px;
    overflow: hidden;
  }

  .logo-mark {
    width: 22px;
    height: 34px;
  }

  .logo > span {
    min-width: 0;
  }

  .logo strong {
    font-size: clamp(12px, 3.55vw, 15px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .logo small {
    display: none;
  }

  .header-button {
    min-width: auto;
    padding: 10px 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    background: linear-gradient(180deg, #fff 0%, #fff 54%, #eef2f6 54%, #eef2f6 100%);
  }

  .hero::before {
    width: 118%;
    height: auto;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    right: auto;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
  }

  .hero-inner {
    padding: 0;
  }

  .hero-copy {
    min-height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(34px, 7svh, 58px);
  }

  .hero h1 {
    font-size: clamp(25px, 7.6vw, 33px);
    line-height: 1.28;
    letter-spacing: 0.02em;
    font-weight: 650;
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: normal;
    margin-top: clamp(20px, 4.5svh, 30px);
  }

  .problem-band h2,
  .section-heading h2,
  .about-copy h2,
  .pricing-strip h2,
  .contact-section h2 {
    font-size: clamp(24px, 6.6vw, 31px);
    line-height: 1.38;
    font-weight: 650;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  .hero h1 br {
    display: none;
  }

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

  .problem-band h2 span {
    display: inline;
    white-space: normal;
  }

  .hero-text {
    max-width: 100%;
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.6;
    font-weight: 750;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
    margin-top: clamp(22px, 4svh, 30px);
  }

  .section-heading h2 {
    max-width: 9.5em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: clamp(32px, 6svh, 44px);
  }

  .primary-button,
  .ghost-button,
  .outline-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 56px;
    padding-inline: 16px;
    font-size: 15px;
    text-align: center;
    white-space: normal;
  }

  .hero-visual img {
    height: 340px;
    clip-path: none;
  }

  .floating-note {
    width: calc(100% - 28px);
    left: 14px;
    bottom: 14px;
  }

  .metric-row,
  .service-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-row div:last-child {
    border-bottom: 0;
  }

  .problem-band {
    margin-top: 64px;
    padding: 64px 24px;
    overflow: hidden;
  }

  .band-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .band-list h3 {
    font-size: 19px;
    line-height: 1.55;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  .band-list p {
    grid-column: auto;
  }

  .section {
    padding: 72px 0;
  }

  .service-card,
  .contact-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .service-card {
    padding: 28px 22px;
  }

  .service-card h3 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .service-card p,
  .band-list p,
  .section-heading p:last-child,
  .about-copy p,
  .pricing-strip p:last-child,
  .contact-card p {
    font-size: 15px;
    line-height: 1.65;
    font-weight: 750;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  .portrait::before {
    left: 0;
    bottom: -14px;
  }

  .contact-section {
    margin: 64px auto;
    padding: 36px 18px;
    gap: 30px;
    overflow: hidden;
  }

  .contact-card {
    padding: 26px 20px;
  }

  .contact-card .primary-button {
    margin-top: 22px;
  }
}
