*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background-color: #0a0a0f;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
}
@media (max-width: 639px) {
  h1 {
    font-size: 1.5rem;
  }
}

h2 {
  font-size: 1.5rem;
}
@media (max-width: 639px) {
  h2 {
    font-size: 1.25rem;
  }
}

a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #c084fc;
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

ul, ol {
  list-style-position: inside;
}

img, canvas {
  max-width: 100%;
  display: block;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

::selection {
  background-color: #7c3aed;
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #12121a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ad-placeholder {
  background: #1a1a25;
  border: 1px dashed #2a2a35;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: #606070;
  font-size: 0.875rem;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
@media (max-width: 639px) {
  .app {
    padding: 0.5rem;
  }
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #2a2a35;
  margin-bottom: 1.5rem;
}
@media (max-width: 639px) {
  .header {
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
}
.header__title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}
@media (max-width: 639px) {
  .header__title {
    font-size: 1.5rem;
  }
}
.header__ad {
  width: 100%;
  max-width: 728px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 639px) {
  .main {
    gap: 1rem;
  }
}

.canvas {
  width: 100%;
  display: flex;
  justify-content: center;
}
.canvas__wrapper {
  background: #16161f;
  border: 2px solid #3a3a50;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
  overflow: hidden;
}
@media (max-width: 639px) {
  .canvas__wrapper {
    width: 100%;
    padding: 0.25rem;
  }
}
.canvas__area {
  display: block;
  background-color: #9bbc0f;
  cursor: crosshair;
  touch-action: none;
}
@media (max-width: 639px) {
  .canvas__area {
    width: 100%;
    height: auto;
  }
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #12121a;
  border-radius: 12px;
  border: 1px solid #2a2a35;
}
.toolbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: #1a1a25;
  border-radius: 8px;
  color: #a0a0b0;
  transition: all 0.15s ease;
  min-width: 70px;
}
.toolbar__btn:hover {
  background: #16161f;
  color: #ffffff;
  transform: translateY(-2px);
}
.toolbar__btn--active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}
.toolbar__btn--active:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
@media (max-width: 639px) {
  .toolbar__btn {
    padding: 0.5rem;
    min-width: 60px;
  }
}
.toolbar__icon {
  font-size: 1.25rem;
}
.toolbar__label {
  font-size: 0.75rem;
  font-weight: 500;
}

.palette {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #12121a;
  border-radius: 12px;
  border: 1px solid #2a2a35;
}
@media (max-width: 639px) {
  .palette {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}
.palette__label {
  font-size: 0.875rem;
  color: #a0a0b0;
  font-weight: 500;
}
.palette__colors {
  display: flex;
  gap: 0.5rem;
}
.palette__color {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.palette__color:hover {
  transform: scale(1.1);
}
.palette__color--selected {
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transform: scale(1.1);
}
@media (max-width: 639px) {
  .palette__color {
    width: 40px;
    height: 40px;
  }
}
.palette__name {
  font-size: 0.875rem;
  color: #a855f7;
  font-weight: 600;
}
.palette__selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.palette__selector:hover {
  background: rgba(124, 58, 237, 0.2);
}
.palette__arrow {
  font-size: 0.75rem;
  color: #606070;
  transition: transform 0.15s ease;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
@media (max-width: 639px) {
  .controls {
    gap: 0.5rem;
    width: 100%;
  }
}
.controls__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.15s ease;
}
@media (max-width: 639px) {
  .controls__btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
.controls__btn--gacha {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0a0f;
}
.controls__btn--gacha:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.controls__btn--save {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}
.controls__btn--save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.controls__btn--twitter {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #ffffff;
}
.controls__btn--twitter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.controls__btn--bluesky {
  background: linear-gradient(135deg, #0085ff, #0066cc);
  color: #ffffff;
}
.controls__btn--bluesky:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 133, 255, 0.4);
}
.controls__icon {
  font-size: 1.25rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #2a2a35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 639px) {
  .footer {
    padding-top: 1.5rem;
    gap: 1rem;
  }
}
.footer__guide {
  width: 100%;
  max-width: 600px;
  background: #12121a;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #2a2a35;
}
@media (max-width: 639px) {
  .footer__guide {
    padding: 1rem;
  }
}
.footer__guide-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
}
.footer__guide-list {
  color: #a0a0b0;
  font-size: 0.875rem;
  line-height: 1.75;
}
.footer__guide-list li {
  margin-bottom: 0.25rem;
}
.footer__ad {
  width: 100%;
  max-width: 728px;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__link {
  font-size: 0.875rem;
  color: #606070;
}
.footer__link:hover {
  color: #a855f7;
}
.footer__copyright {
  font-size: 0.75rem;
  color: #606070;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal--open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal__content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: #12121a;
  border-radius: 16px;
  border: 1px solid #2a2a35;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.modal--open .modal__content {
  transform: scale(1);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #2a2a35;
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
}
.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #606070;
  transition: all 0.15s ease;
}
.modal__close:hover {
  background: #1a1a25;
  color: #ffffff;
}
.modal__body {
  padding: 1rem;
  overflow-y: auto;
  max-height: 60vh;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.palette-item:hover {
  background: #1a1a25;
}
.palette-item--active {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid #7c3aed;
}
.palette-item__colors {
  display: flex;
  gap: 0.25rem;
}
.palette-item__color {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.palette-item__name {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.section-content {
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #12121a;
  border-radius: 12px;
  border: 1px solid #2a2a35;
}
@media (max-width: 639px) {
  .section-content {
    padding: 1rem;
    margin-top: 1.5rem;
  }
}
.section-content__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2a2a35;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.section-content__text {
  font-size: 1rem;
  color: #a0a0b0;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.section-content__body h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.section-content__body p {
  font-size: 1rem;
  color: #a0a0b0;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #a0a0b0;
}
.feature-list li {
  margin-bottom: 0.25rem;
  line-height: 1.75;
}
.feature-list strong {
  color: #ffffff;
  font-weight: 600;
}

.palette-showcase {
  margin-top: 1rem;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
@media (max-width: 639px) {
  .palette-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }
}

.showcase-item {
  background: #1a1a25;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #2a2a35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease;
}
.showcase-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.showcase-item__preview {
  display: flex;
  gap: 4px;
}
.showcase-item__color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.showcase-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.update-log {
  list-style: none;
  padding: 0;
}
.update-log__item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a35;
}
.update-log__item:last-child {
  border-bottom: none;
}
@media (max-width: 639px) {
  .update-log__item {
    gap: 0.25rem;
  }
}
.update-log__date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #a855f7;
  min-width: 100px;
}
.update-log__desc {
  font-size: 1rem;
  color: #a0a0b0;
  line-height: 1.75;
}

/*# sourceMappingURL=styles.css.map */
