:root {
  --navy: #102a43;
  --navy-soft: #1d3d5c;
  --blue: #e6f1f8;
  --blue-deep: #c6dce9;
  --paper: #ffffff;
  --warm: #f8f8f4;
  --soft: #f4f7f9;
  --ink: #1e2c36;
  --muted: #64727d;
  --line: #d9e2e9;
  --line-dark: #b9cad6;
  --focus: #7da8c4;
  --max: 1128px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, 1360px);
  margin: 0 auto;
  background: var(--paper);
  border-inline: 1px solid var(--line);
}

.container {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 78px;
  gap: 26px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.global-nav .menu,
.footer-nav .menu,
.legal-links .menu {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav .menu li,
.footer-nav .menu li,
.legal-links .menu li {
  display: contents;
}

.global-nav a,
.footer-nav a {
  color: #314653;
  font-size: .875rem;
  transition: color .22s ease;
}

.global-nav a:hover,
.global-nav a[aria-current="page"],
.footer-nav a:hover,
.legal-links a:hover {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.button:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  transform: translateY(-1px);
}

.button.button-light {
  background: transparent;
  color: var(--navy);
}

.text-link {
  min-height: auto;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: .875rem;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .28s ease, opacity .22s ease;
}

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

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(38deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-38deg);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 560px;
  padding-block: 74px 76px;
  background: linear-gradient(90deg, #fff 0%, #fff 54%, var(--soft) 54%, var(--soft) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.16fr;
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 500px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1.14rem;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 24px;
  color: #41525e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-image {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

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

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(280px, .48fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head > *,
.card,
.panel,
.service-card > *,
.work-card > *,
.support-card > *,
.flow-item > * {
  min-width: 0;
}

.section-head p {
  color: var(--muted);
}

.grid-2,
.grid-3,
.work-grid,
.support-grid {
  display: grid;
  gap: 22px;
}

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

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

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.strength-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  min-height: 146px;
  padding: 28px 30px;
}

.icon-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--blue-deep);
  border-radius: 50%;
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
}

.card p,
.panel p {
  margin-top: 9px;
  color: var(--muted);
  font-size: .94rem;
}

.service-card,
.work-card,
.support-card {
  display: grid;
  align-items: center;
  gap: 22px;
  padding: 18px;
}

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

.work-card {
  grid-template-columns: 42% 1fr;
  padding: 16px;
}

.support-card {
  grid-template-columns: 38% 1fr;
}

.image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.service-card .image-frame,
.support-card .image-frame {
  aspect-ratio: 4 / 3;
}

.work-card .image-frame {
  aspect-ratio: 16 / 10;
}

.tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--blue-deep);
  background: var(--blue);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}

.process-diagram {
  position: relative;
  left: 50%;
  width: min(1280px, 76vw);
  max-width: none;
  margin: 24px 0 44px;
  padding: 0;
  transform: translateX(-50%);
}

.process-diagram img,
.tag:has(img.wp-image-239) img,
.tag:has(img.wp-image-248) img,
.tag:has(img[data-src-img*="2dde31509649f0a4d9a0deb1c7593707"]) img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tag:has(img.wp-image-239),
.tag:has(img.wp-image-248),
.tag:has(img[data-src-img*="2dde31509649f0a4d9a0deb1c7593707"]) {
  display: block;
  position: relative;
  left: 50%;
  width: min(1280px, 76vw);
  max-width: none;
  margin: 24px 0 44px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
}

.step-label {
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.step-body {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 30px 28px 26px;
}

.price-card.is-featured {
  border-color: var(--navy);
}

.price {
  margin: 19px 0 20px;
  color: var(--navy);
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.price small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 400;
}

.check-list,
.plain-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  color: #40505b;
  font-size: .95rem;
}

.check-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--navy);
  font-weight: 700;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.panel {
  padding: 28px;
}

.note-panel {
  margin-top: 24px;
  padding: 23px 26px;
  background: #fbfcfd;
}

.note-panel p {
  margin-top: 0;
  color: #4f626e;
  font-size: .86rem;
  line-height: 1.9;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 8px 13px;
  border: 1px solid var(--blue-deep);
  background: var(--blue);
  color: var(--navy);
  font-size: .86rem;
  font-weight: 700;
}

.maintenance-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
}

.form-wrap {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

label {
  color: var(--navy);
  font-size: .92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fbfcfd;
  color: var(--ink);
}

textarea {
  min-height: 152px;
  resize: vertical;
}

.form-wrap .button {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  min-height: 1.7em;
  margin-top: 14px;
  color: var(--navy);
  font-size: .9rem;
  text-align: center;
}

.page-hero {
  padding-block: 74px 76px;
  background: linear-gradient(90deg, #fff 0%, #fff 62%, var(--blue) 62%, var(--blue) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(260px, .44fr);
  gap: 46px;
  align-items: end;
}

.page-hero p {
  margin-top: 22px;
  color: var(--muted);
  max-width: 44rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: .36fr 1fr;
  gap: 38px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.detail-grid:first-child {
  border-top: 0;
  padding-top: 0;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
}

.table-like th,
.table-like td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-like th {
  width: 28%;
  color: var(--navy);
  font-weight: 700;
}

.article-list {
  display: grid;
  gap: 18px;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content > *:last-child {
  margin-bottom: 0;
}

.wp-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wp-content h2,
.wp-content h3 {
  font-weight: 700;
  line-height: 1.45;
}

#main img.wp-image-183 {
  width: 50%;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 8px 13px;
  color: var(--navy);
}

.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.article-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px;
}

.article-date {
  color: var(--muted);
  font-size: .86rem;
}

.site-footer {
  padding-block: 48px 28px;
  background: #f2f6f8;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr;
  gap: 44px;
  align-items: start;
}

.footer-statement {
  max-width: 20rem;
  color: #4e5f6a;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.legal-links {
  display: grid;
  gap: 10px;
}

.legal-links a {
  color: var(--navy);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (max-width: 768px) {
  .site-shell {
    border-inline: 0;
  }

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

  .header-inner {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 18px;
    min-height: 68px;
  }

  .global-nav,
  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: block;
    position: fixed;
    top: 11px;
    right: 18px;
    z-index: 80;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: #fff;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .36s ease, opacity .26s ease, transform .36s ease, border-color .26s ease;
  }

  .mobile-menu.is-open {
    max-height: 520px;
    border-color: var(--line);
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu nav {
    display: grid;
    gap: 0;
    padding: 10px 18px 20px;
  }

  .mobile-menu .menu {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }

  .mobile-menu .button {
    width: 100%;
    margin-top: 14px;
  }

  .hero-grid,
  .page-hero .container,
  .section-head,
  .grid-2,
  .grid-3,
  .work-grid,
  .support-grid,
  .split-panel,
  .maintenance-list,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 58px 64px;
    background: linear-gradient(180deg, #fff 0%, #fff 52%, var(--soft) 52%, var(--soft) 100%);
  }

  h1 {
    font-size: clamp(1.82rem, 8.8vw, 2.2rem);
    max-width: 100%;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .section {
    padding-block: 68px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 28px;
  }

  .process-diagram {
    left: 50%;
    width: calc(100vw - 36px);
    max-width: none;
    margin: 12px auto 30px;
    overflow-x: auto;
    transform: translateX(-50%);
    -webkit-overflow-scrolling: touch;
  }

  .process-diagram img,
  .tag:has(img.wp-image-239) img,
  .tag:has(img.wp-image-248) img,
  .tag:has(img[data-src-img*="2dde31509649f0a4d9a0deb1c7593707"]) img {
    width: max(1040px, 100%);
    max-width: none;
  }

  .tag:has(img.wp-image-239),
  .tag:has(img.wp-image-248),
  .tag:has(img[data-src-img*="2dde31509649f0a4d9a0deb1c7593707"]) {
    left: 50%;
    width: calc(100vw - 36px);
    max-width: none;
    margin: 12px 0 30px;
    overflow-x: auto;
    transform: translateX(-50%);
    -webkit-overflow-scrolling: touch;
  }

  .service-card,
  .work-card,
  .support-card,
  .article-card {
    grid-template-columns: 1fr;
  }

  .strength-card {
    grid-template-columns: 54px 1fr;
    padding: 23px 20px;
  }

  .flow-item {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .step-body {
    padding: 18px;
  }

  .price-card,
  .panel,
  .form-wrap {
    padding: 24px 20px;
  }

  .note-panel {
    margin-top: 18px;
  }

  .page-hero {
    padding-block: 58px 60px;
    background: linear-gradient(180deg, #fff 0%, #fff 68%, var(--blue) 68%, var(--blue) 100%);
  }

  .table-like,
  .table-like tbody,
  .table-like tr,
  .table-like th,
  .table-like td {
    display: block;
    width: 100%;
  }

  .table-like th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .table-like td {
    padding-top: 0;
  }

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