:root {
  --pink-50: #fff5f9;
  --pink-100: #ffe4ef;
  --pink-200: #ffcfe1;
  --pink-300: #ffb3d0;
  --pink-500: #ff7fb0;
  --pink-600: #f45f97;
  --ink: #5a4650;
  --ink-soft: #8b7681;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(255, 127, 176, 0.18);
  --shadow-sm: 0 4px 14px rgba(255, 127, 176, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #fff0f6 0%, transparent 40%),
    radial-gradient(circle at 85% 5%, #fdf0ff 0%, transparent 35%),
    var(--pink-50);
  min-height: 100vh;
}

h1, h2, h3 { font-weight: 700; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-100);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pink-600);
  font-size: 19px;
}
.brand-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; }

.cart-btn {
  position: relative;
  border: none;
  background: var(--pink-500);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.15s;
}
.cart-btn:hover { transform: translateY(-2px); background: var(--pink-600); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--pink-600);
  border: 2px solid var(--pink-500);
  border-radius: 20px;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ---- ヒーロー ---- */
.hero {
  max-width: 1080px;
  margin: 28px auto 8px;
  padding: 0 20px;
}
.hero-content {
  background: linear-gradient(135deg, #ffffff 0%, var(--pink-100) 100%);
  border-radius: var(--radius);
  padding: 46px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-content::after {
  content: "🎀";
  position: absolute;
  right: -10px;
  bottom: -14px;
  font-size: 130px;
  opacity: 0.12;
  transform: rotate(-12deg);
}
.hero-eyebrow {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-500);
  font-size: 12px;
  margin: 0 0 10px;
}
.hero-title { font-size: 32px; margin: 0 0 14px; line-height: 1.4; }
.hero-lead { color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }
.hero-cta {
  display: inline-block;
  background: var(--pink-500);
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.15s;
}
.hero-cta:hover { transform: translateY(-2px); background: var(--pink-600); }

/* ---- カテゴリタブ ---- */
.category-nav {
  position: sticky;
  top: 71px;
  z-index: 20;
  background: rgba(255, 245, 249, 0.9);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  margin-top: 22px;
}
.category-tabs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab {
  border: 1.5px solid var(--pink-200);
  background: #fff;
  color: var(--ink-soft);
  padding: 8px 20px;
  border-radius: 40px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { border-color: var(--pink-300); color: var(--pink-600); }
.tab.active {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: #fff;
}

/* ---- 商品グリッド ---- */
.shop { max-width: 1080px; margin: 0 auto; padding: 20px 20px 60px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-thumb {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 68px;
  position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.card-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.price { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--pink-600); font-size: 18px; }
.add-btn {
  border: none;
  background: var(--pink-100);
  color: var(--pink-600);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  line-height: 1;
}
.add-btn:hover { background: var(--pink-200); transform: scale(1.08); }
.badge-ship {
  font-size: 10px;
  color: var(--ink-soft);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  border-radius: 20px;
  padding: 2px 8px;
  align-self: flex-start;
}

/* ---- フッター ---- */
.site-footer {
  background: linear-gradient(180deg, transparent, var(--pink-100));
  padding: 40px 20px 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}
.footer-brand { font-family: "Poppins", sans-serif; color: var(--pink-600); font-size: 18px; font-weight: 600; }
.footer-note { margin-top: 14px; font-size: 11px; opacity: 0.8; }

/* ---- オーバーレイ ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 70, 80, 0.35);
  backdrop-filter: blur(2px);
  z-index: 40;
}

/* ---- カートドロワー ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: #fff;
  z-index: 50;
  box-shadow: -10px 0 40px rgba(255, 127, 176, 0.2);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px;
  border-bottom: 1px solid var(--pink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h2 { margin: 0; font-size: 20px; color: var(--pink-600); }
.icon-btn {
  border: none;
  background: var(--pink-50);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--pink-100); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.cart-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pink-50); }
.cart-thumb {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 28px; flex-shrink: 0;
}
.cart-info { flex: 1; min-width: 0; }
.cart-info .n { font-size: 13px; font-weight: 700; }
.cart-info .p { font-size: 12px; color: var(--pink-600); font-family: "Poppins", sans-serif; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--pink-200);
  background: #fff; cursor: pointer; color: var(--pink-600); font-weight: 700; line-height: 1;
}
.qty span { font-size: 13px; min-width: 18px; text-align: center; }
.remove { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; align-self: flex-start; }
.remove:hover { color: var(--pink-600); }

.cart-foot { padding: 16px 20px 22px; border-top: 1px solid var(--pink-100); background: var(--pink-50); }
.note-label { font-size: 11px; color: var(--ink-soft); display: block; margin-bottom: 12px; }
.note-label textarea {
  width: 100%; margin-top: 5px; border: 1px solid var(--pink-200); border-radius: var(--radius-sm);
  padding: 8px 10px; font-family: inherit; font-size: 13px; resize: vertical; color: var(--ink);
}
.note-label textarea:focus { outline: 2px solid var(--pink-200); border-color: var(--pink-300); }
.cart-summary { margin-bottom: 10px; font-size: 13px; color: var(--ink-soft); }
.cart-summary > div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-weight: 700; border-top: 1px solid var(--pink-200); padding-top: 10px; }
.tax-note { text-align: right; font-size: 11px; color: var(--ink-soft); margin-bottom: 12px; }
.cart-total #cartTotal { font-family: "Poppins", sans-serif; font-size: 24px; color: var(--pink-600); }
.checkout-btn {
  width: 100%; border: none; background: var(--pink-500); color: #fff;
  padding: 15px; border-radius: 40px; font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s, transform 0.15s;
}
.checkout-btn:hover:not(:disabled) { background: var(--pink-600); transform: translateY(-1px); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.checkout-msg { font-size: 12px; text-align: center; margin: 10px 0 0; min-height: 16px; }
.checkout-msg.err { color: #e05575; }
.checkout-msg.info { color: var(--ink-soft); }

/* ---- 商品モーダル ---- */
.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  z-index: 50;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-thumb { aspect-ratio: 16 / 11; display: grid; place-items: center; font-size: 110px;
  border-radius: var(--radius) var(--radius) 0 0; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.modal-content { padding: 22px 26px 28px; }
.modal-content h2 { margin: 0 0 6px; font-size: 22px; }
.modal-price { font-family: "Poppins", sans-serif; font-size: 26px; color: var(--pink-600); font-weight: 600; margin: 0 0 14px; }
.modal-desc { color: var(--ink-soft); line-height: 1.8; font-size: 14px; margin: 0 0 22px; }
.modal-add {
  width: 100%; border: none; background: var(--pink-500); color: #fff;
  padding: 14px; border-radius: 40px; font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.15s;
}
.modal-add:hover { background: var(--pink-600); }

/* ---- トースト ---- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--pink-600);
  color: #fff;
  padding: 12px 26px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 指名バッジ / キャストタグ ---- */
.badge-cast {
  display: inline-block;
  background: var(--pink-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 20px;
  vertical-align: middle;
}
.cast-tag { font-size: 12px; color: var(--pink-600); font-weight: 700; margin: 2px 0; }
.msg-tag { font-size: 11px; color: var(--ink-soft); margin: 2px 0; line-height: 1.5; word-break: break-word; }

/* ---- モーダル内メッセージ欄 ---- */
.msg-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 14px 0 0; text-align: left; }
.msg-label textarea {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  font-weight: 400;
}
.msg-label textarea:focus { outline: 2px solid var(--pink-200); border-color: var(--pink-300); }

/* ---- モーダル内キャスト選択 ---- */
.cast-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
#castSelect, .cast-other {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
#castSelect:focus, .cast-other:focus { outline: 2px solid var(--pink-200); border-color: var(--pink-300); }
.cast-other { margin-top: 8px; }
.cast-err { color: #e05575; font-size: 12px; margin: 6px 0 12px; }

/* ---- お客様情報フォーム（モーダル） ---- */
.checkout-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(480px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius);
  z-index: 55;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.checkout-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.checkout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pink-100);
}
.checkout-head h2 { margin: 0; font-size: 18px; color: var(--pink-600); flex: 1; text-align: center; }
.checkout-scroll { overflow-y: auto; padding: 20px 24px 26px; }
.cf-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 18px; text-align: center; }
#checkoutForm label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
#checkoutForm input,
#checkoutForm textarea {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}
#checkoutForm input:focus,
#checkoutForm textarea:focus { outline: 2px solid var(--pink-200); border-color: var(--pink-300); }
.req {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--pink-500);
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}
.cf-help { display: block; font-weight: 400; font-size: 11px; color: var(--ink-soft); margin-top: 5px; }
.cf-ship {
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-sm);
  padding: 14px 14px 2px;
  margin-bottom: 16px;
}
.cf-ship-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--pink-600); }
.cf-delivery { margin-bottom: 16px; }
.cf-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cf-radio:has(input:checked) { border-color: var(--pink-500); background: var(--pink-50); }
.cf-radio input { width: auto; margin: 0; accent-color: var(--pink-500); flex-shrink: 0; }
.cf-radio b { color: var(--pink-600); }
.checkout-modal .cart-total { margin: 4px 0 14px; }

@media (max-width: 560px) {
  .hero-title { font-size: 25px; }
  .hero-content { padding: 34px 24px; }
  .category-nav { top: 65px; }
}
