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

html,
body {
  margin: 0;
  padding: 0;
  background: #e6d3b3;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.referral-campaign {
  padding: 40px 16px 60px;
  background: #e6d3b3;
  min-height: 100vh;
}

.referral-inner {
  max-width: 900px;
  margin: 0 auto;
}

.title-area {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
}

.referral-chara {
  position: relative;
  z-index: 1;
  margin-bottom: -36px;
}

.referral-chara img {
  width: 140px;
  max-width: 42vw;
  height: auto;
}

.referral-title {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin: 0 auto 20px;
  height: 60px;
  background: #0b7a52;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.25);
}

.referral-title span {
  display: block;
  padding: 0px 40px;
  line-height: 48px;
  margin: 4px 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-top: dashed 2px rgba(255,255,255,0.5);
  border-bottom: dashed 2px rgba(255,255,255,0.5);
}

.referral-title::before,
.referral-title::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 0;
  height: 0;
}

.referral-title::before {
  left: -3px;
  border-style: solid;
  border-width: 34px 0 34px 16px;
  border-color: transparent transparent transparent #e6d3b3;
}

.referral-title::after {
  right: -3px;
  border-style: solid;
  border-width: 34px 16px 34px 0;
  border-color: transparent #e6d3b3 transparent transparent;
}

.referral-lead {
  margin: 0 auto 28px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
  color: #444;
}

.referral-highlight {
  margin-bottom: 24px;
  padding: 28px 20px;
  background: #ffffff;
  border: 3px solid #006241;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.highlight-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c8a96a;
  letter-spacing: 0.05em;
}

.highlight-text {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  font-weight: 600;
}

.highlight-text strong {
  color: #d35400;
  font-size: 1.25rem;
  display: block;
}

.highlight-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #777;
}

.referral-box {
  margin-bottom: 20px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid #006241;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.referral-box h3 {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  background: #006241;
  color: #fff;
  font-size: 1rem;
  border-radius: 999px;
}

.referral-box p,
.referral-box li {
  color: #3f352b;
  line-height: 1.9;
}

.referral-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.referral-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #a94442;
}

.friend-footer {
  padding: 18px 12px 28px;
  text-align: center;
  background: #d9c7a7;
}

.friend-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a4a38;
}

.friend-footer a {
  color: #006241;
  text-decoration: none;
  font-weight: 700;
  word-break: keep-all;
}

.friend-footer a:hover {
  text-decoration: underline;
}

.cta-area {
  text-align: center;
  margin: 10px 0 30px;
}

.cta-area p {
  margin: 0 0 14px;
}

.cta-btn {
  display: inline-block;
  background: #006241;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* hover */
.cta-btn:hover {
  background: #0b7a52;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

/* クリック時 */
.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.referral-highlight {
  margin-bottom: 32px;
}

.trust-text {
  position: relative;
  display: block;
  width: fit-content;
  margin: 34px auto 26px;
  text-align: center;
  font-size: 0.95rem;
  color: #5f554b;
  font-family: 'Kiwi Maru', serif;
  line-height: 1.7;
}

.trust-text::after {
  content: "";
  position: absolute;
  left: 3%;
  bottom: -3px;
  width: 94%;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(95, 85, 75, 0.95) 0%,
    rgba(95, 85, 75, 0.75) 28%,
    rgba(95, 85, 75, 0.45) 60%,
    rgba(95, 85, 75, 0.18) 85%,
    transparent 100%
  );
  clip-path: polygon(0% 15%, 100% 30%, 100% 72%, 0% 100%);
  transform: rotate(-1.2deg);
  border-radius: 10px;
  opacity: 0.9;
}

.cta-area {
  text-align: center;
  margin: 0 auto 34px;
}

.cta-lead {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #4f473f;
}

.cta-btn {
  display: inline-block;
  background: #006241;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  background: #0b7a52;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.share-card {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 98, 65, 0.2);
  border-radius: 18px;
  text-align: center;
}

.share-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #4f473f;
}

.share-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.share-form input {
  width: 220px;
  padding: 11px 12px;
  border: 1px solid #cfc7b8;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
}

.share-form button {
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: #006241;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.share-form button:hover {
  background: #0b7a52;
  transform: translateY(-2px);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.share-btn {
  display: inline-block;
  min-width: 160px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-line {
  background: #06c755;
  color: #fff;
}

.share-copy {
  background: #fff;
  color: #006241;
  border: 2px solid #006241;
}

.share-note {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #6a6057;
}
@media screen and (max-width: 768px) {
  .share-form {
    flex-direction: column;
    align-items: center;
  }

  .share-form input {
    width: 100%;
    max-width: 260px;
  }

  .share-form button {
    width: 100%;
    max-width: 260px;
  }

  .share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .share-btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .share-area {
    margin: 30px auto 18px;
  }

  .share-title {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .share-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .share-btn {
    width: 100%;
    max-width: 320px;
    font-size: 0.95rem;
  }

  .share-note {
    font-size: 0.88rem;
  }
}

@media screen and (max-width: 768px) {
  .referral-campaign {
    padding: 24px 12px 40px;
  }

  .title-area {
    margin-bottom: 20px;
  }

  .referral-chara {
    margin-bottom: -30px;
  }

  .referral-chara img {
    width: 110px;
    max-width: 36vw;
  }

.referral-title {
  height: 52px;
  margin-bottom: 16px;
}

.referral-title span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 22px;
  margin: 0;
  line-height: 1;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  border-top: none;
  border-bottom: none;
}

.referral-title span::before,
.referral-title span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  border-top: 2px dashed rgba(255,255,255,0.5);
}

.referral-title span::before {
  top: 4px;
}

.referral-title span::after {
  bottom: 4px;
}

  .referral-lead {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 20px;
  }

  .referral-highlight {
    padding: 22px 14px;
    border-radius: 16px;
  }

  .highlight-label {
    font-size: 0.9rem;
  }

  .highlight-text {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .highlight-note {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .referral-box {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .referral-box h3 {
    font-size: 0.95rem;
    padding: 7px 12px;
    margin-bottom: 12px;
  }

  .referral-box p,
  .referral-box li {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .referral-note {
    font-size: 0.84rem;
  }
  
    .friend-footer {
    padding: 16px 10px 24px;
  }

  .friend-footer p {
    font-size: 0.95rem;
  }

  .friend-footer a {
    display: inline-block;
  }

  .cta-area {
    margin-bottom: 28px;
  }

  .cta-lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .share-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .share-title {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .share-form,
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .share-form input,
  .share-form button,
  .share-btn {
    width: 100%;
    max-width: 280px;
  }

  .share-note {
    font-size: 0.80rem;
  }
}