:root{
    --ink:#45362f;--muted:#84756b;--rose:#a85f69;--rose-dark:#894952;--cream:#f8f2e9;--paper:#fffdf9;--line:#eadfd3;--serif:"Noto Serif JP",serif;--display:"DM Serif Display",serif}*{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--serif);font-size:14px;line-height:1.9}
    .page-shell{max-width:1440px;margin:auto;overflow:hidden;background:var(--cream)}
    .site-header{height:86px;padding:0 8.4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #80645320}
    .wordmark{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:14px;font-weight:600;letter-spacing:.07em}
    .wordmark-icon{font-size:29px;color:var(--rose);line-height:1}
    .wordmark small{display:block;color:#9b8b7e;font:9px var(--display);letter-spacing:.19em;line-height:1.2;margin-top:3px}
    .header-note,.eyebrow{font:10px var(--display);letter-spacing:.22em;color:var(--rose)}
    .hero{min-height:760px;text-align:center;padding:66px 20px 50px;background:radial-gradient(ellipse at 50% 62%,#f0dfd3 0,transparent 39%),linear-gradient(110deg,#f8f2e9,#f7eee7)}
    .hero>.eyebrow{margin:0 0 12px}
    .hero h1{font-weight:500;font-size:clamp(34px,4vw,49px);line-height:1.7;letter-spacing:.09em;margin:0}
    .hero h1 em{font-style:normal;color:var(--rose)}
    .intro{font-size:12px;color:var(--muted);letter-spacing:.04em;margin:7px 0 18px}
    .primary-button,.secondary-button{border:0;background:var(--rose);color:white;padding:14px 26px;font:12px var(--serif);letter-spacing:.06em;cursor:pointer;transition:.2s}
    .primary-button:hover,.secondary-button:hover{background:var(--rose-dark);transform:translateY(-1px)}
    .primary-button:disabled{opacity:.7;cursor:wait;transform:none}
    .primary-button span{padding-left:18px;font-size:16px}
    .ritual-area{max-width:420px;margin:7px auto 0}
    .cup-scene{height:335px;position:relative;margin:auto;width:360px}
    .cup{position:absolute;top:125px;left:80px;z-index:2;width:200px;height:139px;border-radius:15px 15px 100px 100px;background:linear-gradient(135deg,#fffefa,#eadbd0);box-shadow:8px 17px 25px #7b5b4630;transform-origin:50% 72%}
    .cup:after{content:"";position:absolute;z-index:3;left:0;right:0;top:0;height:18px;border-radius:50%;background:#fffdf9;border:5px solid #eee3d9}
    .cup-handle{position:absolute;right:-50px;top:33px;width:70px;height:68px;border:13px solid #eee1d6;border-left:0;border-radius:0 50% 50% 0;z-index:-1}
    .tea{position:absolute;z-index:4;top:2px;left:14px;width:172px;height:14px;border-radius:50%;background:#71513d;overflow:hidden}
    .tea i{position:absolute;background:#bcc19a;border-radius:80% 10% 80% 10%;width:13px;height:7px}
    .tea i:nth-child(1){top:4px;left:24px;transform:rotate(35deg)}
    .tea i:nth-child(2){top:2px;left:65px;transform:rotate(-25deg)}
    .tea i:nth-child(3){top:6px;left:108px;transform:rotate(20deg)}
    .tea i:nth-child(4){top:2px;left:144px;transform:rotate(-35deg)}
    .cup-flower{position:absolute;z-index:3;top:59px;left:81px;color:#c28e8d;font-size:29px;opacity:.8}
    .saucer{position:absolute;z-index:1;top:245px;left:45px;width:270px;height:45px;border-radius:50%;background:linear-gradient(#f8f0e9,#e8d7c9);box-shadow:0 14px 18px #795c4122}
    .sparkle{position:absolute;color:#ae7f6f}
    .sparkle-a{top:75px;right:59px;font-size:27px}
    .sparkle-b{top:140px;left:31px;font-size:15px}
    .steam{position:absolute;z-index:5;top:82px;left:148px;width:24px;height:48px;border-left:2px solid #c8a99a;border-radius:50%;transform:rotate(14deg);opacity:.7}
    .steam-b{left:192px;top:76px;height:40px;transform:rotate(-12deg)}
    .instruction{font-size:11px;color:#89776c;letter-spacing:.04em;margin:-1px 0 8px}
    .secondary-button{padding:12px 23px}
    .secondary-button span{padding-left:10px}
    .secondary-button[hidden]{display:none}
    .spinning .tea i{animation:leaf-dance .5s ease-in-out infinite alternate}
    .spinning .sparkle{animation:twinkle .6s ease-in-out infinite alternate}
    .settling .sparkle{animation:twinkle 1.1s ease-in-out 2 alternate}

    @keyframes leaf-dance{to{transform:translate(3px,-2px) rotate(160deg)}}
    @keyframes twinkle{to{opacity:.25;transform:scale(.7)}}
    
    .result{max-width:660px;margin:-5px auto 80px;padding:34px 45px;background:var(--paper);border:1px solid var(--line);box-shadow:0 13px 35px #7c5e4210;text-align:center;animation:appear .4s ease}
    .result[hidden]{display:none}.result .eyebrow{margin:0}.result-count{font:10px var(--display);letter-spacing:.1em;color:#a19489;margin:9px 0 0}
    .result h2{font-weight:500;font-size:25px;letter-spacing:.07em;margin:5px 0 15px;color:var(--rose-dark)}
    .result-body,
    .result-advice{font-size:12px;line-height:2.2;color:#71635a;margin:10px 0}
    .result-advice{padding:12px 15px;background:#f8f2e9}
    .result-tea{font-size:10px;color:#89766b;border-top:1px solid #eee5db;padding-top:13px;margin-top:16px}
    .text-button{border:0;background:none;color:var(--rose-dark);font:11px var(--serif);cursor:pointer;border-bottom:1px solid #c99a8c;padding:0 0 3px;margin-top:12px}
    .about{background:#f1e7dc;display:grid;grid-template-columns:100px minmax(0,580px);justify-content:center;gap:27px;align-items:center;padding:53px 25px}
    .about-flower{font-size:75px;color:#b87f7b;text-align:center;opacity:.8}
    .about .eyebrow{margin:0 0 5px}
    .about h2{font-weight:500;font-size:19px;letter-spacing:.06em;margin:0}
    .about div>p:last-child{font-size:11px;line-height:2.1;color:#77675d;margin:9px 0 0}

    footer{position:relative;min-height:112px;padding:24px 8.4%;display:flex;align-items:center;justify-content:space-between}
    footer>p{font-size:11px;color:#89776c}
    .footer-mark{font-size:12px}
    .copyright{position:absolute;bottom:9px;left:0;right:0;text-align:center;font:8px var(--display);letter-spacing:.13em;color:#aa9b90}
    @keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
    @media(max-width:600px){.site-header{height:68px;padding:0 20px}
    .wordmark{font-size:12px}
    .wordmark-icon{font-size:25px}
    .wordmark small{font-size:8px}
    .header-note{font-size:8px}
    .hero{min-height:0;padding:47px 22px 48px}
    .hero h1{font-size:32px}
    .intro{font-size:10px}
    .hero>
        .eyebrow{font-size:9px}
        .cup-scene{transform:scale(.84);transform-origin:top center;margin-bottom:-47px}
        .ritual-area{width:100%}
        .instruction{font-size:10px}
        .result{margin:0 16px 55px;padding:27px 21px}
        .result h2{font-size:21px}
        .result-body,
        .result-advice{font-size:11px}
        .about{grid-template-columns:1fr;text-align:center;padding:37px 27px;gap:0}
        .about-flower{font-size:53px}
        .about h2{font-size:16px}
        .about div>p:last-child{text-align:left;font-size:10px}
        footer{padding:20px 20px 35px;min-height:125px;align-items:flex-start;flex-direction:column;gap:7px}
            footer>p{margin:0;font-size:10px}
            .copyright{font-size:7px;bottom:10px}}
            @media(prefers-reduced-motion:reduce){
                *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
            }
            .result-word{padding:13px 12px;border-top:1px solid #eee5db}
            .result-word span,
            .result-reading>span{font:9px var(--display);letter-spacing:.17em;color:#a17a76}
            .result-word p{font:20px var(--display);color:var(--rose-dark);margin:3px 0 0}
            .result-word:nth-of-type(3) p{font:20px var(--serif);letter-spacing:.08em}
            .result-reading{padding:17px 18px;margin-top:10px;background:#f8f2e9;text-align:left}
            .result-reading p{font-size:12px;line-height:2.2;color:#71635a;margin:6px 0 0}
            .result .eyebrow{margin:0 0 19px}
            .text-button{margin-top:20px}
            @media(max-width:600px){
                .result-word p{font-size:18px}
                .result-reading p{font-size:11px}
            }
/* Cup ritual: lift, one level turn, tip to reveal the leaves, pause, then settle. */
.cup-scene{perspective:900px}
.cup{transform-style:preserve-3d;transform-origin:50% 12%}
.cup-flower{top:auto;z-index:4;color:#b87978}
.flower-left{top:78px;left:43px;font-size:16px}
.flower-center{top:58px;left:81px;font-size:25px}
.flower-right{top:84px;left:135px;font-size:15px}
.spinning .tea i{animation:none}
.spinning .saucer{animation:none}

/* Romantic antique illustration details inspired by the shared reference. */

/* ボタンを押したら16秒アニメーション開始 */

/* 通常時はアニメーションしない */
.cup {
  transform-origin: center center;
  animation: none;
}

/* ボタンを押したときだけ動く */
.spinning .cup {
  animation: tea-cup-ritual 16s ease-in-out 1 forwards;
}

/* アニメーション終了後の姿勢 */
.ritual-finished .cup {
  transform: translateY(-35px)
             rotateY(-1080deg)
             rotateX(-123deg);
}

.cup:after{display:none}
.cup-art{position:absolute;z-index:5;left:-30px;top:-21px;width:260px;height:190px;overflow:visible;filter:drop-shadow(4px 10px 8px #765b4633)}
.tea-leaves{transform-box:fill-box;transform-origin:center}
.cup-scene:before{content:"";position:absolute;z-index:0;left:0;top:181px;width:72px;height:77px;border:1px solid #b7957060;border-radius:3px;background:repeating-linear-gradient(0deg,#d6bd9a 0 2px,#81644f 2px 19px,#ead9bd 19px 22px);box-shadow:3px 7px 12px #765b4622;transform:rotate(-8deg);opacity:.62}.cup-scene:after{content:"";position:absolute;z-index:0;right:2px;top:105px;width:67px;height:113px;border:1px solid #c4a57d88;border-radius:45% 45% 28% 28% / 31% 31% 17% 17%;background:linear-gradient(90deg,#d5c2a166,#fffaf078 30%,#e8d6bd55 72%,#b79b7966);box-shadow:inset 6px 0 9px #fff9,5px 8px 14px #765b461c;opacity:.72}.cup-scene{background:radial-gradient(ellipse at 50% 69%,#eddacb80 0,transparent 58%)}
.cup-scene:after{content:none}
.tea-pot{position:absolute;z-index:0;right:3px;top:89px;width:86px;height:131px;overflow:visible;filter:drop-shadow(3px 7px 6px #765b4618);opacity:.8}
.cup-scene:before{background:repeating-linear-gradient(0deg,#d2b990 0 2px,#84664e 2px 19px,#eadcc5 19px 22px),linear-gradient(90deg,#7b5b45,#dfc79f)}

/* Keep the cup alone in the scene and give the porcelain more depth. */
.cup-scene:before,
.cup-scene:after,
.tea-pot{display:none!important}
.cup-art>ellipse:nth-of-type(-n+2){display:none}
.cup-art{filter:drop-shadow(2px 8px 6px #80645024) drop-shadow(0 1px 1px #fff8)}
.cup{filter:drop-shadow(0 4px 3px #80645018)}
.saucer{background:radial-gradient(ellipse at 45% 28%,#fffdf8 0,#f1e6da 64%,#d5bda9 100%);border:1px solid #d0b58a;box-shadow:inset 0 3px 6px #fff9,0 14px 18px #795c4122}.saucer:before,.saucer:after{content:"";position:absolute;inset:7px 24px;border:1px solid #d7bf95;border-radius:50%;opacity:.8}.saucer:after{inset:14px 55px;border-color:#e1cfac}.cup-art .tea-leaves path{filter:drop-shadow(0 1px 1px #2d201633)}


@keyframes tea-cup-ritual {
  /* 最初はそのまま */
  0% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg);
  }

  /* 少し浮き上がる */
  5.625% {
    transform: translateY(-18px) rotateY(0deg) rotateX(0deg);
  }

  /* 水平に3回転 */
  50.625% {
    transform: translateY(-18px) rotateY(-1080deg) rotateX(0deg);
  }

  /* 裏返す前に少し持ち上げる */
  54.75% {
    transform: translateY(-42px) rotateY(-1080deg) rotateX(0deg);
  }

  /* くるっと裏返す */
  67.5% {
    transform: translateY(-42px) rotateY(-1080deg) rotateX(-180deg);
  }

  /* ソーサーに伏せる */
  75% {
    transform: translateY(20px) rotateY(-1080deg) rotateX(-180deg);
  }

  /* 1秒ほど静止 */
  81.25% {
    transform: translateY(20px) rotateY(-1080deg) rotateX(-180deg);
  }

  /* そっと持ち上げる */
  93.75% {
    transform: translateY(-35px) rotateY(-1080deg) rotateX(-123deg);
  }

  /* 少しだけ傾いた状態で止まる */
  100% {
    transform: translateY(-35px) rotateY(-1080deg) rotateX(-123deg);
  }
}
.ritual-finished .cup {
  transform: translateY(-35px) rotateY(-1080deg) rotateX(-123deg);
}

/* 茶葉をちらりと見せる演出 */
.tea-secret {
  position: absolute;
  top: 258px;
  left: 141px;
  width: 78px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #80614c 0%,
    #a1846b 55%,
    transparent 75%
  );
  opacity: 0;
  transform: scale(.75);
  z-index: 4;
  pointer-events: none;
}

/* 小さな茶葉 */
.secret-leaf {
  position: absolute;
  width: 13px;
  height: 6px;
  background: #77714d;
  border-radius: 85% 10% 85% 10%;
}

.leaf-one {
  top: 9px;
  left: 15px;
  transform: rotate(35deg);
}

.leaf-two {
  top: 5px;
  left: 36px;
  transform: rotate(-25deg);
}

.leaf-three {
  top: 11px;
  left: 56px;
  transform: rotate(65deg);
}

/* 淡い金色のきらめき */

.secret-glow {
  position: absolute;
  top: -17px;
  right: -7px;
  font-size: 30px;
  color: #f0c96e;
  text-shadow:
    0 0 6px #fff6d6,
    0 0 14px #eac36e,
    0 0 24px #d9a64e;
  opacity: 0;
}


/* 16秒の終盤だけ茶葉が現れる */
.spinning .tea-secret {
  animation: secret-reveal 16s ease-in-out forwards;
}

@keyframes secret-reveal {
  0%, 83% {
    opacity: 0;
    transform: scale(.75);
  }

  94%, 100% {
    opacity: .85;
    transform: scale(1);
  }
}

/* 金色の光がふわっと現れる */
.spinning .secret-glow {
  animation: secret-sparkle 16s ease-in-out forwards;
}

@keyframes secret-sparkle {
  0%, 88% {
    opacity: 0;
    transform: scale(.5);
  }

  95% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* アニメーション後も茶葉を見せる */
.ritual-finished .tea-secret {
  opacity: .85;
  transform: scale(1);
}

.ritual-finished .secret-glow {
  opacity: 1;
}

.has-cup-model .cup {
  display: none;
}

.has-cup-model .cup-model {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(1px 5px 5px #765b462a);
}

.has-cup-model .saucer {
  top: 211px;
  left: 27px;
  width: 296px;
  height: 87px;
  border: 0;
  border-radius: 0;
  background: url("saucer.png") center / 100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(1px 7px 5px #765b4630);
}

.has-cup-model .saucer::before,
.has-cup-model .saucer::after {
  content: none;
}

.has-cup-model.spinning .steam,
.has-cup-model.ritual-finished .steam {
  visibility: hidden;
}
