:root {
  --main: #0A2540;
  --accent: #007BFF;
  --danger: #D40F1D;
  --surface: #FFFFFF;
  --text: #12314E;
  --muted: #54708A;
  --border: #D6E6F4;
  --header-h: 76px;

  --radius-sm: 8px;
  --radius-md: 16px;

  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5fbff, #f9fcff);
  line-height: 1.75;
}

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

.container {
  width: min(100% - var(--space-8), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.hero-mode {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(4px);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(12, 63, 112, 0.16);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--main);
}

.global-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-8);
}

.global-nav a {
  color: var(--main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-nav a:hover { color: var(--danger); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: var(--space-2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 2px;
  background: var(--main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 84vh;
  background: #e4f1ff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -38px;
  height: 88px;
  background: #fff;
  border-radius: 100% 100% 0 0;
  box-shadow: 0 -8px 24px rgba(14, 68, 118, 0.08);
}

.hero-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.flags-bg {
  position: absolute;
  right: -10%;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.48;
  filter: saturate(0.88) brightness(1.03);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(228, 241, 255, 0.52);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-10);
}

.hero-copy {
  max-width: 620px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  padding: 48px;
}

.hero-logo {
  width: 64px;
  margin-bottom: 18px;
  opacity: 0.95;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  color: #0f3e6f;
}

.hero-text {
  margin: var(--space-8) 0 0;
  max-width: 34em;
  color: #2f5f89;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.hero-cta-row {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-cta-row .hero-metric,
.hero-cta-row .hero-actions {
  margin-top: 0;
}
.hero-metric {
  margin-top: var(--space-8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(150, 189, 223, 0.6);
}

.hero-metric-label {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #2f5f89;
}

.hero-actions {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(15, 79, 143, 0.76);
}

.scroll-indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 38px;
  margin: 6px auto 0;
  background: rgba(15, 79, 143, 0.6);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0.2); opacity: 0.35; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.2); opacity: 0.35; transform-origin: bottom; }
}

.btn {
  min-height: 44px;
  min-width: 176px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 12px 24px rgba(212, 15, 29, 0.26);
}

.btn-primary:hover { background: #bb0d19; }

.section { padding: 100px 0; }
.section-light { background: linear-gradient(180deg, #f6fbff, #ffffff); }
.section-split { border-top: 1px solid #d7e8f6; }

.section-divider-top {
  border-top: 2px solid #cfe3f4;
  box-shadow: inset 0 16px 24px rgba(20, 77, 128, 0.04);
}

.greeting-section {
  background: #ffffff;
  border-top: 1px solid #dceaf7;
}

.greeting-card {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-10);
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  border: 1px solid #d6e7f5;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgba(11, 60, 108, 0.08);
}

.greeting-card h2 {
  margin: 0 0 var(--space-6);
  color: var(--main);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.greeting-card p { margin: 0; color: var(--muted); }

.visual-section {
  margin: 80px auto;
  max-width: 1200px;
}

.visual-section img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.section-head { margin-bottom: var(--space-12); }
.section-head h2 {
  margin: 0;
  color: var(--main);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.grid { display: grid; gap: var(--space-8); }
.services-grid,
.works-grid,
.company-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.feature-card,
.work-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all .25s;
}

.card:hover,
.feature-card:hover,
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.12);
  border-color: #bdd9ef;
}

.card h3,
.feature-card h3,
.work-card h3 {
  margin: 0 0 var(--space-4);
  color: var(--main);
  line-height: 1.35;
}

.card p,
.feature-card p,
.work-card p {
  margin: 0;
  color: var(--muted);
}

.inline-link {
  display: inline-block;
  margin-top: var(--space-6);
  color: var(--accent);
  font-weight: 700;
}

.date { margin-top: var(--space-4) !important; font-size: 0.92rem; }

.sub-hero{
  padding-top:120px;
  padding-bottom:80px;
  background: #e4f1ff;
  display:flex;
  align-items:center;
  color: var(--text);
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.sub-hero p {
  margin: var(--space-6) 0 0;
  max-width: 56ch;
  color: rgba(242, 249, 255, 0.95);
}

.list-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-6);
}

.list-cards li {
  margin: 0;
}

.list-cards h3 {
  margin: 0 0 var(--space-4);
  color: var(--main);
}

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

.site-footer {
  background: #0b3f70;
  color: #d3e8fb;
  padding: var(--space-10) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-title {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #e6f1fc;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-inner p { margin: 0; }
.copyright { font-size: 0.9rem; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr; }
  .flags-bg {
  position: absolute;
  right: -10%;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.48;
  filter: saturate(0.88) brightness(1.03);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  z-index: 1;
}
}

@media (max-width: 768px) {
  :root {
    --header-h: 66px;
    --space-24: 4.8rem;
  }

  .container { width: min(100% - var(--space-6), var(--container)); }

  .menu-toggle {
    display: block;
    z-index: 1100;
  }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-105%);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .global-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-nav > ul { display: block; }
  .global-nav > ul > li + li { border-top: 1px solid var(--border); }

  .global-nav a {
    display: block;
    padding: var(--space-4) var(--space-6);
  }

  .hero,
  .hero-inner { min-height: 78vh; }

  .hero-inner {
    padding-top: calc(var(--header-h) + var(--space-8));
    gap: var(--space-8);
  }

  .hero-copy {
    padding: var(--space-8);
    max-width: 100%;
  }

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

  .flags-bg {
  position: absolute;
  right: -10%;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.48;
  filter: saturate(0.88) brightness(1.03);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, rgba(0, 0, 0, 1) 36%, rgba(0, 0, 0, 1) 100%);
  z-index: 1;
}

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }

  .scroll-indicator {
    display: none;
  }

  .visual-section img {
    height: 260px;
  }

  .services-grid,
  .works-grid,
  .company-highlight-grid { grid-template-columns: 1fr; }

  .footer-inner {
    align-items: flex-start;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


/* Sub pages: align with top LP visual language */
.sub-hero .hero-copy {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  border: 1px solid rgba(223, 237, 249, 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sub-hero h1 {
  color: var(--main);
}

.sub-hero p {
  color: var(--muted);
}

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

@media (max-width: 768px) {
  .list-cards {
    grid-template-columns: 1fr;
  }
}




/* Sub page polish: aligned with top LP */
.sub-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: #e4f1ff;
  display: flex;
  align-items: center;
}

.sub-hero .hero-copy {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 16px;
  max-width: 720px;
  border: 1px solid rgba(228, 240, 251, 0.8);
}

.sub-hero .hero-copy h1 {
  color: var(--main);
}

.sub-hero .hero-copy p {
  color: var(--muted);
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.number {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #0f5da3;
  margin-bottom: 8px;
}

.list-cards {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .list-cards {
    grid-template-columns: 1fr;
  }
}


.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}


/* Header dropdown nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: var(--main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.45rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transform: translateY(-1px);
}

.dropdown-menu {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d7e8f6;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(16, 65, 112, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.56rem 0.68rem;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: #eef6ff;
  color: var(--main);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--danger);
}

@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    display: block;
    padding: var(--space-4) var(--space-6);
  }

  .dropdown-menu {
  display: block;
    position: static;
    min-width: 0;
    padding: 0 0 var(--space-2);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transform: none;
    transition: max-height 0.24s ease;
  }

  .nav-dropdown.open .dropdown-menu {
  display: block;
    max-height: 320px;
  }

  .dropdown-menu a {
    padding: 0.65rem calc(var(--space-6) + 1rem);
    font-size: 0.9rem;
  }
}



/* Per-page visual differentiation */
.visual-top img {
  object-position: center 46%;
  filter: saturate(1) contrast(1);
}

.visual-kaikei img {
  object-position: left center;
  filter: saturate(0.94) contrast(1.04);
}

.visual-imin img {
  object-position: center center;
  filter: saturate(1.1) brightness(1.02);
}

.visual-keiri img {
  object-position: right center;
  filter: saturate(0.9) brightness(1.05) contrast(1.03);
}


/* Company page */
.company-profile {
  padding: 20px 28px;
}

.profile-list {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #e0edf8;
}

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

.profile-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--main);
}

.profile-row dd {
  margin: 0;
  color: var(--muted);
}

.profile-row a {
  color: var(--accent);
  font-weight: 700;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.card .access-actions {
  margin-top: var(--space-8);
}

.map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  min-height: 420px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 768px) {
  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .map-card,
  .map-card iframe {
    min-height: 320px;
  }
}




/* Top services section (restore classic look) */
.services-section {
  background: linear-gradient(180deg, #eaf2fb 0%, #e1ebf6 100%);
}

.services-section .section-head {
  margin-bottom: 2.2rem;
}

.services-section .section-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.services-section .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.services-section .card {
  background: #f6f7f9;
  border: 1px solid #c9dceb;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(15, 62, 111, 0.08);
}

.services-section .card:hover {
  transform: none;
  border-color: #b7d1e5;
  box-shadow: 0 14px 30px rgba(15, 62, 111, 0.08);
}

@media (max-width: 768px) {
  .services-section .services-grid {
    grid-template-columns: 1fr;
  }
}










@media (max-width: 768px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta-row .hero-actions {
    margin-top: var(--space-4);
  }

  .hero-cta-row .btn {
    width: auto;
  }
}

