:root {
  --ink: #251f20;
  --muted: #706367;
  --pink: #b94b5b;
  --deep-pink: #892b3b;
  --blush: #efd3d7;
  --pale: #fff5f5;
  --paper: #fffdfd;
  --line: #ead6dc;
  --gold: #a88a55;
  --shadow: 0 18px 55px rgba(103, 53, 67, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .85rem; letter-spacing: .15em; }
.brand-portrait { width: 35px; height: 35px; object-fit: cover; border: 1px solid rgba(168,138,85,.7); border-radius: 50%; box-shadow: 0 3px 12px rgba(52,28,33,.14); }
.header-link { color: var(--deep-pink); font-size: .78rem; letter-spacing: .12em; text-underline-offset: 5px; }

.mikuji-hero {
  min-height: 100svh;
  padding: 105px 20px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(26,21,22,.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 16%, rgba(198, 82, 100, .15), transparent 23%),
    radial-gradient(circle at 90% 78%, rgba(185, 75, 91, .12), transparent 26%),
    linear-gradient(150deg, #fff 0%, #fffafa 55%, #fdf1f2 100%);
  background-size: 32px 32px, auto, auto, auto;
  position: relative;
}
.mikuji-hero::after { content: ""; position: absolute; inset: 82px auto auto 50%; width: 1px; height: 28px; background: var(--line); }
.hero-portrait-wrap { width: 96px; height: 96px; padding: 4px; border: 1px solid rgba(168,138,85,.65); border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 12px 30px rgba(71,34,42,.12); position: relative; }
.hero-portrait-wrap::after { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(137,43,59,.14); border-radius: 50%; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.eyebrow, .section-number { margin-top: 24px; color: var(--gold); font-size: .76rem; letter-spacing: .28em; }
h1 { margin: 6px 0 2px; font-size: clamp(3.8rem, 17vw, 6.8rem); font-weight: 400; letter-spacing: .18em; line-height: 1.18; }
h1 span { color: var(--pink); }
.lead { margin: 10px 0 24px; color: var(--muted); font-size: .95rem; }

.mikuji-stage { width: min(100%, 480px); position: relative; }
.knot { position: relative; height: 20px; margin: 0 auto -2px; width: 100%; }
.knot::before, .knot::after { content: ""; position: absolute; top: 9px; height: 1px; width: calc(50% - 22px); background: linear-gradient(90deg, transparent, var(--line)); }
.knot::after { right: 0; transform: scaleX(-1); }
.knot span { display: block; margin: auto; width: 11px; height: 11px; border: 1px solid var(--pink); transform: rotate(45deg); }
.before-draw { padding-top: 8px; }
.omikuji-box {
  width: 92px;
  height: 166px;
  margin: 3px auto 22px;
  border-radius: 3px 3px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: white;
  background: linear-gradient(160deg, #ba4a59, #7f2636);
  box-shadow: 0 16px 25px rgba(157, 61, 86, .2);
  position: relative;
}
.omikuji-box::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.45); border-radius: inherit; }
.box-label { line-height: 1.3; font-size: 1.05rem; letter-spacing: .1em; }
.box-flower { opacity: .75; }
.primary-button, .line-button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #9e3444, #73202f);
  box-shadow: 0 12px 26px rgba(130, 47, 70, .22);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button:hover, .line-button:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(130,47,70,.26); background: #8f374f; }
.primary-button:active { transform: translateY(0); }
.primary-button span { font-size: 1.05rem; letter-spacing: .1em; }
.primary-button small { opacity: .72; font-size: .71rem; margin-top: 1px; }
.privacy-note { color: var(--muted); font-size: .72rem; margin: 14px 0 0; }

.result-card {
  margin-top: 12px;
  padding: 31px 25px 23px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  animation: reveal .65s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.result-card::before, .result-card::after { content: "❀"; position: absolute; color: var(--blush); font-size: 1.6rem; }
.result-card::before { top: 7px; left: 9px; }
.result-card::after { right: 9px; bottom: 7px; transform: rotate(180deg); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.result-head span, .result-note span, .charm-word span { display: block; color: var(--gold); font-size: .69rem; letter-spacing: .2em; }
.result-head strong { display: block; color: var(--deep-pink); font-size: 1.55rem; font-weight: 500; letter-spacing: .13em; }
.tanka { margin: 24px 0; font-size: 1.24rem; line-height: 2.05; letter-spacing: .08em; }
.tanka span { display: block; }
.result-note { padding: 15px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-note p { margin: 5px 0 0; font-size: .91rem; color: var(--muted); }
.charm-word { margin-top: 16px; }
.charm-word strong { color: var(--deep-pink); font-size: 1.05rem; letter-spacing: .08em; }
.result-gift { margin: 20px -10px 0; padding: 17px 15px; background: var(--pale); border-radius: 10px; }
.result-gift p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.75; }
.result-gift p strong { color: var(--ink); font-weight: 500; }
.result-gift-link { display: inline-block; margin-top: 8px; color: var(--deep-pink); font-size: .82rem; font-weight: 600; text-underline-offset: 4px; }
.text-button { margin-top: 17px; background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; font-size: .82rem; }

.section-pad { padding: 82px 22px; }
.gift-section { background: #fff; }
.section-number { margin: 0 auto 33px; max-width: 1040px; text-align: center; }
.gift-grid { max-width: 1040px; margin: auto; display: grid; gap: 48px; align-items: center; }
.kicker { margin: 0 0 8px; color: var(--pink); font-size: .76rem; letter-spacing: .18em; }
h2 { margin: 0; font-weight: 400; font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.55; letter-spacing: .05em; }
h2 em { font-style: normal; color: var(--deep-pink); }
.section-copy { color: var(--muted); margin: 20px 0 28px; }
.line-button { max-width: 360px; background: #567c68; box-shadow: 0 12px 26px rgba(62,100,80,.16); min-height: 57px; }
.line-button:hover { background: #466c58; }
.line-button span { font-size: 1rem; letter-spacing: .05em; }
.line-button small { font-size: .7rem; opacity: .8; }
.gift-points { display: flex; flex-wrap: wrap; gap: 7px; margin: -12px 0 22px; }
.gift-points span { padding: 5px 10px; border-radius: 999px; color: #527360; background: #f0f6f2; font-size: .72rem; }
.line-reassurance { margin: 9px 0 20px; color: var(--muted); font-size: .73rem; }
.receive-flow { max-width: 380px; padding: 17px 18px; background: var(--pale); border-left: 2px solid var(--pink); }
.receive-flow > strong { display: block; margin-bottom: 8px; color: var(--deep-pink); font-size: .78rem; letter-spacing: .12em; }
.receive-flow ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.receive-flow li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.receive-flow li span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--pink); font-size: .65rem; }
.fine-print { margin: 10px 0 0; color: #96868b; font-size: .7rem; }
.seven-charms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.charm-card { min-height: 116px; padding: 17px 12px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.charm-card span { color: var(--gold); font-size: .65rem; }
.charm-card strong { color: var(--deep-pink); font-weight: 400; font-size: 1.08rem; letter-spacing: .1em; }
.charm-card small { color: var(--muted); font-size: .7rem; }
.charm-card.featured { background: var(--pale); }
.charm-card:last-child { grid-column: 1 / -1; }

.personal-section { background: linear-gradient(145deg, #fdf3f6, #fff9fb); }
.personal-card { max-width: 760px; margin: auto; padding: 48px 24px; border: 1px solid rgba(198,93,120,.25); text-align: center; background: rgba(255,255,255,.58); position: relative; }
.coming-soon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 18px; white-space: nowrap; background: var(--deep-pink); color: white; border-radius: 999px; font-size: .68rem; letter-spacing: .13em; }
.personal-card h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
.personal-card > p:not(.kicker) { max-width: 540px; margin: 20px auto; color: var(--muted); }
.ghost-button { padding: 11px 28px; border: 1px solid var(--line); background: white; color: #9c8c91; border-radius: 999px; }
.notice { max-width: 820px; margin: auto; text-align: center; }
.notice h2 { font-size: 1.2rem; color: var(--deep-pink); }
.notice p { color: var(--muted); font-size: .82rem; }
footer { padding: 46px 22px calc(46px + env(safe-area-inset-bottom)); text-align: center; background: #493a3f; color: #f9eaf0; }
.footer-flower { font-size: 1.25rem; color: #e6a7b7; }
footer p { margin: 7px 0 16px; font-size: .83rem; }
footer small { opacity: .55; }

.petal-field i { position: absolute; z-index: 2; width: 9px; height: 15px; border-radius: 90% 10% 80% 20%; background: rgba(220,128,150,.25); transform: rotate(35deg); pointer-events: none; }
.petal-field i:nth-child(1) { top: 14%; left: 8%; }
.petal-field i:nth-child(2) { top: 31%; right: 8%; transform: rotate(85deg); }
.petal-field i:nth-child(3) { top: 63%; left: 13%; transform: rotate(135deg); }
.petal-field i:nth-child(4) { top: 75%; right: 13%; transform: rotate(220deg); }
.petal-field i:nth-child(5) { top: 48%; left: 4%; transform: rotate(270deg); }

@media (min-width: 760px) {
  .site-header { padding-left: 44px; padding-right: 44px; }
  .gift-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .seven-charms { grid-template-columns: repeat(4, 1fr); }
  .charm-card:last-child { grid-column: auto; }
  .mikuji-hero { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (forced-colors: active) { .omikuji-box, .primary-button, .line-button, .coming-soon { border: 1px solid ButtonText; } }
