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

:root {
  --red: #d7000f;
  --red-dark: #b4000c;
  --text: #222;
  --text-sub: #666;
  --line: #e5e5e5;
  --bg-light: #f5f5f7;
  --bg-dark: #101114;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic",
    Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.lang-switch a {
  padding: 2px 4px;
}

.lang-switch a.current {
  color: var(--red);
  font-weight: 700;
}

.lang-switch a:not(.current):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn .arrow {
  font-style: normal;
  font-size: 0.85em;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-dark) 0%,
    rgba(16, 17, 20, 0.55) 35%,
    rgba(16, 17, 20, 0.15) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 104px;
  max-width: 560px;
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero p {
  margin-top: 22px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 430px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.page-hero.light {
  background: #f2f2f2;
  color: var(--text);
}

.page-hero .hero-photo {
  width: 68%;
}

.page-hero .hero-photo.full {
  width: 100%;
}

.page-hero.light .hero-photo::before {
  background: linear-gradient(
    to right,
    #f2f2f2 0%,
    rgba(242, 242, 242, 0.6) 30%,
    rgba(242, 242, 242, 0) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  max-width: 520px;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-hero .hero-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero.light .hero-sub {
  color: var(--text-sub);
}

.page-hero p {
  margin-top: 22px;
  font-size: 0.98rem;
}

.hero-mail {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.hero-mail .icon {
  color: var(--red);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-light);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 14px auto 0;
  border-radius: 2px;
}

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

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

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.icon-circle {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.icon-circle svg {
  width: 28px;
  height: 28px;
}

.card-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.card-head h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  margin-top: 8px;
  border-radius: 2px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-sub);
}

.card ul {
  list-style: none;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.card li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
}

.card li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Feature strip ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  text-align: center;
  padding: 0 12px;
}

.feature:not(:first-child) {
  border-left: 1px solid var(--line);
}

.feature .icon {
  color: var(--red);
  margin-bottom: 14px;
}

.feature .icon svg {
  width: 40px;
  height: 40px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* ---------- Flow ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: start;
  gap: 8px;
}

.flow-step {
  text-align: center;
  padding: 0 8px;
}

.flow-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.flow-icon svg {
  width: 32px;
  height: 32px;
}

.flow-num {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.83rem;
  color: var(--text-sub);
}

.flow-arrow {
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  align-self: center;
  text-align: center;
  padding-top: 0;
  margin-top: 28px;
}

/* ---------- Partners ---------- */
.partner-row {
  display: flex;
  justify-content: center;
}

.partner-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-box img {
  height: 56px;
  width: auto;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.cta-band .hero-photo {
  width: 55%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 60px;
  max-width: 520px;
}

.cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
}

.cta-inner p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.cta-inner .btn {
  margin-top: 26px;
}

/* ---------- Company table ---------- */
.company-intro {
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 48px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 200px;
  background: #fafafa;
  font-weight: 700;
  border-right: 1px solid var(--line);
}

/* ---------- Access map ---------- */
.access-map {
  margin-top: 64px;
}

.access-map h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin-bottom: 24px;
}

.access-map .heading-en {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-left: 10px;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

/* ---------- Contact box ---------- */
.contact-box {
  margin-top: 48px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-box .icon-circle {
  background: #fff;
  width: 72px;
  height: 72px;
}

.contact-box .icon-circle svg {
  width: 32px;
  height: 32px;
}

.contact-box-text {
  flex: 1;
  min-width: 220px;
}

.contact-box-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-box-text p {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* ---------- Form ---------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: 12px;
}

.required-tag {
  flex: none;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  line-height: 1.5;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b0b0b0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(215, 0, 15, 0.35);
  border-color: var(--red);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-actions {
  margin-top: 36px;
  margin-left: 240px; /* label column (220px) + gap (20px) — lines up with the fields */
}

.form-actions .btn {
  min-width: 260px;
  justify-content: center;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 16px;
}

/* Honeypot field — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 20px;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  background: #f0f9f1;
  border: 1px solid #2c9a41;
  color: #1e7a31;
}

.form-status.error {
  background: #fdf2f3;
  border: 1px solid var(--red);
  color: var(--red-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

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

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-info {
  list-style: none;
}

.footer-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.footer-info .icon {
  color: var(--text);
  flex: none;
  margin-top: 3px;
}

.footer-info .icon svg {
  width: 15px;
  height: 15px;
}

.footer-info a:hover {
  color: var(--red);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid,
  .feature-grid,
  .feature-grid.four {
    grid-template-columns: 1fr 1fr;
  }

  .feature:not(:first-child) {
    border-left: none;
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.active {
    border-bottom-color: var(--line);
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 14px;
  }

  .hero-photo,
  .page-hero .hero-photo,
  .cta-band .hero-photo {
    position: relative;
    width: 100%;
    height: 220px;
  }

  .hero-photo::before {
    background: linear-gradient(
      to bottom,
      rgba(16, 17, 20, 0.1) 40%,
      var(--bg-dark) 100%
    );
  }

  .page-hero.light .hero-photo::before {
    background: linear-gradient(
      to bottom,
      rgba(242, 242, 242, 0) 40%,
      #f2f2f2 100%
    );
  }

  .hero-inner,
  .page-hero-inner,
  .cta-inner {
    padding: 40px 0 56px;
    max-width: none;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-label {
    padding-top: 0;
  }

  .form-actions {
    margin-left: 0;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    border-right: none;
  }

  .info-table th {
    padding-bottom: 8px;
  }

  .info-table td {
    padding-top: 10px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
