.support-collage-container {
  max-width: 1120px;
}
.support-intro {
  overflow: hidden;
  border: 1px solid #d5e6e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 69, 88, 0.08);
}
.support-intro__body {
  padding: 1.2rem 1.4rem;
}
.support-intro__title {
  margin: 0 0 0.45rem;
  color: #0d5c7a;
  font-size: 1.2rem;
}
.support-intro__description {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
}
.support-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.support-actions .tag-btn {
  min-height: 40px;
}
.support-generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid #d5e6e3;
  background: #fff;
  box-shadow: 0 14px 36px rgba(32, 69, 88, 0.09);
}
.support-stage-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 1.25rem;
  overflow: auto;
  background: #edf3f3;
}
#supportCanvas {
  display: block;
  width: min(100%, 1070px);
  height: auto;
  aspect-ratio: 1070/609;
  background: #dce8e6;
  box-shadow: 0 10px 28px rgba(15, 49, 60, 0.2);
  touch-action: auto;
  cursor: grab;
}
#supportCanvas.is-dragging {
  cursor: grabbing;
}
.support-control-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #bfd7d3;
  background: #fff;
  color: #17434b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.support-control-button:hover {
  border-color: #0f766e;
  background: #eef8f6;
}
.support-editor {
  border-left: 1px solid #d5e6e3;
  background: #fbfdfd;
}
.support-editor-section {
  padding: 1rem;
  border-bottom: 1px solid #e0ecea;
}
.support-editor-section h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: #153f48;
  font-size: 0.88rem;
}
.support-editor-section > p {
  margin: 0.6rem 0 0;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.55;
}
.support-file-button {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  overflow: hidden;
}
.support-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.support-image-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.support-image-controls .support-control-button {
  min-width: 0;
  padding: 0.55rem 0.35rem;
}
.support-customize-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.support-customize-heading h2 {
  margin: 0.35rem 0 0;
  white-space: nowrap;
}
.support-collage-menu {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.18);
}
.support-collage-menu header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.support-collage-menu header span {
  display: block;
  color: #0f766e;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.support-collage-menu h2 {
  margin: 0.2rem 0 0;
  color: #123f49;
  font-size: 1.05rem;
}
.support-menu-all {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.support-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.support-menu-card {
  overflow: hidden;
  border: 1px solid #d5e6e3;
  border-radius: 15px;
  background: #fff;
  color: #123f49;
  text-decoration: none;
}
.support-menu-card.is-current {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}
.support-menu-preview {
  height: 125px;
  overflow: hidden;
  background: linear-gradient(135deg, #b8dcd6, #b9d8ea);
}
.support-menu-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.support-menu-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
}
.support-menu-card strong {
  font-size: 0.8rem;
}
.support-menu-card small {
  color: #0f766e;
  font-weight: 700;
}
.support-menu-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(32, 69, 88, 0.09);
}
.support-menu-card.is-current {
  border: 0;
  box-shadow: 0 8px 24px rgba(32, 69, 88, 0.09);
}
.support-menu-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.support-menu-card .collage-menu-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 16/9;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #e8f4f4, #d8e8f5);
  color: #123f49;
  text-align: center;
}
.support-menu-card .collage-menu-placeholder b {
  padding: 0.2rem 0.35rem;
  background: #0f766e;
  color: #fff;
  font-size: 0.6rem;
}
.support-menu-card .collage-menu-placeholder strong {
  font-size: 0.85rem;
  line-height: 1.2;
}
@media (max-width: 780px) {
  .support-generator {
    grid-template-columns: 1fr;
  }
  .support-editor {
    border-left: 0;
    border-top: 1px solid #d5e6e3;
  }
  .support-stage-wrap {
    padding: 0.5rem;
  }
  .support-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .support-menu-card {
    min-width: 0;
    border-radius: 11px;
  }
}

.support-display-controls {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}
.support-rarity-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 0.55rem;
  color: #153f48;
  font-size: 0.78rem;
  font-weight: 700;
}
.support-rarity-control > span {
  text-align: right;
  white-space: nowrap;
}
.support-rarity-control > div {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  justify-content: end;
  gap: 4px;
}
.support-rarity-control button {
  min-height: 28px;
  border: 1px solid #bfd7d3;
  border-radius: 7px;
  background: #fff;
  color: #65767b;
  font:
    800 0.68rem "Noto Sans JP",
    sans-serif;
  cursor: pointer;
}
.support-rarity-control button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}
.support-placement-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 0.55rem;
  color: #153f48;
  font-size: 0.78rem;
  font-weight: 700;
}
.support-placement-control > span {
  text-align: right;
  white-space: nowrap;
}
.support-placement-control > div {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  justify-content: end;
  gap: 4px;
}
.support-placement-control button {
  min-height: 28px;
  border: 1px solid #bfd7d3;
  border-radius: 7px;
  background: #fff;
  color: #65767b;
  font:
    800 0.68rem "Noto Sans JP",
    sans-serif;
  cursor: pointer;
}
.support-placement-control button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}
@font-face {
  font-family: "NoticeTextA";
  src: url("../../assets/fonts/NitalagoRuika-09.TTF?v=20260812")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
.support-stage-wrap {
  position: relative;
}
.support-stage-wrap:not(.has-photo)::after {
  content: "写真を追加してください";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 16px rgba(15, 49, 60, 0.12);
  color: #52636c;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
#supportCanvas {
  background: repeating-conic-gradient(#edf1f1 0 25%, #fff 0 50%) 50%/20px 20px;
}
.support-title-input {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cfe1de;
  border-radius: 8px;
  background: #fff;
  color: #153f48;
  font:
    500 0.82rem "Noto Sans JP",
    sans-serif;
}
.support-title-input:focus {
  outline: 0;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.support-photo-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 0.45rem;
}
.support-photo-buttons .support-file-button {
  min-width: 0;
}
.support-clipboard-button {
  width: 40px;
  padding: 0;
}
