@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

body.gift-card-page {
  --gift-green: #194b36;
  --gift-accent: #13b86a;
  --gift-accent-dark: #079c58;
  --gift-cream: #f4f1e8;
  --gift-paper: #fffdf7;
  --gift-yellow: #f2d36c;
  --gift-line: rgba(25, 75, 54, 0.14);
  --gift-muted: #60776a;
  color: var(--gift-green);
  background:
    radial-gradient(circle at 4% 24%, rgba(242, 211, 108, 0.2) 0 74px, transparent 75px),
    radial-gradient(circle at 96% 72%, rgba(19, 184, 106, 0.1) 0 100px, transparent 101px),
    var(--gift-cream);
  font-family: ryo-gothic-plusn, "Noto Sans JP", sans-serif;
  font-weight: 600;
}

.gift-card-page .gift-header {
  min-height: 76px;
  padding: 16px max(24px, calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--gift-line);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 4px 24px rgba(25, 75, 54, 0.04);
  backdrop-filter: blur(10px);
}

.gift-card-page .gift-header__logo img {
  width: auto;
  height: 23px;
}

.gift-card-page .gift-header__link {
  padding: 8px 16px;
  border: 1px solid rgba(25, 75, 54, 0.25);
  border-radius: 999px;
  font-size: 11px;
  transition: color 0.2s ease, background 0.2s ease;
}

.gift-card-page .gift-header__link:hover {
  color: #fff;
  background: var(--gift-green);
}

.gift-card-page .breadcrumb {
  width: min(980px, calc(100% - 40px));
  margin-top: 18px;
}

.gift-card-page .breadcrumb__list {
  color: var(--gift-muted);
}

.gift-card-page .breadcrumb__item:not(:last-child)::after {
  border-color: var(--gift-green);
}

.gift-card-page .shop-main {
  width: min(980px, calc(100% - 40px));
  margin: 28px auto 90px;
}

.gift-kicker {
  margin: 0 0 8px;
  color: var(--gift-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.gift-card-page .shop-title {
  margin: 0;
  color: var(--gift-green);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.gift-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  min-height: 480px;
  margin-bottom: 32px;
  padding: clamp(32px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 110%, rgba(19, 184, 106, 0.1) 0 140px, transparent 141px),
    var(--gift-paper);
  box-shadow: 0 20px 60px rgba(25, 75, 54, 0.08);
}

.gift-hero__copy {
  position: relative;
  z-index: 1;
}

.gift-hero__lead {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--gift-muted);
  font-size: 14px;
  line-height: 2;
}

.gift-card-page .gift-card-price {
  margin: 28px 0 0;
  color: var(--gift-green);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gift-card-price small {
  display: inline-block;
  margin-left: 7px;
  color: var(--gift-muted);
  font-size: 11px;
  font-weight: 500;
}

.gift-hero__visual {
  position: relative;
}

.gift-hero__visual::before,
.gift-hero__visual::after {
  position: absolute;
  color: var(--gift-yellow);
  content: "✦";
  font-size: 28px;
}

.gift-hero__visual::before {
  top: 2%;
  left: 2%;
}

.gift-hero__visual::after {
  right: 0;
  bottom: 12%;
  font-size: 18px;
}

.gift-hero__visual img {
  display: block;
  width: min(100%, 370px);
  margin-left: auto;
  filter: drop-shadow(0 18px 24px rgba(25, 75, 54, 0.1));
}

.gift-hero--compact {
  min-height: 330px;
  padding-block: 36px;
}

.gift-hero--compact .gift-hero__visual img {
  width: 230px;
}

.gift-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 38px;
}

.gift-feature {
  padding: 26px 22px;
  border: 1px solid var(--gift-line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.84);
  text-align: center;
}

.gift-feature img {
  width: 66px;
  height: 66px;
  margin: 0 auto 13px;
}

.gift-feature h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.gift-feature p {
  margin: 0;
  color: var(--gift-muted);
  font-size: 11px;
  line-height: 1.8;
}

.gift-card-page .shop-alert {
  border: 1px solid rgba(25, 75, 54, 0.1);
  border-radius: 12px;
  background: #edf7f1;
}

.gift-card-page .shop-alert--error {
  border-color: rgba(141, 48, 42, 0.15);
  color: #8d302a;
  background: #f9e8e6;
}

.gift-card-page .shop-card {
  margin: 0 auto 20px;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid var(--gift-line);
  border-radius: 24px;
  background: var(--gift-paper);
  box-shadow: 0 15px 45px rgba(25, 75, 54, 0.07);
}

.gift-card-page .gift-form,
.gift-card-page .gift-order-summary,
.gift-card-page .gift-payment-card {
  width: min(680px, 100%);
}

.gift-section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 4px 0 25px;
  padding-top: 6px;
}

.gift-section-heading:not(:first-of-type) {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--gift-line);
}

.gift-section-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  background: var(--gift-accent);
  font-size: 12px;
}

.gift-section-heading p {
  margin: 0 0 1px;
  color: var(--gift-accent);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.gift-card-page .gift-section-heading h2 {
  margin: 0;
  color: var(--gift-green);
  font-size: 19px;
}

.gift-card-page .shop-field {
  margin-bottom: 20px;
  color: var(--gift-green);
  font-size: 12px;
}

.gift-card-page .shop-field input,
.gift-card-page .shop-field select,
.gift-card-page .shop-field textarea {
  min-height: 50px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(25, 75, 54, 0.2);
  border-radius: 10px;
  color: var(--gift-green);
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.gift-card-page .shop-field textarea {
  min-height: 130px;
}

.gift-card-page .shop-field input:focus,
.gift-card-page .shop-field select:focus,
.gift-card-page .shop-field textarea:focus {
  border-color: var(--gift-accent);
  box-shadow: 0 0 0 3px rgba(19, 184, 106, 0.1);
  outline: 0;
}

.gift-card-page .shop-required {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--gift-accent);
  font-size: 8px;
}

.gift-card-page .shop-btn {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gift-accent-dark), var(--gift-accent));
  box-shadow: 0 9px 22px rgba(19, 184, 106, 0.22);
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gift-card-page .shop-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.gift-card-page .shop-btn--secondary {
  border: 1px solid var(--gift-line);
  color: var(--gift-green);
  background: transparent;
  box-shadow: none;
}

.gift-form__note {
  margin: 12px 0 0;
  color: var(--gift-muted);
  font-size: 10px;
  text-align: center;
}

.gift-order-summary .gift-kicker {
  margin-bottom: 3px;
}

.gift-card-page .shop-summary-row {
  padding: 16px 0;
  border-top: 1px solid var(--gift-line);
  color: var(--gift-green);
}

.gift-card-page .shop-card-element {
  border-color: rgba(25, 75, 54, 0.2);
  border-radius: 10px;
}

.gift-card-page .gift-card-restart button {
  color: var(--gift-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

/* ギフト受け取り画面 */
.gift-share-page .shop-main,
.gift-complete-page .shop-main {
  width: min(720px, calc(100% - 40px));
}

.gift-received-hero {
  margin-bottom: 26px;
  text-align: center;
}

.gift-received-hero__visual {
  width: 210px;
  margin: 0 auto 14px;
}

.gift-received-hero__visual img {
  display: block;
  width: 100%;
  max-height: 270px;
}

.gift-share-page .shop-title,
.gift-complete-page .shop-title {
  font-size: clamp(27px, 5vw, 39px);
}

.gift-letter {
  position: relative;
  padding-top: 55px !important;
  background:
    linear-gradient(rgba(255, 253, 247, 0.93), rgba(255, 253, 247, 0.93)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(25, 75, 54, 0.08) 31px 32px) !important;
}

.gift-letter::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 100px;
  height: 22px;
  background: rgba(242, 211, 108, 0.6);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.gift-letter__label {
  color: var(--gift-accent) !important;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.gift-card-page .gift-card-message blockquote {
  margin: 22px 0 0;
  padding: 20px;
  border-left: 3px solid var(--gift-accent);
  color: var(--gift-green);
  background: rgba(237, 247, 241, 0.72);
  font-size: 14px;
  line-height: 2;
}

.gift-redeem-card {
  text-align: center;
}

.gift-redeem-card .gift-card-code,
.gift-complete-card .gift-card-code {
  padding: 12px;
  border: 1px dashed rgba(25, 75, 54, 0.3);
  border-radius: 10px;
  color: var(--gift-green);
  background: #f4f1e8;
  font-size: clamp(17px, 4vw, 24px);
}

.gift-result,
.gift-complete-heading {
  padding: 60px 20px 28px;
  text-align: center;
}

.gift-result > p:not(.gift-kicker),
.gift-complete-heading > p:last-child {
  color: var(--gift-muted);
  font-size: 13px;
  line-height: 2;
}

.gift-result .shop-btn {
  max-width: 300px;
  margin-top: 28px;
}

.gift-complete-heading__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--gift-accent);
  box-shadow: 0 10px 30px rgba(19, 184, 106, 0.25);
  font-size: 30px;
}

.gift-complete-card {
  margin-top: 14px !important;
}

.gift-back-link {
  display: block;
  margin-top: 28px;
  color: var(--gift-green);
  font-size: 12px;
  text-align: center;
  text-underline-offset: 4px;
}


.gift-recipient {
  min-width: 0;
  margin: 0 0 18px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--gift-line);
}

.gift-recipient__title {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  color: var(--gift-green);
}

.gift-complete-item + .gift-complete-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gift-line);
}

.gift-complete-item__title {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--gift-green);
}

.gift-complete-item__title span {
  margin-left: 6px;
  font-weight: 500;
  color: var(--gift-muted);
}

@media (max-width: 720px) {
  body.gift-card-page {
    background:
      radial-gradient(circle at 106% 16%, rgba(242, 211, 108, 0.25) 0 64px, transparent 65px),
      var(--gift-cream);
  }

  .gift-card-page .gift-header {
    min-height: 66px;
    padding: 14px 18px;
  }

  .gift-card-page .gift-header__logo img {
    height: 16px;
  }

  .gift-card-page .breadcrumb {
    width: calc(100% - 32px);
  }

  .gift-card-page .shop-main,
  .gift-share-page .shop-main,
  .gift-complete-page .shop-main {
    width: calc(100% - 32px);
    margin-top: 20px;
  }

  .gift-hero,
  .gift-hero--compact {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px 24px 24px;
    border-radius: 24px;
    text-align: center;
  }

  .gift-hero__lead {
    margin-inline: auto;
    font-size: 12px;
  }

  .gift-hero__visual {
    order: -1;
  }

  .gift-hero__visual img,
  .gift-hero--compact .gift-hero__visual img {
    width: min(74%, 250px);
    max-height: 290px;
    margin: 0 auto 18px;
  }

  .gift-card-page .gift-card-price {
    margin-top: 18px;
    font-size: 23px;
  }

  .gift-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gift-feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 15px;
    padding: 18px;
    text-align: left;
  }

  .gift-feature img {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .gift-feature h2 {
    margin-bottom: 3px;
  }

  .gift-card-page .shop-card {
    padding: 25px 20px;
    border-radius: 19px;
  }

  .gift-section-heading:not(:first-of-type) {
    margin-top: 34px;
    padding-top: 27px;
  }

  .gift-received-hero__visual {
    width: 170px;
  }

  .gift-result,
  .gift-complete-heading {
    padding: 40px 5px 20px;
  }
}

.gift-agree {
  margin: 8px 0 20px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.8;
}

.gift-agree p {
  margin: 0 0 12px;
}

.gift-agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gift-agree input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.gift-agree a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
