.todo {
  display: inline-block; padding: 0 7px; border-radius: 6px;
  border: 1px dashed var(--accent); background: #FFF1EC; color: #D9532E;
  font-weight: 600; white-space: nowrap;
}

.ly-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.ly-text, .ly-photo { min-height: calc(var(--row-h) * 1.95); border-radius: var(--r-card); background: var(--surface); }
.ly-text { grid-column: 1 / 3; padding: clamp(28px, 3vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.ly-text .section-title { margin-bottom: 0; }
.ly-text p { max-width: 40em; font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; letter-spacing: -0.3px; line-height: 1.6; color: var(--text); }
.ly-text p + p { margin-top: 16px; }
.ly-photo { position: relative; overflow: hidden; }
.ly-photo img { position: absolute; left: -4%; right: -4%; bottom: -8%; width: 108%; height: auto; }

.ly-friend {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: center;
  margin-bottom: var(--section-gap); padding: clamp(32px, 4vw, 64px);
  border-radius: 40px; color: #fff;
  background: linear-gradient(120deg, var(--text) 0%, #1F1F1F 50%, var(--black) 100%);
}
.ly-friend-copy { grid-column: 1 / 3; position: relative; z-index: 2; }
.ly-tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 30px;
  background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: -0.2px;
}
.ly-friend h2 {
  margin-top: clamp(18px, 1.8vw, 28px);
  font-size: clamp(40px, 5.2vw, 86px); font-weight: 600; letter-spacing: -0.055em; line-height: .98;
}
.ly-friend h2 span { display: block; color: rgba(255,255,255,.45); }
.ly-friend > .ly-friend-copy > p {
  margin-top: clamp(18px, 1.8vw, 28px); max-width: 32em;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: rgba(255,255,255,.62);
}
.ly-terms { margin-top: clamp(22px, 2.2vw, 34px); }
.ly-terms summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 7px 0 26px; border-radius: 200px; background: #fff; color: var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
}
.ly-terms summary::-webkit-details-marker { display: none; }
.ly-terms summary i { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--text); }
.ly-terms summary i::before, .ly-terms summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: #fff; translate: -50% -50%; }
.ly-terms summary i::after { rotate: 90deg; transition: rotate .3s; }
.ly-terms[open] summary i::after { rotate: 0deg; }
.ly-terms ul {
  margin-top: 18px; padding: 22px 26px; max-width: 38em; border-radius: 20px; background: rgba(255,255,255,.08);
  list-style: none; display: grid; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45;
}
.ly-terms li { position: relative; padding-left: 20px; }
.ly-terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ly-terms-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); }
.ly-friend .todo { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.18); color: #fff; }

.ly-friend-pic { position: relative; aspect-ratio: 1; }
.ly-coupon {
  position: absolute; left: 8%; right: 8%; top: 30%; aspect-ratio: 1.58; padding: 9% 9%;
  border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 22px 50px rgba(0,0,0,.45);
}
.ly-coupon em { font-style: normal; font-size: clamp(12px, .95vw, 15px); font-weight: 600; opacity: .7; }
.ly-coupon b { margin-top: auto; font-size: clamp(26px, 2.6vw, 44px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.ly-coupon span { margin-top: 6px; font-size: clamp(11px, .85vw, 13px); font-weight: 500; opacity: .6; }
.ly-coupon.back { background: var(--accent); color: #fff; transform: translate(10%, -24%) rotate(9deg); }
.ly-coupon.front { background: #fff; color: var(--text); transform: translate(-6%, 8%) rotate(-6deg); }


@media (max-width: 900px) {
  .ly-friend { grid-template-columns: 1fr; border-radius: 28px; padding: 28px 22px 24px; }
  .ly-friend-copy { grid-column: auto; }
  .ly-terms summary { width: 100%; justify-content: space-between; }
  .ly-terms ul { padding: 18px 18px; }
  .ly-friend-pic { width: 86%; margin: 0 auto; aspect-ratio: 1 / 0.82; }
  .ly-hero { grid-template-columns: 1fr; }
  .ly-text { grid-column: auto; min-height: 0; padding: 26px 22px; }
  .ly-photo { min-height: 0; aspect-ratio: 1 / 0.9; }
}
