:root {
  --color-navy: #0f172a;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-sky: #eff6ff;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.14);
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.brand-logo {
  width: 132px;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.global-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--color-blue);
  transition: transform 0.25s ease;
}

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

.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 10px 18px;
  color: var(--color-white) !important;
  background: var(--color-blue);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.nav-toggle,
.nav-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--color-white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.54) 45%, rgba(15, 23, 42, 0.32)),
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.42), transparent 35%);
}

.hero-content {
  position: relative;
  padding-top: var(--header-height);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--color-blue);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93c5fd;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.hero-actions,
.cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  color: var(--color-white);
  background: var(--color-blue);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.button-primary:hover {
  background: var(--color-blue-dark);
}

.button-secondary {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  color: var(--color-navy);
  background: var(--color-white);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.section {
  padding: 120px 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-heading p:not(.section-label) {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 16px;
}

.section-grid,
.message-inner,
.company-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.section-body,
.message-card,
.company-copy,
.company-table {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-body,
.message-card,
.company-copy {
  padding: 42px;
}

.section-body p,
.message-card p,
.company-copy p {
  margin: 0;
  color: var(--color-muted);
}

.section-body p + p,
.message-card p + p {
  margin-top: 18px;
}

.lead-text {
  color: var(--color-navy) !important;
  font-size: 20px;
  font-weight: 800;
}

.business {
  background: var(--color-bg);
}

.business-block + .business-block {
  margin-top: 80px;
}

.block-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.block-heading span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.block-heading h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 26px;
}

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

.service-card {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-content {
  padding: 26px;
}

.service-content h4 {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: 20px;
}

.service-content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.message {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f8fafc 100%);
}

.company-copy h3 {
  margin: 0 0 18px;
  color: var(--color-navy);
  font-size: 28px;
  line-height: 1.45;
}

.company-copy .button {
  margin-top: 30px;
}

.company-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 34%;
  color: var(--color-navy);
  background: var(--color-sky);
  font-weight: 800;
}

.company-table td {
  color: var(--color-muted);
}

.company-table a {
  color: var(--color-blue);
  font-weight: 800;
}

.contact-cta {
  padding: 72px 0;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy), #1e3a8a);
}

.cta-inner {
  justify-content: space-between;
}

.contact-cta .section-label {
  color: #93c5fd;
}

.contact-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.4;
}

.site-footer {
  padding: 36px 0;
  background: #020617;
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand img {
  width: 126px;
  filter: brightness(0) invert(1);
}

.footer-links a {
  font-size: 13px;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.copyright {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .section-grid,
  .message-inner,
  .company-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand-logo {
    width: 112px;
  }

  .nav-button {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
  }

  .nav-button span {
    width: 20px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 18px 22px 24px;
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .global-nav a {
    padding: 13px 0;
  }

  .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle:checked ~ .global-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked + .nav-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 680px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-body,
  .message-card,
  .company-copy {
    padding: 28px;
  }

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

  .business-block + .business-block {
    margin-top: 56px;
  }

  .block-heading h3 {
    font-size: 22px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 16px 18px;
  }

  .company-table th {
    border-bottom: 0;
  }

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

@media (max-width: 480px) {
  body {
    letter-spacing: 0.01em;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .lead-text {
    font-size: 18px;
  }
}

/* ===== Company link section on top page ===== */
.company-link {
  background: var(--color-white);
}

.company-link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    var(--color-white);
  box-shadow: var(--shadow-sm);
}

.company-link-inner .section-heading {
  margin-bottom: 0;
}

/* ===== Company page ===== */
.global-nav a[aria-current="page"] {
  color: var(--color-blue);
}

.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page-hero {
  position: relative;
  min-height: 420px;
  padding-top: var(--header-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.page-hero-image,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-image {
  object-fit: cover;
}

.page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at 80% 40%, rgba(37, 99, 235, 0.38), transparent 34%);
}

.page-hero-content {
  position: relative;
  padding: 72px 0;
}

.page-hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero-content p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.breadcrumb {
  padding: 18px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--color-blue);
}

.company-detail {
  background: var(--color-white);
}

.company-detail-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.company-detail-card {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 42px;
  color: var(--color-white);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94)),
    var(--color-navy);
  box-shadow: var(--shadow-md);
}

.company-detail-card h3 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
}

.company-detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.company-detail-card p + p {
  margin-top: 16px;
}

.company-detail-table {
  box-shadow: var(--shadow-md);
}

.access-section {
  background: var(--color-bg);
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.map-card iframe {
  display: block;
}

@media (max-width: 1024px) {
  .company-detail-layout {
    grid-template-columns: 1fr;
  }

  .company-detail-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .company-link-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero-content {
    padding: 56px 0;
  }

  .page-hero-content p:last-child {
    font-size: 16px;
  }

  .company-detail-card {
    padding: 30px;
  }

  .map-card iframe {
    height: 340px;
  }
}


/* ========================================
   Office list / Company page accordion
======================================== */
.office-section {
  margin-top: 88px;
}

.office-heading {
  margin-bottom: 36px;
}

.office-accordion {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.office-accordion-item {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.office-accordion-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.office-accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.office-accordion-item summary::-webkit-details-marker {
  display: none;
}

.office-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.office-name::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-blue);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.office-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-sky);
}

.office-toggle::before,
.office-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.office-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.office-accordion-item[open] {
  border-color: rgba(37, 99, 235, 0.45);
}

.office-accordion-item[open] .office-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.office-panel {
  padding: 0 26px 24px;
}

.office-panel dl {
  margin: 0;
  padding: 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.office-panel dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
}

.office-panel dt {
  color: var(--color-navy);
  font-weight: 800;
}

.office-panel dd {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .office-section {
    margin-top: 64px;
  }

  .office-accordion-item summary {
    padding: 18px 20px;
  }

  .office-name {
    font-size: 16px;
  }

  .office-panel {
    padding: 0 18px 20px;
  }

  .office-panel dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-copy p:not(.section-label) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-mail {
  font-weight: 800;
  color: var(--color-white) !important;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  font: inherit;
  letter-spacing: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-complete {
  margin: 0;
  padding: 14px 16px;
  color: var(--color-white);
  background: rgba(37, 99, 235, 0.42);
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 14px;
  font-weight: 800;
}

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

  .contact-form {
    padding: 22px;
  }
}


/* Privacy Policy Page */
.page-hero.privacy-hero {
  min-height: 420px;
  padding: calc(var(--header-height) + 80px) 0 86px;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.86)),
    url("../img/top3.jpg") center / cover no-repeat;
}

.page-hero .page-hero-inner {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  padding: 18px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-blue);
  font-weight: 800;
}

.privacy-section {
  background: var(--color-bg);
}

.privacy-intro {
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 34px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.privacy-intro p {
  margin: 0;
  color: var(--color-muted);
}

.privacy-list {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 26px;
  padding: 34px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.privacy-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.privacy-card h2 {
  margin: 0 0 14px;
  color: var(--color-navy);
  font-size: 24px;
  line-height: 1.45;
}

.privacy-card p,
.privacy-card li {
  color: var(--color-muted);
}

.privacy-card p {
  margin: 0;
}

.privacy-card ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.privacy-card li + li {
  margin-top: 8px;
}

.privacy-note {
  max-width: 900px;
  margin: 36px auto 0;
  padding: 28px 34px;
  color: var(--color-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.privacy-note p {
  margin: 0;
}

.privacy-note strong {
  color: var(--color-navy);
}

@media (max-width: 768px) {
  .page-hero.privacy-hero {
    min-height: 360px;
    padding: calc(var(--header-height) + 56px) 0 64px;
  }

  .privacy-intro,
  .privacy-card,
  .privacy-note {
    padding: 24px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .privacy-number {
    width: 52px;
    height: 52px;
  }
}
