/* Original page, hero and footer styles retained; header rules rebuilt below. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;800&display=swap');

:root {
  --navy: #06245c;
  --blue: #1769d2;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", "Inter", "Noto Sans JP", Arial, sans-serif;
}

img {
  max-width: 100%;
}

/* Buttons */
.btn,
.btn-primary,
.btn-outline,
.denai-btn,
button,
input[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: #0057e7;
  color: #ffffff;
  border: 0;
  line-height: 1.1;
  text-align: center;
  font-weight: 600;
}

.btn.primary:hover {
  background: #ff9933;
}

.btn.outline {
  background: #ff9933;
  color: #ffffff;
  border: 0;
  text-align: center;
  font-weight: 600;
}

.btn.outline:hover {
  background: #0057e7;
  color: #ffffff;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.denai-btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 72, 180, 0.22);
}

.btn:active,
.btn-primary:active,
.btn-outline:active,
.denai-btn:active,
button:active,
input[type="submit"]:active {
  transform: translateY(-1px) scale(0.99);
}

/* Hero */
.home-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(58, 140, 255, 0.32) 0%,
    rgba(58, 140, 255, 0.35) 32%,
    rgba(58, 140, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 78%
  );
}

.hero-content {
  position: absolute;
  top: 60%;
  left: 8%;
  z-index: 2;
  width: 620px;
  max-width: min(620px, 46vw);
  transform: translateY(-50%);
}

.hero-tag {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 28px;
  background: #1f55ff;
  color: #ffffff;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -2px;
}

.hero-content p {
  margin-top: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
}

/* Reveal animation */
.dx-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1), transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--dx-delay, 0ms);
  will-change: opacity, transform;
}

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

/* Footer */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #06245c, #1769d2);
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  -webkit-font-smoothing: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0047a8;
}

.footer-brand img {
  height: 78px;
  max-width: 100%;
  margin-bottom: 5px;
}

.footer-brand .tagline {
  margin: 0;
  color: #0047a8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 30px 50px 10px;
  background: linear-gradient(135deg, #06245c, #1769d2);
}

.footer-column h3 {
  margin-bottom: 28px;
  color: #b6d4f9;
  font-size: 22px;
  font-weight: 600;
}

.footer-column a {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #dbe8f9;
  transform: translateX(5px);
}

.footer-column i {
  width: 20px;
  font-size: 18px;
  text-align: center;
}

.footer-bottom {
  padding: 22px;
  background: #ffffff;
  border-top: 1px solid rgba(21, 95, 151, 0.5);
  color: #333333;
  font-size: 17px;
  text-align: center;
}

/* Desktop */
@media (min-width: 901px) {

  .home-hero {
    min-height: 100vh;
    padding: 0;
    align-items: center;
    background-size: cover;
    background-position: center;
  }

  .home-hero .hero-content {
    top: 42%;
    left: 8%;
    width: 520px;
    max-width: 520px;
    text-align: left;
  }}

/* Footer tablet */
@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    padding: 50px 30px;
    text-align: center;
  }

  .footer-links {
    padding: 50px 40px;
  }}

/* Mobile and tablet navigation */
@media (max-width: 900px) {

  .home-hero {
    min-height: calc(100vh - 68px);
    padding: 54px 16px 54vh;
    align-items: flex-start;
    background-color: #0c62b7;
    background-size: cover;
    background-position: 62% bottom;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 90, 190, 0.92) 0%, rgba(11, 90, 190, 0.72) 42%, rgba(11, 90, 190, 0.06) 70%, rgba(11, 90, 190, 0) 100%);
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 560px;
    transform: none;
  }

  .hero-content h1 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.28;
    letter-spacing: -1px;
  }

  .hero-content p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
  }}

/* Mobile footer */
@media (max-width: 768px) {
  .footer {
    text-align: left;
  }

  .footer-container {
    padding: 50px 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 35px;
    background: none;
  }

  .footer-brand img {
    width: auto;
    height: 78px;
  }

  .footer-brand .tagline {
    font-size: 18px;
    line-height: 1.5;
  }

  .footer-column h3 {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .footer-column a {
    justify-content: flex-start;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 15px;
  }}

/* Small mobile */
@media (max-width: 560px) {
  .home-hero {
    padding: 48px 16px 55vh;
    background-position: center bottom;
  }

  .hero-tag {
    padding: 8px 18px;
    font-size: 14px;
  }

  .hero-content p br {
    display: none;
  }}

@media (prefers-reduced-motion: reduce) {
  .dx-reveal,
  .btn,
  .btn-primary,
  .btn-outline,
  .denai-btn,
  button,
  input[type="submit"] {
    transition: none;
    transform: none;
  }}

@media (max-width: 900px) {
  .home-hero {
    min-height: 620px !important;
    padding: 52px 28px 260px !important;
    background-size: cover !important;
    background-position: 58% center !important;
  }

  .home-hero .hero-content {
    max-width: 470px !important;
  }

  .home-hero .hero-content h1 {
    font-size: clamp(38px, 7vw, 48px) !important;
  }

  .home-hero .hero-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }}

@media (max-width: 560px) {

  .home-hero {
    min-height: 570px !important;
    padding: 42px 18px 250px !important;
    background-position: 54% center !important;
  }

  .home-hero .hero-content h1 {
    font-size: clamp(32px, 10vw, 40px) !important;
  }

  .home-hero .hero-content p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }}


/* 2026-09-16 FINAL mobile/tablet hero-only correction.
   Match the approved Japanese-version behavior exactly.
   Desktop (1025px+) is intentionally untouched. */
@media (max-width: 1024px) {
  .home-hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1938 / 811 !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    align-items: initial !important;
  }}

/* DcodingX responsive header — approved centered navigation and compact mobile layout.
   Use the matching structure in header-example.html. */
.site-header, .site-header * { box-sizing: border-box; }
.site-header {
  --header-ink: #071d49;
  --header-blue: #005ce6;
  --header-orange: #ff9933;
  --header-height: 104px;
  position: relative;
  top: 0;
  z-index: 99999;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #d7dde7;
  isolation: isolate;
}
.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: var(--header-height);
  height: auto;
  margin-inline: auto;
  padding: 22px 25px 0 30px;
  gap: 0;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: center;
  padding: 0;
  margin: 0;
  text-decoration: none;
}
.site-header .logo img {
  display: block;
  width: auto;
  height: 78px;
  flex-shrink: 0;
  max-width: 100%;
  object-fit: contain;
}
.site-header .header-panel { display: contents; }
.site-header .header-utilities {
  position: absolute;
  top: 8px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.site-header .language-toggle {
  position: static;
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}
.site-header .language-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 104px;
  height: 30px;
  padding: 2px;
  border: 1px solid #b9d2f7;
  border-radius: 6px;
  background: #fff;
  color: #075fe6;
  font: 700 12px/1 "Noto Sans JP", "Yu Gothic", "Meiryo", Arial, sans-serif;
  cursor: pointer;
  overflow: hidden;
  transform: none;
  box-shadow: none;
  transition: border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.site-header .language-switch:hover { border-color: #72a8f3; transform: none; box-shadow: none; }
.site-header .language-switch:active { transform: none; }
.site-header .language-switch__thumb {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc((100% - 4px) / 2);
  border-radius: 4px;
  background: #0963e8;
  pointer-events: none;
  transition: transform .2s;
}
.site-header .language-switch.is-en .language-switch__thumb { transform: translateX(100%); }
.site-header .language-switch__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  user-select: none;
}
.site-header .language-switch__label--ja { color: #fff; }
.site-header .language-switch__label--en { color: #075fe6; }
.site-header .language-switch.is-en .language-switch__label--ja { color: #075fe6; }
.site-header .language-switch.is-en .language-switch__label--en { color: #fff; }
@media (hover: hover) {
  .site-header .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__thumb { transform: translateX(100%); }
  .site-header .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--ja { color: #075fe6; }
  .site-header .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--en { color: #fff; }
  .site-header .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__thumb { transform: translateX(0); }
  .site-header .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--ja { color: #fff; }
  .site-header .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--en { color: #075fe6; }
}
.site-header .nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(16px, 5vw, 60px);
  padding-inline: clamp(20px, 2.4vw, 46px);
  min-width: 0;
  margin: 0;
}
.site-header .nav-menu a {
  color: var(--header-ink);
  font: 600 16px/1.3 "Poppins", "Noto Sans JP", Arial, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
.site-header .nav-menu a:hover { color: #005ce6; }
.site-header .nav-menu a:is(.is-active, [aria-current="page"]),
.site-header .dropdown.is-active > a { color: var(--header-blue); }
.site-header .dropdown { position: relative; }
.site-header .dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
}
/* Draw the dropdown indicator on its link, independent of icon fonts
   and Font Awesome's optional conversion of <i> into <svg>. */
.site-header .nav-menu .dropdown > a > :is(i, svg) { display: none; }
.site-header .nav-menu .dropdown > a::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: -3px 1px 0 1px;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: none;
  opacity: 1;
  visibility: visible;
  transform: rotate(45deg);
  transition: transform .2s;
}
.site-header .nav-menu .dropdown:is(:hover, :focus-within) > a::after {
  transform: translateY(3px) rotate(225deg);
}
.site-header .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(8 30 80 / 12%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-header .dropdown:is(:hover, :focus-within) .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.site-header .dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  white-space: normal;
}
.site-header .dropdown-menu a:hover { background: #f3f7ff; }
.site-header .header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 0 auto;
}
.site-header .header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 182px;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font: 600 16px/1.15 "Poppins", "Noto Sans JP", Arial, sans-serif;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  transform: none;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.site-header .header-actions .primary { background: var(--header-blue); }
.site-header .header-actions .outline { width: 168px; background: var(--header-orange); }
.site-header .header-actions .primary:hover { background: #004dbf; }
.site-header .header-actions .outline:hover { background: #ec8523; }
.site-header .header-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgb(7 29 73 / 12%); }
.site-header :is(a, button, .hamburger):focus-visible { outline: 3px solid #75aaff; outline-offset: 3px; }
.site-header #menu-toggle {
  display: none;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.site-header .hamburger { display: none; }
@media (max-width: 1099px) {
  .site-header { --header-height: 84px; }
  .site-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-rows: auto;
    gap: 12px;
    min-height: var(--header-height);
    padding: 10px 16px;
  }
  .site-header .logo { grid-column: 1; grid-row: 1; align-self: center; padding: 0; margin: 0; }
  .site-header .logo img { width: 108px; height: auto; }
  .site-header .header-utilities { position: static; grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 10px; }
  .site-header .language-switch { height: 34px; }
  .site-header #menu-toggle { display: block; }
  .site-header .hamburger {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }
  .site-header .hamburger span { display: block; width: 21px; height: 2px; margin: 0; background: var(--header-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .site-header #menu-toggle:focus-visible ~ .hamburger { outline: 3px solid #75aaff; outline-offset: 2px; }
  .site-header #menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header #menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .site-header #menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .header-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px max(20px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e6edf7;
    box-shadow: 0 12px 24px rgb(7 29 73 / 10%);
  }
  .site-header #menu-toggle:checked ~ .header-panel { display: block; }
  .site-header .nav-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 0; }
  .site-header .nav-menu > a,
  .site-header .dropdown > a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; width: 100%; padding: 12px 8px; border-bottom: 1px solid #e6edf7; font-size: 16px; white-space: normal; }
  .site-header .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 6px;
    border: 0;
    border-radius: 0;
    background: #f6f9ff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-header .dropdown:is(:hover, :focus-within) .dropdown-menu { transform: none; }
  .site-header .dropdown.mobile-open .dropdown-menu { display: block; }
  .site-header .nav-menu .dropdown:is(:hover, :focus-within) > a::after { transform: rotate(45deg); }
  .site-header .nav-menu .dropdown.mobile-open > a::after { transform: translateY(3px) rotate(225deg); }
  .site-header .dropdown-menu a { font-size: 14px; }
  .site-header .header-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 18px; }
  .site-header .header-actions .btn { width: 100%; min-height: 48px; height: auto; font-size: 15px; }
  .site-header .header-actions .outline { width: 100%; }
  .site-header .header-actions .btn br { display: none; }
  body:has(.site-header #menu-toggle:checked) { overflow: hidden; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .site-header { --header-height: 96px; }
  .site-header .header-inner { padding-inline: 20px; }
  .site-header .logo img { height: 68px; }
  .site-header .nav-menu { gap: 16px; padding-inline: 20px; }
  .site-header .nav-menu a { font-size: 14px; }
  .site-header .header-actions { gap: 12px; }
  .site-header .header-actions .btn { width: 150px; font-size: 14px; }
  .site-header .header-actions .outline { width: 130px; }
  .site-header .header-utilities { right: 20px; top: 5px; }
  .site-header .language-switch { height: 28px; }
}
@media (max-width: 360px) {
  .site-header .header-inner { padding-inline: 12px; gap: 8px; }
  .site-header .logo img { width: 96px; }
  .site-header .language-switch { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::before, .site-header *::after { transition: none; }
}
