@charset "UTF-8";

:root {
  --ink: #15293a;
  --muted: #65717a;
  --line: #cdd9e3;
  --line-strong: #cdd9e3;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eef4f9;
  --primary: #0086d1;
  --primary-dark: #005a9b;
  --primary-soft: #eef4f9;
  --secondary: #0086d1;
  --accent: #7f8990;
  --danger: #9b2f2f;
  --shadow: 0 10px 28px rgba(29, 54, 73, 0.09);
  --shadow-soft: 0 4px 16px rgba(29, 54, 73, 0.07);
  --radius: 8px;
  --container: 1160px;
}

html {
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:visited {
  color: #0073c4;
}

a:hover,
a:focus {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.page {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 40px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.utility {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(120px, auto) minmax(260px, 1fr);
  align-items: start;
  gap: 12px 18px;
  padding: 10px 24px;
  color: var(--muted);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.accessibility-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.access-button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  color: #3d4851;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  line-height: 1.4;
}

.header-search {
  justify-self: end;
  width: min(100%, 430px);
}

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin: 0;
}

.site-search label {
  display: grid;
  gap: 4px;
  color: #2e3c45;
  font-weight: 700;
}

.site-search input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
}

.site-search input:focus {
  outline: 3px solid rgba(10, 110, 168, 0.18);
  outline-offset: 0;
  border-color: var(--primary);
}

.site-search button {
  align-self: end;
  min-height: 42px;
  padding: 8px 18px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-weight: 700;
}

.popular-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.popular-keywords a {
  color: #0073c4;
  text-decoration: none;
  border-bottom: 1px solid #cdd9e3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 18px;
  background: #ffffff;
}

.city-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 14px rgba(26, 43, 56, 0.12);
}

.site-title {
  margin: 0;
  color: #15293a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 700;
}

.site-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.global-nav {
  background: #005a9b;
  border-top: 1px solid #005a9b;
  border-bottom: 1px solid #005a9b;
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

.global-nav li {
  flex: 0 0 auto;
}

.global-nav a {
  display: block;
  padding: 13px 15px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  border-bottom: 3px solid transparent;
}

.global-nav a:hover,
.global-nav a:focus {
  color: #ffffff;
  background: #005a9b;
  border-bottom-color: #0086d1;
}

.content {
  padding: 28px 32px 44px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

h1 {
  margin: 0 0 18px;
  color: #005a9b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.35;
}

h2 {
  margin: 30px 0 14px;
  padding-bottom: 7px;
  color: #15293a;
  border-bottom: 2px solid var(--line);
  font-size: 1.18rem;
  line-height: 1.45;
}

h3 {
  margin: 18px 0 8px;
  color: #15293a;
  font-size: 1.02rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #15293a;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice-box {
  padding: 14px 16px;
  color: #15293a;
  background: #eef4f9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
}

.home .content {
  padding-top: 24px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  min-height: 300px;
  margin: 0 0 20px;
  overflow: hidden;
  background: #eef4f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--secondary);
  font-weight: 700;
}

.hero-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-copy p:last-child {
  max-width: 34em;
  color: #33434c;
  font-size: 1.04rem;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(26, 43, 56, 0.08)),
    linear-gradient(120deg, #c3d2d7, #eef3f4 48%, #b6c8cf);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
}

.hero-visual::before {
  height: 55%;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(255, 255, 255, 0.42) 5% 8%, transparent 8% 14%, rgba(255, 255, 255, 0.32) 14% 18%, transparent 18% 28%, rgba(255, 255, 255, 0.38) 28% 31%, transparent 31%),
    linear-gradient(180deg, transparent 0 28%, rgba(26, 43, 56, 0.34) 28% 100%);
  clip-path: polygon(0 54%, 8% 54%, 8% 36%, 17% 36%, 17% 46%, 25% 46%, 25% 22%, 36% 22%, 36% 42%, 44% 42%, 44% 30%, 54% 30%, 54% 50%, 66% 50%, 66% 18%, 78% 18%, 78% 40%, 88% 40%, 88% 28%, 100% 28%, 100% 100%, 0 100%);
}

.hero-visual::after {
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(26, 43, 56, 0.06));
}

.emergency-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.emergency-strip strong {
  color: var(--primary-dark);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.service-link {
  position: relative;
  display: block;
  min-height: 148px;
  padding: 20px 18px 18px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.service-link::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  background:
    linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #fff 43% 57%, transparent 57%),
    linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
}

.service-link strong {
  display: block;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 1.06rem;
  text-decoration: none;
}

.service-link span {
  display: block;
  color: #526575;
  font-size: 0.92rem;
}

.service-link:hover,
.service-link:focus {
  border-color: #cdd9e3;
  box-shadow: 0 12px 28px rgba(26, 43, 56, 0.08);
}

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

.life-event-grid a {
  display: block;
  min-height: 58px;
  padding: 14px 16px;
  color: #15293a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.life-event-grid a:hover,
.life-event-grid a:focus {
  color: var(--primary-dark);
  border-color: #cdd9e3;
}

.side-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.side-menu h2 {
  margin: 0;
  padding: 15px 18px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
}

.side-menu ul {
  margin: 0;
  padding: 10px 18px 16px;
  list-style: none;
}

.side-menu li {
  margin: 0;
  border-bottom: 1px solid #eef2f4;
}

.side-menu li:last-child {
  border-bottom: 0;
}

.side-menu a {
  display: block;
  padding: 9px 0;
  text-decoration: none;
}

.news-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list li {
  display: grid;
  grid-template-columns: 10.5em 1fr;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f4;
}

.news-list li:last-child {
  border-bottom: 0;
}

.date {
  color: var(--muted);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.data-table,
.staff-list,
.reuse-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td,
.staff-list th,
.staff-list td,
.reuse-table th,
.reuse-table td {
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tr:last-child th,
.data-table tr:last-child td,
.staff-list tr:last-child th,
.staff-list tr:last-child td,
.reuse-table tr:last-child th,
.reuse-table tr:last-child td {
  border-bottom: 0;
}

.data-table th:last-child,
.data-table td:last-child,
.staff-list th:last-child,
.staff-list td:last-child,
.reuse-table th:last-child,
.reuse-table td:last-child {
  border-right: 0;
}

.data-table th,
.staff-list th,
.reuse-table th {
  color: #15293a;
  background: #eef4f9;
  font-weight: 700;
  text-align: left;
}

.data-table th {
  width: 28%;
}

.simple-list {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.simple-list li {
  margin: 6px 0;
}

.department-card,
.faq-item,
.record-panel {
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.department-card {
  padding: 18px;
}

.department-card h2,
.record-panel h2 {
  margin-top: 0;
}

.record-panel {
  overflow: hidden;
}

.record-panel h2 {
  margin: 0;
  padding: 14px 16px;
  color: var(--primary-dark);
  background: #eef4f9;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.record-panel .data-table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.identity-photo-panel {
  width: 190px;
  margin: 0 0 24px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(21, 41, 58, 0.06);
}

.identity-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e9ec;
  border: 1px solid #b9c3ca;
}

.identity-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-photo-missing {
  padding: 18px;
  color: #52616b;
  background: #dfe3e6;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
}

.identity-photo-panel figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.flow-steps {
  counter-reset: flow;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  counter-increment: flow;
  position: relative;
  margin: 0 0 12px;
  padding: 16px 18px 16px 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-steps li::before {
  content: counter(flow);
  position: absolute;
  left: 18px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 700;
}

.faq-item {
  overflow: hidden;
}

.faq-item dt {
  padding: 14px 16px;
  color: var(--primary-dark);
  background: #eef4f9;
  font-weight: 700;
}

.faq-item dd {
  margin: 0;
  padding: 14px 16px;
}

.map-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: #15293a;
  background:
    linear-gradient(90deg, rgba(10, 110, 168, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(10, 110, 168, 0.045) 1px, transparent 1px),
    #eef4f9;
  background-size: 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.form-like {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #eef4f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-like label {
  display: grid;
  gap: 5px;
  color: #15293a;
  font-weight: 700;
}

.form-like input,
.form-like select,
.form-like textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.form-like textarea {
  min-height: 6em;
  resize: vertical;
}

.admin-entry-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 980;
  width: min(420px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 20px 54px rgba(10, 31, 49, 0.28),
    0 0 0 9999px rgba(15, 23, 31, 0.18);
  transform: translate(-50%, -50%);
}

.admin-entry-dialog h2 {
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--primary-dark);
  border: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.admin-entry-dialog .form-like {
  margin: 0;
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #f4f7f9;
}

.admin-entry-dialog .button-row {
  margin-top: 4px;
}

.interview-article,
.designer-profile-article {
  max-width: 860px;
}

.interview-section {
  margin: 34px 0;
}

.interview-section h2 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.interview-signature {
  margin: 34px 0;
  text-align: right;
}

.designer-profile-article blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--surface-soft);
  border-left: 4px solid var(--line-strong);
}

.management-link {
  margin: 56px 0 0;
  text-align: right;
  font-size: 0.78rem;
}

.management-link a {
  color: var(--muted);
  text-decoration: none;
}

.management-link a:hover,
.management-link a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.plain-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.plain-button:visited {
  color: #fff;
}

.plain-button.secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: var(--line-strong);
}

.plain-button.secondary:visited {
  color: var(--primary-dark);
}

.reuse-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin: 14px 0 16px;
}

.reuse-table {
  display: block;
  overflow-x: auto;
  font-size: 0.92rem;
}

.reuse-table th,
.reuse-table td {
  min-width: 7em;
}

.reuse-table th:nth-child(1),
.reuse-table th:nth-child(2),
.reuse-table th:nth-child(4),
.reuse-table th:nth-child(5),
.reuse-table th:nth-child(6),
.reuse-table td:nth-child(1),
.reuse-table td:nth-child(2),
.reuse-table td:nth-child(4),
.reuse-table td:nth-child(5),
.reuse-table td:nth-child(6) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.search-results {
  margin: 12px 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-results ul,
.search-results ol {
  margin: 0;
  padding: 12px 18px 14px 34px;
}

.search-results li {
  padding: 7px 0;
  border-bottom: 1px solid #eef2f4;
}

.search-results li:last-child {
  border-bottom: 0;
}

.id-only-list {
  font-family: "Consolas", "MS Gothic", monospace;
  font-size: 1rem;
  letter-spacing: 0;
}

.item-photo {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0 0 16px;
  color: #5a6b78;
  background:
    linear-gradient(135deg, rgba(10, 110, 168, 0.03), rgba(10, 110, 168, 0.02)),
    #eef4f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quiet-id {
  min-height: 1.5em;
  color: #333;
  font-family: "Consolas", "MS Gothic", monospace;
  font-size: 0.92rem;
}

.admin-log-table th {
  min-width: 180px;
  vertical-align: top;
  font-family: "Consolas", "MS Gothic", monospace;
  font-size: 0.9rem;
}

.log-kind {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 2px 6px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}

.private-note {
  margin: 18px 8px 4px 24px;
  padding: 14px 16px 12px 18px;
  color: #4c4a45;
  background: #f0eee9;
  border-left: 3px solid #8f8980;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 0.94rem;
  line-height: 1.9;
}

.private-note p {
  margin: 0 0 0.72em;
}

.private-note p:last-child {
  margin-bottom: 0;
}

.assimilation-ending-active {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.assimilation-ending {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 32px;
  background: rgba(0, 0, 0, 0);
  cursor: default;
  transition: background-color 4.2s ease-in-out;
  touch-action: none;
}

.assimilation-ending.is-dark {
  background: #000;
}

.assimilation-ending-message {
  width: min(100%, 560px);
  color: #ad5a5f;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}

.assimilation-ending.is-message-visible .assimilation-ending-message {
  opacity: 1;
  transform: translateY(0);
}

.assimilation-ending-message p {
  margin: 0;
}

@media (max-width: 600px) {
  .assimilation-ending {
    padding: 24px;
  }

  .assimilation-ending-message {
    font-size: 1.05rem;
    line-height: 1.9;
  }
}

.private-note-title {
  color: #615c54;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .private-note {
    margin-left: 8px;
    padding: 12px 13px;
  }
}

.silent-link,
.silent-link:visited,
.silent-link:hover,
.silent-link:focus {
  color: inherit;
  text-decoration: none;
  cursor: inherit;
}

.id-cushion {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  font-family: "Consolas", "MS Gothic", monospace;
  font-size: 1.05rem;
}

.blank-cell {
  color: #7b858e;
  background: #fbfbfb;
}

.trace-dialog {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 1000;
  width: 360px;
  max-width: calc(100% - 28px);
  background: #fff;
  border: 1px solid #8fb9c7;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(10, 31, 49, 0.24);
  font-size: 0.9rem;
  overflow: hidden;
}

.trace-dialog.stage-0 {
  display: block;
  visibility: visible;
  opacity: 1;
  left: auto;
  top: auto;
  right: 22px;
  bottom: 20px;
  transform: none;
  width: 290px;
  max-height: calc(100vh - 40px);
  border-color: #9fbfd2;
  box-shadow: 0 8px 22px rgba(10, 31, 49, 0.16);
  font-size: 0.82rem;
  overflow: auto;
}

.trace-dialog.stage-1 {
  display: block;
  visibility: visible;
  opacity: 1;
  left: auto;
  top: auto;
  right: 22px;
  bottom: 20px;
  transform: none;
  width: 420px;
  max-height: calc(100vh - 40px);
  border-color: #c2a54d;
  box-shadow: 0 22px 52px rgba(71, 54, 13, 0.28);
  font-size: 0.96rem;
  overflow: auto;
}

.trace-dialog.stage-2 {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100% - 32px));
  border-color: #b5743a;
  border-width: 2px;
  box-shadow:
    0 28px 72px rgba(69, 36, 15, 0.36),
    0 0 0 9999px rgba(15, 23, 31, 0.28);
  font-size: 1.04rem;
}

.trace-dialog.stage-3 {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100% - 28px));
  border-color: var(--danger);
  border-width: 3px;
  box-shadow:
    0 34px 86px rgba(60, 8, 12, 0.46),
    0 0 0 9999px rgba(11, 18, 24, 0.38);
  font-size: 1.08rem;
}

.trace-title {
  margin: 0;
  padding: 10px 13px;
  color: #fff;
  background: var(--primary);
  border: 0;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
}

.stage-1 .trace-title {
  background: #a67f18;
}

.stage-2 .trace-title {
  background: #a56028;
}

.stage-3 .trace-title {
  background: var(--danger);
}

.trace-body {
  padding: 13px;
}

.stage-1 .trace-title {
  padding: 13px 16px;
  font-size: 1.04rem;
}

.stage-2 .trace-title {
  padding: 16px 20px;
  font-size: 1.18rem;
}

.stage-3 .trace-title {
  padding: 18px 24px;
  font-size: 1.36rem;
  letter-spacing: 0.03em;
}

.stage-1 .trace-body {
  padding: 16px;
}

.stage-2 .trace-body {
  padding: 22px;
}

.stage-3 .trace-body {
  padding: 26px 28px;
}

.trace-emphasis {
  margin: 0 0 10px;
  color: #15293a;
  font-weight: 800;
  line-height: 1.25;
}

.stage-0 .trace-emphasis {
  font-size: 1rem;
  color: var(--primary-dark);
}

.stage-1 .trace-emphasis {
  font-size: 1.36rem;
  color: #6d5008;
}

.stage-2 .trace-emphasis {
  position: relative;
  margin-bottom: 14px;
  padding-left: 18px;
  color: #7d3f14;
  font-size: 1.65rem;
}

.stage-2 .trace-emphasis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 6px;
  height: 1.2em;
  background: #a56028;
  animation: trace-scan-bar 1.6s linear infinite;
}

.stage-3 .trace-emphasis {
  margin-bottom: 12px;
  color: var(--danger);
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  letter-spacing: 0.02em;
}

.trace-final-line {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #5c1115;
  background: #fff4f4;
  border: 1px solid #c98080;
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.35;
}

@keyframes trace-scan-bar {
  0% {
    opacity: 0.35;
    transform: translateY(-2px);
  }

  50% {
    opacity: 1;
    transform: translateY(2px);
  }

  100% {
    opacity: 0.35;
    transform: translateY(-2px);
  }
}

.trace-body p {
  margin-bottom: 8px;
}

.trace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 13px 13px;
  background: #f8fafb;
  border-top: 1px solid var(--line);
}

.trace-actions button,
.trace-body button {
  min-height: 34px;
  padding: 5px 12px;
  color: #15293a;
  background: #fff;
  border: 1px solid #aebbc5;
  border-radius: 4px;
}

.trace-body input {
  width: 100%;
  margin: 3px 0 7px;
  padding: 8px 9px;
  border: 1px solid #aebbc5;
  border-radius: 4px;
  font: inherit;
}

.trace-message {
  min-height: 1.4em;
  color: #333;
}

.arg-notice-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

#trace-dialog.stage-0 ~ .arg-notice-stack {
  bottom: 170px;
}

#trace-dialog.stage-1 ~ .arg-notice-stack {
  bottom: 230px;
}

.has-trace-stage-0 .arg-notice-stack {
  bottom: 170px;
}

.has-trace-stage-1 .arg-notice-stack {
  bottom: 230px;
}

.arg-notice {
  width: 100%;
  max-width: 340px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(10, 31, 49, 0.2);
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0.96;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.arg-notice p {
  margin: 0;
}

.arg-chat-sender {
  display: inline-block;
  margin: 0 0 5px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.82;
}

.arg-chat-message {
  margin: 0;
}

.arg-notice.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.arg-notice-system {
  color: #15293a;
  background: #ffffff;
  border-color: #8fb9c7;
  border-left: 5px solid var(--primary);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.arg-notice-minami {
  color: #d9f5ff;
  background:
    linear-gradient(180deg, rgba(236, 251, 255, 0.14), rgba(141, 217, 238, 0.08)),
    rgba(14, 42, 54, 0.84);
  border-color: rgba(174, 232, 246, 0.46);
  border-left: 5px solid rgba(184, 240, 255, 0.72);
  box-shadow:
    0 12px 24px rgba(8, 29, 42, 0.24),
    inset 0 0 18px rgba(205, 245, 255, 0.08);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  text-shadow:
    0 0 5px rgba(218, 249, 255, 0.35),
    0.8px 0 0 rgba(210, 244, 255, 0.12);
}

.arg-notice-minami .arg-chat-sender {
  color: #e4fbff;
  background: rgba(210, 244, 255, 0.08);
  border-color: rgba(210, 244, 255, 0.26);
  letter-spacing: 0.02em;
}

.arg-notice-designer {
  color: #f1d2d2;
  background:
    linear-gradient(180deg, rgba(99, 17, 25, 0.76), rgba(24, 5, 8, 0.92)),
    #160508;
  border-color: rgba(119, 35, 42, 0.82);
  border-left: 5px solid #6d111b;
  box-shadow:
    0 16px 30px rgba(22, 3, 6, 0.36),
    inset 0 0 22px rgba(0, 0, 0, 0.28);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  text-shadow:
    0 0 7px rgba(255, 202, 202, 0.24),
    1px 0 0 rgba(88, 10, 18, 0.5),
    -1px 0 0 rgba(0, 0, 0, 0.36);
}

.arg-notice-designer .arg-chat-sender {
  color: #0d0204;
  background: #0d0204;
  border-color: rgba(255, 218, 218, 0.32);
  text-shadow: none;
  letter-spacing: 0.08em;
}

.arg-notice-designer.depth-2 {
  max-width: 355px;
  border-left-color: #881822;
  filter: saturate(1.08);
}

.arg-notice-designer.depth-3 {
  max-width: 360px;
  color: #ffdada;
  background:
    linear-gradient(180deg, rgba(118, 16, 27, 0.88), rgba(12, 2, 4, 0.96)),
    #100306;
  border-color: rgba(143, 35, 45, 0.9);
  border-left-color: #a31824;
  filter: saturate(1.16) contrast(1.08);
  text-shadow:
    0 0 9px rgba(255, 211, 211, 0.32),
    1.2px 0 0 rgba(110, 13, 22, 0.58),
    -1.2px 0 0 rgba(0, 0, 0, 0.44);
}

.trace-time {
  display: inline-block;
  padding: 2px 6px;
  color: #3d3215;
  background: #fff9dc;
  border: 1px solid #c7b15c;
  border-radius: 4px;
  font-family: "Consolas", "MS Gothic", monospace;
}

.trace-time.is-expired {
  color: #6d111b;
  background: #fff4f4;
  border-color: #c98080;
}

.site-footer {
  padding: 24px 32px 28px;
  color: #5e6b74;
  background: #f1f4f6;
  border-top: 1px solid var(--line-strong);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--primary-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.copyright {
  margin: 0;
  color: #65717a;
}

.site-header,
.brand {
  background: #ffffff;
}

.global-nav {
  background: #005a9b;
  border-top-color: #005a9b;
  border-bottom-color: #005a9b;
}

.global-nav a {
  color: #ffffff;
}

.global-nav a:hover,
.global-nav a:focus,
.global-nav a[aria-current="page"] {
  color: #ffffff;
  background: #005a9b;
  border-bottom-color: #0086d1;
}

a,
.popular-keywords a {
  color: #0073c4;
}

a:hover,
a:focus {
  color: #005a9b;
}

h1,
.hero-copy h1 {
  color: #005a9b;
}

.home-hero,
.lead,
.notice-box,
.form-like,
.map-placeholder,
.item-photo,
.side-menu h2,
.record-panel h2,
.faq-item dt,
.data-table th,
.staff-list th,
.reuse-table th {
  background-color: #eef4f9;
}

.site-search button,
.plain-button {
  color: #ffffff;
  background: #0086d1;
  border-color: #0086d1;
}

.site-search button:hover,
.site-search button:focus,
.plain-button:hover,
.plain-button:focus {
  color: #ffffff;
  background: #005a9b;
  border-color: #005a9b;
}

.plain-button.secondary {
  color: #005a9b;
  background: #ffffff;
  border-color: #cdd9e3;
}

.plain-button.secondary:hover,
.plain-button.secondary:focus {
  color: #005a9b;
  background: #eef4f9;
  border-color: #cdd9e3;
}

.site-footer {
  color: #65717a;
  background: #eef4f9;
  border-top-color: #cdd9e3;
}

.site-footer a {
  color: #0073c4;
}

.admin-mode-link {
  margin: 28px 0 0;
  text-align: right;
  font-size: 0.82rem;
}

.admin-mode-link a {
  color: #65717a;
  text-decoration: none;
  border-bottom: 1px solid #cdd9e3;
}

/* Modern municipal top page */
.home .page {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, #ffffff 0 420px, #eef4f9 420px 100%);
}

.home .site-header,
.home .content,
.home .site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.home .site-header {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.home .utility {
  grid-template-columns: minmax(150px, auto) minmax(120px, auto) minmax(220px, auto) minmax(320px, 1fr);
  align-items: center;
  background: #ffffff;
}

.home .brand {
  justify-content: flex-start;
  padding: 24px 28px;
}

.home .city-mark {
  border-radius: 14px;
  background: #005a9b;
  box-shadow: none;
}

.home .global-nav a[aria-current="page"] {
  border-bottom-color: #ffffff;
}

.home .content {
  padding: 26px 0 54px;
}

.home .home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.85fr);
  min-height: 360px;
  margin: 0 0 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.home .hero-copy {
  padding: clamp(30px, 5vw, 56px);
}

.home .hero-kicker {
  color: #0073c4;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.home .hero-copy h1 {
  margin-bottom: 14px;
  color: #005a9b;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: clamp(2.15rem, 4.7vw, 4rem);
  font-weight: 800;
}

.home .hero-copy p:last-child {
  max-width: 40em;
  color: #243847;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home .hero-visual {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, rgba(0, 134, 209, 0.18), rgba(0, 90, 155, 0.08) 45%, rgba(21, 41, 58, 0.16));
}

.home .hero-visual::before {
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(255, 255, 255, 0.78) 4% 7%, transparent 7% 13%, rgba(255, 255, 255, 0.58) 13% 16%, transparent 16% 27%, rgba(255, 255, 255, 0.68) 27% 30%, transparent 30%),
    linear-gradient(180deg, transparent 0 26%, rgba(0, 90, 155, 0.62) 26% 100%);
}

.home .emergency-strip {
  margin-bottom: 26px;
  background: #ffffff;
  border-left: 5px solid #0086d1;
  box-shadow: var(--shadow-soft);
}

.home .emergency-strip a {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
}

.home-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.home-main {
  display: grid;
  gap: 24px;
}

.home-section,
.first-guide {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

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

.section-heading p,
.guide-label {
  margin: 0 0 3px;
  color: #0073c4;
  font-size: 0.86rem;
  font-weight: 800;
}

.section-heading h2,
.first-guide h2 {
  margin: 0;
  padding: 0;
  color: #15293a;
  border: 0;
  font-size: 1.35rem;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading.with-link > a {
  font-weight: 700;
  text-decoration: none;
}

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

.portal-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 5px 13px;
  min-height: 132px;
  padding: 18px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(21, 41, 58, 0.05);
}

.portal-card:hover,
.portal-card:focus {
  border-color: #0086d1;
  box-shadow: 0 8px 20px rgba(21, 41, 58, 0.09);
}

.portal-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #0086d1;
  border-radius: 10px;
  font-weight: 800;
}

.portal-card strong {
  color: #005a9b;
  font-size: 1.03rem;
}

.portal-card span:last-child {
  color: #526575;
  font-size: 0.92rem;
}

.portal-life-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-life-grid a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-radius: 10px;
  font-weight: 700;
}

.portal-life-grid a::before {
  content: "";
  width: 6px;
  height: 28px;
  margin-right: 10px;
  background: #0086d1;
  border-radius: 999px;
}

.portal-news-list {
  margin-bottom: 0;
}

.first-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.first-guide p:last-child {
  margin-bottom: 0;
}

.guide-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.portal-side-menu {
  position: sticky;
  top: 16px;
  border-radius: 10px;
}

.portal-side-menu h2 {
  background: #005a9b;
  color: #ffffff;
}

.side-contact {
  display: grid;
  gap: 3px;
  margin: 0 18px 18px;
  padding: 14px;
  color: #526575;
  background: #eef4f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.side-contact strong {
  color: #15293a;
}

/* Shared layout for harmless public guide pages */
.public-page {
  background: #eef4f9;
}

.public-page .page {
  width: 100%;
  max-width: none;
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0 260px, #eef4f9 260px 100%);
  box-shadow: none;
}

.public-page .site-header,
.public-page .content,
.public-page .site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.public-page .site-header {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.public-page .utility {
  grid-template-columns: minmax(150px, auto) minmax(120px, auto) minmax(220px, auto) minmax(320px, 1fr);
  align-items: center;
  background: #ffffff;
}

.public-page .brand {
  padding: 24px 28px;
}

.public-page .city-mark {
  border-radius: 14px;
  background: #005a9b;
  box-shadow: none;
}

.public-page .content {
  margin-top: 26px;
  margin-bottom: 32px;
  padding: 30px 34px 38px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.public-page .breadcrumb {
  margin-bottom: 20px;
}

.public-page h1 {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
}

.public-page h2:not(.sr-only) {
  position: relative;
  margin-top: 34px;
  padding-bottom: 9px;
  color: #15293a;
  border-bottom: 1px solid var(--line);
}

.public-page h2:not(.sr-only)::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 68px;
  height: 3px;
  background: #0086d1;
  border-radius: 999px;
}

.public-page .lead,
.public-page .notice-box,
.public-page .form-like,
.public-page .department-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.public-page .lead {
  padding: 18px 20px;
  background: #eef4f9;
}

.public-page .data-table,
.public-page .staff-list {
  box-shadow: 0 5px 14px rgba(21, 41, 58, 0.05);
}

.public-page .reuse-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: 0 5px 14px rgba(21, 41, 58, 0.05);
}

.public-page .reuse-table th,
.public-page .reuse-table td {
  min-width: 8.5rem;
}

.public-page .site-footer {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

/* Citizen-facing photography. Internal and designer pages never receive this class. */
body.citizen-visual-page {
  background-color: #d9e7ef;
  background-image: url("images/hero/minato-coast.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body.home.citizen-visual-page .page,
body.public-page.citizen-visual-page .page {
  background: transparent;
}

body.citizen-visual-page:not(.home):not(.public-page) .page {
  background: #ffffff;
}

.citizen-visual-page .city-mark.has-emblem,
.home .city-mark.has-emblem,
.public-page .city-mark.has-emblem {
  padding: 2px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cdd9e3;
  border-radius: 50%;
  box-shadow: none;
}

.city-mark.has-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: 390px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
}

.home .hero-copy {
  width: auto;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
  color: var(--ink);
}

.home .hero-kicker,
.home .hero-copy h1 {
  text-shadow: none;
}

.home .hero-kicker {
  color: #0073c4;
}

.home .hero-copy h1 {
  color: #005a9b;
}

.home .hero-copy p:last-child {
  color: #243847;
  text-shadow: none;
}

.home .hero-visual {
  display: none;
}

.hero-product-slider {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef4f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-product-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-product-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-product-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-product-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 18px 14px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(5, 28, 43, 0.86));
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-product-dots {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 15px;
  display: flex;
  gap: 6px;
}

.hero-product-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(5, 28, 43, 0.28);
  border-radius: 50%;
}

.hero-product-dots span.is-active {
  background: #ffffff;
}

.home-mascot-accent {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px;
  padding: 16px 12px;
  color: #526575;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  text-align: center;
}

.home-mascot-accent img {
  width: min(150px, 72%);
  max-height: 178px;
  object-fit: contain;
}

.footer-mascot {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 12px 0;
  color: #526575;
}

.footer-mascot img {
  width: 64px;
  height: 78px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.footer-mascot figcaption {
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .home .utility {
    grid-template-columns: 1fr;
  }

  .public-page .utility {
    grid-template-columns: 1fr;
  }

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

  .first-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.citizen-visual-page {
    background-attachment: scroll;
  }

  .home .home-hero {
    grid-template-columns: 1fr;
  }

  .home .hero-copy {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home .home-hero {
    min-height: 0;
    padding: 18px;
  }

  .home .hero-copy {
    min-height: 0;
  }

  .citizen-visual-page .site-title {
    font-size: 1.35rem;
    white-space: nowrap;
  }

  .hero-product-slider {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .footer-mascot {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-slide {
    transition: none;
  }
}

.admin-mode-link a:hover,
.admin-mode-link a:focus {
  color: #005a9b;
}

.internal-system-page {
  --internal-bg: #d8dde1;
  --internal-surface: #eef1f3;
  --internal-panel: #f7f8f9;
  --internal-border: #aeb7bf;
  --internal-border-dark: #7f8992;
  --internal-text: #20272d;
  --internal-muted: #5e6973;
  --internal-accent: #4f5d68;
  color: var(--internal-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    var(--internal-bg);
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

.internal-system-page .page {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: transparent;
}

.internal-system-page .content {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 0 0 38px;
  background: transparent;
}

.internal-header {
  border-bottom: 1px solid var(--internal-border-dark);
  background: #c9ced3;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.42);
}

.internal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 10px;
}

.internal-kicker,
.internal-session {
  margin: 0;
  color: var(--internal-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.internal-title {
  margin: 2px 0 0;
  color: var(--internal-text);
  font-size: 1.1rem;
  font-weight: 700;
}

.internal-session {
  padding: 5px 8px;
  border: 1px solid var(--internal-border-dark);
  background: #dfe3e6;
}

.internal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--internal-border);
}

.internal-nav a {
  padding: 9px 14px;
  border-right: 1px solid var(--internal-border);
  color: var(--internal-text);
  font-size: 0.86rem;
  text-decoration: none;
}

.internal-nav a:first-child {
  border-left: 1px solid var(--internal-border);
}

.internal-nav a:hover,
.internal-nav a:focus {
  background: #bfc6cc;
  color: #111820;
}

.internal-system-page .breadcrumb {
  color: var(--internal-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.internal-system-page .breadcrumb a {
  color: var(--internal-accent);
}

.internal-system-page h1 {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--internal-border-dark);
  background: #cfd5da;
  color: var(--internal-text);
  font-size: 1.4rem;
  line-height: 1.35;
}

.internal-system-page .lead,
.internal-system-page .notice-box {
  border: 1px solid var(--internal-border);
  background: var(--internal-surface);
  color: var(--internal-text);
  box-shadow: none;
}

.internal-system-page .record-panel,
.internal-system-page .service-link {
  border: 1px solid var(--internal-border);
  border-radius: 2px;
  background: var(--internal-panel);
  box-shadow: none;
}

.internal-system-page .record-panel h2 {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--internal-border);
  background: #e1e5e8;
  color: var(--internal-text);
  font-size: 1rem;
  line-height: 1.5;
}

.internal-system-page .link-grid {
  gap: 10px;
}

.internal-system-page .service-link {
  padding: 15px;
}

.internal-system-page .service-link::before {
  display: none;
}

.internal-system-page .service-link strong {
  color: var(--internal-text);
}

.internal-system-page .service-link span {
  color: var(--internal-muted);
}

.internal-system-page .service-link:hover,
.internal-system-page .service-link:focus {
  transform: none;
  border-color: var(--internal-border-dark);
  background: #eceff1;
}

.internal-system-page .data-table {
  border: 1px solid var(--internal-border-dark);
  border-radius: 0;
  background: #fbfcfc;
  box-shadow: none;
}

.internal-system-page .data-table th,
.internal-system-page .data-table td {
  border-bottom: 1px solid var(--internal-border);
  color: var(--internal-text);
}

.internal-system-page .data-table th {
  background: #e3e7ea;
  color: #2b333a;
  font-weight: 700;
}

.internal-system-page .button-row .plain-button,
.internal-system-page .plain-button {
  border: 1px solid var(--internal-border-dark);
  border-radius: 2px;
  background: #d9dee2;
  color: var(--internal-text);
  box-shadow: none;
}

.internal-system-page .plain-button:hover,
.internal-system-page .plain-button:focus {
  background: #c7cdd2;
  color: #111820;
}

.console-panel .commit-log {
  padding: 14px 16px 18px;
  overflow-x: auto;
  background: #20262b;
  color: #d8dde1;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}

.console-panel .commit-log p {
  min-width: 780px;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #343c43;
  white-space: pre-wrap;
}

.console-panel .commit-log p:last-child {
  border-bottom: 0;
}

.console-panel .commit-log time {
  color: #b9c2c9;
}

.console-panel .commit-log span {
  display: inline-block;
  width: 5.5em;
  color: #eef1f3;
}

.certificate-panel > :not(h2) {
  margin-right: 16px;
  margin-left: 16px;
}

.certificate-panel .plain-button {
  margin-bottom: 6px;
  cursor: pointer;
}

.certificate-panel .plain-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.certificate-status {
  min-height: 1.75em;
  padding-bottom: 14px;
  color: var(--internal-muted);
  font-family: Consolas, "Courier New", monospace;
}

.internal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 12px 0 20px;
  border-top: 1px solid var(--internal-border-dark);
  color: var(--internal-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
}

.designer-memo-page .site-header,
.designer-memo-page .site-footer,
.designer-memo-page .utility,
.designer-memo-page .global-nav {
  display: none;
}

.designer-memo-page .content {
  padding-top: 42px;
}

.designer-memo-page .breadcrumb {
  display: none;
}

.designer-memo-page {
  color: #d7dde2;
  background: #101820;
}

.designer-memo-page .page,
.designer-memo-page .site-header,
.designer-memo-page .brand,
.designer-memo-page .global-nav,
.designer-memo-page .content {
  background: #101820;
}

.designer-memo-page .utility,
.designer-memo-page .global-nav,
.designer-memo-page .site-footer {
  color: #a8b2bb;
  background: #0b1218;
  border-color: #263746;
}

.designer-memo-page .site-title,
.designer-memo-page h1,
.designer-memo-page h2,
.designer-memo-page .breadcrumb {
  color: #e5ebef;
}

.designer-memo-page .site-subtitle,
.designer-memo-page .breadcrumb a,
.designer-memo-page .site-footer a,
.designer-memo-page a {
  color: #8fc7e8;
}

.designer-memo-page .city-mark {
  background: #0b1218;
  border-color: #394b59;
  color: #d7dde2;
}

.designer-memo-page .global-nav a {
  color: #d7dde2;
}

.designer-memo-page .global-nav a:hover,
.designer-memo-page .global-nav a:focus {
  color: #8fc7e8;
  border-bottom-color: #8fc7e8;
}

.designer-memo-panel {
  background: #141f28;
  border-color: #304352;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.designer-memo-photo {
  width: min(760px, 100%);
  margin: 0 0 26px;
}

.designer-photo-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #05090d;
  border: 1px solid #263746;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.38);
}

.designer-photo-stage img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(0 0 calc(100% - var(--designer-photo-reveal, 0%)) 0);
  transition: clip-path 150ms linear;
}

.designer-photo-pending .designer-memo-text {
  visibility: hidden;
  opacity: 0;
}

.designer-photo-ready .designer-memo-text {
  visibility: visible;
  opacity: 1;
  transition: opacity 700ms ease;
}

.designer-photo-failed .designer-memo-text {
  visibility: visible;
  opacity: 1;
}

.designer-memo-phase-mid {
  background: #0d151c;
}

.designer-memo-phase-mid .page,
.designer-memo-phase-mid .site-header,
.designer-memo-phase-mid .brand,
.designer-memo-phase-mid .global-nav,
.designer-memo-phase-mid .content {
  background: #0d151c;
}

.designer-memo-phase-mid .designer-memo-panel {
  background: #121b23;
  border-color: #2b3d4b;
}

.designer-memo-phase-unsettled {
  background: #0a1117;
}

.designer-memo-phase-unsettled .page,
.designer-memo-phase-unsettled .site-header,
.designer-memo-phase-unsettled .brand,
.designer-memo-phase-unsettled .global-nav,
.designer-memo-phase-unsettled .content {
  background: #0a1117;
}

.designer-memo-phase-unsettled .designer-memo-panel {
  background: #0f1820;
  border-color: #293949;
}

.designer-memo-phase-unsettled .designer-memo-text {
  color: #d0d7dd;
  text-shadow: 0 0 8px rgba(202, 219, 230, 0.12);
}

.designer-memo-phase-late {
  background: #070d12;
}

.designer-memo-phase-late .page,
.designer-memo-phase-late .site-header,
.designer-memo-phase-late .brand,
.designer-memo-phase-late .global-nav,
.designer-memo-phase-late .content {
  background: #070d12;
}

.designer-memo-phase-late .designer-memo-panel {
  background: #0b1319;
  border-color: #263443;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.designer-memo-phase-late .designer-memo-text {
  color: #c9d0d6;
  text-shadow:
    0 0 7px rgba(214, 229, 236, 0.16),
    1px 0 0 rgba(120, 161, 184, 0.08);
}

.designer-memo-phase-terminal {
  background: #04080c;
}

.designer-memo-phase-terminal .page,
.designer-memo-phase-terminal .site-header,
.designer-memo-phase-terminal .brand,
.designer-memo-phase-terminal .global-nav,
.designer-memo-phase-terminal .content {
  background: #04080c;
}

.designer-memo-phase-terminal .utility,
.designer-memo-phase-terminal .global-nav,
.designer-memo-phase-terminal .site-footer {
  background: #05090d;
  border-color: #1b2732;
}

.designer-memo-phase-terminal .designer-memo-panel {
  background: #080f14;
  border-color: #223140;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    inset 0 0 30px rgba(0, 0, 0, 0.16);
}

.designer-memo-phase-terminal .designer-memo-text {
  color: #c4ccd2;
  text-shadow:
    0 0 9px rgba(211, 229, 237, 0.18),
    1px 0 0 rgba(116, 157, 182, 0.12),
    -1px 0 0 rgba(80, 101, 116, 0.08);
  animation: memo-drift 16s steps(2, end) infinite;
}

.designer-date-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.4rem;
}

.designer-date-list a {
  color: #d7dde2;
  text-decoration: none;
  border-bottom: 1px solid #435668;
}

.designer-date-list a:hover,
.designer-date-list a:focus {
  color: #8fc7e8;
  border-bottom-color: #8fc7e8;
}

.designer-memo-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d7dde2;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0;
}

@keyframes memo-drift {
  0%,
  84%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }

  88% {
    transform: translate(0.25px, 0);
    filter: blur(0.18px);
  }

  92% {
    transform: translate(-0.2px, 0.15px);
    filter: blur(0.12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .designer-memo-phase-terminal .designer-memo-text {
    animation: none;
  }
}

.designer-memo-intensity-0 .designer-memo-text {
  filter: none;
  text-shadow: none;
  animation: none;
}

.designer-memo-intensity-1 .designer-memo-text {
  filter: blur(0.08px);
  text-shadow: 0 0 3px rgba(210, 224, 231, 0.1);
  animation: memo-waver-soft 12s ease-in-out infinite;
}

.designer-memo-intensity-2 .designer-memo-text {
  filter: blur(0.12px);
  text-shadow:
    0 0 4px rgba(210, 224, 231, 0.14),
    0.35px 0 0 rgba(126, 167, 188, 0.06);
  animation: memo-waver-soft 11s ease-in-out infinite;
}

.designer-memo-intensity-3 .designer-memo-text {
  filter: blur(0.16px);
  text-shadow:
    0 0 5px rgba(210, 224, 231, 0.17),
    0.45px 0 0 rgba(126, 167, 188, 0.08);
  animation: memo-waver-soft 10s ease-in-out infinite;
}

.designer-memo-intensity-4 .designer-memo-text {
  filter: blur(0.2px);
  text-shadow:
    0 0 6px rgba(210, 224, 231, 0.2),
    0.55px 0 0 rgba(126, 167, 188, 0.1),
    -0.35px 0 0 rgba(76, 94, 108, 0.08);
  animation: memo-waver-medium 9s ease-in-out infinite;
}

.designer-memo-intensity-5 .designer-memo-text {
  filter: blur(0.24px);
  text-shadow:
    0 0 7px rgba(210, 224, 231, 0.23),
    0.65px 0 0 rgba(126, 167, 188, 0.12),
    -0.45px 0 0 rgba(76, 94, 108, 0.1);
  animation: memo-waver-medium 8.5s ease-in-out infinite;
}

.designer-memo-intensity-6 .designer-memo-text {
  filter: blur(0.32px);
  text-shadow:
    0 0 8px rgba(215, 229, 237, 0.28),
    0.8px 0.1px 0 rgba(126, 167, 188, 0.15),
    -0.55px 0 0 rgba(76, 94, 108, 0.13);
  animation: memo-waver-strong 7.5s ease-in-out infinite;
}

.designer-memo-intensity-7 .designer-memo-text {
  filter: blur(0.38px);
  text-shadow:
    0 0 9px rgba(215, 229, 237, 0.32),
    0.95px 0.15px 0 rgba(126, 167, 188, 0.18),
    -0.7px 0 0 rgba(76, 94, 108, 0.16);
  animation: memo-waver-strong 7s ease-in-out infinite;
}

.designer-memo-intensity-8 .designer-memo-text {
  filter: blur(0.48px);
  text-shadow:
    0 0 10px rgba(218, 232, 239, 0.38),
    1.1px 0.2px 0 rgba(126, 167, 188, 0.22),
    -0.85px -0.1px 0 rgba(76, 94, 108, 0.18),
    0 1px 0 rgba(22, 32, 39, 0.22);
  animation: memo-waver-collapse 6s ease-in-out infinite;
}

.designer-memo-intensity-9 .designer-memo-text {
  filter: blur(0.56px);
  text-shadow:
    0 0 12px rgba(218, 232, 239, 0.44),
    1.25px 0.2px 0 rgba(126, 167, 188, 0.25),
    -1px -0.15px 0 rgba(76, 94, 108, 0.2),
    0 1.2px 0 rgba(22, 32, 39, 0.24);
  animation: memo-waver-collapse 5.4s ease-in-out infinite;
}

@keyframes memo-waver-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  35% {
    transform: translate3d(0.25px, -0.08px, 0);
  }

  70% {
    transform: translate3d(-0.18px, 0.12px, 0);
  }
}

@keyframes memo-waver-medium {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  28% {
    transform: translate3d(0.45px, -0.14px, 0);
  }

  56% {
    transform: translate3d(-0.36px, 0.2px, 0);
  }

  82% {
    transform: translate3d(0.18px, 0.28px, 0);
  }
}

@keyframes memo-waver-strong {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  22% {
    transform: translate3d(0.7px, -0.22px, 0);
  }

  47% {
    transform: translate3d(-0.55px, 0.28px, 0);
  }

  73% {
    transform: translate3d(0.32px, 0.45px, 0);
  }
}

@keyframes memo-waver-collapse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  18% {
    transform: translate3d(0.95px, -0.35px, 0);
  }

  38% {
    transform: translate3d(-0.75px, 0.42px, 0);
  }

  61% {
    transform: translate3d(0.45px, 0.7px, 0);
  }

  82% {
    transform: translate3d(-0.25px, -0.52px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .designer-memo-page .designer-memo-text {
    animation: none;
  }

  .designer-photo-stage img {
    clip-path: none;
    transition: none;
  }
}

.designer-terminal-note {
  color: #a8b2bb;
  border-top: 1px solid #304352;
  margin-top: 24px;
  padding-top: 16px;
}

@media (max-width: 900px) {
  .utility {
    grid-template-columns: 1fr;
  }

  .header-search {
    justify-self: stretch;
    width: 100%;
  }

  .home-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 180px;
    order: -1;
  }

  .link-grid,
  .life-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reuse-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    width: 100%;
    margin-bottom: 0;
  }

  .public-page .site-header,
  .public-page .content,
  .public-page .site-footer {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .utility,
  .brand,
  .content,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .city-mark {
    width: 48px;
    height: 48px;
  }

  .global-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .global-nav a {
    padding: 11px 10px;
    white-space: normal;
    text-align: center;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .emergency-strip {
    display: block;
  }

  .link-grid,
  .portal-card-grid,
  .life-event-grid,
  .portal-life-grid,
  .reuse-tools {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .data-table th,
  .data-table td,
  .staff-list th,
  .staff-list td {
    display: block;
    width: auto;
    border-right: 0;
  }

  .trace-dialog.stage-2,
  .trace-dialog.stage-3 {
    width: calc(100% - 28px);
  }
}
