/* ===============================
   Base
=============================== */
* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: #EFEDE8;
  color: #e2725b;
}

/* ===============================
   Header
=============================== */
.header {
  position: relative;
  text-align: center;
  padding: 24px 12px;
}

.subtitle {
  opacity: 0.7;
  font-size: 14px;
}

/* ===============================
   Layout
=============================== */
.container {
  max-width: 900px;
  margin: auto;
  padding: 16px;
}

/* ===============================
   Buttons
=============================== */
.draw-btn,
.share-btn {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #e2725b;
  color: #fff;
  cursor: pointer;
}

.draw-btn:hover,
.share-btn:hover {
  opacity: 0.9;
}

/* ? help button */
.help-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e2725b;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ===============================
   Result / History Cards
=============================== */
.result-card,
.history-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.item {
  font-size: 14px;
}

.item span {
  display: block;
  font-size: 11px;
  opacity: 0.6;
}

.item.color {
  grid-column: 1 / -1;
}

/* ===============================
   Color Palette
=============================== */
.colors {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.color-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===============================
   History
=============================== */
.history {
  margin-top: 32px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: center; /* ← 追加 */
  gap: 8px;
  margin: 24px 0 12px;     /* 上下余白も少し整える */
  text-align: center;
}

.history-card {
  margin-bottom: 12px;
  position: relative;
}

.history-card button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #6d8e23;
  cursor: pointer;
}

/* ===============================
   Advertisement Area
=============================== */
.ad-area {
  margin: 24px 0 16px;
  padding: 8px;
  min-height: 70px;
  background: #f7f6f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-dummy {
  text-align: center;
  color: #e2725b;
  opacity: 0.5;
  font-size: 12px;
}

.ad-dummy span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

/* ===============================
   Modal
=============================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  color: #e2725b;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 12px;
}

.modal-content ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.modal-content ul.en {
  font-size: 13px;
  opacity: 0.7;
}

/* close button */
.modal-close,
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #e2725b;
}

/* ===============================
   Footer
=============================== */
.footer {
  text-align: center;
  padding: 24px;
  opacity: 0.4;
  font-size: 12px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}


/* ARTILOTとは？ ヘッダー */
.about-header {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央寄せ */
  gap: 8px;
  margin: 24px 0 8px;
}

/* タイトルを少し小さく */
.about-header h2 {
  font-size: 18px;      /* ← ここがポイント */
  font-weight: 600;
  margin: 0;
}

/* ? ボタン微調整 */
.about-header .help-btn {
  width: 24px;
  height: 24px;
  font-size: 13px;
  line-height: 1;
}

/* ===============================
   head text
=============================== */

.howto {
  text-align: center;
  line-height: 1.7;
  margin: 16px 0 24px;
}
