/* ===== base ===== */
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #111;
}

.container {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
}

/* ===== form blocks ===== */
.row {
  margin-bottom: 16px;
}

.label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.value {
  font-size: 16px;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

/* ===== price ===== */
.price {
  font-size: 22px;
  font-weight: bold;
  text-align: right;
}

.note {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
}

/* ===== buttons ===== */
.apple-pay-btn {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.card-pay-btn {
  margin-top: 12px;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #000;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* ===== overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  z-index: 999;
}

.overlay.active {
  display: flex;
}
  #loading {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .logo {
    width: 90%;
    max-width: 900px;
  }

  .logo text {
    fill: none;
    stroke: #111;
    stroke-width: 1.2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;

    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 48px;
    letter-spacing: 0.08em;

    animation:
      drawText 1.2s ease-out forwards,
  }


  #loading {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .logo text {
    fill: none;
    stroke: #111;
    stroke-width: 1.2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    font-family: "Playfair Display", serif;
    letter-spacing: 0.12em;
  }

  .line1 {
    font-size: 48px;
    animation:
      drawText 1.2s ease-out forwards,
      shine 0.8s linear 3.3s forwards;
  }

  .line2 {
    font-size: 32px;
    animation:
      drawText 1.6s ease-out forwards,
      shine 0.8s linear 3.7s forwards;
  }

  #loading {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .logo {
    width: 90%;
    max-width: 900px;
  }

.logo text {
  fill: none;
  stroke: #111;
  stroke-width: 1.2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.12em;
}

/* 1行目 */
.line1 {
  font-size: 48px;
  animation:
    drawText 1.2s ease-out forwards,
    fadeFill 0.4s linear 1.3s forwards;
}

/* 2行目 */
.line2 {
  font-size: 32px;
  animation:
    drawText 1.2s ease-out 0.4s forwards,
    fadeFill 0.4s linear 1.7s forwards;
}

@keyframes drawText {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeFill {
  from {
    fill: transparent;
  }
  to {
    fill: #111;
  }
}
