:root {
  --navy-950: #041a31;
  --navy-900: #062540;
  --navy-800: #093454;
  --blue-700: #0563ce;
  --blue-600: #0877e8;
  --blue-500: #08a9ef;
  --blue-200: #b9e6ff;
  --blue-100: #e4f5ff;
  --white: #ffffff;
  --off-white: #f7fbff;
  --ink: #071a2f;
  --muted: #50657a;
  --line: #d9e7f2;
  --green: #06b957;
  --shadow: 0 18px 55px rgba(4, 26, 49, 0.12);
  --radius: 22px;
  --container: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-950);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}

.section-compact {
  padding: 80px 0;
}

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

.section-soft {
  background:
    linear-gradient(135deg, rgba(8, 169, 239, 0.06), transparent 45%),
    var(--off-white);
}

.section-navy {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(8, 169, 239, 0.28), transparent 28%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section-navy .eyebrow {
  color: #72d4ff;
}

.section-title,
.page-title,
.hero-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "HGS明朝E", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.section-title {
  max-width: 880px;
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.section-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.section-navy .section-lead {
  color: #c8d8e7;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
}

.section-head .section-lead {
  max-width: 470px;
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button::after {
  content: "→";
  transition: transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(4px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 12px 30px rgba(5, 99, 206, 0.24);
}

.button-secondary {
  border-color: #a9c3d8;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.94);
}

.button-line {
  border-color: rgba(6, 185, 87, 0.38);
  color: #087a3d;
  background: var(--white);
}

.button-line::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  content: "L";
  color: var(--white);
  background: var(--green);
  font-size: 0.65rem;
  font-weight: 900;
}

.button-line::after {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-weight: 800;
}

.text-link::after {
  content: "→";
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(217, 231, 242, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  color: var(--navy-950);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.05;
}

.brand-name span:last-child {
  letter-spacing: 0.2em;
}

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

.site-nav > a,
.nav-dropdown > button {
  padding: 10px 0;
  border: 0;
  color: #17314c;
  background: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav > a:hover,
.nav-dropdown > button:hover {
  color: var(--blue-600);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button::after {
  margin-left: 7px;
  content: "⌄";
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  width: 280px;
  padding: 12px;
  transform: translate(-50%, 8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
}

.dropdown-menu a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 700;
}

.dropdown-menu a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.header-cta {
  min-height: 44px;
  padding: 0 19px;
  color: var(--white) !important;
  background: var(--blue-700) !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: var(--navy-950);
  transition: 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero::before,
.hero::after,
.abstract-footer::before,
.abstract-footer::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 26, 49, 0.98) 0%, rgba(4, 26, 49, 0.88) 42%, rgba(4, 26, 49, 0.18) 72%, rgba(4, 26, 49, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 26, 49, 0.38), transparent 55%);
}

.hero::after {
  z-index: 2;
  right: -100px;
  bottom: -160px;
  width: 630px;
  height: 310px;
  transform: rotate(-10deg);
  background:
    linear-gradient(135deg, transparent 18%, rgba(8, 169, 239, 0.85) 18% 26%, transparent 26% 34%, rgba(5, 99, 206, 0.88) 34% 47%, transparent 47% 54%, rgba(255, 255, 255, 0.22) 54% 62%, transparent 62%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 760px;
  align-items: center;
  padding: 100px 0;
}

.hero-copy {
  width: min(640px, 58%);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #a4e2ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-kicker::before {
  width: 42px;
  height: 2px;
  content: "";
  background: var(--blue-500);
}

.hero-title {
  font-size: clamp(3.2rem, 5.6vw, 5.3rem);
  line-height: 1.08;
  white-space: nowrap;
}

.hero-title span {
  display: inline-block;
  position: relative;
  color: #43c7ff;
}

.hero-title span::after {
  position: absolute;
  right: -2%;
  bottom: -7px;
  left: -1%;
  height: 12px;
  transform: rotate(-1deg);
  content: "";
  opacity: 0.75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20'%3E%3Cpath d='M3 15 C120 3 270 18 397 5' fill='none' stroke='%2308a9ef' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.hero-description {
  max-width: 590px;
  margin: 30px 0 34px;
  color: #e1edf7;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 600;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: #bcd1e2;
  font-size: 0.86rem;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--blue-500);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(4, 26, 49, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.service-card-media {
  height: 190px;
  overflow: hidden;
  background: var(--blue-100);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 27px;
}

.service-number {
  margin-bottom: 12px;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.service-card h3 {
  margin: 0 0 13px;
  color: var(--navy-950);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.35;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card .text-link {
  margin-top: auto;
}

.agency-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 5px 11px;
  border: 2px solid var(--blue-600);
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
}

.agency-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--blue-500);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.support-card {
  min-height: 220px;
  padding: 28px 22px;
  border: 1px solid rgba(185, 230, 255, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, transform 0.25s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.11);
}

.support-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  font-size: 1.25rem;
  font-weight: 900;
}

.support-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.support-card p {
  margin: 0;
  color: #bed0df;
  font-size: 0.84rem;
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.diagnosis-copy .agency-badge {
  margin-top: 22px;
}

.diagnosis-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.qr-card {
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-950);
}

.steps small {
  color: var(--muted);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 0.75rem;
  font-weight: 900;
}

.image-copy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.image-frame {
  position: relative;
}

.image-frame::before {
  position: absolute;
  z-index: 0;
  top: -22px;
  right: -22px;
  width: 60%;
  height: 64%;
  content: "";
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 0 100%);
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 430px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  content: "✓";
  color: var(--white);
  background: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.audience-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.audience-card small {
  color: var(--blue-600);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.audience-card h3 {
  margin: 10px 0 12px;
  font-size: 1.2rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.office-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.office-card small {
  color: var(--blue-600);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.office-card h3 {
  margin: 8px 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.7rem;
}

.office-card address {
  color: var(--muted);
  font-style: normal;
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.cta-band::after {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 420px;
  height: 330px;
  transform: rotate(-12deg);
  content: "";
  opacity: 0.9;
  background:
    linear-gradient(135deg, transparent 10%, rgba(8, 169, 239, 0.75) 10% 23%, transparent 23% 34%, rgba(5, 99, 206, 0.9) 34% 49%, transparent 49%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  max-width: 720px;
  margin: 0 0 15px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.35;
}

.cta-inner p {
  margin: 0;
  color: #c8d9e8;
}

.cta-inner .button-row {
  flex: 0 0 auto;
}

.abstract-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.abstract-footer::before {
  right: -50px;
  bottom: -120px;
  width: 610px;
  height: 330px;
  transform: rotate(-8deg);
  opacity: 0.9;
  background:
    linear-gradient(140deg, transparent 0 18%, var(--blue-100) 18% 31%, transparent 31% 39%, rgba(8, 169, 239, 0.62) 39% 51%, transparent 51% 60%, var(--blue-700) 60% 72%, transparent 72%);
}

.abstract-footer::after {
  bottom: -160px;
  left: 22%;
  width: 320px;
  height: 320px;
  border: 50px solid var(--blue-100);
  transform: rotate(45deg);
}

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 50px;
  padding: 76px 0 50px;
}

.footer-brand p {
  max-width: 380px;
  margin: 20px 0 0;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-nav strong,
.footer-info strong {
  margin-bottom: 8px;
  color: var(--navy-950);
}

.footer-nav a,
.footer-info p,
.footer-info a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-info a:hover {
  color: var(--blue-700);
}

.footer-info p {
  margin: 0 0 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #607387;
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.page-hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(8, 169, 239, 0.35), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.page-hero::after {
  position: absolute;
  right: -60px;
  bottom: -130px;
  width: 560px;
  height: 300px;
  transform: rotate(-11deg);
  content: "";
  background: linear-gradient(140deg, transparent 10%, rgba(8, 169, 239, 0.8) 10% 22%, transparent 22% 34%, rgba(255, 255, 255, 0.16) 34% 45%, transparent 45%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #b8cee0;
  font-size: 0.8rem;
}

.breadcrumbs span::before {
  margin-right: 8px;
  content: "/";
}

.page-title {
  max-width: 930px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.page-intro {
  max-width: 700px;
  margin: 26px 0 0;
  color: #d3e1ec;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.content-aside {
  align-self: start;
  position: sticky;
  top: 110px;
}

.content-aside .section-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.content-body h2 {
  margin: 0 0 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.4;
}

.content-body h3 {
  margin: 38px 0 14px;
  font-size: 1.25rem;
}

.content-body p {
  color: var(--muted);
}

.content-block {
  padding: 0 0 58px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.content-block:last-child {
  margin: 0;
  padding: 0;
  border: 0;
}

.numbered-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--off-white);
}

.numbered-list strong {
  display: block;
  color: var(--navy-950);
}

.numbered-list span:first-child {
  color: var(--blue-600);
  font-weight: 900;
}

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

.tag-list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-800);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 54px;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.contact-card h3 {
  margin: 0 0 10px;
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  color: var(--navy-950);
  font-weight: 800;
}

.required {
  margin-left: 7px;
  color: var(--blue-700);
  font-size: 0.72rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #b9cbda;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.form-field input {
  min-height: 52px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 180px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(8, 119, 232, 0.1);
  outline: 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 0.9rem;
}

.checkbox-row input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 3px;
}

.form-actions {
  margin-top: 26px;
}

.form-actions .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #076432;
  background: #e6f8ed;
}

.form-status.is-error {
  color: #892336;
  background: #fff0f2;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin: 52px 0 14px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.7rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

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

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

@media (max-width: 1020px) {
  :root {
    --container: min(100% - 36px, 920px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 999;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    height: calc(100dvh - 76px);
    align-content: start;
    gap: 2px;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: auto;
    background: var(--white);
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav > a,
  .nav-dropdown > button {
    width: 100%;
    padding: 14px 8px;
    text-align: left;
    font-size: 1rem;
  }

  .nav-dropdown > button {
    display: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 0 8px 12px;
    transform: none;
    visibility: visible;
    opacity: 1;
    border: 0;
    box-shadow: none;
  }

  .header-cta {
    margin-top: 8px;
    text-align: center !important;
  }

  .hero-copy {
    width: 72%;
  }

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

  .service-card:last-child {
    grid-column: 1 / -1;
  }

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

  .diagnosis-layout,
  .image-copy-grid,
  .contact-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

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

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 640px);
  }

  .section {
    padding: 78px 0;
  }

  .section-compact {
    padding: 60px 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(4, 26, 49, 0.98) 0%, rgba(4, 26, 49, 0.83) 67%, rgba(4, 26, 49, 0.36) 100%);
  }

  .hero-inner {
    align-items: flex-end;
    padding: 150px 0 72px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.75rem, 12vw, 4.2rem);
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .button-row .button {
    width: 100%;
  }

  .section-head,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .support-grid,
  .office-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .support-card {
    min-height: 0;
  }

  .diagnosis-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .qr-card {
    width: min(230px, 100%);
    margin-inline: auto;
  }

  .image-copy-grid {
    gap: 44px;
  }

  .image-frame img {
    min-height: 300px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
  }

  .page-hero {
    padding: 84px 0 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
