html,
body {
  margin: 0;
  padding: 0;
  background: #f4f3f1;
  color: #222;
  font-family: Arial, sans-serif;
}

.monogram-page {
  width: 100%;
  max-width: 100%;
  padding: 0 12px; /* ←これが重要 */
  box-sizing: border-box;
}

.monogram-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.monogram-hero {
  text-align: center;
  margin-bottom: 34px;
}



.monogram-brand {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.monogram-tagline {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8a817b;
}

.monogram-builder {
  margin-bottom: 40px;
}

.monogram-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.monogram-field label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #a09993;
  letter-spacing: 0.02em;
}

.monogram-select {
  width: 100%;
  height: 90px;
  border: 1px solid #ddd5cd;
  border-radius: 24px;
  background: #f8f7f5;
  color: #111;
  font-size: 28px;
  text-align: center;
  text-align-last: center;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  padding: 0 16px;
}

.monogram-next-btn {
  width: 100%;
  margin-top: 28px;
  height: 92px;
  border: none;
  border-radius: 999px;
  background: #161312;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.monogram-status {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.favorite-section-line {
  height: 1px;
  background: #ddd6ce;
  margin-bottom: 26px;
}

.favorite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.favorite-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favorite-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #222;
}

.favorite-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.favorite-count {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #a09993;
}

.favorite-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.favorite-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: #777;
}

.favorite-card {
  position: relative;
}

.favorite-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 28px;
  padding: 0;
  background: #ece9e4;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  display: block;
}

.favorite-thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.favorite-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid #e4ddd5;
  border-radius: 999px;
  background: #fff;
  color: #8d857f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  z-index: 3;
}
.monogram-hero {
  position: relative;
}

/* ★ ここを完全に置き換え */
.monogram-home-btn {
  position: absolute;
  top: 24px;
  left: 24px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

/* アイコン統一 */
.monogram-home-btn {
  width: 18px;
  height: 18px;
  fill: #ffffff; /* ← topbarと統一 */
}


@media (max-width: 640px) {
  .monogram-page {
    padding: 22px 16px 40px;
  }

  .monogram-brand {
    font-size: 24px;
  }

  .monogram-tagline {
    font-size: 12px;
    margin-top: 4px;
  }

  .monogram-form-grid {
    gap: 14px;
  }

  .monogram-select {
    height: 72px;
    font-size: 24px;
    border-radius: 20px;
  }

  .monogram-next-btn {
    height: 76px;
    font-size: 18px;
    margin-top: 22px;
  }

  .favorite-header {
    margin-bottom: 18px;
  }

  .favorite-title {
    font-size: 16px;
  }

  .favorite-clock {
    font-size: 22px;
  }

  .favorite-gallery {
    gap: 16px;
  }

  .favorite-thumb {
    border-radius: 22px;
  }

  .favorite-delete-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    top: 8px;
    right: 8px;
  }
}

.adsense-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}