﻿/* style.css */

/* 蝓ｺ譛ｬ險ｭ螳・*/
body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  background-color: #edfeff;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
/* 繝｡繝・ぅ繧｢繧ｯ繧ｨ繝ｪ・夂判髱｢蟷・′1024px莉･荳奇ｼ・C蜷代￠・・*/
@media screen and (min-width: 1024px) {
  body {
    font-size: 17px;
  }

  .box-heading {
    font-size: 1.4rem;
  }

  .note,
  .expire,
  .print-price p,
  .number-code {
    font-size: 1.1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 14px 24px;
    box-sizing: border-box;
  }
}

main {
  padding: 24px 16px 48px;
  max-width: 1080px;
  margin: 0 auto; /* Center align the content for larger screens */
  /* padding: 20px; */
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2a3e5c;
  background: #e5f3ff;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.scene-intro {
  background: linear-gradient(135deg, #f7fbff 0%, #fdf7ff 100%);
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.scene-intro h2 {
  margin: 8px 0;
  font-size: 1.6rem;
  color: #1f2d3d;
}

.scene-intro p {
  margin: 0 0 6px;
}

.scene-intro__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.meta-card {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(17, 189, 177, 0.05);
}

.meta-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: #30435f;
}

.meta-label {
  display: inline-block;
  background: #11bdb1;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  padding: 4px 8px;
}

.situation-section {
  margin: 48px 0;
}

.situation-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent, #11bdb1);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scene-desc {
  margin: 0;
  color: #30435f;
  font-size: 0.98rem;
}

.design-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 2px 8px;
  scroll-snap-type: x mandatory;
}

.design-card {
  min-width: 240px;
  border: none;
  background: none;
  padding: 0;
  scroll-snap-align: start;
}

.design-thumb {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(17, 189, 177, 0.16);
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #30435f;
  font-size: 13px;
}

.design-tag {
  background: rgba(255, 255, 255, 0.65);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.design-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--highlight, #11bdb1);
  box-shadow: 0 0 0 6px rgba(17, 189, 177, 0.12);
}

.thumb-body {
  margin: 0;
}

.thumb-body h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #1f2d3d;
}

.thumb-body p {
  margin: 0;
  color: #3c4b5f;
  font-size: 0.95rem;
}

.design-thumb-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  max-height: 220px;
  order: -1;
}
/* 繧ｿ繧､繝医Ν邉ｻ */
h1 {
  font-size: 24px;
  font-weight: 700;
}

h2,
h3 {
  font-size: 1.6rem;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 500;
}

/* STEP譯亥・ */
.how-to {
  text-align: center;
  margin-bottom: 40px;
}

.how-to h3 {
  font-weight: bold;
  margin-bottom: 16px;
  color: #222;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.steps div {
  text-align: center;
  font-size: 13px;
  color: #333;
}

.steps img {
  width: 72px;
  margin-bottom: 6px;
}

/* 繝・じ繧､繝ｳ驕ｸ謚・*/
.designs h3 {
  font-weight: bold;
  margin-bottom: 16px;
  color: #222;
  text-align: center;
}

.design-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.design-list form {
  width: 100%;
  display: contents;
}

.design-list button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.design-list img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.design-list img:hover {
  transform: scale(1.03);
}

/* 蜊ｰ蛻ｷ譁ｹ豕・*/
.how-to-print {
  margin-top: 40px;
  text-align: center;
}

.how-to-print h3 {
  font-weight: bold;
  margin-bottom: 20px;
}

.convenience-store-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.convenience-store-list li {
  margin: 8px 0;
}

.convenience-store-list img {
  height: 32px;
}

/* 繝ｪ繝ｳ繧ｯ髮・ヰ繝翫・ */
.link-banners {
  margin-top: 40px;
  text-align: center;
}

.link-banners h3 {
  font-weight: bold;
  margin-bottom: 16px;
}

.link-banners img {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 10px auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 繝輔ャ繧ｿ繝ｼ */
footer {
  background-color: #e5f4ff;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
}

footer h3 {
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
}

footer li {
  padding-left: 1.2em;
  margin-bottom: 8px;
  position: relative;
}

footer li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #0077cc;
  font-size: 10px;
}

footer small {
  display: block;
  margin-top: 20px;
  color: #888;
}

/* 蜷ｹ縺榊・縺鈴｢ｨ繝舌リ繝ｼ */
.bubble-box {
  display: inline-block;
  background: #e3f2fd;
  border: 2px solid #2196f3;
  border-radius: 10px;
  padding: 4px 15px;
  font-weight: bold;
  font-size: 1.7rem;
  color: #11bdb1;
  position: relative;
  margin: 0 auto 20px;
  text-align: center;
  line-height: 2.3rem;
  background: rgba(255, 255, 255, 0.8);

  /*   
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.bubble-box::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top-color: #2196f3;
}

/* STEP 繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ */
.step-box {
  background-color: #d6edff;
  border-radius: 12px;
  padding: 20px 10px;
  margin-bottom: 40px;
  text-align: center;
}

.step-box h3 {
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}

.step-box .steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.step-box .steps div {
  font-size: 13px;
  color: #333;
}

.step-box .steps img {
  width: 64px;
  margin-bottom: 8px;
}

.news-bar {
  background: #f0f4f8;
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
}

.news-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-bar li {
  margin: 0;
  /* padding: 0; */
  padding: 8px 12px;

  border-bottom: 0.5px solid #333;
}

.news-bar a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-bar .arrow {
  margin-left: 6px;
  color: #888;
}

.calendar-section-title {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  font-weight: bold;
}

.scroll-list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

.scroll-list form {
  display: contents;
}

.scroll-list button {
  border: none;
  background: none;
  padding: 0;
  flex: 0 0 auto;
}

.scroll-list button.photo-thumb {
  position: relative;
}

.scroll-list button.design-number-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 2px solid #c7d6e6;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.scroll-list button.design-number-btn:hover {
  border-color: #78cf89;
}

.design-number-text {
  font-size: 22px;
  font-weight: 700;
  color: #11bdb1;
  letter-spacing: 0.06em;
}

.new-badge {
  position: absolute;
  top: -5px;
  left: 0px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.no-save-image {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.scroll-list img {
  width: auto;
  height: 200px;
  /* border-radius: 6px; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 1000;
}

.modal-content {
  max-width: 80%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
}
@media screen and (min-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content h4 {
    grid-column: span 2;
  }
}

.modal-content h4 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: bold;
}

.modal-content button {
  background: #f5f5f5;
  border: 2px solid #ccc;
  padding: 8px;
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

@media screen and (max-width: 768px) {
  .modal-content button {
    width: 85%;
  }
}

.modal-content button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.close-modal-btn {
  background: #ccc;
  color: #000;
  font-size: 12px;
  border: none;
  padding: 6px 12px;
  margin-top: 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* 繝・じ繧､繝ｳ繝懊ャ繧ｯ繧ｹ蝗ｲ縺ｿ */
.design-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.design-list button {
  background-color: #ffffff;
  border: 2px solid #b3e5fc;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  width: calc(50% - 8px);
}

.design-list img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* 笆ｼ select.php 蟆ら畑繧ｹ繧ｿ繧､繝ｫ 笆ｼ */
.select-main {
  padding: 20px 16px 40px;
}

.preview {
  text-align: center;
  margin-bottom: 24px;
}

/* 笆ｼ photo.php 蟆ら畑繧ｹ繧ｿ繧､繝ｫ 笆ｼ */
.photo-main {
  padding: 20px 16px 40px;
}

.photo-step {
  text-align: center;
  margin-bottom: 20px;
}

.photo-step h2 {
  color: #11bdb1;
  margin-bottom: 6px;
}

.photo-step p {
  font-size: 14px;
  color: #2a3e5c;
}

.photo-error {
  background: #fff3f3;
  border: 1px solid #f2bcbc;
  color: #a44;
  padding: 12px;
  border-radius: 8px;
  margin: 0 auto 18px;
  max-width: 520px;
  text-align: center;
}

.photo-input {
  text-align: center;
  margin-bottom: 18px;
}

.photo-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 24px;
  background: #e0f1ff;
  color: #11bdb1;
  cursor: pointer;
  font-weight: 600;
}

.photo-label input {
  display: none;
}

.photo-note {
  font-size: 12px;
  color: #607d8b;
  margin-top: 6px;
}

.photo-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.photo-preview-inner {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.photo-preview-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-main .option-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
}

.photo-main .option-btn {
  border: 2px solid #ccc;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  overflow: hidden;
}

.photo-main .option-btn input[type="radio"] {
  display: none;
}

.photo-main .option-btn input[type="radio"]:checked + span {
  background-color: #d8ecff;
  border: 2px solid #78cf89;
}

.photo-main .option-btn span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
  color: #333;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.photo-main .size-A3 {
  width: 100px;
  height: 140px;
}

.photo-main .size-B4 {
  width: 85px;
  height: 120px;
}

.photo-main .size-A4 {
  width: 70px;
  height: 100px;
}

.photo-main .size-B5 {
  width: 60px;
  height: 85px;
}

.photo-main .paper-options {
  justify-content: center;
}

.photo-main .paper-options .option-btn {
  width: 140px;
  height: 80px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(242, 248, 252, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  text-align: center;
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #2a3e5c;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
}

.loading-card h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.loading-card p {
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0 0 16px;
  color: #607d8b;
}

.loading-card .loader {
  display: flex;
  gap: 8px;
}

.loading-card .loader span {
  width: 10px;
  height: 10px;
  background: #78cf89;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

.loading-card .loader span:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-card .loader span:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-card .loader span:nth-child(4) {
  animation-delay: 0.3s;
}

.loading-card .loader span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.crop-frame {
  position: absolute;
  /* border: 2px solid #2e4b87; */
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.crop-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #5a6b86;
  background: rgba(224, 241, 255, 0.6);
  text-align: center;
  padding: 8px;
  pointer-events: none;
}

.crop-frame.dragging {
  cursor: grabbing;
}

#user-photo {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  user-select: none;
  pointer-events: none;
}

.photo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.photo-controls input[type="range"] {
  width: 220px;
}

/* PC蜷代￠縺ｫ逕ｻ蜒上し繧､繧ｺ繧貞､ｧ縺阪ａ縺ｫ */
@media screen and (min-width: 1024px) {
  .preview {
    text-align: center;
  }

  .preview img {
    max-width: 100%;
  }
}

.preview h2 {
  color: #11bdb1;
  margin-bottom: 10px;
}

.preview img {
  /* width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px; */

  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.select-block {
  margin-bottom: 28px;
}

.select-block h3 {
  font-weight: bold;
  color: #222;
  margin-bottom: 12px;
}

.select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.select-grid label {
  flex: 1 1 calc(50% - 10px);
  background-color: #e0f7ff;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #11bdb1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-grid input[type="radio"] {
  display: none;
}

.select-grid input[type="radio"]:checked + span {
  background-color: #00bcd4;
  color: #fff;
  border: 2px solid #00acc1;
  border-radius: 10px;
}

.select-grid span {
  display: block;
  padding: 8px;
}

.select-grid small {
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* 萓｡譬ｼ陦ｨ遉ｺ */
.price-area {
  text-align: center;
  font-size: 14px;
  color: #11bdb1;
  margin-bottom: 24px;
}

/* 繝懊ち繝ｳ */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
@media screen and (min-width: 768px) {
  .button-group {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 12px;
  text-align: center;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background-color: #11bdb1;
  color: #fff;
  border: 2px solid transparent; /* secondary縺ｨ蜷後§蛻・□縺醍｢ｺ菫・*/
}

.btn.secondary {
  background-color: #fff;
  color: #11bdb1;
  border: 2px solid #11bdb1;
}

/* 繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ蜈ｱ騾・*/
.select-box {
  margin-bottom: 32px;
}
.select-box-con {
  background-color: #fff;
}

.box-heading {
  background: #2e4b87;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 16px;
}

/* 繝懊ち繝ｳ繧ｹ繧ｿ繧､繝ｫ・医し繧､繧ｺ繝ｻ逕ｨ邏呻ｼ・*/
.option-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.option-btn {
  flex: 1;
  text-align: center;
  background: #ddd;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 16px 8px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.option-btn input {
  display: none;
}

.option-btn span {
  display: block;
  font-size: 14px;
  color: #000;
  font-weight: normal;
}

.option-btn strong {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

/* 驕ｸ謚樊凾縺ｮ繧ｫ繝ｩ繝ｼ・医Α繝ｳ繝医げ繝ｪ繝ｼ繝ｳ・・*/
.option-btn input:checked + span {
  background-color: #76e1c4;
  color: #000;
  border-radius: 4px;
  padding: 10px 4px;
}

/* 蜈画ｲ｢邏吶′繧ｰ繝ｬ繝ｼ繧｢繧ｦ繝医☆繧区凾 */
.option-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 萓｡譬ｼ陦ｨ遉ｺ */
.price-box {
  background: #edf4fc;
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  padding: 16px;
  margin-top: 24px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
}

.price-main {
  font-size: 20px;
  font-weight: bold;
  color: #2e4b87;
}

.price-sub {
  font-size: 14px;
  color: #2e4b87;
}

.note {
  /* font-size: 12px;
  color: #888;
  margin-top: 8px; */

  font-size: 14.5px; /* 蟆代＠縺縺大､ｧ縺阪￥ */
  color: #2a3e5c; /* 邨ｱ荳諢溘≠繧区ｿ・＞繧√・濶ｲ */
  line-height: 1.6;
  text-align: center;
}
/* PC蜷代￠縺ｫ縺輔ｉ縺ｫ隱ｿ謨ｴ縺励◆縺・ｴ蜷・*/
@media screen and (min-width: 1024px) {
  .expire {
    font-size: 16px;
  }

  .note {
    font-size: 15px;
  }
}
/* 笆ｼ print.php 蟆ら畑繧ｹ繧ｿ繧､繝ｫ 笆ｼ */
.print-main {
  padding: 20px 16px 40px;
  text-align: center;
}

.print-code-box {
  margin-top: 24px;
  margin-bottom: 30px;
}

.print-code-box h3 {
  font-weight: bold;
  color: #11bdb1;
  margin-bottom: 8px;
}

.print-code {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  background: #eef6ff;
  padding: 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.expire {
  /* font-size: 12px;
  color: #888;
  margin-bottom: 12px; */

  font-size: 15px; /* 騾壼ｸｸ繧医ｊ蟆代＠螟ｧ縺阪ａ */
  color: #2a3e5c; /* 繧・ｄ豼・＞繝阪う繝薙・繝悶Ν繝ｼ */
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 6px;
}

.qr-code img {
  width: 160px;
  height: 160px;
}

.qr-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* convenience-store-list 縺ｯ譌｢縺ｫ螳夂ｾｩ貂医∩ */
/* 繧｢繧ｳ繝ｼ繝・ぅ繧ｪ繝ｳ譛ｬ菴・*/
.accordion {
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: center;
  border-radius: 6px;
}

.accordion img {
  height: 30px;
  object-fit: contain;
}

.panel {
  display: none;
  padding: 20px 10px;
  background: #f7fcff;
}

.panel.show {
  display: block;
}

/* 讓ｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ繧ｹ繝・ャ繝・*/
.step-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
}

.step-item {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.step-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.step-label {
  font-size: 15px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 4px;
}
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  width: 100%;
  background: #ffffff; /* 逋ｽ閭梧勹 */
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}

.accordion-toggle .logo-img {
  /* height: 30px; */
  max-width: 230px;
}

.accordion-icon {
  position: absolute;
  right: 16px;
  font-size: 16px;
  color: #555;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 16px;
  background: #f9fbff;
}

/* ---------- Designer page ---------- */
.designer-body {
  background: linear-gradient(180deg, #f6fbff 0%, #f9fcff 60%, #ffffff 100%);
}

.designer-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.canvas-top {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.designer-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.6fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.designer-grid.single-column {
  grid-template-columns: 1fr;
}

.canvas-column,
.control-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workspace-card {
  background: #ffffff;
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(16, 112, 179, 0.08);
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.workspace-head strong {
  font-size: 1.1rem;
  color: #1f2d3d;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe8f7;
  background: #ffffff;
  color: #0d9d90;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    color 0.2s ease;
}

.icon-btn:hover {
  box-shadow: 0 8px 16px rgba(13, 157, 144, 0.15);
  transform: translateY(-1px);
}

.icon-btn input {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2a3e5c;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #cbe2ff;
}

.canvas-shell {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 30px rgba(17, 189, 177, 0.08);
  width: 100%;
  max-width: min(100%, 1000px);
  overflow: hidden;
  margin: 0 auto;
}

.canvas-wrap {
  background: linear-gradient(135deg, #eef3fb, #fdfdfd);
  border-radius: 12px;
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

#design-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: #fff;
  border: 1px solid #dbe8f7;
}

.canvas-toolbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ghost-btn {
  min-width: 52px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #dbe8f7;
  border-radius: 10px;
  background: #fff;
  color: #0d9d90;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #0d9d90;
}

.canvas-caption {
  display: none;
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.primary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hint {
  margin: 0;
  color: #607d8b;
  font-size: 13px;
}

.palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  background: linear-gradient(135deg, var(--from), var(--to));
}

.notice-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.notice-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 18px 16px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(24px);
  transition: transform 0.25s ease;
}

.notice-overlay.is-active {
  display: flex;
  opacity: 1;
}

.notice-overlay.is-active .notice-card {
  transform: translateY(0);
}

.notice-handle {
  width: 60px;
  height: 5px;
  background: #d6dce3;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.notice-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #4da4ff;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  font-size: 1.1rem;
  color: #0d3a7d;
}

.notice-desc {
  margin: 8px 0;
  color: #2a3e5c;
  font-weight: 700;
}

.notice-list {
  padding-left: 18px;
  color: #30435f;
  margin: 8px 0 0;
  line-height: 1.6;
  display: none;
}

.sending-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #52a8f6, #2f9df5);
  color: #fff;
  z-index: 4000;
  text-align: center;
  padding: 20px;
}

.sending-body h3 {
  margin: 16px 0 8px;
  font-size: 1.6rem;
}

.sending-body p {
  margin: 0;
  font-size: 1rem;
}

.text-editor-panel {
  width: 100%;
  margin-top: 6px;
}

.text-editor-card {
  width: 100%;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.text-editor-card.inline {
  max-width: 720px;
}

.text-editor-card h3,
.text-editor-card .mini-label {
  margin-top: 0;
  margin-bottom: 8px;
}

.text-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #30435f;
}

.text-editor-field input,
.text-editor-field textarea,
.text-editor-field select {
  width: 100%;
  height: 5rem;
  border: 1px solid #dbe8f7;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.text-editor-field textarea {
  resize: vertical;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.color-swatches button {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid #e4edf8;
  background: var(--sw);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.color-swatches button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.color-swatches button:focus-visible {
  outline: 2px solid #0d9d90;
  border-color: #0d9d90;
}

.sending-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sending-graphic .phone,
.sending-graphic .printer {
  width: 72px;
  height: 90px;
  position: relative;
}

.sending-graphic .phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/phone.png") center/contain no-repeat;
}

.sending-graphic .printer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/printer.png") center/contain no-repeat;
}

.sending-graphic .dots {
  display: flex;
  gap: 6px;
}

.sending-graphic .dots span {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

.sending-graphic .dots span:nth-child(2) {
  animation-delay: 0.1s;
}

.sending-graphic .dots span:nth-child(3) {
  animation-delay: 0.2s;
}

.result-card {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 8px 24px rgba(17, 189, 177, 0.08);
}

.result-code {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 6px 0;
}

.result-expire {
  color: #30435f;
  margin: 0;
}

.result-preview img {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
  border: 1px solid #eef3fb;
}

@media screen and (max-width: 900px) {
  .designer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media screen and (max-width: 600px) {
  .canvas-shell {
    padding: 10px;
  }
  .canvas-wrap {
    padding: 8px;
  }
  .primary-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .primary-actions .btn {
    width: 100%;
  }
}

.accordion-item.open .accordion-content {
  display: block;
}

/* 繧ｹ繝・ャ繝玲ｨｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ */
.step-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
}

.step-item {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.step-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.step-label {
  font-size: 13px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 4px;
}
/* 繧医￥縺ゅｋ雉ｪ蝠上√い繧ｳ繝ｼ繝・ぅ繧ｪ繝ｳ蜀・Κ縺ｪ縺ｩ */
.faq li,
.accordion-content p,
.accordion-content li {
  font-size: 15px;
}

/* 繝舌リ繝ｼ荳九↑縺ｩ菴咏區蟆剰ｦ句・縺・*/
.link-banners h3,
.how-to-print h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.store-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  padding: 1rem 1rem;
}

.store-logos img {
  height: 30px;
  flex: 0 0 auto;
}

.faq-section {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 16px;
  text-align: center;
}

.faq-section h3 {
  font-weight: bold;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #222;
}

.faq-section .faq-list {
  text-align: left;
  margin: 0 auto;
  max-width: 720px;
}

.faq-section .faq-list dt {
  font-weight: bold;
  margin-top: 1.5em;
  color: #2a3e5c;
  font-size: 1.1em;
}

.faq-section .faq-list dd {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  color: #2a3e5c;
  font-size: 1em;
  line-height: 1.6;
}

.faq-section .faq-list a {
  color: #78cf89;
  text-decoration: underline;
}

/* 霑ｽ蜉: 繝｡繝九Η繝ｼ縺碁幕縺・※縺・ｋ譎ゅ・繝上Φ繝舌・繧ｬ繝ｼ繝懊ち繝ｳ繧帝國縺・*/
body.menu-open .menu-toggle {
  display: none !important;
}

/* --- Designer layout parity with mymessage --- */
.designer-body {
  overflow-x: hidden;
}

.designer-body .designer-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.designer-body .designer-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.6fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.designer-body .canvas-shell {
  background: #ffffff;
  border: 1px solid #dbe8f7;
  border-radius: 0px;
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 30px rgba(17, 189, 177, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.designer-body .canvas-wrap {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  aspect-ratio: 1568 / 2128;
}

.designer-body #design-canvas {
  width: auto;
  height: auto;
}

.designer-body .canvas-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 0;
}

.designer-body .canvas-toolbar .ghost-btn {
  min-width: 52px;
  height: 52px;
  padding: 10px 14px;
  border: none;
  background: #0f2f73;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-size: 2rem;
  box-shadow: 0 10px 18px rgba(9, 24, 64, 0.25);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.designer-body .canvas-toolbar .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(9, 24, 64, 0.3);
  background: #123a8d;
}

.designer-body .safe-area-note {
  display: block;
  margin: 6px 0 0;
  text-align: center;
  color: #2da562;
  font-size: 13px;
  font-weight: 700;
}

.designer-body .controls-column {
  position: sticky;
  top: 20px;
}

.controls-column.is-result .panel-card:not(.result-panel) {
  display: none;
}

.result-panel.is-result .actions {
  display: none;
}

@media screen and (max-width: 1023px) {
  .designer-body .designer-main {
    padding: 12px 12px 48px;
    max-width: 100vw;
  }

  .designer-body .designer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .designer-body .canvas-column {
    position: static;
    transform: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  .designer-body .canvas-shell {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 12px 28px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .designer-body .controls-column {
    position: static;
  }

  .designer-body .canvas-toolbar {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
}

@media screen and (min-width: 1024px) {
  .designer-body .designer-main {
    padding-top: 20px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0b1220;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.desktop-nav a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: #0ea5e9;
}

.designer-body {
  background: #f5f7fb;
  color: #111827;
}

/* .designer-body .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
} */

.designer-body main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.nicopuri-designer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.designer-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 420px;
  gap: 20px;
}

.canvas-column .canvas-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  color: #f8fafc;
}

.canvas-column .caption {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.canvas-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #cbd5e1;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.photo {
  background: #7ac4ff;
}
.legend-dot.text {
  background: #f6b400;
}

.canvas-shell {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  margin-top: 14px;
}

.canvas-wrap {
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.canvas-wrap canvas {
  max-width: 100%;
  border-radius: 10px;
}

.canvas-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.canvas-toolbar .ghost-btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.controls-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.panel-head .tag {
  margin: 0;
  font-size: 13px;
  color: #0b1220;
  background: linear-gradient(135deg, #7ac4ff, #8bf0ff);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-body {
  display: grid;
  gap: 12px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-row label {
  min-width: 64px;
  /* color: #e5e7eb; */
}
.color-row input[type="color"] {
  width: 56px;
  height: 32px;
  border: none;
  background: none;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-row button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--sw);
  cursor: pointer;
}

.texture-control .label,
.overlay-control .label,
.stacked .label {
  color: #111827;
  font-weight: 600;
  margin-bottom: 6px;
}

.chip-row.texture-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.texture-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.texture-chip .thumb {
  height: 44px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--pattern, #f1f5f9);
  border: 1px solid #e5e7eb;
}
.texture-chip.is-active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.chip.is-active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.overlay-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
}

.overlay-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 6px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  color: #111827;
}
.overlay-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.overlay-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.overlay-card .title {
  display: block;
  padding: 6px 4px 4px;
  font-size: 0.9rem;
}
.overlay-card.is-active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.uploader {
  display: grid;
  gap: 6px;
}

.library {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f8fafc;
  padding: 2px;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.thumb.is-active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.stacked textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  padding: 10px;
  font-size: 16px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.input-row select {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  padding: 8px 10px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.align-row {
  display: flex;
  gap: 8px;
}
.align-row button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
}
.align-row .is-active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.actions {
  display: flex;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0b1220;
}
.btn.ghost {
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #111827;
}
.btn.secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.result-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}
.result-code {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: center;
}
.result-meta img {
  max-width: 160px;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
}
.result-preview img {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-overlay,
.sending-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.notice-card,
.sending-body {
  /* background: #ffffff; */
  color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  max-width: 520px;
  width: 92%;
  /* border: 1px solid #e5e7eb; */
}
.notice-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 1.1rem;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  color: #111827;
}
.step-label {
  font-weight: 700;
  color: #7ac4ff;
  letter-spacing: 0.08em;
}
.step-title {
  margin: 6px 0 4px;
  font-weight: 700;
}
.step-desc {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.tiny {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}

/* hero */
.hero {
  margin: 28px 0 26px;
  padding: 20px;
  background: linear-gradient(135deg, #f3fbff 0%, #fff8fb 45%, #ffffff 100%);
  border: 1px solid #dbe8f7;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 189, 177, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "visual"
    "copy";
  gap: 18px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  color: #1f2d3d;
  line-height: 1.35;
}

.lead-text {
  margin: 0 0 16px;
  color: #30435f;
  font-size: 15px;
}

.hero-visual {
  grid-area: visual;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.store-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    grid-template-areas: "copy visual";
  }
  .store-strip {
    margin-top: 18px;
  }
}
.convenience-store-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.convenience-store-list li {
  margin: 8px 0;
}

.convenience-store-list img {
  height: 32px;
}
.store-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  padding: 1rem 1rem;
}

.store-logos img {
  height: 30px;
  flex: 0 0 auto;
}
.store-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.store-label {
  padding: 6px 12px;
  background: #184397;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* header responsive */
/* .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: #0b1220;
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 16px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.mobile-nav a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}
.nav-open .mobile-nav {
  display: flex;
}
.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
} */

@media (max-width: 1024px) {
  .designer-grid {
    grid-template-columns: 1fr;
  }
  .controls-column {
    order: 2;
  }
  .canvas-column {
    order: 1;
  }
}

@media (max-width: 768px) {
  .designer-body .canvas-wrap {
    width: 100%;
    margin: 0 auto;
  }
  .designer-body .canvas-shell {
    display: grid;
    justify-content: stretch;
  }
  .controls-column {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.1);
  }
  .canvas-toolbar {
    justify-content: center;
  }
  .overlay-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Prevent canvas wrap from forcing its own aspect ratio */
.designer-body .canvas-wrap {
  aspect-ratio: unset;
}

/* --- Designer overrides (mymessage parity) --- */
@media screen and (min-width: 1024px) {
  .designer-body .canvas-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .designer-body .canvas-toolbar {
    flex-direction: row;
    justify-content: center;
    margin-top: 10px;
  }
}

.designer-body .paper-buttons {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.designer-body .paper-btn {
  flex: 1;
  border: 1px solid #dbe8f7;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  color: #184397;
  cursor: pointer;
}

.designer-body .paper-btn.is-active {
  border-color: #184397;
  box-shadow: 0 4px 10px rgba(13, 157, 144, 0.15);
}

.designer-body .notice-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.designer-body .notice-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 18px 16px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(24px);
  transition: transform 0.25s ease;
}

.designer-body .notice-overlay.is-active {
  display: flex;
  opacity: 1;
}

.designer-body .notice-overlay.is-active .notice-card {
  transform: translateY(0);
}

.designer-body .notice-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #4da4ff;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  font-size: 1.1rem;
  color: #0d3a7d;
}

.designer-body .sending-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #52a8f6, #2f9df5);
  color: #fff;
  z-index: 4000;
  text-align: center;
  padding: 20px;
}

.designer-body .sending-body h3 {
  margin: 16px 0 8px;
  font-size: 1.6rem;
}

.designer-body .sending-body p {
  margin: 0;
  font-size: 1rem;
}

.sending-body h3 {
  margin: 16px 0 8px;
  font-size: 1.6rem;
}

.sending-body p {
  margin: 0;
  font-size: 1rem;
}
.campaign-banner {
  margin: 12px 0 28px;
  text-align: center;
}
.campaign-banner img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  pointer-events: auto; /* allow link click even with .no-save-image */
}

.designs-panel,
.gift-section,
.feature-section,
.howto-section,
.pricing {
  margin: 42px 0;
}
.howto-section .step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-note-mobile {
  display: none;
  color: #607d8b;
  font-size: 13px;
}

@media screen and (max-width: 768px) {
  .panel-note-desktop {
    display: none;
  }
  .panel-note-mobile {
    display: inline-block;
    margin-bottom: 10px;
  }
}

.panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.5rem;
}

.panel-note {
  color: #607d8b;
  font-size: 13px;
}

.howto-section .step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step-card {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(17, 189, 177, 0.06);
  text-align: center;
}

.step-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #f7fbff;
  border-radius: 10px;
  margin-bottom: 10px;
}

.step-img-wrap img {
  width: 90%;
  height: auto;
}

.step-label {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 189, 177, 0.15);
  color: #184397;
  font-weight: 700;
  margin-bottom: 6px;
}
