:root {
  --brand: #1598b8;
  --brand-dark: #087a98;
  --ink: #555;
  --heading: #333;
  --line: #ddd;
  --soft: #f2f5f7;
  --width: 940px;
  --font: "Meiryo", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 13px; line-height: 1.9; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure, dl { margin-top: 0; }
.site-width { width: min(calc(100% - 30px), var(--width)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .6rem 1rem; background: #222; color: white; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #f3b300; outline-offset: 2px; }

.site-header { padding-top: 26px; background: white; }
.top-copy { margin: 0 0 2px; color: #666; font-weight: 700; }
.logo-row { min-height: 78px; display: flex; align-items: center; gap: 12px; }
.brand { flex: none; }
.brand img { width: 292px; }
.logo-row > strong { color: #555; font-size: 13px; }
.menu-button { display: none; }
.site-nav { border-top: 3px solid var(--brand-dark); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.site-nav > a, .site-nav > .nav-item > a { min-height: 43px; border-right: 1px solid #e6e6e6; display: flex; align-items: center; justify-content: center; gap: 8px; color: #444; font-size: 14px; text-decoration: none; }
.site-nav > a:first-child { border-left: 1px solid #e6e6e6; }
.site-nav a:hover, .site-nav a.current { background: #edf5fb; }
.site-nav span { color: #444; font-size: 10px; }
.nav-item { position: relative; }
.nav-submenu-toggle { display: none; }
.nav-submenu { position: absolute; z-index: 20; top: 100%; left: 0; width: 250px; border: 1px solid #d7d7d7; display: none; background: white; box-shadow: 0 4px 8px rgb(0 0 0 / 12%); }
.nav-item:hover .nav-submenu, .nav-item:focus-within .nav-submenu { display: block; }
.nav-submenu a { min-height: 40px; padding: 7px 10px; border-bottom: 1px solid #e3e3e3; display: flex; align-items: center; color: #444; font-size: 12px; line-height: 1.55; text-decoration: none; }
.nav-submenu a:last-child { border-bottom: 0; }

.slider { position: relative; margin-top: 20px; }
.slides { position: relative; aspect-ratio: 940 / 242; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.slide.is-active { opacity: 1; }
.slider-arrow { position: absolute; top: 50%; width: 34px; height: 34px; border: 0; border-radius: 50%; transform: translateY(-50%); background: rgb(0 0 0 / 35%); color: white; font-size: 27px; line-height: 1; cursor: pointer; }
.slider-prev { left: -50px; }
.slider-next { right: -50px; }
.slider-dots { position: absolute; left: 50%; bottom: 8px; display: flex; gap: 5px; transform: translateX(-50%); }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 60%); cursor: pointer; }
.slider-dots button.is-active { background: var(--brand); }

.content-layout { padding: 34px 0 70px; display: grid; grid-template-columns: minmax(0, 700px) 218px; gap: 22px; }
.main-column { min-width: 0; }
.legacy-intro .prose p { margin-bottom: 1.35em; }
.bridge-photo { margin: 24px 0 35px; }
.bridge-photo img { width: 100%; max-height: 390px; object-fit: cover; }
.bridge-photo figcaption { padding: 10px 2px 0; color: #666; font-size: 12px; }

.focus-box { margin: 32px 0 45px; padding: 22px 26px; border: 1px solid #cfdde2; background: #f4f8fa; }
.focus-box > p { margin-bottom: 3px; color: var(--brand-dark); font-weight: 700; }
.focus-box h2 { margin-bottom: 7px; color: #333; font-size: 26px; line-height: 1.45; }
.focus-box > span { display: block; }
.proof-row { margin-top: 18px; border-top: 1px solid #cedce1; display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-row div { padding: 13px 10px 0; border-right: 1px solid #d5e0e4; text-align: center; }
.proof-row div:last-child { border-right: 0; }
.proof-row strong { display: block; color: var(--brand-dark); font-size: 21px; }
.proof-row small { display: block; line-height: 1.5; }

.page-section { margin-top: 52px; scroll-margin-top: 20px; }
.section-title { margin: 0 0 23px; padding: 0 0 9px; border-bottom: 3px solid var(--brand-dark); color: #3c3c3c; font-size: 23px; line-height: 1.4; }
.page-section h3 { margin: 0 0 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: #444; font-size: 18px; line-height: 1.55; }
.prose p { margin-bottom: 1.25em; }

.legacy-services { margin-bottom: 32px; border-top: 1px solid var(--line); }
.legacy-services div { padding: 14px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 245px 1fr; gap: 18px; }
.legacy-services strong { color: var(--brand-dark); font-size: 15px; }
.business-block { margin: 0 0 52px; padding-top: 26px; border-top: 1px solid #cbd8dc; }
.business-directory .business-block:first-of-type { padding-top: 0; border-top: 0; }
.business-block p { margin-bottom: 16px; }
.business-copy { max-width: 64ch; }
.business-lead { color: var(--brand-dark); font-weight: 700; }
.business-gallery { margin-top: 22px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 146px); gap: 8px; }
.business-gallery img { width: 100%; height: 100%; border: 1px solid #d5dde0; object-fit: cover; }
.business-gallery img:first-child { grid-row: 1 / 3; }
.business-gallery--wide-first { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.business-gallery--wide-first img { height: auto; aspect-ratio: 785 / 336; object-fit: contain; background: white; }
.business-gallery--wide-first img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 747 / 261; }
.service-list { margin: 18px 0; padding: 13px 18px 13px 35px; background: var(--soft); }
.service-list li + li { margin-top: 4px; }

.country-line { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.country-line strong { padding: 4px 12px; border: 1px solid #cddfe5; background: #f6fafb; color: #37616b; }
.region-map { margin: 15px 0; }
.region-map img { width: 100%; border: 1px solid var(--line); }
.region-submaps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region-submaps img { width: 100%; height: 225px; object-fit: contain; border: 1px solid var(--line); }

.investment-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.investment-grid figure { margin: 0; border: 1px solid #ddd; background: white; }
.investment-grid img { width: 100%; height: 118px; object-fit: cover; }
.investment-grid figcaption { min-height: 45px; padding: 7px 6px; color: #444; font-size: 11px; line-height: 1.45; text-align: center; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 11px 13px; border: 1px solid #d5d5d5; vertical-align: top; text-align: left; }
.company-table th { width: 185px; background: #f0f2f3; color: #444; }

.contact-details { margin: 20px 0; padding: 13px 16px; background: #f2f5f6; display: grid; gap: 3px; }
.contact-form { padding: 20px; border: 1px solid #d6d6d6; background: #fafafa; }
.contact-form label { display: grid; gap: 5px; margin-bottom: 15px; color: #444; font-weight: 700; }
.contact-form em { color: #b22222; font-size: 11px; font-style: normal; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px 10px; border: 1px solid #bbb; background: white; color: #333; }
.contact-form textarea { min-height: 145px; resize: vertical; }
.submit-button { min-width: 190px; padding: 10px 24px; border: 0; background: var(--brand-dark); color: white; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: #06657e; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 10px 12px; font-weight: 700; }
.form-message.success { background: #e4f4eb; color: #235f3e; }
.form-message.error { background: #f9e7e5; color: #8c2520; }

.sidebar { position: sticky; top: 18px; min-width: 0; align-self: start; }
.sidebar section { margin-top: 20px; }
.sidebar section:first-child { margin-top: 0; }
.sidebar h2 { margin: 0; padding: 8px 0; border-top: 2px solid var(--brand-dark); border-bottom: 1px solid #ddd; color: #444; font-size: 16px; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { border-bottom: 1px solid #e2e2e2; }
.sidebar li a { min-height: 42px; padding: 9px 5px; display: flex; align-items: center; text-decoration: none; }
.sidebar li a:hover { background: #f4f8f9; color: var(--brand-dark); }
.side-contact { min-height: 46px; margin-top: 20px; padding: 11px 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-dark); color: white; font-weight: 700; text-align: center; text-decoration: none; }
.side-contact:hover { background: #06657e; }

.inner-title { margin-top: 20px; border-top: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7; background: #f2f2f2; }
.inner-title h1 { margin: 0; padding: 15px 0 13px; color: #444; font-size: 23px; line-height: 1.4; }
.breadcrumb { padding-top: 10px; color: #888; font-size: 11px; }
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb span { padding-inline: 8px; }
.inner-layout { padding-top: 18px; }
.original-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.original-service { min-width: 0; border: 1px solid #d6e0e3; display: grid; grid-template-rows: auto 1fr; background: white; }
.original-service:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); grid-template-rows: 1fr; }
.original-service-visual { margin: 0; overflow: hidden; background: #eef3f5; }
.original-service:not(:first-child) .original-service-visual { aspect-ratio: 16 / 9; }
.original-service img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.original-service-copy { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.original-service h2 { margin: 0 0 14px; padding-top: 10px; border-top: 3px solid var(--brand-dark); color: #343b3e; font-size: 20px; line-height: 1.55; }
.original-service p { margin: 0 0 20px; color: #555; font-size: 14px; }
.original-service .detail-button { margin-top: auto; }
.detail-button { width: fit-content; min-width: 132px; min-height: 44px; padding: 9px 20px; border: 1px solid var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; background: var(--brand-dark); color: white; font-weight: 700; line-height: 1.45; text-align: center; text-decoration: none; }
.detail-button:hover { border-color: #06657e; background: #06657e; }
.detail-button:active { transform: translateY(1px); }
.detail-overview { padding: 8px 0 34px; border-bottom: 1px solid #d5e0e3; }
.detail-overview.has-media { display: grid; grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr); gap: 28px; align-items: center; }
.detail-lead { margin-bottom: 18px; color: #333; font-size: 17px; font-weight: 700; line-height: 1.75; }
.legacy-detail-intro { margin-bottom: 0; }
.legacy-detail-intro p { max-width: 72ch; }
.legacy-detail-hero { margin: 0; overflow: hidden; background: #eef3f5; }
.legacy-detail-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.legacy-detail-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid #cbd8dc; scroll-margin-top: 20px; }
.legacy-detail-section.has-media { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 18px 28px; align-items: start; }
.legacy-detail-section h2 { margin: 0 0 18px; padding-bottom: 9px; border-bottom: 2px solid var(--brand-dark); color: #343b3e; font-size: 21px; line-height: 1.55; }
.legacy-detail-section.has-media h2 { grid-column: 1 / -1; }
.legacy-detail-section .prose { max-width: 74ch; color: #4d4d4d; font-size: 14px; }
.legacy-detail-section-media { min-width: 0; }
.legacy-detail-media { margin: 0; padding: 10px; border: 1px solid #dce3e5; background: #f8fafb; }
.legacy-detail-media img { width: 100%; max-height: 390px; object-fit: contain; object-position: center; }
.legacy-detail-section iframe { width: 100%; aspect-ratio: 16 / 9; margin-top: 12px; border: 0; display: block; }
.legacy-detail-section-media .legacy-detail-media + iframe { margin-top: 14px; }
.external-detail-link { width: fit-content; min-height: 42px; margin-top: 16px; padding: 8px 15px; border: 1px solid var(--brand-dark); display: inline-flex; align-items: center; color: var(--brand-dark); font-weight: 700; line-height: 1.45; text-decoration: none; }
.external-detail-link:hover { background: #edf7f9; }
.detail-note { margin-top: 30px; padding: 12px 14px; background: #f3f5f6; color: #555; }
.detail-contact-box { margin-top: 48px; padding: 24px; border-top: 3px solid var(--brand-dark); background: #f3f7f8; }
.detail-contact-box h2 { margin-bottom: 7px; color: #3c3c3c; font-size: 20px; }
.detail-section-editor { margin-top: 12px; padding: 15px; background: #f4f7f8; }
.additional-business { margin-top: 60px; }
.company-page > h2 { margin: 0 0 22px; padding: 12px 14px; background: #4b4b4b; color: white; font-size: 20px; line-height: 1.55; }
.company-bridge { margin: 45px 0 0; text-align: center; }
.company-bridge h2 { margin-bottom: 18px; padding-bottom: 8px; border-bottom: 3px solid var(--brand-dark); color: #444; font-size: 21px; text-align: left; }
.company-bridge img { width: min(100%, 420px); margin-inline: auto; }
.full-width-layout { grid-template-columns: 1fr; }
.group-summary-table { margin: 8px 0 28px; border-collapse: collapse; font-size: 14px; }
.group-summary-table th, .group-summary-table td { padding: 1px 5px; text-align: left; vertical-align: top; }
.group-summary-table th { width: 125px; color: #555; font-weight: 400; }
.group-table-wrap { max-width: 850px; overflow-x: auto; }
.group-company-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.group-company-table th, .group-company-table td { padding: 9px 11px; border: 1px solid white; text-align: left; vertical-align: middle; }
.group-company-table thead th { background: #b9cce3; color: #46525d; font-weight: 400; text-align: center; }
.group-company-table tbody tr:nth-child(odd) { background: #f2f2f8; }
.group-company-table tbody tr:nth-child(even) { background: #fafafa; }
.group-company-table td:first-child { width: 52%; }

.site-footer { position: relative; border-top: 1px solid #ddd; background: #f2f2f2; color: #666; }
.page-top { position: absolute; right: max(15px, calc((100% - var(--width)) / 2)); top: -29px; padding: 5px 15px; background: #555; color: white; font-size: 11px; text-decoration: none; }
.footer-inner { padding: 24px 0 18px; }
.footer-inner > div { display: flex; gap: 20px; }
.footer-inner > div a { color: #555; }
.footer-inner dl { margin: 24px 0 15px; }
.footer-inner dt { font-weight: 700; }
.footer-inner dd { margin-left: 0; }
.footer-company { margin: 24px 0 15px; font-weight: 700; }
.footer-inner > p { margin: 0; padding-top: 10px; border-top: 1px solid #ddd; font-size: 11px; }
.footer-inner > .footer-company { margin: 24px 0 15px; padding-top: 0; border-top: 0; font-size: 13px; }

@media (max-width: 1040px) {
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
}

@media (max-width: 880px) {
  .content-layout { display: block; }
  .sidebar { position: static; margin-top: 50px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sidebar section, .sidebar section:first-child { margin-top: 0; }
  .sidebar section:only-of-type { grid-column: 1 / -1; }
  .side-contact { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .site-header { padding-top: 11px; }
  .logo-row { min-height: 66px; flex-wrap: nowrap; gap: 10px; }
  .brand img { width: 225px; }
  .logo-row > strong { display: none; }
  .menu-button { min-width: 98px; min-height: 46px; margin-left: auto; padding: 0 12px; border: 1px solid #b9ccd1; display: flex; align-items: center; justify-content: center; gap: 9px; background: #f7fafb; color: #34464b; font-weight: 700; cursor: pointer; }
  .menu-icon { width: 20px; height: 14px; display: grid; align-content: space-between; }
  .menu-icon > span { width: 100%; height: 2px; display: block; background: var(--brand-dark); transform-origin: center; transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .15s ease; }
  .menu-label { white-space: nowrap; }
  .menu-button[aria-expanded="true"] { border-color: var(--brand-dark); background: var(--brand-dark); color: white; }
  .menu-button[aria-expanded="true"] .menu-icon > span { background: white; }
  .menu-button[aria-expanded="true"] .menu-icon > span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-icon > span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { margin-top: 7px; border: 1px solid #cbd8dc; border-top: 2px solid var(--brand-dark); display: none; grid-template-columns: 1fr; background: white; }
  .site-nav.is-open { display: grid; }
  .site-nav > a, .site-nav > .nav-item > a { min-height: 50px; padding: 0 16px; border: 0; display: flex; justify-content: flex-start; color: #34464b; font-size: 15px; }
  .site-nav > a { border-bottom: 1px solid #e1e7e9; }
  .site-nav > a:first-child { border-left: 0; }
  .site-nav > a:last-child { border-bottom: 0; }
  .site-nav > a::after { content: "›"; margin-left: auto; color: #809196; font-size: 22px; line-height: 1; }
  .site-nav > a > span, .site-nav > .nav-item > a > span { display: none; }
  .site-nav a.current { background: #edf5f7; color: var(--brand-dark); font-weight: 700; }
  .nav-item { border-bottom: 1px solid #e1e7e9; display: grid; grid-template-columns: minmax(0, 1fr) 50px; }
  .nav-item > a { grid-column: 1; grid-row: 1; }
  .nav-submenu-toggle { min-width: 50px; min-height: 50px; padding: 0; border: 0; border-left: 1px solid #e1e7e9; grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; background: white; color: var(--brand-dark); cursor: pointer; }
  .nav-submenu-toggle > span::before { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; }
  .nav-submenu-toggle[aria-expanded="true"] > span::before { content: "−"; }
  .nav-submenu { position: static; width: 100%; border: 0; border-top: 1px solid #dce5e8; grid-column: 1 / -1; display: none; background: #f7fafb; box-shadow: none; }
  .nav-item.is-submenu-open .nav-submenu { display: grid; }
  .nav-submenu a { min-height: 46px; padding: 9px 16px 9px 30px; border-bottom: 1px solid #e4eaec; background: transparent; color: #4d5c60; font-size: 13px; }
  .nav-submenu a:last-child { border-bottom: 0; }
  .slider { margin-top: 12px; width: 100%; }
  .slides { aspect-ratio: 940 / 320; }
  .content-layout { padding-top: 25px; }
  .focus-box { padding: 18px; }
  .focus-box h2 { font-size: 22px; }
  .proof-row { grid-template-columns: 1fr; }
  .proof-row div { border-right: 0; border-bottom: 1px solid #d5e0e4; }
  .proof-row div:last-child { border-bottom: 0; }
  .legacy-services div { grid-template-columns: 1fr; gap: 3px; }
  .business-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .business-gallery img { height: 155px; }
  .business-gallery img:first-child { grid-column: 1 / -1; grid-row: auto; height: 225px; }
  .business-gallery--wide-first img { height: auto; }
  .business-gallery--wide-first img:first-child { height: auto; }
  .investment-grid { grid-template-columns: repeat(2, 1fr); }
  .region-submaps img { height: 180px; }
  .company-table th { width: 33%; }
  .group-summary-table { font-size: 13px; }
  .original-services { grid-template-columns: 1fr; }
  .original-service:first-child { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .original-service:first-child .original-service-visual { aspect-ratio: 16 / 9; }
  .original-service-copy { padding: 20px; }
  .detail-overview.has-media, .legacy-detail-section.has-media { display: block; }
  .legacy-detail-hero { margin-top: 22px; }
  .legacy-detail-section-media { margin-top: 20px; }
  .legacy-detail-section { margin-top: 34px; }
  .legacy-detail-section h2 { font-size: 19px; }
}

@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr; gap: 24px; }
  .sidebar section:only-of-type, .side-contact { grid-column: auto; }
}

@media (max-width: 430px) {
  .site-width { width: min(calc(100% - 20px), var(--width)); }
  .top-copy { font-size: 11px; }
  .brand img { width: 190px; }
  .business-gallery { grid-template-columns: 1fr; }
  .business-gallery img, .business-gallery img:first-child { grid-column: auto; height: 190px; }
  .business-gallery--wide-first img, .business-gallery--wide-first img:first-child { height: auto; }
  .original-service-copy { padding: 18px; }
  .detail-contact-box { padding: 20px 16px; }
  .region-submaps { grid-template-columns: 1fr; }
  .region-submaps img { height: 230px; }
  .company-table th, .company-table td { padding: 8px; }
  .contact-form { padding: 14px; }
}

@media (max-width: 350px) {
  .brand img { width: 174px; }
  .menu-button { min-width: 94px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .menu-icon > span { transition: none; }
}
