:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, .14);
  --shadow: 0 10px 28px rgba(17, 24, 39, .10);
  --radius: 14px;
  --max: 820px;
  --brand: #4a91cb;
  --brand_weak_bg: rgba(74, 145, 203, .10);
  --brand_weak_border: rgba(74, 145, 203, .35);
}

body.theme-tokyo {
  --brand: #4a91cb;
  --brand_weak_bg: rgba(74, 145, 203, .10);
  --brand_weak_border: rgba(74, 145, 203, .35);
}

body.theme-kanazawa {
  --brand: #8b1530;
  --brand_weak_bg: rgba(139, 21, 48, .10);
  --brand_weak_border: rgba(139, 21, 48, .35);
}

body.theme-live {
  --brand: #2f9c5e;
  --brand_weak_bg: rgba(47, 156, 94, .10);
  --brand_weak_border: rgba(47, 156, 94, .35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.nav-link.is-active {
  background: var(--brand_weak_bg);
  border-color: var(--brand_weak_border);
}

.container {
  padding: 16px;
  --container-pad: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header.is-brand {
  background: var(--brand);
  border-bottom-color: transparent;
}
.site-header.is-brand .site-title,
.site-header.is-brand .nav-link {
  color: #fff;
}
.site-header.is-brand .nav-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.site-header.is-brand .nav-link.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

.site-title {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  width: 28px;
  height: 28px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
}

.site-title-text {
  line-height: 1.1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page {
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.page-img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  color: var(--muted);
  padding: 22px 0;
}

@media (min-width: 768px) {
  .container {
    padding: 20px;
    --container-pad: 20px;
  }
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .site-actions {
    margin-top: 0;
  }
}
main.container {
  padding-top: 0;
}

.hero {
  margin-top: 0;
  margin-left: calc(-1 * var(--container-pad));
  margin-right: calc(-1 * var(--container-pad));
  padding: 22px var(--container-pad);
  border-radius: 0;
  background: var(--brand);
  border: 0;
  box-shadow: none;
}
.hero-title {
  margin: 0;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  width: 100%;
  text-align: center;
}
.hero-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-brand-logo {
  width: auto;
  height: 36px;
  margin-top: 8px;
  -o-object-fit: contain;
     object-fit: contain;
}
.hero-brand-name {
  font-size: 37px;
  font-weight: 900;
  line-height: 1.1;
}
.hero-main-text {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.section-title {
  margin: 22px 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.notice .section-title {
  display: flex;
  margin: 18px calc(-1 * var(--container-pad)) 14px;
  padding: 18px var(--container-pad);
  border-radius: 0;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.notice .section-title.hero-title {
  flex-direction: column;
  gap: 4px;
}

.section-logo {
  width: 30px;
  height: 30px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
}

.section-title-text {
  line-height: 1.1;
}

.flow {
  margin-top: 0;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-item {
  margin-left: calc(-1 * var(--container-pad));
  margin-right: calc(-1 * var(--container-pad));
  padding: 28px 0;
  border-radius: 0;
  border: 0;
  background: #f3f4f6;
}
.flow-item:nth-child(even) {
  background: #fff;
}
.flow-item > .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  min-height: 220px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}
.flow-item:not(:last-child) .step-left::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  bottom: -28px;
  width: 2px;
  background: var(--brand);
  opacity: 0.45;
  transform: translateX(-50%);
}
.flow-item:not(:last-child) .step-left::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.7;
}

.step-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 90%;
}

.step-badge {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  background: var(--brand);
  color: #fff;
  border: 0;
}

.step-label {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.15;
}

.step-lead {
  font-weight: 900;
  color: var(--brand);
  margin: 0 0 10px;
  font-size: 20px;
}
.step-lead.is-plus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 40px;
}
.step-lead.is-plus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.step-lead-icon {
  width: 22px;
  height: 22px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
}

.text-mark {
  background: linear-gradient(transparent 68%, #fff59d 0);
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.step-body {
  font-size: 17px;
  line-height: 1.75;
}
.step-body p {
  margin: 0;
  color: var(--text);
}
.step-body br {
  display: block;
  content: "";
  margin-top: 6px;
}

.step-address {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid #111827;
  background: #fff;
  display: inline-block;
  max-width: 100%;
}

.step-address-grid {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-address-card {
  border: 2px solid var(--brand);
  background: #fff;
}

.step-address-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--brand);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  color: var(--brand);
  font-weight: 900;
}

.step-address-city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.step-address-cat {
  font-size: 16px;
  font-weight: 900;
  color: var(--brand);
}

.step-address-cat-red {
  color: #d10b0b;
}

.step-address-date {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.step-address-body {
  padding: 12px 14px 14px;
}

.step-note {
  margin-top: 12px;
  padding: 14px 16px;
  background: #fff9a8;
  border-radius: 0;
}

.step-note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.step-note-item + .step-note-item {
  margin-top: 10px;
}

.step-note-icon {
  width: 34px;
  height: 34px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
  margin-top: 2px;
}

.step-note-text {
  font-weight: 800;
  line-height: 1.55;
  color: #111827;
}
.step-note-text.is-em {
  color: #d10b0b;
}

.step-title {
  font-weight: 900;
  margin: 2px 0 8px;
}

.step-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.step-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.step-icon.is-arrow {
  position: relative;
  padding-right: 52px;
}
.step-icon.is-arrow::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 12px;
  transform: translateY(-50%);
  background: url("images/icon_arrow_right.png") no-repeat center/contain;
  opacity: 0.9;
}

.step-icon-img {
  width: 26px;
  height: 26px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
}

.step-icon-title {
  font-weight: 800;
  line-height: 1.2;
}

.step-icon-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 2px;
}

.step-media {
  margin-top: 12px;
}

.step-media-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
}

.step-illust {
  display: none;
}
.step-illust img {
  display: block;
  width: 100%;
  height: auto;
}

.notice-list {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.notice-item {
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 0;
}
.notice-item > .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.notice-title {
  display: table;
  align-items: center;
  margin: 0 auto 10px;
  padding: 10px 25px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  background: var(--brand);
  color: #fff;
}

.notice-body p {
  margin: 8px 0;
  font-size: 17px;
  color: var(--text);
}

.notice-frame {
  margin: 10px 0;
  padding: 12px 14px;
  border: 2px solid #e5a3a3;
  border-radius: 6px;
  background: #fff;
  line-height: 1.85;
  display: flex;
  align-items: center;
}
.notice-frame img {
  width: auto;
  height: 36px;
  margin-right: 20px;
}

.notice-mark {
  background: linear-gradient(transparent 72%, #fff59d 0);
  padding: 0 2px;
}

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

.pend-card {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 16px 18px;
  text-align: center;
}

.pend-head {
  font-weight: 800;
  line-height: 1.45;
  color: #111827;
}

.pend-row {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pend-label-img {
  display: block;
  height: 24px;
  width: auto;
}

.pend-alert {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #d10b0b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.pend-btn {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pend-btn-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.contact-box {
  margin-top: 12px;
  padding: 22px 26px;
  border-radius: 18px;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.contact-box-icon {
  width: 56px;
  height: 56px;
  -o-object-fit: contain;
     object-fit: contain;
  flex: 0 0 auto;
}

.contact-box-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-box-name {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  color: var(--brand);
}

.contact-box-tel {
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #111827;
}

.contact-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.fallback {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.reference {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reference-link {
  display: block;
}

.reference-img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  margin-top: 40px;
  padding: 22px 0;
  text-align: center;
  background-color: #eee;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 767px) {
  .flow-item > .inner {
    grid-template-columns: 120px 1fr 200px;
  }
  .step-illust {
    display: block;
    align-self: center;
    justify-self: center;
  }
  .step-illust img {
    max-width: 220px;
    margin: 0 auto;
  }
  .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .notice .section-title {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-brand-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 8px 10px;
  }
  .hero-brand-logo {
    height: 30px;
    margin-top: 0;
    max-width: 100%;
    min-width: 0;
  }
  .hero-brand-name {
    font-size: 22px;
    min-width: 0;
  }
  .hero-main-text {
    font-size: 28px;
  }
  .flow-item {
    padding: 20px 0;
  }
  .flow-item > .inner {
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    min-height: 0;
  }
  .step-left {
    grid-row: 1/-1;
    isolation: isolate;
    align-self: stretch;
  }
  .step-left::after,
  .step-left::before {
    z-index: -1;
    pointer-events: none;
  }
  .step-left > * {
    position: relative;
    z-index: 1;
  }
  .step-badge {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .step-label {
    margin-top: 10px;
    font-size: 18px;
  }
  .flow-item:not(:last-child) .step-left::after {
    top: 100px;
    bottom: 14px;
  }
  .flow-item:not(:last-child) .step-left::before {
    bottom: 12px;
  }
  .step-lead {
    font-size: 18px;
  }
  .step-icons {
    grid-template-columns: 1fr;
  }
  .step-icon.is-arrow {
    padding-right: 46px;
  }
  .step-icon.is-arrow::after {
    right: 12px;
    width: 22px;
    height: 10px;
  }
  .step-note {
    padding: 12px 14px;
  }
  .step-note-icon {
    width: 30px;
    height: 30px;
  }
  .step-address {
    display: block;
  }
  .step-illust {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
    justify-self: center;
    align-self: start;
  }
  .step-illust img {
    max-width: 240px;
    margin: 0 auto;
  }
  .contact-box {
    padding: 18px 18px;
    border-radius: 16px;
    gap: 12px;
  }
  .contact-box-icon {
    width: 52px;
    height: 52px;
  }
  .contact-box-name {
    font-size: 15px;
  }
  .contact-box-tel {
    font-size: 29px;
    white-space: nowrap;
  }
  .step-icons {
    grid-template-columns: 1fr;
  }
  .pend-grid {
    grid-template-columns: 1fr;
  }
  .step-icons {
    grid-template-columns: 1fr;
  }
}