/* 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以上（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: 900px;
  margin: 0 auto; /* Center align the content for larger screens */
  /* padding: 20px; */
}
/* タイトル系 */
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: #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: 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: #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;
}

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