:root {
  /* 白地に紺。赤茶はロゴの画像（logo.png）だけ＝CSS には置かない（帳簿 id=7873） */
  --navy: #12305a;
  --navy-soft: #e8edf5;
  --ink: #1c2530;
  --muted: #5b6675;
  --line: #d5dbe5;
  --field-line: #8792a2;
  --alert: #b3261e;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--navy);
}

.site-header {
  border-bottom: 3px solid var(--navy);
}

.header-inner,
.tabs ul,
.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  display: block;
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle::before {
  content: "☰ ";
}

.nav-toggle[aria-expanded="true"]::before {
  content: "✕ ";
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}

.tabs a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px 4px 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.tabs a:hover {
  background: var(--navy-soft);
}

.tabs a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.page {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 56px;
}

.line {
  margin: 0;
  overflow-wrap: anywhere;
}

.line-heading {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.5;
}

.line-item {
  margin-top: 8px;
}

.line-sub,
.line-plain {
  padding-left: 1.5em;
}

.line-entry {
  margin-top: 12px;
}

.contact-entry {
  margin: 56px 0 0;
}

.contact-entry a {
  display: inline-block;
  padding: 14px 64px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-decoration: none;
}

.page-aix .line-heading {
  border-bottom: 0;
  padding: 72px 0;
  text-align: center;
  color: var(--muted);
}

.contact-form {
  max-width: 640px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.required,
.optional {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 400;
}

.required {
  background: var(--navy);
  color: #fff;
}

.optional {
  background: var(--navy-soft);
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.nav-toggle:focus-visible,
.submit:focus-visible,
a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: var(--alert);
}

.field-error,
.form-status,
.count.over {
  color: var(--alert);
}

.field-error,
.count {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.count {
  color: var(--muted);
  text-align: right;
}

.turnstile {
  min-height: 65px;
  margin-bottom: 16px;
}

.turnstile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  margin: 0 0 12px;
  font-weight: 700;
}

.submit {
  padding: 12px 48px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.received {
  max-width: 640px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--navy);
  background: var(--navy-soft);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.site-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 760px) {
  .brand {
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

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

  .nav-toggle {
    padding: 6px 10px;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .tabs:not(.open) {
    display: none;
  }

  .tabs ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .tabs a {
    border-radius: 4px;
    padding: 12px 14px;
  }

  .submit {
    width: 100%;
  }
}
