/* style.css */

/* 基本設定 */
body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  background-color: #eef3ff;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
/* メディアクエリ：画面幅が1024px以上（PC向け） */
@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; */
}
.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: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.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 */
}

.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;
}

.hero-logos img {
  height: 28px;
  width: auto;
  filter: saturate(0.92);
}

.designs-panel,
.gift-section,
.feature-section,
.howto-section,
.pricing {
  margin: 42px 0;
}

.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;
}

.thumb-row .design-card {
  min-width: 180px;
}

.design-thumb.simple {
  padding: 0;
  border-radius: 14px;
  border: 1px solid #e8f0f7;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.design-thumb.simple img {
  border-radius: 14px 14px 10px 10px;
  max-height: none;
  object-fit: cover;
}

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

.mini-tag {
  background: #184397;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.gift-row {
  gap: 18px;
}

.gift-shelf {
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, rgba(17, 189, 177, 0.04));
  box-shadow: 0 10px 20px rgba(17, 189, 177, 0.06);
}

.gift-shelf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gift-shelf-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #1f2d3d;
}
@media screen and (max-width: 480px) {
  .gift-shelf-head h3 {
    font-size: 1rem;
  }
}

.gift-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.hash-tags .hash-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f2f6ff;
  color: #2a3e5c;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #dbe8f7;
}

.hash-tag.inline {
  margin-left: 8px;
}

.gift-card {
  min-width: 280px;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17, 189, 177, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.genre1-block {
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 189, 177, 0.06);
}

.genre1-head {
  margin-bottom: 10px;
}

.genre2-block + .genre2-block {
  margin-top: 10px;
}

.genre2-head {
  margin-bottom: 6px;
}

.genre2-btn {
  border: 1px solid #dbe8f7;
  background: #f7fbff;
  color: #184397;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
}

.gift-card__thumb {
  background: linear-gradient(135deg, var(--accent, #184397), #ffffff);
  padding: 12px;
  cursor: pointer;
}

.gift-card__thumb img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gift-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 30px;
  background: rgba(17, 189, 177, 0.12);
  color: #184397;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
}
@media screen and (max-width: 768px) {
  .gift-chip {
    font-size: 1rem;
  }
}

.gift-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2d3d;
}

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

.grad-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.grad-modal {
  width: min(960px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid #dbe8f7;
}

.grad-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.grad-modal-head h3 {
  margin: 2px 0 0;
}

.grad-close {
  border: none;
  background: #f1f5f9;
  color: #30435f;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

.grad-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.grad-option {
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f7fbff, #fff);
  box-shadow: 0 10px 24px rgba(17, 189, 177, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.grad-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(232, 68, 103, 0.12);
  color: #e84467;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 10px;
}

.grad-body {
  margin: 8px 0 0;
  color: #30435f;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.grad-option-body {
  display: grid;
  gap: 6px;
}

.grad-title-label {
  display: inline-block;
  background: #cbe5f9;
  color: #1f2d3d;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 120px;
}

.grad-option .btn.primary {
  min-width: 88px;
  height: 46px;
  align-self: center;
}

.grad-modal {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.gift-title {
  margin: 0;
  color: var(--highlight, #184397);
  font-weight: 700;
}

.gift-body {
  margin: 0;
  color: #30435f;
  font-size: 14px;
}

.gift-actions {
  margin-top: 6px;
}

.ghost-small {
  padding: 8px 12px;
  height: auto;
}

.variant-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 2px;
}

.variant-thumb.big,
.variant-thumb {
  width: 180px; /* 現状の最小サムネサイズに合わせて統一 */
  min-width: 180px;
  border: 1px solid #e1e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.variant-thumb img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7fbff;
}

.variant-thumb span {
  font-size: 12px;
  color: #30435f;
  font-weight: 700;
}

.two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.feature-visual {
  min-height: 260px;
}

.feature-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f3ff 0%, #fef5ff 60%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 32px rgba(0, 0, 0, 0.08);
  background-image: url("assets/commitment.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-list h2 {
  margin: 6px 0 14px;
}

.feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(17, 189, 177, 0.05);
}

.feat-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #184397, #4dd8c9);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.feature-list h4 {
  margin: 0 0 4px;
}

.feature-list p {
  margin: 0;
  color: #30435f;
}

.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;
}

.pricing .price-table {
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(17, 189, 177, 0.08);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  font-weight: 700;
  color: #1f2d3d;
}

.price-row + .price-row {
  border-top: 1px solid #e7eef5;
}

.price-row strong {
  color: #184397;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    grid-template-areas: "copy visual";
  }
  .store-strip {
    margin-top: 18px;
  }
}
.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: #184397;
  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, #184397);
  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, #184397);
  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;
}

/* トップバナー */
.top-banner {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.top-banner h2 {
  font-weight: 600;
  color: #004499;
  margin-bottom: 16px;
}

.top-banner img {
  width: 100%;
  /* max-width: 430px; */
  display: block;
  margin: 0 auto;
}

/* 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: #184397;
  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: #184397;
  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: #184397;
  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: #184397;
  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: #184397;
  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: 800px;
  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: #184397;
  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: #184397;
  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: #184397;
  color: #fff;
  border: 2px solid transparent; /* secondaryと同じ分だけ確保 */
}

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

/* セクション共通 */
.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: #184397;
  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%);
  overflow-x: hidden;
  min-height: 100vh;
}

.designer-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  padding-top: calc(var(--canvas-block-height, 0px) + 20px);
}

.canvas-top {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(56px + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 90%);
  padding: 4px 0 12px;
  margin: 0 auto;
  width: min(100vw - 20px, 720px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.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: 222px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe8f7;
  background: #ffffff;
  color: #184397;
  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: 100%;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

.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;
  overflow: hidden;
}

#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;
}
.safe-area-note {
  margin: 4px 0 0;
  text-align: center;
  color: #2da562;
  font-size: 13px;
  font-weight: 700;
}
.toolbar-note {
  text-align: center;
  color: #607d8b;
  font-size: 13px;
  margin: 6px 0 12px;
}

.ghost-btn {
  min-width: 78px;
  height: 60px;
  padding: 10px 14px;
  border: none;
  /* border-radius: 12px; */
  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,
    border-color 0.12s ease;
}

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

.canvas-caption {
  display: none;
}

.edit-guide {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 46, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.edit-guide.is-open {
  display: flex;
}

.edit-guide-card {
  width: min(640px, 90%);
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(9, 18, 38, 0.25);
}

.edit-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #184397;
  margin-bottom: 12px;
}

.edit-guide-step {
  font-size: 14px;
  color: #5a6f95;
}

.edit-guide-body {
  overflow: hidden;
  border-radius: 12px;
  background: #f5f8ff;
}

.edit-guide-track {
  display: flex;
  transition: transform 0.3s ease;
}

.edit-guide-slide {
  min-width: 100%;
  margin: 0;
  padding: 0;
}

.edit-guide-slide img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.edit-guide-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.edit-guide-actions .btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  .edit-guide-card {
    padding: 16px;
  }

  .edit-guide-actions {
    justify-content: space-between;
  }
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  padding: 0 10px 20px;
  max-width: min(740px, 100%);
  box-sizing: border-box;
}

.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;
}

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

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

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

.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: 1000px;
}

.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 input[type="color"] {
  width: 64px;
  height: 38px;
  padding: 0;
  border: 1px solid #dbe8f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  max-width: 100px;
  display: inline-block;
  flex: 0 0 auto;
}
.text-editor-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}
.text-editor-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}
.text-editor-field input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

.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 #184397;
  border-color: #184397;
}

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

.sending-graphic .phone,
.sending-graphic .printer {
  width: 72px;
  height: 90px;
  /* background: #fff; */
  /* border-radius: 16px; */
  position: relative;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); */
}

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

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

.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: 6px;
    max-width: calc(100vw - 16px);
  }
  .canvas-wrap {
    padding: 8px;
  }
  .primary-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .primary-actions .btn {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .designer-main {
    padding: 12px 12px 48px;
    gap: 12px;
    max-width: 100vw;
  }
  .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: calc(100vw - 24px);
  }
  .control-stack {
    padding-bottom: 10px;
  }
}

@media screen and (min-width: 1024px) {
  .designer-main {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 380px;
    gap: 20px;
    align-items: start;
    padding-top: 20px;
  }
  .canvas-top {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    margin-bottom: 10px;
  }
  .control-stack {
    position: sticky;
    top: 20px;
    margin-top: 0;
    padding-top: 0;
    max-width: 100%;
  }
}

.icon-btn.add-photo {
  gap: 8px;
  padding: 10px 14px;
}
.icon-btn.add-photo i {
  font-size: 22px;
  color: #184397;
}
.icon-btn.add-photo .icon-text {
  font-weight: 700;
  color: #184397;
  font-size: 14px;
}

.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;
}
