:root {
  --border: #8f8f8f;
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --section-gap: 28px;
  --error: #ff4d4f;
}

html, body {
  height: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 48px 56px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.is-page-loading {
  overflow: hidden;
  cursor: progress;
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.page-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loading-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 36, 64, 0.16);
  color: #1e2440;
  font-size: 16px;
  font-weight: 700;
}

.page-loading-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid #dfe2ea;
  border-top-color: #1e2440;
  border-radius: 50%;
  animation: page-loading-spin 0.8s linear infinite;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading-overlay {
    transition: none;
  }

  .page-loading-spinner {
    animation-duration: 1.6s;
  }
}

table, th, td {
  border: 1px solid #6e6e6e;
}

table {
  border-collapse: collapse;
}

.container {
  display: flex;       /* 子要素（サイドバーとメイン）を横並びにする */
  align-items: flex-start;
  max-width: 1200px;   /* 画面が広がりすぎないように制限（任意） */
  margin: 10px auto;
  min-height: 100vh;
  width: 100%;
}

.container.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  max-width: none;
}

.dashboard-layout > .content {
  grid-column: 2;
  justify-self: center;
}

.dashboard-layout > .sidebar {
  grid-column: 1;
  justify-self: start;
}

@media (max-width: 768px) {
  .container.dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-layout > .content,
  .dashboard-layout > .sidebar {
    grid-column: 1;
  }

  .dashboard-layout > .sidebar {
    grid-row: 1;
  }

  .dashboard-layout > .content {
    grid-row: 2;
  }
}

.page2 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 32px;
}

.title-area {
  text-align: center;
  margin-bottom: 60px;
}

.title-area h1 {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: normal;
  letter-spacing: 0.03em;
}

.title-area p {
  margin: 4px 0;
  font-size: 18px;
}

.setting-block {
  margin-bottom: var(--section-gap);
}

.setting-block h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.select {
  min-width: 170px;
  height: 28px;
  padding: 2px 8px;
  font-size: 14px;
}

.radio-list {
  display: grid;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
}

.radio-item input {
  margin-top: 5px;
}

.radio-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pattern-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 15px;
}

.pattern-item input {
  margin-top: 5px;
}

.pattern-body {
  flex: 1;
}

.pattern-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.pattern-body ul {
  margin: 0;
  padding-left: 18px;
}

.pattern-body li {
  margin: 1px 0;
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.action-card {
  background: #f8f8f8;
  padding: 10px 12px 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.action-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  font-size: 14px;
}

.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-block {
  margin-top: 16px;
  font-size: 14px;
}

.result-block .note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .pattern-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .title-area h1 {
    font-size: 24px;
  }

  .title-area p {
    font-size: 15px;
  }

  .action-card {
    min-height: auto;
  }
}
.setting-status {
  width: 420px;
  margin: 0 auto;
}

.setting-status h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-label {
  font-size: 15px;
  flex: 1;
}

.status-action {
  width: 160px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  width: 140px;
  height: 46px;
  font-size: 20px;
  cursor: pointer;
}

.btn-disabled {
  opacity: 0.75;
  cursor: default;
}

.description {
  text-align: center;
  margin-bottom: 60px;
}

.description p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.description h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.description dt {
  font-size: 15px;
  margin-bottom: 8px;
}

.description dd {
  margin-left: 24px;
  font-size: 15px;
}

.description a {
  color: #000;
}

.black-link {
  color: #000;
}

/* ボタン系 */
button,
input[type="submit"] {
  height: 48px;

  background: #1e2440;
  color: #fff;

  border: none;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: background-color .2s ease,
  transform .1s ease;
}

.max-botton {
  width: 100%;
}

button:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

button:disabled,
input[type="submit"]:disabled {
  background: #b7bccb;
  color: #fff;
  cursor: not-allowed;
}

/* ラジオボタン */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 384px));
  gap: 8px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 72px;
  padding: 16px 16px 16px 16px;

  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;

  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.radio-card:hover {
  border-color: #c9cfdf;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-ui {
  /* --radio-inner = width - border * 2 (box-sizing: border-box) */
  --radio-inner: 17px;
  --radio-dot: 12px;

  width: 21px;
  height: 21px;
  border: 2px solid #b8becf;
  border-radius: 50%;
  flex: 0 0 21px;
  position: relative;
  background: #fff;
  margin-top: 0;
}

/* 中心の丸は inset box-shadow で描く。
   擬似要素 + transform だと端数DPR(125%/150%)で中心がずれるため。 */
.radio-card input:checked + .radio-ui {
  border-color: #1e2440;
  box-shadow:
    inset 0 0 0 calc((var(--radio-inner) - var(--radio-dot)) / 2) #fff,
    inset 0 0 0 var(--radio-inner) #1e2440;
}

.radio-content {
  min-width: 0;
  line-height: 1.5;
}

.radio-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1e2440;
  overflow-wrap: anywhere;
}

.radio-sub {
  font-size: 12px;
  line-height: 18px;
  color: #1e2440;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/** select box */
.select-wrap {
  position: relative;
}

.select-box {
  width: 100%;
  height: 56px;
  padding: 0 44px 0 16px;

  border: 1px solid #e2e5ee;
  border-radius: 8px;
  background: #f5f5f5;
  color: #1e2440;

  font-size: 16px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7a8093;
  border-bottom: 2px solid #7a8093;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-box:focus {
  border-color: #1e2440;
  box-shadow: 0 0 0 3px rgba(30, 36, 64, 0.08);
}

.select-wrap.is-enhanced::after {
  display: none;
}

.select-wrap.is-enhanced .custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f5f5;
  color: #1e2440;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.custom-select-trigger:hover,
.select-wrap.is-open .custom-select-trigger {
  border-color: #d8dbe4;
  background: #f7f7f8;
}

.custom-select-trigger:focus-visible {
  outline: none;
  border-color: #1e2440;
  box-shadow: 0 0 0 3px rgba(30, 36, 64, .10);
}

.custom-select-trigger i {
  flex: 0 0 auto;
  color: #70778a;
  font-size: 12px;
  transition: transform .18s ease;
}

.select-wrap.is-open .custom-select-trigger i {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e2e4ea;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(30, 36, 64, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.select-wrap.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 9px 40px 9px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #343b55;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  box-shadow: none;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: #f3f4f8;
  color: #1e2440;
}

.custom-select-option.is-selected {
  background: #eef0f7;
  color: #1e2440;
  font-weight: 700;
}

.custom-select-option.is-selected::after {
  position: absolute;
  right: 14px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #1e2440;
  border-bottom: 2px solid #1e2440;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

/* コピーボックス */
.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 56px;
  padding: 12px 16px;

  border: none;
  border-radius: 8px;
  background: #fff;

  font-size: 14px;
  color: #1f2747;
}

.copy-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-box > span {
  flex: 1 1 auto;
  min-width: 0;
}

.copy-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #666666;
}

.copy-button img {
  display: block;
  width: 16px;
  height: 16px;
}

.copy-button:hover {
  color: #1e2440;
  background: transparent;
}

/* コピートースト */
.copy-toast {
  position: fixed;
  z-index: 1100;
  top: var(--copy-toast-top, 32px);
  left: 50%;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(30, 36, 64, .08);
  border-radius: 10px;
  background: #fff;
  color: #1e2440;
  box-shadow: 0 8px 24px rgba(30, 36, 64, .18);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.copy-toast > span {
  font-size: 14px;
}

.copy-toast-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #1e2440;
  font-size: 14px;
  box-shadow: none;
}

.copy-toast-close:hover {
  background: #f1f2f5;
}

@media (max-width: 480px) {
  .copy-toast {
    width: calc(100% - 32px);
    min-width: 0;
  }
}

/* サイドバー */
.sidebar {
  background: #fcfcfc;
  min-height: 0;
  border-right: 1px solid #edf0f5;
  padding: 36px 0 48px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: auto;
  padding: 13px 30px;

  border: none;
  background: transparent;

  font-size: 18px;
  font-weight: 700;
  color: #1e2440;
  text-align: left;
  cursor: pointer;
}

.sidebar-section-title:hover {
  background: #f3f4f8;
}

.sidebar-section-title i {
  font-size: 14px;
  color: #1e2440;
}

.sidebar-section-home {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 16px 30px;

  text-decoration: none;
  color: #1e2440;

  font-size: 18px;
  font-weight: 700;

  background: transparent;
}

.sidebar-section-home:hover {
  background: #eef2ff;
}

.sidebar-section-home i {
  font-size: 14px;
}

.sidebar-section-home.active {
  background: #1e2440;
  color: #fff;
}

.sidebar-link {
  display: block;
  padding: 11px 30px 11px 54px;

  text-decoration: none;
  color: #1e2440;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;

  transition: background-color .15s ease, color .15s ease;
}

.sidebar-section-links {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows .2s ease, opacity .2s ease;
}

.sidebar-section.is-collapsed .sidebar-section-links {
  display: none;
}

.sidebar-link:hover {
  background: #eef2ff;
}

.sidebar-link.active {
  background: #1e2440;
  color: #fff;
}

.sidebar-link.active:hover {
  background: #1e2440;
}

.sidebar-logout-link {
  display: none;
}

/* ヘッダー */
.header {
  background: #fff;
  border-bottom: 1px solid #e8ebf2;
  height: 111px;
}

.header-inner {
  height: 100%;
  margin: 0 auto;
  padding: 0 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.logout-link {
  background: #ffffff;
  color: #1e2440;
  font-size: 14px;
}

.logout-link:hover {
  background: #eef2ff;
}

/* フッター */

.footer {
  margin-top: auto;
  background: #1e2440;
  color: #fff;
}

.footer-inner {
  margin: 0 auto;
  padding: 32px 56px 20px;
}

.footer-logo img {
  height: 28px;
}

.footer-divider {
  margin: 24px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,.18);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  white-space: nowrap;
}

/* input-box */
.field {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1e2440;
}

.field-label-small {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e2440;
}

.required {
  color: var(--error);
}

.input-shell {
  display: flex;
  align-items: center;

  height: 56px;
  padding: 0 16px;

  border: 1px solid #e5e7eb;
  border-radius: 8px;

  background: #f5f6f8;
}

.input-shell.input-shell-error {
  border-color: var(--error);
}

.input-icon {
  margin-right: 12px;
  font-size: 20px;
  color: #444;
}

.input-icon-image {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.input-box {
  flex: 1;

  border: none;
  outline: none;
  background: transparent;

  font-size: 16px;
}

.input-box[type="password"] {
  font-size: 22px;
  letter-spacing: 2px;
}

.input-box::placeholder {
  color: #888;
}

.toggle-password {
  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;
}

.toggle-password[hidden] {
  display: none;
}

.toggle-password i {
  font-size: 20px;
  color: #444;
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}

/* 会員登録お試し */
.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 24px 40px;
}

.auth-card {
  width: min(100%, 560px);
}

.signup-register-page .field-label {
  font-size: 14px;
}

.page-title {
  margin: 8px 0 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.lead {
  margin: 0 0 28px;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  color: #2e3450;
}

.form-alert {
  margin-bottom: 16px;
  color: var(--error);
  font-size: 12px;
  line-height: 1.6;
}

.password-rule {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #8a8f9b;
}
.agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 14px;
  color: #222;
}

.agreement input {
  width: 18px;
  height: 18px;
  accent-color: #1e2440;
}

.auth-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 10px;
  color: #c2c4cb;
}

.auth-card-compact {
  width: min(100%, 480px);
  color: #000;
}

.auth-card-compact .header-logo-center img {
  display: block;
  width: 278px;
  max-width: 100%;
  height: auto;
}

.auth-title-compact {
  margin: 8px 0 40px;
  font-size: 24px;
}

.auth-footer-muted {
  color: #b7b7b7;
  font-size: 10px;
}

/* メールアドレス認証 */
.email-verification-page {
  padding-top: 116px;
}

.email-verification-title {
  font-size: 20px;
}

.email-verification-lead {
  margin: 0 0 12px;
  color: #1e2440;
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
}

.verification-code-field {
  width: 343px;
  max-width: 100%;
  margin: 0 auto;
}

.verification-code-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.verification-code-label span {
  margin-left: 2px;
  color: #ee3333;
}

.verification-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.verification-code-digit {
  width: 100%;
  height: 56px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  background: #f6f6f6;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  caret-color: #1e2440;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.verification-code-digit:focus {
  border-color: #1e2440;
  box-shadow: 0 0 0 1px #1e2440;
}

.verification-code-inputs.is-invalid .verification-code-digit {
  border-color: #ee3333;
}

.verification-code-inputs.is-invalid .verification-code-digit:focus {
  box-shadow: 0 0 0 1px #ee3333;
}

.verification-code-error {
  margin: 6px 7px 0;
  color: #ee3333;
  font-size: 12px;
  line-height: 1.5;
}

.verification-submit {
  width: 100%;
  height: 56px;
  margin-top: 23px;
  border-radius: 8px;
  background: #1e2440;
  font-size: 16px;
  font-weight: 700;
}

.verification-submit:disabled {
  opacity: 1;
  background: #d8d8d8;
  color: #b7b7b7;
}

.verification-text-button {
  display: block;
  width: auto;
  height: auto;
  margin: 36px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.verification-text-button:hover {
  text-decoration: underline;
}

.verification-text-button:active {
  transform: none;
}

.verification-separator {
  margin: 21px 0 20px;
  color: #898989;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.verification-back-link {
  display: block;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}

.verification-back-link:hover {
  color: #000;
  text-decoration: underline;
}

.email-verification-footer {
  margin-top: 50px;
}

@media (max-width: 560px) {
  .email-verification-page {
    padding: 48px 20px 32px;
  }

  .email-verification-title {
    margin-bottom: 28px;
  }

  .email-verification-lead {
    white-space: normal;
  }

  .verification-code-field {
    width: 100%;
  }

  .verification-code-inputs {
    gap: 6px;
  }

  .verification-code-digit {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 20px;
    line-height: 52px;
  }
}

/* 会員登録完了 */
.signup-complete-page {
  padding-top: 250px;
}

.signup-complete-card {
  text-align: center;
}

.signup-complete-title {
  font-size: 20px;
}

.signup-complete-message {
  margin: 0 0 24px;
  color: #1e2440;
  font-size: 14px;
  line-height: 1.6;
}

.signup-complete-login {
  width: 160px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1e2440;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, transform .1s ease;
}

.signup-complete-login:hover {
  background: #171c33;
  color: #fff;
}

.signup-complete-login:active {
  transform: translateY(1px);
}

.signup-complete-login:focus-visible {
  outline: 2px solid #1e2440;
  outline-offset: 3px;
}

.signup-complete-footer {
  margin-top: 40px;
}

@media (max-width: 560px) {
  .signup-complete-page {
    padding: 72px 20px 32px;
  }

  .signup-complete-title {
    margin-bottom: 32px;
  }
}

/* エラーページ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f8fc;
}

.error-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 24px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 92, 92, .11), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(30, 36, 64, .10), transparent 34%),
    linear-gradient(145deg, #fbfbfd 0%, #f2f4f9 100%);
}

.error-main::before,
.error-main::after {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(30, 36, 64, .08);
  border-radius: 50%;
  content: "";
}

.error-main::before {
  top: -100px;
  right: 8%;
}

.error-main::after {
  bottom: -150px;
  left: 5%;
  width: 320px;
  height: 320px;
}

.error-card {
  width: min(100%, 680px);
  padding: 34px 48px 40px;
  border: 1px solid rgba(30, 36, 64, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(30, 36, 64, .12);
  text-align: center;
  backdrop-filter: blur(12px);
}

.error-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #eceef3;
  color: #8a8f9b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

.error-status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d44b4b;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.error-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef5d5d;
  box-shadow: 0 0 0 5px rgba(239, 93, 93, .12);
}

.error-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 34px auto 20px;
  border: 1px solid rgba(239, 93, 93, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff6f6, #ffe8e8);
  color: #df5050;
  font-size: 32px;
  box-shadow: 0 12px 28px rgba(223, 80, 80, .14);
  transform: rotate(-3deg);
}

.error-icon i {
  transform: rotate(3deg);
}

.error-eyebrow {
  margin: 0 0 8px;
  color: #9b5c5c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.error-card h1 {
  margin: 0;
  color: #1e2440;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 750;
  letter-spacing: -.02em;
}

.error-message {
  margin: 18px 0 30px;
  color: #686e7c;
  font-size: 12px;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-button {
  min-width: 210px;
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.error-button:hover {
  transform: translateY(-2px);
}

.error-button-primary {
  background: #1e2440;
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 36, 64, .20);
}

.error-button-primary:hover {
  background: #2a3154;
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 36, 64, .25);
}

.error-button-secondary {
  height: auto;
  border-color: #dfe2ea;
  background: #fff;
  color: #343b59;
  box-shadow: none;
}

.error-button-secondary:hover {
  border-color: #cbd0dc;
  background: #f6f7fa;
}

.error-hint {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #eceef3;
  color: #9a9fac;
  font-size: 12px;
}

@media (max-width: 600px) {
  .error-main {
    padding: 36px 16px;
  }

  .error-card {
    padding: 24px 20px 28px;
    border-radius: 18px;
  }

  .error-status-label {
    display: none;
  }

  .error-status {
    justify-content: flex-end;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-button {
    width: 100%;
  }

  .error-message br {
    display: none;
  }
}

/* ダッシュボード共通レイアウト */
body.dashboard-sidebar-page {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
}

.dashboard-sidebar-page > .header,
.dashboard-sidebar-page > .footer {
  flex: 0 0 auto;
}

.container.dashboard-page-layout {
  flex: 1 0 0;
  display: grid;
  grid-template-columns: 384px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
}

.dashboard-page-layout > .sidebar {
  grid-column: 1;
  width: 384px;
  justify-self: stretch;
}

.dashboard-page-layout > .dashboard-page-content {
  grid-column: 2;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 80px;
}

.dashboard-page-header {
  margin-bottom: 24px;
}

.dashboard-page-header h1 {
  margin: 0 0 8px;
  color: #1e2440;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.dashboard-page-header p {
  margin: 0;
  color: #555d72;
  font-size: 14px;
  line-height: 22px;
}

/* ダッシュボードトップ */
.dashboard-home-layout > .dashboard-home-content {
  min-width: 0;
  max-width: none;
  padding: 80px;
}

.dashboard-home-title {
  margin: 0 0 22px;
  color: #1e2440;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.dashboard-home-domain {
  margin-bottom: 34px;
}

.dashboard-home-section {
  margin-top: 30px;
}

.dashboard-home-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #1e2440;
  font-size: 18px;
  font-weight: 750;
}

.dashboard-home-heading-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.dashboard-home-heading-icon img,
.dashboard-home-card-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.dashboard-home-domain .copy-box {
  min-height: 58px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #f4f4f5;
  color: #252b43;
  font-size: 14px;
}

.dashboard-home-domain .copy-button {
  color: #20263e;
}

.dashboard-home-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  color: #999da8;
  font-size: 12px;
  line-height: 1.7;
}

.dashboard-home-note i {
  margin-top: 3px;
}

.dashboard-home-card-grid {
  display: grid;
  gap: 12px;
}

.dashboard-home-test-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-home-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-home-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 118px;
  padding: 18px 42px 17px 16px;
  border: 1px solid #e2e5eb;
  border-radius: 13px;
  background: #fff;
  color: #1e2440;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-home-card:hover {
  border-color: #cbd0dc;
  color: #1e2440;
  box-shadow: 0 10px 26px rgba(30, 36, 64, .09);
  transform: translateY(-2px);
}

.dashboard-home-card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.dashboard-home-card-copy {
  min-width: 0;
  display: contents;
}

.dashboard-home-card-copy strong {
  grid-column: 2;
  margin: 3px 0 0;
  color: #1e2440;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-home-card-copy small {
  grid-column: 1 / -1;
  color: #596075;
  font-size: 12px;
  line-height: 22px;
}

.dashboard-home-card-arrow {
  position: absolute;
  top: 24px;
  right: 16px;
  color: #1e2440;
  font-size: 15px;
}

@media (max-width: 1180px) {
  .dashboard-home-test-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-layout > .dashboard-home-content {
    padding-right: 40px;
    padding-left: 40px;
  }
}

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

/* オーダーインテグレーションテスト */
.order-test-form-section {
  margin-bottom: 24px;
}

.order-test-form-section h2,
.order-test-execution > h2 {
  margin: 0 0 8px;
  color: #1e2440;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.order-test-form-help {
  margin: 0 0 8px;
  color: #1e2440;
  font-size: 14px;
  line-height: 22px;
}

.order-test-content .select-box {
  height: 56px;
  border: none;
  background: #f5f5f5;
  font-size: 16px;
}

.order-test-content .radio-grid {
  gap: 8px;
}

.order-test-two-column {
  grid-template-columns: repeat(2, minmax(0, 384px));
}

.order-test-cancel-grid {
  grid-template-columns: repeat(3, minmax(0, 384px));
}

.order-test-content .radio-card {
  min-height: 72px;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 16px 16px;
  border-color: #e5e5e5;
  border-radius: 8px;
}

.order-test-content .radio-ui {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  margin-top: 0;
}

.order-test-content .radio-title {
  font-size: 16px;
  line-height: 24px;
}

.order-test-content .radio-sub {
  color: #1e2440;
  font-size: 12px;
  line-height: 18px;
}

.order-test-delivery-grid .radio-content {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.order-test-delivery-grid .radio-sub {
  margin-top: 0;
  font-weight: 700;
}

.order-test-pattern-grid .radio-card {
  min-height: 132px;
}

.order-test-pattern-grid ul {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.order-test-pattern-grid li {
  margin: 1px 0;
}

.order-test-execution {
  margin-top: 24px;
}

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

.order-test-action-card-wrap {
  position: relative;
  min-width: 0;
  align-self: start;
}

.order-test-action-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #1e2440;
}

.order-test-action-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.order-test-action-card > p,
.order-test-card-action p,
.order-test-step p {
  margin: 0;
  color: #1e2440;
  font-size: 14px;
  line-height: 22px;
}

.order-test-simple-card {
  min-height: 264px;
}

.order-test-card-action {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e1e2e5;
}

.order-test-action-card button[type="submit"] {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  background: #1e2440;
  border-radius: 8px;
  font-size: 14px;
}

.order-test-action-card button[type="submit"]:not(:disabled):hover {
  background: #2b3357;
}

.order-test-action-card button[type="submit"]:disabled {
  background: #b7bccb;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.order-test-webhook-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid #d4d8e3;
  border-radius: 8px;
  background: #f7f8fc;
  color: #1e2440;
}

.order-test-webhook-overlay h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.order-test-webhook-overlay p {
  margin: 0;
  color: #1e2440;
  font-size: 14px;
  line-height: 22px;
}

.order-test-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border-radius: 8px;
  background: #1e2440;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.order-test-settings-button:hover {
  background: #2b3357;
  color: #fff;
}

.order-test-error-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0c4c4;
  border-radius: 6px;
  background: #fff3f3;
  color: var(--error);
  font-size: 12px;
  line-height: 18px;
}

.order-test-card-action .order-test-error-message,
.order-test-step .order-test-error-message {
  margin-top: 18px;
  color: var(--error);
}

.order-test-success-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #46af70;
  border-radius: 6px;
  background: #eef7f1;
  color: #338052;
  font-size: 12px;
  line-height: 18px;
}

.order-test-card-action .order-test-success-message,
.order-test-step .order-test-success-message {
  margin-top: 18px;
  color: #338052;
}

.order-test-flow-card {
  align-self: start;
}

.order-test-step {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e2e5;
}

.order-test-step h4 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  color: #1e2440;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.order-test-step h4 span {
  display: inline;
  width: auto;
  height: auto;
  border: none;
  font-size: 16px;
}

.order-test-step .copy-box {
  min-height: 56px;
  margin-top: 10px;
  border: none;
  background: #fff;
  font-size: 14px;
}

.order-test-note {
  margin-top: 8px !important;
  color: #999da7 !important;
  font-size: 12px !important;
}

@media (max-width: 1180px) {
  .order-test-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-test-cancel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .order-test-layout > .order-test-content {
    padding-right: 30px;
    padding-left: 30px;
  }

  .order-test-two-column,
  .order-test-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Webhook情報一覧 */
.dashboard-page-header-emphasis {
  color: #1e2440;
  font-weight: 700;
}

.webhook-table-wrap {
  overflow-x: auto;
}

.webhook-table {
  width: 100%;
  min-width: 560px;
  border: none;
  border-collapse: collapse;
}

.webhook-table th,
.webhook-table td {
  padding: 9px 16px;
  border: none;
  border-bottom: 1px solid #e1e2e5;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.webhook-table th {
  color: #555d72;
}

.webhook-page .webhook-table th {
  font-size: 12px;
}

.webhook-table tbody tr:last-child th,
.webhook-table tbody tr:last-child td {
  border-bottom: none;
}

.webhook-table tbody td:first-child {
  color: #1e2440;
  font-weight: 750;
}

/* 長いWebhook送信先URLで表を横に伸ばさず、会員情報画面と同様に折り返す */
.webhook-table tbody td:nth-child(2) {
  overflow-wrap: anywhere;
}

/* URL列の折り返しに幅を持っていかれて1列目が縦積みにならないよう、1列目は折り返さない */
.webhook-table th:first-child,
.webhook-table tbody td:first-child {
  white-space: nowrap;
}

.webhook-url-empty {
  color: #9aa0af;
}

.webhook-action-cell {
  width: 56px;
  text-align: center;
}

.webhook-edit-button {
  padding: 0;
  border: none;
  background: transparent;
  color: #1e2440;
  cursor: pointer;
}

.webhook-edit-button:hover {
  color: #2b3357;
}

.webhook-edit-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.webhook-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 36, 64, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.webhook-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.webhook-modal {
  width: 100%;
  max-width: 460px;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 36, 64, .18);
}

.webhook-modal h2 {
  margin: 0 0 14px;
  color: #1e2440;
  font-size: 17px;
  font-weight: 750;
}

.webhook-modal-divider {
  margin: 0 -22px 16px;
  border: none;
  border-top: 1px solid #e1e2e5;
}

.webhook-modal-function-name {
  margin: 0;
  color: #1e2440;
  font-size: 15px;
  font-weight: 400;
}

.webhook-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.webhook-modal-cancel,
.webhook-modal-save {
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.webhook-modal-cancel {
  border: 1px solid #d4d8e3;
  background: #fff;
  color: #1e2440;
}

.webhook-modal-cancel:hover {
  background: #f5f6f8;
}

.webhook-modal-save {
  border: none;
  background: #1e2440;
  color: #fff;
}

.webhook-modal-save:hover {
  background: #2b3357;
}

/* 店舗インテグレーションテスト */
.integration-form-section h2 {
  margin: 0 0 8px;
  color: #1e2440;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.integration-form-help {
  margin: 0 0 16px;
  color: #1e2440;
  font-size: 14px;
  line-height: 22px;
}

.integration-notice {
  margin: 16px 0 0;
  color: #999da7;
  font-size: 12px;
  line-height: 18px;
}

.integration-error-message {
  margin-top: 14px;
}

.integration-submit {
  margin-top: 24px;
  text-align: center;
}

.integration-submit button {
  width: 240px;
  max-width: 100%;
  padding: 0 24px;
}

.shop-integration-content {
  display: flex;
  flex-direction: column;
}

.dashboard-page-layout > .shop-integration-content {
  padding-bottom: 32px;
}

.shop-integration-content .integration-form-section,
.shop-integration-content .integration-form-section form {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-integration-content .integration-submit {
  margin-top: auto;
  padding-top: 24px;
}

/* メニューインテグレーションテスト */
.menu-integration-form-section {
  margin-bottom: 32px;
}

.order-test-header p,
.shop-integration-header p,
.menu-integration-header p {
  color: #1e2440;
}

.menu-integration-event-id {
  margin-bottom: 8px;
}

.menu-integration-event-id .field-label {
  margin-bottom: 8px;
}

.menu-integration-event-id .copy-box {
  background: #f5f6f8;
  border-color: #e5e7eb;
}

.menu-integration-status-label {
  margin: 20px 0 0;
}

.menu-integration-status-notice {
  margin: 4px 0 20px;
}

.menu-integration-footer {
  padding-top: 8px;
}

/* ダッシュボードSPメニュー */
.dashboard-mobile-menu {
  display: none;
}

/* ブランド・店舗一覧 */

.brand-shop-header-note,
.webhook-header-note {
  display: block;
}

.brand-shop-header-note {
  color: #999da7;
  font-size: 12px;
}

.webhook-header-note {
  font-size: 12px;
}

.brand-shop-group {
  padding: 24px 0;
  border-bottom: 1px solid #e1e2e5;
}

.brand-shop-group:first-of-type {
  padding-top: 0;
}

.brand-shop-group:last-of-type {
  border-bottom: none;
}

.brand-shop-code {
  color: #1e2440;
  font-size: 14px;
}

.brand-shop-token-input[type="password"] {
  font-size: 22px;
  letter-spacing: 2px;
}

.brand-shop-table th {
  font-size: 12px;
}

.brand-shop-table td {
  font-size: 14px;
}

/* ダッシュボード共通レスポンシブ */
@media (max-width: 980px) {
  .container.dashboard-settings-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .dashboard-settings-layout > .sidebar {
    width: 240px;
  }

  .dashboard-settings-layout > .dashboard-page-content {
    padding-right: 30px;
    padding-left: 30px;
  }

  .integration-radio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .container.dashboard-home-layout,
  .container.order-test-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .dashboard-home-layout > .sidebar,
  .order-test-layout > .sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .container.dashboard-page-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-page-layout > .sidebar,
  .dashboard-page-layout > .dashboard-page-content {
    grid-column: 1;
    width: 100%;
  }

  .dashboard-page-layout > .sidebar {
    grid-row: 1;
    min-height: auto;
  }

  .dashboard-page-layout > .dashboard-page-content {
    grid-row: 2;
    padding: 36px 18px 64px;
  }

  .dashboard-page-layout > .shop-integration-content {
    padding-bottom: 32px;
  }

  .dashboard-home-layout > .dashboard-home-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* ダッシュボードSPメニュー */
  .dashboard-sidebar-page .header {
    height: 76px;
  }

  .dashboard-sidebar-page .header-inner {
    padding: 0 24px;
  }

  .dashboard-sidebar-page .header-logo img {
    height: 21px;
  }

  .dashboard-sidebar-page .logout-link {
    display: none;
  }

  .dashboard-mobile-menu {
    position: absolute;
    z-index: 1160;
    top: 22px;
    right: 24px;
    width: 24px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e2440;
  }

  .dashboard-mobile-menu span {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .dashboard-sidebar-page.is-mobile-menu-open .dashboard-mobile-menu span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .dashboard-sidebar-page.is-mobile-menu-open .dashboard-mobile-menu span:nth-child(2) {
    opacity: 0;
  }

  .dashboard-sidebar-page.is-mobile-menu-open .dashboard-mobile-menu span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .dashboard-sidebar-page .dashboard-page-layout > .sidebar {
    display: none;
  }

  .dashboard-sidebar-page .container.dashboard-page-layout {
    padding-right: 0;
    padding-left: 0;
  }

  .dashboard-sidebar-page .dashboard-page-layout > .dashboard-page-content {
    grid-row: 1;
  }

  .dashboard-sidebar-page.is-mobile-menu-open {
    overflow: hidden;
  }

  .dashboard-sidebar-page.has-open-dashboard-modal {
    overflow: hidden;
  }

  .dashboard-sidebar-page.is-mobile-menu-open::before {
    position: fixed;
    z-index: 1140;
    inset: 76px 0 0;
    background: rgba(30, 36, 64, .45);
    content: "";
  }

  .dashboard-sidebar-page.is-mobile-menu-open .dashboard-page-layout > .sidebar {
    position: fixed;
    z-index: 1150;
    top: 76px;
    bottom: 0;
    left: 0;
    width: min(82vw, 320px);
    height: auto;
    display: flex;
    padding-bottom: 0;
    overflow-y: auto;
  }

  .dashboard-sidebar-page .sidebar-logout-link {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 18px 30px 26px;
    border-top: 1px solid #edf0f5;
    background: #fcfcfc;
    color: #1e2440;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .dashboard-sidebar-page .sidebar-logout-link:hover {
    background: #eef2ff;
  }

  /* Webhook情報一覧 */
  .webhook-layout > .webhook-content {
    padding: 28px 20px 56px;
  }

  .webhook-page .webhook-layout {
    min-height: auto;
  }

  .webhook-header {
    margin-bottom: 28px;
  }

  .webhook-header h1 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.35;
  }

  .webhook-header p {
    color: #888;
    font-size: 12px;
    line-height: 1.55;
  }

  .webhook-header .dashboard-page-header-emphasis {
    display: block;
    margin-bottom: 4px;
    color: #1e2440;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
  }

  .webhook-page .webhook-table-wrap {
    margin-top: 0;
  }

  .webhook-page .dashboard-stacked-table tbody td:nth-child(2),
  .webhook-page .webhook-url-empty {
    color: #000;
  }

  /* ブランド・店舗一覧 */

  .brand-shop-layout > .brand-shop-content {
    padding: 28px 20px 56px;
  }

  .brand-shop-header {
    margin-bottom: 28px;
  }

  .brand-shop-header h1 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.35;
  }

  .brand-shop-header p {
    color: #888;
    font-size: 12px;
    line-height: 1.55;
  }

  .brand-shop-header .dashboard-page-header-emphasis {
    display: block;
    margin-bottom: 4px;
    color: #1e2440;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
  }

  .brand-shop-group {
    padding: 28px 0 28px;
  }

  .brand-shop-group:first-of-type {
    padding-top: 0;
  }

  .brand-shop-group:last-of-type {
    padding-bottom: 0;
  }

  .brand-shop-group .field {
    margin-bottom: 18px;
  }

  .brand-shop-group .field-label {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .brand-shop-code {
    font-size: 16px;
    font-weight: 400;
  }

  .brand-shop-group .input-shell {
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #f5f5f5;
  }

  /* SP用縦積みテーブル */
  .dashboard-stacked-table-wrap {
    overflow: visible;
  }

  .dashboard-stacked-table {
    min-width: 0;
    display: block;
  }

  .dashboard-stacked-table thead {
    display: none;
  }

  .dashboard-stacked-table tbody {
    display: grid;
    gap: 32px;
  }

  .dashboard-stacked-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
      "shop action"
      "linkage action";
    align-items: center;
    padding: 0 8px;
  }

  .dashboard-stacked-table.table > tbody > tr > td {
    display: block;
    padding: 0;
    border: 0;
  }

  .dashboard-stacked-table tbody td:first-child {
    grid-area: shop;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
  }

  .dashboard-stacked-table tbody td:nth-child(2) {
    grid-area: linkage;
    min-width: 0;
    margin-top: 4px;
    color: #1e2440;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .dashboard-stacked-table .webhook-action-cell {
    grid-area: action;
    width: 32px;
  }

  .dashboard-stacked-edit-button {
    width: 32px;
    height: 40px;
    display: grid;
    place-items: center;
  }

  .dashboard-stacked-edit-button .webhook-edit-icon {
    width: 16px;
    height: 16px;
  }

  .brand-shop-table-wrap {
    margin-top: 28px;
  }

  .dashboard-sidebar-page .footer-inner {
    padding: 32px 24px 28px;
  }

  .dashboard-sidebar-page .footer-logo img {
    height: 24px;
  }

  .dashboard-sidebar-page .footer-divider {
    margin: 24px 0;
  }

  .dashboard-sidebar-page .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .dashboard-sidebar-page .footer-links {
    gap: 8px 12px;
  }

  .dashboard-sidebar-page .footer-links a,
  .dashboard-sidebar-page .footer-copyright {
    font-size: 11px;
  }

  /* ダッシュボード共通ボトムシート */
  .dashboard-bottom-sheet-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, .45);
  }

  .dashboard-bottom-sheet {
    max-width: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    transform: translateY(24px);
    transition: transform .2s ease;
  }

  .dashboard-bottom-sheet-overlay.is-open .dashboard-bottom-sheet {
    transform: translateY(0);
  }

  .dashboard-bottom-sheet::before {
    width: 40px;
    height: 4px;
    display: block;
    margin: 13px auto 18px;
    border-radius: 4px;
    background: #ccc;
    content: "";
  }

  .dashboard-bottom-sheet h2 {
    margin: 0;
    padding: 0 16px 18px;
    color: #000;
    font-size: 24px;
    line-height: 1.5;
  }

  .dashboard-bottom-sheet > .webhook-modal-divider {
    margin: 0;
  }

  .dashboard-bottom-sheet-form {
    padding-top: 20px;
  }

  .dashboard-bottom-sheet-form .field {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .dashboard-bottom-sheet-form .dashboard-bottom-sheet-label-field {
    margin-bottom: 10px;
  }

  .dashboard-bottom-sheet-form .field-label {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .dashboard-bottom-sheet-form .webhook-modal-function-name {
    color: #000;
    font-size: 16px;
  }

  .dashboard-bottom-sheet-form .input-shell {
    height: 56px;
    border: 0;
    border-radius: 8px;
    background: #f5f5f5;
  }

  .dashboard-bottom-sheet-form .input-box {
    color: #000;
    font-size: 16px;
  }

  .dashboard-bottom-sheet-form .dashboard-bottom-sheet-input-field {
    margin-bottom: 0;
  }

  .dashboard-bottom-sheet-actions-divider {
    margin: 14px 0 0;
  }

  .dashboard-bottom-sheet .webhook-modal-actions {
    gap: 8px;
    margin: 11px 16px 16px;
  }

  .dashboard-bottom-sheet .webhook-modal-cancel,
  .dashboard-bottom-sheet .webhook-modal-save {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
  }

  .dashboard-bottom-sheet .webhook-modal-cancel {
    background: #f5f5f5;
    color: #000;
  }
}

.brand-shop-modal h2 {
  font-size: 20px;
}

.brand-shop-modal .field-label,
.brand-shop-modal .webhook-modal-function-name,
.brand-shop-modal .input-box {
  font-size: 14px;
}

.webhook-page .webhook-modal h2 {
  font-size: 20px;
}

.webhook-page .webhook-modal .field-label,
.webhook-page .webhook-modal .webhook-modal-function-name,
.webhook-page .webhook-modal .input-box {
  font-size: 14px;
}

/* 会員情報 */
.account-page-header .account-page-title {
  margin: 0 0 12px;
  color: #1e2440;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.account-page-header .account-page-lead {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.8;
  color: #1e2440;
}

.account-info-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.account-info-row:first-child {
  border-top: 1px solid #e5e7eb;
}

.account-info-label {
  width: 140px;
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e2440;
}

.account-info-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  color: #2e3450;
  overflow-wrap: anywhere;
}

.account-info-row .webhook-edit-button {
  flex-shrink: 0;
}

.account-info-edit {
  padding: 8px;
  border: none;
  background: transparent;
  color: #1e2440;
  cursor: pointer;
}

.account-info-edit:hover {
  color: #2b3357;
}

.account-info-edit i {
  font-size: 18px;
}

.account-form-wrap {
  width: 100%;
}

.account-submit-button {
  display: block;
  width: 320px;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0 32px;
}

.account-email-change-page .field-label {
  font-size: 14px;
}

#passwordChangeForm > .field .field-label {
  font-size: 14px;
}

#passwordChangeForm .password-rule {
  font-size: 12px;
}

.account-email-change-page .account-submit-button:disabled {
  opacity: 1;
  background: #d8d8d8;
  color: #b7b7b7;
}

.account-error-message {
  width: 320px;
  max-width: 100%;
  margin: 16px auto 0;
}

.account-form-wrap .field-error {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #f0c4c4;
  border-radius: 6px;
  background: #fff3f3;
  color: var(--error);
  font-size: 12px;
  line-height: 1.6;
}

.account-email-verify-page .field-error,
.account-password-change-page .field-error,
.account-email-verify-page .account-error-message,
.account-password-change-page .account-error-message {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--error);
}

.otp-section .field-error {
  width: 328px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

@media (max-width: 768px) {
  .account-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
      "label action"
      "value action";
    align-items: center;
    gap: 6px 16px;
  }

  .account-info-label {
    grid-area: label;
    width: auto;
  }

  .account-info-value {
    grid-area: value;
  }

  .account-info-row .webhook-edit-button {
    grid-area: action;
  }
}

/* 認証コード入力(OTP) */
.otp-section {
  text-align: center;
}

.otp-section .field-label,
#emailVerifyForm > .field .field-label {
  font-size: 14px;
}

.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 24px;
}

.otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f5f6f8;
}

.otp-box.input-shell-error {
  border-color: var(--error);
}

.resend-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #1e2440;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
