@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #473658;
  --muted: #806f8f;
  --pink: #f583ae;
  --pink-soft: #ffe4ed;
  --cream: #fffaf1;
  --paper: #fffefa;
  --line: rgba(77, 57, 96, 0.12);
  --shadow: 0 20px 52px rgba(84, 62, 105, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  font-weight: 700;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(100% - 44px, 1140px);
  height: 88px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.brand img { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 8px 20px rgba(90, 63, 111, 0.17); }
.header-title { margin: 0 0 0 58px; font-size: .9rem; letter-spacing: .08em; }
.header-link { padding: 9px 16px; border: 1px solid rgba(71, 54, 88, .2); border-radius: 999px; background: rgba(255,255,255,.58); font-size: .82rem; transition: background .2s ease, transform .2s ease; }
.header-link:hover, .header-link:focus-visible { background: #fff; outline: none; transform: translateY(-2px); }

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  padding: 176px max(22px, calc((100% - 1080px) / 2)) 94px;
  background: linear-gradient(145deg, #fffdf8 12%, #fff3f6 53%, #f7f3ff 100%);
}
.hero::after { position: absolute; right: -8%; bottom: -24%; width: 74%; height: 72%; border: 1px solid rgba(255,255,255,.76); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.57), rgba(255,255,255,.02) 67%); content: ""; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { top: 113px; left: -70px; width: 254px; height: 254px; background: rgba(203, 234, 255, .58); }
.orb-two { top: 76px; right: 20%; width: 132px; height: 132px; background: rgba(255, 219, 156, .45); }
.orb-three { right: -95px; bottom: 68px; width: 265px; height: 265px; background: rgba(201, 245, 229, .7); }
.eyebrow, .section-kicker { margin: 0 0 13px; color: var(--pink); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.hero h1 { position: relative; z-index: 1; max-width: 700px; margin: 0; font-size: clamp(3.25rem, 6.5vw, 5.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; }
.hero h1 span { color: var(--pink); }
.hero-copy { position: relative; z-index: 1; margin: 26px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 2; }
.hero-button, .surprise-button { position: relative; z-index: 1; display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 55px; margin-top: 32px; padding: 13px 24px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #f379a9, #ffab7a); box-shadow: 0 15px 30px rgba(224, 111, 155, .26); font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease; }
.hero-button:hover, .hero-button:focus-visible, .surprise-button:hover, .surprise-button:focus-visible { outline: none; transform: translateY(-3px); box-shadow: 0 19px 36px rgba(224, 111, 155, .32); }
.hero-characters { position: absolute; right: max(12px, calc((100% - 1080px) / 2)); bottom: 46px; z-index: 1; width: min(45%, 480px); height: 405px; }
.hero-emo { position: absolute; display: grid; width: clamp(106px, 13vw, 150px); height: clamp(106px, 13vw, 150px); place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; font-size: clamp(3.5rem, 6vw, 5.65rem); box-shadow: 0 25px 42px rgba(82, 61, 108, .18), inset 0 0 25px rgba(255,255,255,.5); }
.hero-emo-sad { top: 88px; left: 2%; background: linear-gradient(135deg, #e9f8ff, #68acee); transform: rotate(-10deg); }
.hero-emo-angry { top: 6px; right: 11%; background: linear-gradient(135deg, #fff7db, #f66e58); transform: rotate(9deg); }
.hero-emo-worried { bottom: 4px; right: 0; background: linear-gradient(135deg, #e9fff8, #5ec3d3); transform: rotate(-8deg); }
.hero-emo-happy { bottom: 31px; left: 18%; background: linear-gradient(135deg, #fffce3, #ffbd3d); transform: rotate(8deg); }

.welcome { display: grid; width: min(100% - 44px, 980px); margin: -1px auto 0; padding: 90px 0 98px; grid-template-columns: 90px 1.3fr 1fr; gap: 28px; align-items: start; }
.welcome-stamp { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: #fff; background: #a985c8; box-shadow: 8px 8px 0 #eee0fa; font-size: 2rem; transform: rotate(-10deg); }
.welcome h2, .section-heading h2, .meet-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 800; line-height: 1.27; letter-spacing: -.04em; }
.welcome > p { margin: 27px 0 0; color: var(--muted); font-size: 1rem; line-height: 2; }

.zukan-section { padding: 91px 22px 104px; background: linear-gradient(180deg, #f7f2fb, #fffaf1 74%); }
.section-heading { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-heading > p:not(.section-kicker) { margin: 15px 0 0; color: var(--muted); font-size: .97rem; line-height: 1.8; }
.finder { display: flex; width: min(100%, 1060px); margin: 0 auto; gap: 14px; align-items: center; justify-content: space-between; }
.search-box { display: flex; min-width: 260px; flex: 1; max-width: 360px; gap: 10px; align-items: center; padding: 11px 15px; border: 1px solid rgba(88, 65, 105, .16); border-radius: 999px; color: var(--muted); background: #fff; box-shadow: 0 10px 22px rgba(92, 69, 111, .08); }
.search-box span { font-family: system-ui; font-size: 1.7rem; font-weight: 400; line-height: .7; transform: rotate(-18deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .88rem; font-weight: 700; }
.search-box input::placeholder { color: #b2a5bd; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter { min-height: 39px; padding: 7px 15px; border: 1px solid rgba(88, 65, 105, .15); border-radius: 999px; background: rgba(255,255,255,.68); font-size: .8rem; transition: background .2s ease, color .2s ease, transform .2s ease; }
.filter:hover, .filter:focus-visible { outline: none; transform: translateY(-2px); }
.filter.is-selected { border-color: var(--ink); color: #fff; background: var(--ink); }
.result-count { width: min(100%, 1060px); margin: 27px auto 3px; color: var(--muted); font-size: .83rem; }
.result-count .result-number { color: var(--pink); font-size: 1.1rem; }
.emo-grid { display: grid; width: min(100%, 1060px); margin: 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.emo-card { min-width: 0; }
.emo-card-button { position: relative; display: flex; width: 100%; min-height: 295px; flex-direction: column; align-items: flex-start; padding: 19px 19px 17px; overflow: hidden; border: 1px solid rgba(255,255,255,.77); border-radius: 25px; text-align: left; background: rgba(255,255,255,.9); box-shadow: 0 14px 30px rgba(91, 72, 103, .1); transition: transform .2s ease, box-shadow .2s ease; }
.emo-card-button:hover, .emo-card-button:focus-visible { outline: none; transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 22px 38px rgba(91, 72, 103, .17); }
.emo-card-button::after { position: absolute; right: -32px; bottom: -38px; width: 125px; height: 125px; border-radius: 50%; content: ""; opacity: .32; }
.emo-card-button[data-tone="blue"]::after { background: #a9ddff; }
.emo-card-button[data-tone="red"]::after { background: #ffb0a4; }
.emo-card-button[data-tone="purple"]::after { background: #dbc6ff; }
.emo-card-button[data-tone="yellow"]::after { background: #ffe29c; }
.emo-card-button.is-jackpot-found { border-color: rgba(255, 201, 74, .85); box-shadow: 0 0 0 3px rgba(255, 229, 124, .34), 0 17px 33px rgba(171, 113, 58, .15); }
.card-meta { z-index: 1; display: grid; width: 100%; min-height: 18px; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.jackpot-found { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #8b5b28; background: #fff3a7; box-shadow: 0 4px 9px rgba(170, 115, 45, .14); font-size: .6rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.emo-number { color: #a89bb3; font-size: .72rem; letter-spacing: .08em; }
.emo-ball { z-index: 1; display: grid; width: 92px; height: 92px; margin: 15px 0 17px; place-items: center; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; box-shadow: inset 0 0 21px rgba(255,255,255,.46), 0 10px 18px rgba(89, 67, 104, .12); font-size: 3.55rem; }
.emo-ball[data-tone="blue"] { background: linear-gradient(135deg, #f0fbff, #6eafea); }
.emo-ball[data-tone="red"] { background: linear-gradient(135deg, #fff6d8, #f57564); }
.emo-ball[data-tone="purple"] { background: linear-gradient(135deg, #fbf4ff, #a78ae4); }
.emo-ball[data-tone="yellow"] { background: linear-gradient(135deg, #fffde3, #f5b941); }
.emo-name { z-index: 1; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.emo-short { z-index: 1; margin-top: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.75; }
.more { z-index: 1; display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 11px; color: var(--pink); font-size: .72rem; }
.more b { font-size: 1rem; }
.empty-state { margin: 55px 0 0; color: var(--muted); text-align: center; font-size: .95rem; line-height: 2; }

.meet-section { padding: 95px 22px; background: #fffaf1; }
.meet-card { display: flex; width: min(100%, 960px); min-height: 360px; margin: 0 auto; padding: 52px 68px; overflow: hidden; border-radius: 34px; color: #fff; background: linear-gradient(125deg, #80649b, #b991c9 54%, #f294b7); box-shadow: var(--shadow); }
.meet-copy { position: relative; z-index: 1; flex: 1.15; }
.meet-copy .section-kicker { color: #ffe5a0; }
.meet-copy h2 { font-size: clamp(2rem, 3.7vw, 3rem); }
.meet-copy p:not(.section-kicker) { margin: 16px 0 0; color: rgba(255,255,255,.83); font-size: .9rem; line-height: 1.8; }
.surprise-button { margin-top: 24px; color: var(--ink); background: #fff7d9; box-shadow: 0 12px 25px rgba(65, 40, 86, .21); }
.slot-cta { display: inline-flex; margin: 15px 0 0 5px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.65); color: #fff; font-size: .78rem; }
.slot-cta:hover, .slot-cta:focus-visible { outline: none; color: #fff8ca; }
.today-emo { position: relative; display: flex; width: 300px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.today-emo::before, .today-emo::after { position: absolute; border-radius: 50%; content: ""; opacity: .22; }
.today-emo::before { top: -50px; right: -42px; width: 210px; height: 210px; background: #fff; }
.today-emo::after { bottom: -72px; left: -33px; width: 145px; height: 145px; background: #fff5bf; }
.today-ball { z-index: 1; display: grid; width: 134px; height: 134px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 16px 30px rgba(75,48,91,.18), inset 0 0 25px rgba(255,255,255,.62); font-size: 5.4rem; transition: transform .35s cubic-bezier(.2, .8, .2, 1.2); }
.today-ball.mint { background: linear-gradient(135deg, #e6fff7, #5dc1cf); }
.today-ball.blue { background: linear-gradient(135deg, #f0fbff, #6eafea); }
.today-ball.red { background: linear-gradient(135deg, #fff6d8, #f57564); }
.today-ball.purple { background: linear-gradient(135deg, #fbf4ff, #a78ae4); }
.today-ball.yellow { background: linear-gradient(135deg, #fffde3, #f5b941); }
.today-emo p { z-index: 1; margin: 13px 0 5px; font-size: 1.16rem; }
.today-emo span { z-index: 1; max-width: 260px; color: rgba(255,255,255,.86); font-size: .78rem; line-height: 1.65; }

.howto-section { padding: 92px 22px 108px; background: #fffdf8; }
.howto-grid { display: grid; width: min(100%, 980px); margin: 42px auto 0; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.howto-grid article { position: relative; padding: 37px 24px 25px; border: 1px solid var(--line); border-radius: 22px; background: #fff; text-align: center; }
.howto-grid span { position: absolute; top: -19px; left: 50%; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: #f589b2; box-shadow: 0 8px 15px rgba(230, 119, 163, .2); transform: translateX(-50%); }
.howto-grid h3 { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.howto-grid p { margin: 14px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.85; }

.site-footer { display: flex; width: min(100% - 44px, 1080px); min-height: 118px; margin: 0 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .75rem; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand img { width: 36px; height: 36px; }
.site-footer > a { border-bottom: 1px solid currentColor; }
.language-switcher { display: flex; flex-wrap: wrap; gap: 4px; }
.language-switcher button { min-height: 30px; padding: 5px 8px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 700; }
.language-switcher button:hover, .language-switcher button:focus-visible { outline: none; border-color: rgba(88, 65, 105, .2); background: #fff; }
.language-switcher button.is-current { color: #fff; background: var(--ink); }

.emo-dialog { width: min(100% - 32px, 760px); max-height: min(90vh, 690px); padding: 0; overflow: auto; border: 0; border-radius: 30px; color: var(--ink); background: #fffdf9; box-shadow: 0 28px 80px rgba(49, 31, 63, .32); }
.emo-dialog::backdrop { background: rgba(66, 47, 83, .5); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; top: 17px; left: calc(100% - 60px); z-index: 2; display: grid; width: 40px; height: 40px; margin: 16px 16px -56px auto; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 5px 13px rgba(61, 42, 78, .13); font-size: 1.8rem; line-height: 1; }
.dialog-inner { display: grid; min-height: 500px; grid-template-columns: 280px 1fr; }
.dialog-hero { display: flex; padding: 53px 28px 28px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dialog-hero[data-tone="blue"] { background: linear-gradient(150deg, #edfaff, #b4e1ff); }
.dialog-hero[data-tone="red"] { background: linear-gradient(150deg, #fff7e4, #ffc0b1); }
.dialog-hero[data-tone="purple"] { background: linear-gradient(150deg, #fffaff, #d8c6ff); }
.dialog-hero[data-tone="yellow"] { background: linear-gradient(150deg, #fffde8, #ffe08b); }
.dialog-ball { display: grid; width: 160px; height: 160px; place-items: center; border: 1px solid rgba(255,255,255,.66); border-radius: 50%; background: rgba(255,255,255,.34); box-shadow: inset 0 0 24px rgba(255,255,255,.57), 0 15px 28px rgba(73,50,85,.16); font-size: 6.6rem; }
.dialog-number { margin: 23px 0 4px; color: rgba(71,54,88,.55); font-size: .74rem; letter-spacing: .08em; }
.dialog-hero h2 { margin: 0; font-size: 1.5rem; }
.dialog-jackpot-found { display: inline-flex; margin: 11px 0 0; padding: 5px 9px; border-radius: 999px; color: #885523; background: rgba(255, 242, 157, .84); box-shadow: 0 5px 12px rgba(164, 107, 34, .13); font-size: .68rem; }
.dialog-detail { padding: 50px 36px 34px; }
.dialog-tag { display: inline-flex; padding: 5px 11px; border-radius: 99px; color: #fff; background: #a783c1; font-size: .72rem; }
.dialog-detail > p { margin: 14px 0 25px; color: var(--muted); font-size: .94rem; line-height: 1.9; }
.profile-list { display: grid; gap: 13px; margin: 0; }
.profile-list div { padding: 13px 14px; border-radius: 13px; background: #f7f1fa; }
.profile-list dt { margin: 0 0 5px; color: #a783c1; font-size: .69rem; letter-spacing: .06em; }
.profile-list dd { margin: 0; font-size: .83rem; line-height: 1.7; }
.care-box { margin-top: 20px; padding: 16px; border: 2px dashed #f5a3be; border-radius: 15px; background: #fff7fa; }
.care-box strong { display: block; color: #ea739e; font-size: .82rem; }
.care-box p { margin: 6px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.75; }

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 640px); height: 70px; }
  .header-title { display: none; }
  .header-link { padding: 7px 11px; font-size: .73rem; }
  .brand { font-size: .95rem; }
  .brand img { width: 35px; height: 35px; }
  .hero { min-height: 730px; padding: 132px 24px 315px; }
  .hero h1 { font-size: clamp(2.8rem, 12.2vw, 4rem); }
  .hero-copy { font-size: .94rem; line-height: 1.9; }
  .hero-characters { right: 50%; bottom: 23px; width: 320px; height: 270px; transform: translateX(50%); }
  .hero-emo { width: 96px; height: 96px; font-size: 3.3rem; }
  .hero-emo-sad { top: 62px; left: 1px; }
  .hero-emo-angry { top: 7px; right: 39px; }
  .hero-emo-worried { right: 0; bottom: 1px; }
  .hero-emo-happy { bottom: 18px; left: 48px; }
  .welcome { padding: 66px 0 68px; grid-template-columns: 58px 1fr; gap: 12px; }
  .welcome-stamp { width: 45px; height: 45px; font-size: 1.5rem; }
  .welcome > p { grid-column: 1 / -1; margin: 9px 0 0; font-size: .88rem; }
  .zukan-section { padding: 68px 15px 76px; }
  .finder { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .filters { justify-content: flex-start; }
  .emo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .emo-card-button { min-height: 260px; padding: 15px; border-radius: 20px; }
  .card-meta { grid-template-columns: 1fr; gap: 4px; }
  .jackpot-found { justify-self: start; }
  .emo-ball { width: 76px; height: 76px; margin: 12px 0 15px; font-size: 3rem; }
  .emo-name { font-size: 1rem; }
  .emo-short { font-size: .7rem; }
  .meet-section { padding: 65px 15px; }
  .meet-card { min-height: 550px; padding: 44px 28px 27px; flex-direction: column; border-radius: 27px; }
  .slot-cta { margin-left: 0; }
  .today-emo { width: 100%; min-height: 220px; margin-top: 17px; }
  .today-emo::before { right: -30px; }
  .howto-section { padding: 68px 22px 83px; }
  .howto-grid { max-width: 390px; margin-top: 44px; grid-template-columns: 1fr; gap: 43px; }
  .site-footer { min-height: 170px; padding: 24px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
  .emo-dialog { border-radius: 24px; }
  .dialog-inner { min-height: 0; grid-template-columns: 1fr; }
  .dialog-hero { padding: 62px 26px 24px; }
  .dialog-ball { width: 128px; height: 128px; font-size: 5.3rem; }
  .dialog-detail { padding: 29px 25px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
