:root {
  --navy: #12395b;
  --blue: #1f5f96;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #d9e3ec;
  --white: #ffffff;
  --bg: #f7fbff;
  --shadow: 0 10px 30px rgba(18, 57, 91, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

html[lang="ja"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

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

a:hover {
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  background: linear-gradient(135deg, #103454 0%, #1b5f92 100%);
  color: var(--white);
  padding-bottom: 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  flex: 0 0 auto;
}

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

/* Navigation */

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-weight: 600;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

/* Language switch */

.lang-switch {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.lang-switch a,
.lang-switch span {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  line-height: 1.2;
}

.lang-switch .active {
  background: #ffffff;
  color: var(--navy);
}

/* Hero */

.hero {
  max-width: 980px;
  padding-top: 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin: 0 0 16px;
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Main */

main {
  margin-top: -30px;
}

main section + section {
  margin-top: 30px;
}

.panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

h2 {
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 14px;
}

.section-intro {
  font-size: 18px;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 24px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

/* Grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--navy);
}

/* Highlight band */

.highlight-band {
  background: linear-gradient(135deg, #0f3555 0%, #1f6ba7 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 34px;
  margin-top: 30px;
}

.highlight-band h2,
.highlight-band h3,
.highlight-band strong {
  color: #ffffff;
}

.highlight-band p {
  margin-top: 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: 14px;
}

.mini-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
}

/* Forms */

form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--navy);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 95, 150, 0.15);
  border-color: var(--blue);
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.button:hover,
.button:focus-visible {
  background: #0f304b;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-list .value {
  color: var(--text);
  word-break: break-word;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner div:last-child {
  max-width: 70%;
  text-align: right;
}

/* Responsive */

@media (max-width: 1200px) {
  .nav {
    gap: 16px;
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 18px;
  }

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

  .footer-inner div:last-child {
    max-width: 100%;
    text-align: left;
  }

  .grid-3,
  .grid-2,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    padding-bottom: 44px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }

  .brand img {
    height: 46px;
  }

  .header-right {
    width: 100%;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
    font-size: 14px;
    width: 100%;
  }

  .nav a {
    white-space: normal;
    line-height: 1.3;
  }

  .lang-switch {
    margin-top: 2px;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-badge {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero p,
  .section-intro {
    font-size: 17px;
    line-height: 1.5;
  }

  main {
    margin-top: -18px;
  }

  .panel,
  .highlight-band,
  .card {
    padding: 20px;
    border-radius: 18px;
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 14px;
}

.nav a {
  flex-shrink: 0;
}