@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap");

body.index-landing-page {
  --index-shell-width: 1360px;
  background:
    radial-gradient(circle at 88% 14%, rgba(77, 184, 233, 0.14), rgba(77, 184, 233, 0) 30%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 70%, #e7edf5 100%);
}

body.index-landing-page .shell {
  min-height: 100vh;
}

body.index-landing-page .content {
  max-width: none;
  width: 100%;
  padding: 0;
  height: auto;
  overflow: visible;
  display: block;
}

body.index-landing-page #app {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.index-landing-page #alert {
  margin: 12px auto 0;
  max-width: 1120px;
}

body.index-landing-page .bottom-nav {
  display: none;
}

.index-landing {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #12233b;
  font-family: "Manrope", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

.index-header {
  width: 100%;
}

.index-auth-row {
  width: 100%;
  padding: 10px 0 4px;
}

.index-auth-inner {
  max-width: var(--index-shell-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
}

.index-topbar {
  max-width: var(--index-shell-width);
  margin: 0 auto;
  padding: 8px 40px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
}

.index-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.index-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(140deg, #1f6dd7, #2f9ce7);
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(31, 109, 215, 0.26);
}

.index-brand-text {
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.index-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  background: #1b8f76;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.index-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ff9729;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.index-top-divider {
  width: 100%;
  border-bottom: 1px solid #c9d1dc;
}

.index-main-grid {
  max-width: var(--index-shell-width);
  margin: 0 auto;
  padding: 42px 40px 20px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(500px, 0.9fr);
  gap: 54px;
  width: 100%;
  flex: 1 0 auto;
}

.index-copy-column {
  max-width: 860px;
}

.index-copy-column p {
  margin: 0 0 12px;
  font-size: clamp(16px, 1.03vw, 20px);
  line-height: 1.45;
}

.index-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.index-store-badge {
  min-width: 180px;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0b0f15;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(7, 15, 24, 0.18);
}

.index-store-badge:hover {
  text-decoration: none;
}

.index-right-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.index-menu-bar {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 66px;
  position: static;
}

.index-nav-link {
  color: #0f294a;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.index-nav-link:hover {
  text-decoration: underline;
}

.index-menu-title::-webkit-details-marker,
.index-submenu-title::-webkit-details-marker {
  display: none;
}

.index-menu-caret {
  color: #386188;
  font-size: 0.65em;
}

.index-menu-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #f9fcff;
  border: 1px solid #cbd9e8;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(16, 44, 77, 0.16);
  z-index: 40;
}

.index-menu-list a,
.index-submenu-title {
  color: #0f294a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.index-menu-list a:hover,
.index-submenu-title:hover {
  text-decoration: underline;
}

.index-submenu {
  margin: 0;
  position: relative;
}

.index-submenu-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.index-submenu-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 10px;
  display: grid;
  gap: 5px;
  border-left: 2px solid rgba(56, 97, 136, 0.2);
}

.index-hero-circle {
  justify-self: center;
  width: min(78%, 500px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid #36afe5;
  overflow: hidden;
  margin: 4px 0 0;
  box-shadow: 0 20px 42px rgba(30, 83, 129, 0.18);
  background: #dfe8f3;
}

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

.index-bottom-strip {
  margin-top: auto;
  background: #dff1ff;
  width: 100%;
  height: 72px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.index-bottom-strip p {
  margin: 0;
  font-size: clamp(14px, 0.9vw, 16px);
}

.index-edit-trigger {
  min-width: 96px;
}

.index-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
}

.index-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.index-editor-dialog {
  position: relative;
  width: min(680px, calc(100vw - 26px));
  margin: 56px auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d8e4f4;
  box-shadow: 0 18px 42px rgba(15, 35, 60, 0.26);
  padding: 20px 20px 16px;
}

.index-editor-dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
}


.index-admin-editor {
  width: min(var(--index-shell-width), calc(100% - 80px));
  margin: 18px auto 8px;
  padding: 18px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(19, 51, 87, 0.12);
}

.index-admin-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.index-admin-editor-kicker {
  margin: 0 0 3px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.index-admin-editor h2 {
  margin: 0;
  font-size: 22px;
}

.index-admin-editor-form {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 10px 14px;
}

.index-admin-editor-form label {
  padding-top: 10px;
  color: #263d59;
  font-size: 13px;
  font-weight: 700;
}

.index-admin-editor-form input,
.index-admin-editor-form textarea {
  width: 100%;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  background: #fff;
  color: #12233b;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}

.index-admin-editor-form textarea {
  min-height: 190px;
  resize: vertical;
}

.index-admin-editor-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.index-admin-editor-close {
  flex: 0 0 auto;
}
@media (max-width: 1320px) {
  .index-auth-inner,
  .index-topbar,
  .index-main-grid {
    padding-left: 28px;
    padding-right: 28px;
  }

  .index-topbar {
    grid-template-columns: auto 1fr;
  }

  .index-menu-bar {
    justify-self: end;
    gap: 28px;
  }

  .index-main-grid {
    grid-template-columns: 1fr;
  }

  .index-copy-column p {
    font-size: clamp(15px, 1.2vw, 18px);
  }
}

@media (max-width: 780px) {
  .index-auth-row {
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .index-topbar {
    padding-top: 6px;
    padding-bottom: 6px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "menu";
    gap: 8px;
  }

  .index-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .index-brand-text {
    font-size: clamp(16px, 4.6vw, 20px);
    white-space: normal;
    line-height: 1.2;
  }

  .index-login-link,
  .index-signup-btn {
    font-size: 13px;
  }

  .index-signup-btn {
    min-height: 32px;
    padding: 0 12px;
  }

  .index-main-grid {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .index-menu-bar {
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .index-nav-link {
    width: calc(50% - 6px);
  }

  .index-store-badge {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .index-bottom-strip p {
    font-size: 13px;
  }
}

@media (max-width: 780px) {
  body.index-landing-page {
    background:
      linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(235, 242, 250, 0.98)),
      radial-gradient(circle at 80% 20%, rgba(54, 175, 229, 0.2), rgba(54, 175, 229, 0) 34%);
  }

  body.index-landing-page .shell {
    min-height: 100dvh;
  }

  body.index-landing-page #alert {
    width: calc(100% - 24px);
    margin-top: 8px;
  }

  .index-auth-inner,
  .index-topbar,
  .index-main-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .index-top-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .index-topbar {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .index-brand {
    gap: 10px;
  }

  .index-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .index-brand-text {
    font-size: 18px;
    line-height: 1.25;
  }

  .index-menu-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .index-nav-link {
    width: auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(55, 95, 136, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
  }

  .index-main-grid {
    padding-top: 14px;
    padding-bottom: 18px;
    gap: 18px;
  }

  .index-copy-column {
    max-width: none;
  }

  .index-copy-column p {
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.48;
  }

  .index-right-column {
    order: -1;
    justify-items: center;
  }

  .index-hero-circle {
    width: min(72vw, 260px);
    border-width: 3px;
    margin-top: 2px;
  }

  .index-store-badges {
    gap: 10px;
    margin-top: 18px;
  }

  .index-store-badge {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .index-bottom-strip {
    min-height: 58px;
    height: auto;
    padding: 12px 14px;
  }

  .index-bottom-strip p {
    line-height: 1.35;
  }

  .index-admin-editor {
    width: calc(100% - 24px);
    margin: 10px auto 4px;
    padding: 14px;
  }

  .index-admin-editor-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .index-admin-editor h2 {
    font-size: 20px;
  }

  .index-admin-editor-close {
    width: 100%;
    justify-content: center;
  }

  .index-admin-editor-form {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .index-admin-editor-form label {
    padding-top: 4px;
  }

  .index-admin-editor-form input,
  .index-admin-editor-form textarea {
    font-size: 16px;
    padding: 10px;
  }

  .index-admin-editor-form textarea {
    min-height: 210px;
  }

  .index-admin-editor-actions {
    grid-column: 1;
    flex-direction: column;
  }

  .index-admin-editor-actions > * {
    width: 100%;
    justify-content: center;
  }

  .index-landing--editor-mode .index-main-grid {
    padding-top: 12px;
  }
}

/* Landing header without menu/store CTAs. */
.index-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.index-top-actions {
  justify-self: end;
}

.index-auth-row,
.index-auth-inner,
.index-menu-bar,
.index-store-badges {
  display: none;
}

@media (max-width: 780px) {
  .index-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: 10px;
    align-items: center;
  }

  .index-brand {
    min-width: 0;
  }

  .index-top-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .index-login-link,
  .index-signup-btn {
    min-height: 30px;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 12px;
  }
}
/* Landing auth row below logo. */
.index-auth-row,
.index-auth-inner {
  display: flex;
}

.index-auth-row {
  width: 100%;
  padding: 0 0 8px;
}

.index-auth-inner {
  width: 100%;
  max-width: var(--index-shell-width);
  margin: 0 auto;
  padding: 0 40px;
  justify-content: flex-end;
}

.index-topbar {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 4px;
}

.index-top-actions {
  justify-self: auto;
}

@media (max-width: 1320px) {
  .index-auth-inner {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 780px) {
  .index-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 2px;
  }

  .index-auth-row {
    padding-bottom: 8px;
  }

  .index-auth-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .index-top-actions {
    width: auto;
    margin-left: auto;
  }
}