@charset "UTF-8";

body {
  font-family: "Zen Maru Gothic",sans-serif;
  color: #130918;
  background-color: #f7f7f7;
}
button{
  font-family: "Zen Maru Gothic",sans-serif;
 }
.mb30 {
  margin-bottom: 30px;
}

#app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

header {
  padding: 8px 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: #381f43;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  max-width: 100px;
  text-align: center;
}

#header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#btn-header-back {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 0; /* Ensures a larger touch target (min 48px is recommended, but we add comfortable padding) */
  visibility: visible;
}
#btn-header-back.hidden {
  visibility: hidden; /* Prevents layout shift of the logo */
}

.icon-back {
  margin-right: 0px;
  width: 20px;
  height: 20px;
}

#lang-switcher {
  display: flex;
}
#lang-switcher > * + * {
  margin-left: 5px;
}

.btn-lang {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.btn-lang.active {
  background: #fff;
  color: #381f43;
}


main {
  flex: 1;
  padding: 20px;
}

.hidden {
  display: none !important;
}

.section {
margin-bottom: 60px;
    border: solid #381F43;
    border-width: 0 0 1px 0;
    padding-bottom: 60px;
    position: relative;
}
.section::after {
    content: "";
    display: block;
    background-image: url(img/icon.webp);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    bottom: -10px;
}
.section:last-of-type {
  border: none;
}
.section:last-of-type::after {
    display: none;
}
#step3 .section {
  border: none;
  margin-bottom: 0;
}
#step3 .section::after {
  display: none;
}

.section-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  color: #381F43;
  font-family: "Shippori Mincho", serif;
}

/* Step2の自動ナンバリング機能 */
#step2 {
  counter-reset: step2-counter;
}

#step2 .section:not(.hidden) .section-title::before {
  counter-increment: step2-counter;
  content: counter(step2-counter) ". ";
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
}
.flex-row > * + * {
  margin-left: 10px;
}

.flex-1 {
  flex: 1;
}
.attention {
    padding: 15px;
    font-size: 12px;
    background-color: #F4F4F4;
    margin: 10px 0 15px;
    word-break: break-word;
}
.btn-select {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  font-size: 12px;
  word-break: break-word;
}
.design-name {
  font-weight: bold;
  margin-bottom: 4px;
}
.design-desc {
  font-size: 10px;
  color: #666;
  text-align: left;
  line-height: 1.6;
}

.btn-select.active {
  /* border-color: #946300;
  background-color: #FAF5E8 */
  border-color: #381F43;
  background-color: #f7f6f8;
}

.btn-select img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

#mark-list .btn-select img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.mark-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: #999;
}
.mark-loading span {
  display: inline-block;
  margin-top: 10px;
}

.mark-empty {
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  font-size: 13px;
  background-color: #fff;
}



footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  width: 100%;
  max-width: 480px;
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 15px 20px;
  z-index: 90;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

footer.footer-ready {
  background-color: #f7f6f8;
  border-top-color: #381F43;
}

.footer-price {
  font-size: 14px;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.footer-nav > * + * {
  margin-left: 10px;
}

.btn-sheen {
  position: relative;
  overflow: hidden;
}

.btn-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: sheen 4.5s infinite;
}

@keyframes sheen {
  0% { left: -100%; }
  33% { left: 200%; }
  100% { left: 200%; }
}

.btn-nav {
    padding: 0 10px;
    box-sizing: border-box;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background-color: #ddd;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

#btn-next {
    width: 150px;
}

.btn-primary {
  background-color: #381F43;
  color: #fff;
}

.btn-primary:disabled {
  background-color: #9e9e9e;
  cursor: not-allowed;
}

.preview-box {
  text-align: center;
  margin-bottom: 20px;
  background: #f9f9f9;
  padding: 20px;
}

.preview-box img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.breakdown-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.barcode-box {
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #eee;
  padding: 15px;
}

.barcode-box svg {
  max-width: 100%;
  height: auto;
}
#sec-markdetail {
  margin-top: 20px;
}
.btn {
    margin-bottom: 0px;
    text-align: center;
    display: flex;
    width: 100%;
}
.btn > * + * {
    margin-left: 10px;
}
#btn-kaikei {
  padding: 15px 0;
  width: 100%;
  margin-bottom: 40px;
}
#btn-kaikei > * + * {
  margin-left: 8px;
}
#step3 .total .section-title {
    border: solid;
    border-width: 0 0 1px 0;
    padding-bottom: 3px;
    margin-bottom: 5px;
}
#step3 .total #step3-total-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #381f43;
}
h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #381f43;
}
#btn-edit , #btn-restart {
    width: 100%;
    margin-bottom: 15px;
    background-color: #ffffff;
    font-size: 13px;
    border: 1px solid;
    padding: 15px 0;
}
.total_detail {
    font-size: 10px;
    padding: 10px;
    background-color: #f1eff2;
    color: #130918 !important;
    opacity: 1;
    margin-bottom: 40px;
}
#step3 .section-title {
  color: #130918;
}
.total_detail .section-title {

    font-size: 12px;
    border: solid;
    border-width: 0 0 1px 0;
}
.total_detail #price-breakdown-text {
  font-size: 12px;
      margin-bottom: 15px;
}
#step3 {
  border-color: #381F43;
    font-family: "Shippori Mincho", serif;
}
#step3 .attention {
font-family: "Zen Maru Gothic",sans-serif;
}

#step1 .section {
    margin-bottom: 30px;
    padding-bottom: 30px;
}
#step1 .main img {
  width: 100%;
}
#sec-markcat {
      min-height: 500px;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
  font-size: 13px;
  background-color: #fff;
  color: #381F43;
    font-family: "Zen Maru Gothic",sans-serif;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23381F43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}
.form-select:focus {
  outline: none;
  border-color: #381F43;
}

.sanrio-copyright {
  font-size: 8px;
  color: #999;
  text-align: right;
  margin-top: 5px;
}

#sanrio-copyright-step3 {
  margin-bottom: 0;
}
.message {
    border: 5px double #381f43;
    padding: 30px 10px;
    position: relative;
}
.message::after {
    content: "";
    display: block;
    background-image: url(img/icon.webp);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-position: center;
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    top: -17px;
}
.tdU{
  text-decoration: underline;
}

.step-arrow {
  text-align: center;
margin: 0px auto 40px;
}
.step-arrow svg {
  width: 32px;
  height: 32px;
}
.red {
  color: rgb(115, 11, 11);
}
.attention_preview {
  font-size: 12px;
    font-family: "Zen Maru Gothic",sans-serif;
  color: #130918;
}
.price-suffix {
  font-size: 16px;
  font-weight: normal;
}
.bold {
  font-weight: bold;
}
.fs14 {
  font-size: 14px;
}

html[lang="en"] .price-suffix {
  font-size: 13px;
}
#sec-markcat #mark-list .btn-select {
  padding: 0;
}

.step-content, section {
  scroll-margin-top: 70px; /* ヘッダーの高さ分、スクロールの停止位置をずらす */
}

/* Custom Modal */
#custom-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#custom-modal.hidden {
  display: none !important;
}
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 8px;
}
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.modal-buttons button {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #381f43;
  background-color: #fff;
  color: #381f43;
  border-radius: 4px;
}
.modal-buttons button + button {
  margin-left: 12px;
}
.modal-buttons button#modal-ok {
  background-color: #381f43;
  color: #fff;
}
