/* 誕生日カードの ページ (アプリの style.css とは べつ。色と 形は アプリに そろえる) */
:root {
  --yellow: #F6D04D;
  --yellow-2: #FBE8A6;
  --yellow-3: #FFF8DC;
  --ink: #2A2A2A;
  --ink-2: #5C5C5C;
  --ink-3: #8A8A8A;
  --bg-2: #F6F5F1;
  --line: #E6E3DC;
  --night: #1E2542;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0h400v10c-40 14-80 16-120 8S200 2 160 6 80 26 40 22 0 12 0 12z' fill='%23F6D04D'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Zen Kaku Gothic New', -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif; font-weight: 500; line-height: 1.8; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 900; line-height: 1.4; }
a { color: inherit; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--yellow); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.top-cta { padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; text-decoration: none; }

.btn, .sticky { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; text-decoration: none; }
.btn { padding: 14px 18px 14px 34px; font-size: 18px; }
.dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 15px; line-height: 1; }

.hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 16px 40px; background: var(--yellow); text-align: center; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 24px; background: var(--wave) center / 100% 100% no-repeat; }
.hero h1 { font-size: clamp(27px, 7.8vw, 44px); letter-spacing: .02em; }
.hero-text > p { margin: 12px 0 18px; font-size: 14px; font-weight: 700; }
.hero-art { order: -1; width: min(100%, 400px); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { padding: 2px 11px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; }

.pick { max-width: 880px; margin: 0 auto; padding: 56px 16px 12px; }
.mogu-says { display: flex; align-items: center; gap: 12px; }
.mogu-says img { flex: none; padding: 4px; border-radius: 50%; background: var(--yellow-3); }
.mogu-says p { position: relative; flex: 1; padding: 10px 16px; border-radius: 16px; background: var(--bg-2); font-size: 15px; font-weight: 700; line-height: 1.6; }
.mogu-says p::before { content: ''; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; background: var(--bg-2); transform: translateY(-50%) rotate(45deg); }
.mogu-says b { display: block; font-size: 10px; letter-spacing: .12em; color: var(--ink-3); }
.picks { display: grid; gap: 10px; margin-top: 20px; }
.picks a { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.picks a:hover { border-color: var(--yellow); background: var(--yellow-3); }
.picks img { flex: none; width: 96px; height: 72px; border-radius: 12px; object-fit: cover; }
.picks span { flex: 1; min-width: 0; }
.picks b { display: block; font-size: 16px; font-weight: 900; line-height: 1.4; }
.picks small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.picks i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font-size: 13px; font-style: normal; font-weight: 900; }

.case { max-width: 880px; margin: 0 auto; padding: 44px 16px 0; }
.case figure { position: relative; margin: 0; }
.case figure > img { width: 100%; border-radius: 20px; }
.who { display: inline-block; margin-bottom: 8px; padding: 1px 12px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 900; }
.case h2 { margin-bottom: 10px; font-size: clamp(22px, 6vw, 28px); }
.case-text > p:not(.who):not(.choose) { font-size: 15px; }
.case > figure + .case-text, .love figure + .case-text { margin-top: 20px; }
.flow { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: f; }
.flow li { position: relative; padding: 9px 0 9px 38px; border-bottom: 1.5px solid var(--bg-2); font-size: 14px; counter-increment: f; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font-size: 13px; font-weight: 900; }
.choose { margin-top: 12px; padding: 9px 14px; border-radius: 12px; background: var(--bg-2); font-size: 13px; }

.ui-bubble { position: absolute; left: 50%; top: 12px; padding: 7px 18px; border-radius: 999px; background: rgba(42, 42, 42, .9); color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; transform: translateX(-50%); }

.letter { position: relative; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, #FFF3F2, #FFFAEE); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); font-size: 14px; line-height: 1.75; }
.letter::after { content: '🌸🌼'; position: absolute; right: 10px; top: 8px; font-size: 19px; letter-spacing: -2px; }
.letter b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 900; }
.letter span { display: block; margin-top: 6px; font-weight: 900; text-align: right; }
.case figcaption.letter { width: calc(100% - 28px); margin: -38px auto 0; transform: rotate(-1deg); }
.letter.flat { margin-top: 16px; box-shadow: 0 2px 0 var(--line); border: 1.5px solid var(--line); }
.gift-btn { display: block; margin-top: 10px; padding: 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-style: normal; font-weight: 900; text-align: center; }

.far { max-width: none; margin-top: 44px; padding: 40px 16px 44px; background: var(--yellow-3); }
.far > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.far figure { margin-top: 18px; }
.far .choose { background: #fff; }

.love { max-width: none; margin-top: 48px; padding: 44px 16px 48px; background: var(--night); color: #fff; }
.love-in { max-width: 880px; margin: 0 auto; }
.love .who { color: var(--ink); }
.love .choose { background: rgba(255, 255, 255, .1); }
.love figure { margin-top: 18px; }
.letter.night { background: linear-gradient(160deg, #2C3560, #3A3567); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.letter.night::after { content: '✨🌙'; }

.qa { max-width: 680px; margin: 0 auto; padding: 44px 16px 0; }
.qa h2 { margin-bottom: 8px; font-size: 22px; }
.qa details { border-bottom: 1.5px solid var(--bg-2); }
.qa summary { padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.qa details p { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }

.end { position: relative; margin-top: 66px; padding: 22px 16px 42px; background: var(--yellow); text-align: center; }
.end::before { content: ''; position: absolute; left: 0; right: 0; top: -21px; height: 24px; background: var(--wave) center / 100% 100% no-repeat; transform: scaleY(-1); }
.end img { margin: 0 auto 6px; }
.end h2 { font-size: clamp(22px, 6vw, 28px); }
.end p { margin: 6px 0 18px; font-size: 14px; font-weight: 700; }

footer { padding: 18px 16px 92px; background: var(--bg-2); font-size: 11px; color: var(--ink-3); text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 8px; }

.sticky { position: fixed; left: 16px; right: 16px; max-width: 520px; margin-inline: auto; bottom: 12px; z-index: 6; padding: 10px 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); font-size: 17px; }

@media (max-width: 799px) {
  .top-cta, .hero .btn, .end .btn { display: none; }
}
@media (min-width: 800px) {
  footer { padding-bottom: 100px; }
  .top { padding: 12px max(24px, calc((100% - 1040px) / 2)); }
  .hero { flex-direction: row; justify-content: center; gap: 36px; padding: 30px 24px 58px; text-align: left; }
  .hero-text { flex: 0 1 470px; }
  .hero-art { order: 0; flex: 0 1 460px; margin: 0; }
  .hero-text > p { font-size: 16px; }
  .chips { justify-content: flex-start; }
  .picks { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .case { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding-top: 64px; }
  .case > figure + .case-text, .love figure + .case-text { margin-top: 0; }
  .far, .love { display: block; padding-top: 56px; padding-bottom: 64px; }
  .far { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 490px); justify-content: center; margin-top: 64px; }
  .far > * { max-width: none; margin-left: 0; margin-right: 0; }
  .far figure, .love figure { margin-top: 0; }
  .family { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .love { margin-top: 64px; }
  .love-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .picks a { transition: none; } }
