/* reset */
*,
::before,
::after {
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
ol,
ul {
  list-style: none;
}
img,
svg {
  vertical-align: middle;
}
img {
  height: auto;
}
button,
input,
select,
textarea {
  color: inherit;
  letter-spacing: inherit;
  background-color: transparent;
  border-radius: 0;
}
button {
  cursor: pointer;
  appearance: button;
}
::placeholder {
  opacity: 1;
}
[hidden] {
  display: none !important;
}

:root {
  --ink: #17243d;
  --indigo: #0f2345;
  --indigo-2: #18345e;
  --red: #b7282e;
  --red-dark: #8e1f25;
  --gold: #c9a15a;
  --paper: #f6f3ec;
  --paper-deep: #e9e2d4;
  --line: #d8d0c1;
  --white: #fffdf8;
  --muted: #626661;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family:
    Yu Mincho,
    Hiragino Mincho ProN,
    Hiragino Mincho Pro,
    serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}
.shell {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}
.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}
.site-header {
  z-index: 10;
  background: var(--indigo);
  color: #fff;
  border-bottom: 4px solid var(--red);
  position: relative;
}
.header-pattern {
  display: none;
}
.header-inner {
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  display: flex;
  position: relative;
}
.brand {
  color: inherit;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  display: inline-flex;
}
.brand-mark,
.footer-mark {
  outline-offset: 4px;
  background: var(--red);
  border: 1px solid #ffffff80;
  outline: 1px solid #ffffff47;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 25px;
  font-weight: 800;
  display: grid;

}
.brand strong {
  letter-spacing: 0.1em;
  font-size: 19px;
  display: block;
}
.brand small {
  letter-spacing: 0.22em;
  opacity: .85;
  margin-top: 3px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  display: block;
}
.connection-badge {
  letter-spacing: 0.06em;
  background: #ffffff12;
  border: 1px solid #ffffff4d;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 12px;
  display: inline-flex;
}
.connection-badge i {
  background: #d4aa58;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px #d4aa582e;
}
.connection-badge.live i {
  background: #6cc08a;
  box-shadow: 0 0 0 3px #6cc08a2e;
}
.hero {
  color: #fff;
  background: var(--indigo);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 32px;
}
.hero-text {
  padding-block: 16px;
}
.hero-photo {
  margin: 0;
  border-bottom: 4px solid var(--gold);
}
.hero-photo img,
.login-photo img {
  width: 100%;
  height: auto;
}
.home-hero .hero-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 40px;
  padding-block: 36px;
}
.home-hero h1 {
  font-size: clamp(42px, 4.5vw, 60px);
}
.hero:not(.home-hero) .hero-photo {
  width: min(100%, 380px);
  justify-self: end;
}
.hero:not(.home-hero) h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.45;
}
.eyebrow {
  color: #d8c092;
  letter-spacing: 0.22em;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  display: flex;
}
.eyebrow:before {
  content: "";
  background: var(--red);
  width: 42px;
  height: 2px;
}
.hero h1 {
  letter-spacing: 0.08em;
  margin: 0;
  font-size: clamp(43px, 6vw, 73px);
  font-weight: 700;
  line-height: 1.15;
}
.hero h1 em {
  color: #e0c994;
  font-style: normal;
}
.hero-copy {
  color: #e0e4eb;
  max-width: 650px;
  margin: 25px 0 0;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 16px;
  line-height: 2;
}
.rope-line {
  height: 4px;
  background: var(--gold);
}
.page-shell {
  padding-bottom: 90px;
  position: relative;
}
.back-home-bar {
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  margin-top: 24px;
  position: relative;
  box-shadow: none;
}
.back-home-bar a {
  color: #6f716e;
  letter-spacing: 0.05em;
  border-bottom: 4px solid #0000;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
}
.back-home-bar a span {
  border: 1px solid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  display: inline-grid;
}
.back-home-bar a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
  background: #fffaf2;
}
.home-shell {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: 36px 64px;
  display: grid;
}
.home-choice {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  transition: transform 0.18s;
}
.home-choice:hover {
  transform: translateY(-3px);
}
.home-choice > span {
  grid-column: 2;
  grid-row: 1;
  color: var(--red);
  font-size: 26px;
}
.home-choice:nth-child(2) {
  border-top-color: var(--indigo);
}
.home-choice p {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--muted);
  letter-spacing: 0.08em;
  font: 12px Arial, sans-serif;
}
.home-choice h2 {
  grid-column: 1/-1;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
}
.home-choice small {
  grid-column: 1/-1;
  color: var(--muted);
  font-family: "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
.home-choice b {
  grid-column: 1/-1;
  color: var(--red-dark);
  padding-top: 8px;
  font-size: 15px;
}
.notice {
  background: #fff8e8;
  border: 1px solid #dec58d;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding: 15px 18px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
}
.notice > span {
  color: #fff;
  background: #c49843;
  border-radius: 50%;
  flex: 0 0 24px;
  place-items: center;
  height: 24px;
  font-weight: 800;
  display: grid;
}
.notice.success {
  background: #edf7f0;
  border-color: #96c8a5;
}
.notice.success > span {
  background: #468c5c;
}
.notice.error {
  background: #fbeeee;
  border-color: #d7a1a1;
}
.notice.error > span {
  background: var(--red);
}
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  margin-top: 34px;
  box-shadow: none;
}
.form-card {
  --field-gap: 24px;
  --label-gap: 8px;
  padding: clamp(32px, 5vw, 64px);
}
.section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  position: relative;
}
.section-heading:after {
  content: "";
  background: var(--red);
  width: 82px;
  height: 3px;
  position: absolute;
  bottom: -1px;
  left: 0;
}
.section-heading p {
  color: var(--red);
  letter-spacing: 0.23em;
  margin: 0 0 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.section-heading h2 {
  letter-spacing: 0.08em;
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
}
.section-heading > span {
  color: var(--muted);
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  position: absolute;
  bottom: 30px;
  right: 0;
}
.section-heading > span b,
form label > b,
.field-label > b {
  color: #fff;
  background: var(--red);
  letter-spacing: 0.05em;
  vertical-align: 2px;
  margin-left: 5px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}
form fieldset {
  border: 0;
  border-bottom: 1px dashed #cbc2b4;
  margin: 0;
  padding: 40px 0;
}
form legend {
  float: left;
  width: 100%;
  margin-bottom: var(--field-gap);
  letter-spacing: 0.06em;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
}
form legend + * {
  clear: both;
}
form legend span {
  color: #fff;
  background: var(--indigo);
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  display: inline-grid;
  transform: rotate(-2deg);
}
.form-grid {
  gap: var(--field-gap);
  display: grid;
}
.birth-field {
  grid-column: 1/-1;
  min-width: 0;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
form label,
.field-label {
  color: #2b3441;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: block;
}
form label > em {
  color: #898b88;
  margin-left: 6px;
  font-size: 12px;
  font-style: normal;
}
.field-control {
  width: 100%;
  height: 54px;
  margin-top: var(--label-gap);
  color: var(--ink);
  background: #fff;
  border: 1px solid #bcb5aa;
  border-radius: 0;
  outline: none;
  padding: 0 15px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 16px;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.field-control:focus {
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 3px #18345e1f;
}
.field-control::placeholder {
  color: #aaa9a5;
}
.date-row {
  max-width: 610px;
  margin-top: var(--label-gap);
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  display: grid;
}
.date-row label {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}
.date-row .field-control {
  min-width: 0;
  margin-top: 0;
}
.date-row i {
  font-style: normal;
}
.photo-box {
  gap: var(--field-gap);
  background: #f4f1e9;
  border: 1px solid #ded6c8;
  grid-template-columns: 240px 1fr;
  align-items: center;
  padding: 24px;
  display: grid;
}
.photo-preview {
  aspect-ratio: 1;
  color: #fffc;
  background: var(--indigo);
  border: 6px solid #fff;
  border-radius: 50%;
  place-items: center;
  width: 240px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 4px 15px #00000024;
}
.photo-preview canvas {
  cursor: grab;
  touch-action: none;
  width: 100%;
  height: 100%;
  display: block;
}
.photo-preview.is-dragging canvas {
  cursor: grabbing;
}
.photo-adjust {
  border-top: 1px solid #ded6c8;
  grid-column: 1/-1;
  padding-top: 20px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
}
.photo-adjust strong {
  font-size: 16px;
  display: block;
}
.photo-adjust p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}
.adjust-sliders {
  gap: 4px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 12px 16px;
  display: grid;
}
.adjust-slider {
  display: grid;
}
.adjust-slider input {
  accent-color: var(--red);
  width: 100%;
  min-height: 44px;
}
.adjust-slider input:disabled {
  opacity: 0.4;
}
.photo-preview span {
  opacity: 0.45;
  font-size: 55px;
}
.photo-actions {
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
}
.photo-actions strong {
  font-size: 16px;
  display: block;
}
.photo-actions p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
}
.photo-actions > div {
  gap: 8px;
  margin-top: 16px;
  display: flex;
}
.secondary-button,
.ghost-button {
  cursor: pointer;
  border: 1px solid var(--indigo);
  min-width: 132px;
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 700;
}
.secondary-button {
  color: #fff;
  background: var(--indigo);
}
.ghost-button {
  color: var(--indigo);
  background: 0 0;
}
.privacy-note {
  color: #64665f;
  border-left: 3px solid var(--gold);
  background: #f2eee5;
  margin: 0 0 16px;
  padding: 16px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
.radio-cards {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}
.radio-cards label {
  cursor: pointer;
  position: relative;
}
.radio-cards input {
  opacity: 0;
  position: absolute;
}
.radio-cards span {
  background: #fff;
  border: 1px solid #bdb6aa;
  min-height: 92px;
  padding: 20px 20px 20px 56px;
  transition: all 0.15s;
  display: block;
  position: relative;
}
.radio-cards span:before {
  content: "";
  border: 2px solid #aaa59d;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 31px;
  left: 20px;
  box-shadow: inset 0 0 0 4px #fff;
}
.radio-cards input:checked + span {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  background: #fff8f3;
}
.radio-cards input:checked + span:before {
  background: var(--red);
  border-color: var(--red);
}
.radio-cards input:focus-visible + span {
  outline: 3px solid #18345e40;
}
.radio-cards strong {
  font-size: 17px;
  display: block;
}
.radio-cards small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  display: block;
}
.submit-area {
  justify-content: space-between;
  align-items: center;
  gap: var(--field-gap);
  padding-top: 40px;
  display: flex;
}
.submit-area p {
  color: var(--muted);
  margin: 0;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
}
.primary-button {
  color: #fff;
  font-size: 17px;
  background: var(--red);
  cursor: pointer;
  letter-spacing: 0.08em;
  min-width: 310px;
  min-height: 60px;
  box-shadow: 5px 5px 0 var(--indigo);
  border: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 28px;
  font-weight: 700;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  display: flex;
}
.primary-button:hover {
  box-shadow: 3px 3px 0 var(--indigo);
  transform: translate(2px, 2px);
}
.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.primary-button span {
  font-family: Arial, sans-serif;
  font-size: 22px;
}
.directory-card {
  padding: clamp(26px, 4vw, 48px);
}
.directory-heading {
  justify-content: space-between;
  align-items: end;
  display: flex;
}
.directory-heading > span {
  background: var(--indigo);
  color: #fff;
  padding: 8px 12px;
  position: static;
}
.search {
  padding-top: 24px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: block;
}
.search > div {
  color: #6d716f;
  background: #fff;
  border: 1px solid #bcb5aa;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 8px;
  padding-inline: 16px;
  display: flex;
}
.search > div:focus-within {
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 3px #18345e1f;
}
.search svg {
  flex-shrink: 0;
}
.search input {
  color: var(--ink);
  outline: none;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  font-size: 16px;
  font-weight: 400;
}
.search input::placeholder {
  color: #aaa9a5;
}
.sort-bar {
  align-items: center;
  gap: 9px;
  padding: 24px 0;
  display: flex;
}
.sort-bar > span {
  color: #6d716f;
  margin-right: 8px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
}
.sort-bar button {
  color: #4d5358;
  cursor: pointer;
  background: #fff;
  border: 1px solid #bfb8ac;
  padding: 9px 13px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  min-height: 44px;
}
.sort-bar button i {
  color: #92918c;
  margin-left: 8px;
  font-style: normal;
}
.sort-bar button.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.sort-bar button.active i {
  color: #fff;
}
.member-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  display: grid;
}
.directory-status {
  color: #5c6573;
  text-align: center;
  background: #f8f5ed;
  border: 1px solid #ded8ca;
  grid-column: 1/-1;
  margin: 0;
  padding: 48px 20px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
}
.directory-status .empty-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.directory-status .ghost-button {
  margin-top: 20px;
}
.member-card {
  background: #fff;
  border: 1px solid #d5cec0;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.member-number {
  color: #fff;
  background: var(--red);
  place-items: center;
  width: 30px;
  height: 30px;
  font:
    700 11px Arial,
    sans-serif;
  display: grid;
  position: absolute;
  top: 0;
  right: 0;
}
.member-head {
  align-items: center;
  gap: 22px;
  display: flex;
}
.member-photo {
  flex: 0 0 120px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #d6d0c4, #f1ede5);
  border-radius: 50%;
  place-items: center;
  display: grid;
  overflow: hidden;
}
.member-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.member-photo > span {
  color: #ded4bf;
  background: var(--indigo);
  border-radius: 50%;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 34px;
  display: grid;
}
.member-title {
  min-width: 0;
}
.member-title .role {
  color: #fff;
  background: var(--indigo);
  padding: 4px 10px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 13px;
  display: inline-block;
}
.member-title .role-0,
.member-title .role-1,
.member-title .role-2 {
  background: var(--red-dark);
}
.member-title .role-3 {
  background: var(--indigo-2);
}
.member-title .role-4 {
  background: var(--red);
}
.member-title .role-5 {
  color: var(--ink);
  background: var(--gold);
}
.member-title .role-6 {
  color: var(--ink);
  background: #d4b66f;
}
.member-title > p {
  color: #65655f;
  margin: 12px 0 2px;
  font-size: 13px;
}
.member-title h3 {
  letter-spacing: 0.08em;
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
}
.member-title h3 strong {
  font-weight: 400;
}
.member-detail {
  border-top: 1px solid #d7d0c4;
  margin-top: 22px;
  padding-top: 18px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.member-detail div {
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  display: grid;
}
.member-detail div + div {
  margin-top: 6px;
}
.member-detail dt {
  color: #65655f;
}
.member-detail dd {
  overflow-wrap: anywhere;
  margin: 0;
}
.member-detail a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.member-meta {
  margin-top: auto;
  padding-top: 18px;
  gap: 22px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  display: flex;
}
.member-meta div {
  align-items: baseline;
  gap: 7px;
  display: flex;
}
.member-meta dt {
  color: #65655f;
  font-size: 13px;
}
.member-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.header-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}
.logout-button {
  color: #fff;
  border: 1px solid #ffffff4d;
  padding: 8px 13px;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  min-height: 44px;
}
.logout-button:hover {
  background: #ffffff1f;
}
.field-half {
  grid-column: 1/-1;
  width: calc((100% - var(--field-gap)) / 2);
}
.field-full,
.postal-field {
  grid-column: 1/-1;
}
.unit-row,
.postal-row {
  align-items: center;
  gap: 8px;
  margin-top: var(--label-gap);
  display: flex;
}
.unit-row i,
.postal-row > i {
  font-style: normal;
}
.unit-row .field-control {
  max-width: 200px;
}
.postal-row label:first-child {
  width: 110px;
}
.postal-row label:last-child {
  width: 140px;
}
.unit-row .field-control,
.postal-row .field-control {
  margin-top: 0;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 48px 64px;
}
.login-photo {
  margin: 0;
  border-bottom: 4px solid var(--gold);
}
.login-shell {
  min-width: 0;
}
.login-shell .notice {
  margin-top: 0;
  margin-bottom: 20px;
}
.login-card.content-card {
  margin-top: 0;
  border-top: 4px solid var(--red);
}
.login-card {
  padding: clamp(28px, 5vw, 48px);
}
.login-card h1 {
  letter-spacing: 0.08em;
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
}
.login-form {
  gap: 22px;
  margin-top: 30px;
  display: grid;
}
.login-note {
  color: var(--muted);
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
.login-form .primary-button {
  width: 100%;
  min-width: 0;
}
.footer-credit {
  margin-left: auto;
  font-family: Arial, sans-serif;
}
footer {
  background: var(--indigo);
  color: #fff;
  border-top: 6px solid var(--red);
}
footer .shell {
  align-items: center;
  gap: 20px;
  min-height: 125px;
  display: flex;
}
.footer-mark {
  width: 38px;
  height: 38px;
  font-size: 20px;
}
footer p {
  letter-spacing: 0.08em;
  font-size: 15px;
}
footer small {
  color: #c9cfd8;
  font-family:
    Hiragino Kaku Gothic ProN,
    sans-serif;
  font-size: 12px;
}
@media (width<=760px) {
  .shell {
    width: calc(100% - 32px);
  }
  .site-header {
    border-bottom-width: 3px;
  }
  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
  gap: 12px;
  padding-block: 16px;
}
  .brand {
    gap: 10px;
    min-width: 0;
  }
  .brand-mark {
    outline-offset: 2px;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .brand strong {
    letter-spacing: 0.07em;
    white-space: normal;
    font-size: 16px;
  }
  .brand small {
    letter-spacing: 0.16em;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 10px;
  }
  .connection-badge {
    white-space: nowrap;
    flex: none;
    gap: 6px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .connection-badge i {
    width: 6px;
    height: 6px;
  }
  .hero-grid,
  .home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 20px 24px;
  }
  .hero-photo,
  .hero:not(.home-hero) .hero-photo {
    grid-row: 1;
    width: 100%;
  }
  .hero-text {
    padding-block: 24px 0;
  }
  .hero h1,
  .home-hero h1 {
    font-size: 38px;
    line-height: 1.3;
  }
  .hero:not(.home-hero) h1 {
    font-size: 28px;
  }
  .hero:not(.home-hero) .hero-photo {
    width: min(100%, 240px);
    justify-self: center;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-copy {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
  }
  .page-shell {
    padding-bottom: 56px;
  }
  .back-home-bar {
    margin-top: 20px;
  }
  .back-home-bar a {
    min-height: 58px;
    font-size: 14px;
  }
  .back-home-bar a span {
    width: 28px;
    height: 28px;
  }
  .home-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 26px 54px;
  }
  .home-choice {
    padding: 24px;
  }
  .home-choice h2 {
    font-size: 25px;
  }
  .content-card {
    margin-top: 20px;
  }
  .form-card {
    padding: 24px;
  }
  .directory-card {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0;
  }
  .section-heading {
    padding-bottom: 23px;
  }
  .section-heading:after {
    width: 78px;
  }
  .section-heading p {
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.5;
  }
  .section-heading h2 {
    letter-spacing: 0.06em;
    font-size: 26px;
    line-height: 1.4;
  }
  .section-heading > span {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.7;
    display: block;
    position: static;
  }
  form fieldset {
    padding: 32px 0;
  }
  form legend {
    font-size: 18px;
  }
  form legend span {
    width: 34px;
    height: 34px;
    margin-right: 9px;
  }
  .form-grid.two,
  .radio-cards,
  .member-grid {
    grid-template-columns: 1fr;
  }
  form label,
  .field-label {
    font-size: 14px;
  }
  .field-control {
    height: 52px;
    padding-inline: 13px;
    font-size: 16px;
  }
  .date-row {
    grid-template-columns: 1.28fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: none;
  }
  .date-row label {
    gap: 8px;
    min-width: 0;
  }
  .date-row .field-control {
    text-align: center;
    min-width: 0;
    padding-inline: 8px;
  }
  .date-row i {
    font-size: 14px;
  }
  .photo-box {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px;
  }
  .photo-preview {
    width: min(260px, 100%);
  }
  .photo-adjust {
    text-align: left;
    width: 100%;
  }
  .adjust-sliders {
    grid-template-columns: 1fr;
  }
  .photo-adjust .ghost-button {
    width: 100%;
    min-height: 48px;
  }
  .photo-actions {
    width: 100%;
  }
  .photo-actions p {
    margin-block: 8px 0;
    line-height: 1.7;
  }
  .photo-actions > div {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    display: grid;
  }
  .secondary-button,
  .ghost-button {
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
  }
  .privacy-note {
    font-size: 14px;
  }
  .radio-cards span {
    min-height: 80px;
    padding: 17px 16px 17px 52px;
  }
  .radio-cards span:before {
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
  }
  .submit-area {
    flex-direction: column;
    align-items: stretch;
    padding-top: 32px;
  }
  .submit-area p {
    font-size: 14px;
    line-height: 1.7;
  }
  .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding-inline: 20px;
  }
  .notice {
    gap: 9px;
    margin-top: 20px;
    padding: 13px 14px;
    font-size: 14px;
  }
  .directory-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .directory-heading > span {
    white-space: nowrap;
    flex: none;
    margin-top: 27px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .sort-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    padding: 20px 0 18px;
    display: grid;
  }
  .sort-bar > span {
    grid-column: 1/-1;
    margin-right: 0;
  }
  .sort-bar button {
    min-height: 44px;
    padding: 8px 4px;
    font-size: 13px;
  }
  .sort-bar button i {
    margin-left: 5px;
  }
  .member-grid {
    gap: 14px;
  }
  .member-card {
    padding: 22px 18px 18px;
  }
  .member-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    display: grid;
  }
  .member-photo {
    width: 100%;
  }
  .member-photo > span {
    font-size: 40px;
  }
  .member-title h3 {
    font-size: 22px;
  }
  .member-detail {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 14px;
  }
  .header-actions {
    gap: 12px;
    flex-wrap: wrap;
}
  .logout-button {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 12px;
  }
  .field-half {
    width: 100%;
  }
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 24px 48px;
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-form .primary-button {
    padding-inline: 20px;
  }
  .footer-credit {
    width: 100%;
    margin-left: 0;
  }
  footer .shell {
    flex-wrap: wrap;
    gap: 15px;
    min-height: 96px;
    padding-block: 20px;
  }
  .footer-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  footer p {
    margin-block: 0 4px;
    font-size: 13px;
  }
  footer small {
    font-size: 12px;
  }
}
@media (width<=410px) {
  .brand small {
    display: none;
  }
  .form-card {
    padding: 20px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .directory-heading > span {
    margin-top: 25px;
  }
}
@media (width<=360px) {
  .shell {
    width: calc(100% - 24px);
  }
  .brand strong {
    font-size: 16px;
  }
  .connection-badge {
    padding-inline: 7px;
    font-size: 12px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px;
  }
  .form-card {
    padding: 17px;
  }
  .photo-actions > div {
    grid-template-columns: 1fr;
  }
  .directory-heading {
    display: block;
  }
  .directory-heading > span {
    margin-top: 12px;
    display: inline-block;
  }
}

/* accessibility */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.site-header :focus-visible,
.hero :focus-visible {
  outline-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; }
}
