/* =========================================================
   top.css — トップページ（Claude Design「Webサイト トップ」PC 1440px / スマホ 390px）
   スマホのデザインを基準に、761px 以上で PC のデザインに切りかえる。拡大縮小（zoom）は使わず、
   文字や余白は画面の幅に合わせて伸び縮みする（clamp / min）ので、どの機種・どの幅でもはみ出さない。
   ========================================================= */

:root {
  --ink: #2A2350; --sub: #5E5468; --muted: #6B6275; --pink: #C9416F; --bg: #FBF8FD;
  --rainbow: linear-gradient(90deg, #E8558A, #A45FD6 60%, #5B9BE6);
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--pink); }
a:hover { color: #9E2F55; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #A45FD6; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--round); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--pink); }
.h2 { font-family: var(--round); font-size: 22px; font-weight: 800; line-height: 1.4; }
.top .site-foot { margin-top: 0; }

/* ---------- ヒーロー ---------- */
.hero { max-width: 1280px; margin: 0 auto; }
.hero-frame { position: relative; }
.hero-media { overflow: hidden; }
.hero-media img { width: 100%; }
.hero-note {
  display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 7px 10px 7px 7px;
  border-radius: 14px; background: #fff; border: 1px solid #F1E6F0; box-shadow: 0 6px 18px rgba(90, 60, 130, .08);
  --badge-h: 32px;
}
.hero-note p { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: min(11px, calc((100vw - 150px) / 19)); line-height: 1.4; font-weight: 700; }
.hero-note svg { width: 1em; height: 1em; flex: none; }

/* ---------- メッセージ「nuscle+ は、〇〇の味方。」 ---------- */
.message { display: flex; justify-content: center; padding: 8px 24px 0; }
.msg-box { position: relative; width: 100%; padding: 22px 0; text-align: center; }
.msg-line {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: .3em;
  font-family: var(--round); font-size: min(44px, calc((100vw - 64px) / 18)); line-height: 1.3; font-weight: 800;
}
.msg-line img { height: 1.25em; width: auto; max-width: none; }
.word-pill {
  position: relative; flex: none; display: inline-block; width: 7em; height: 1.5em; border-radius: 999px;
  background: #fff; box-shadow: 0 12px 30px rgba(232, 85, 138, .18); overflow: hidden;
}
.word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  opacity: 0; filter: blur(6px); transform: translateY(90%) scale(.85) rotate(6deg);
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), opacity .5s ease, filter .5s ease;
}
.word.is-prev { transform: translateY(-90%) scale(.85) rotate(-6deg); }
.word.is-active { opacity: 1; filter: none; transform: none; }
.word span { -webkit-background-clip: text; background-clip: text; color: transparent; }
.word-1 span { background-image: linear-gradient(90deg, #E8558A, #F08A6C); }
.word-2 span { background-image: linear-gradient(90deg, #C9416F, #A45FD6); }
.word-3 span { background-image: linear-gradient(90deg, #A45FD6, #5B9BE6); }
.word-4 span { background-image: linear-gradient(90deg, #5B9BE6, #E8558A); }
.no-js .word-1 { opacity: 1; filter: none; transform: none; }

/* ふわふわ浮かぶ星とハート（飾り） */
.deco { position: absolute; width: var(--s, 16px); height: var(--s, 16px); }
.float { animation: nsFloat 4.5s ease-in-out infinite; }
.msg-box .d1 { left: 6%; top: 0; }
.msg-box .d2 { left: 26%; bottom: 0; animation-delay: -1.2s; }
.msg-box .d3 { right: 22%; top: 2px; animation-delay: -2s; }
.msg-box .d4 { right: 6%; bottom: 0; animation-delay: -.6s; }
.msg-box .d5 { --s: 12px; left: 44%; top: 4px; animation-delay: -2.6s; }
.msg-box .d6 { --s: 12px; right: 42%; bottom: 2px; animation-delay: -1.6s; }

/* ---------- できること（カルーセル） ---------- */
.highlights { padding-top: 20px; }
.hl-head { max-width: 1232px; margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hl-head .h2 { margin-top: 8px; }
.hl-arrows { display: none; gap: 10px; }
.hl-arrows button {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid #E3D9EE; background: #fff; color: var(--ink);
}
.hl-arrows button + button { border: 0; background: var(--ink); color: #fff; }
.hl-arrows svg { width: 20px; height: 20px; }
.stage {
  --gap: 12px; position: relative; max-width: 1440px; margin: 28px auto 0; aspect-ratio: 2 / 1; overflow: hidden;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.slide {
  position: absolute; top: 3%; left: 8%; width: 84%; border-radius: 28px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(90, 60, 130, .16); z-index: 1; opacity: .55; filter: saturate(.8);
  transform: translateX(calc(var(--off, 0) * (100% + var(--gap)))) scale(.9);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease;
}
.slide.is-active { z-index: 2; opacity: 1; filter: none; transform: translateX(0) scale(1); }
.slide.is-far { opacity: 0; visibility: hidden; }
.slide img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; -webkit-user-drag: none; }
.no-js .slide:not(:first-child) { display: none; }
.no-js .slide:first-child { opacity: 1; filter: none; transform: none; }
.pills { display: flex; justify-content: center; flex-wrap: nowrap; gap: min(10px, 1.6vw); padding: 8px 12px 0; }
.pill {
  position: relative; overflow: hidden; flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: .4em;
  padding: .7em .95em; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-size: min(14px, calc((100vw - 40px) / 33)); font-weight: 700; line-height: 1.4;
  background: #fff; color: var(--ink); border: 1px solid #EDE6F3; transition: background-color .4s ease, color .4s ease;
}
.pill b { font-family: var(--round); font-weight: 800; color: var(--pink); }
.pill[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill[aria-current="true"] b { color: #F7A8C4; }
.pill .bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left;
  background: linear-gradient(90deg, #E8558A, #A45FD6); animation: nsProgress 5s linear forwards;
}
.is-paused .pill .bar { animation-play-state: paused; }

/* ---------- 機能 ---------- */
.features { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; }
.features > .eyebrow { text-align: center; }
.features > .h2 { margin: 8px 0 28px; text-align: center; white-space: nowrap; font-size: min(24px, calc((100vw - 48px) / 12.5)); }
.feat-list { display: flex; flex-direction: column; gap: 40px; }
.feat { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
/* スマホでは文字が先、画像があと（PC は左右交互） */
.feat-txt { order: -1; }
.feat-img { min-width: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(90, 60, 130, .14); }
.feat-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.feat-img:hover img { transform: scale(1.05); }
.feat-txt { min-width: 0; }
.feat-num { display: flex; align-items: baseline; gap: 14px; }
.feat-num b {
  font-family: var(--round); font-size: 30px; line-height: 1; font-weight: 800;
  background: linear-gradient(135deg, #E8558A, #A45FD6 60%, #5B9BE6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feat-num span { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #8A7F95; }
.feat h3 { margin: 8px 0; font-family: var(--round); font-size: 20px; font-weight: 800; line-height: 1.4; }
.feat p.desc { font-size: 15px; line-height: 1.8; color: var(--sub); }
.more {
  display: none; align-items: center; gap: 8px; margin-top: 24px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.more:hover { color: #fff; background: #3C3470; }

/* ---------- 安心 ---------- */
.safety { max-width: 1200px; margin: 0 auto; padding: 32px 12px 64px; }
.safety-head { text-align: center; margin-bottom: 24px; }
.safety-head .h2 { margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card {
  position: relative; padding: 18px 8px 16px; border-radius: 20px; text-align: center; box-shadow: 0 14px 34px rgba(90, 60, 130, .08);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(164, 95, 214, .18); }
.card-1 { background: #FFF0F5; } .card-2 { background: #F4EEFC; } .card-3 { background: #EEF4FD; }
.card-icon {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(164, 95, 214, .25);
}
.card-icon svg { width: 24px; height: 24px; }
.card-1 .card-icon { background: linear-gradient(135deg, #E8558A, #F39AB7); }
.card-2 .card-icon { background: linear-gradient(135deg, #A45FD6, #C9A7EE); animation-delay: -1.4s; }
.card-3 .card-icon { background: linear-gradient(135deg, #5B9BE6, #9CC2F2); animation-delay: -2.8s; }
.card h3 { margin: 0 0 6px; font-family: var(--round); font-size: min(13px, calc((100vw - 88px) / 22.5)); font-weight: 800; white-space: nowrap; line-height: 1.5; }
.card p { font-size: 11px; line-height: 1.6; color: var(--sub); }

/* ---------- ダウンロード ---------- */
.download { padding: 0 12px 40px; scroll-margin-top: 72px; }
.dl-box {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1200px; margin: 0 auto; padding: 32px 16px; border-radius: 32px; text-align: center;
  background: linear-gradient(120deg, #FBE4EE, #EFE4FB 55%, #E1ECFB);
}
.dl-box .blob { position: absolute; z-index: -1; border-radius: 50%; animation: nsBlob 12s ease-in-out infinite; }
.dl-box .b1 { width: 420px; height: 420px; left: -120px; top: -160px; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.dl-box .b2 { width: 360px; height: 360px; right: -100px; bottom: -140px; background: radial-gradient(circle, rgba(232, 85, 138, .25), rgba(232, 85, 138, 0)); animation-delay: -6s; }
.dl-box .d1 { --s: 40px; left: 9%; top: 22%; }
.dl-box .d2 { --s: 28px; left: 16%; bottom: 20%; animation-delay: -1.5s; }
.dl-box .d3 { --s: 30px; right: 11%; top: 18%; animation-delay: -2.2s; }
.dl-box .d4 { --s: 36px; right: 17%; bottom: 22%; animation-delay: -.8s; }
.dl-box .d5 { --s: 18px; left: 30%; top: 12%; animation-delay: -3s; }
.dl-box .d6 { --s: 18px; right: 32%; bottom: 10%; animation-delay: -2.6s; }
.dl-logo { display: block; height: 44px; width: auto; max-width: none; margin: 0 auto 10px; }
.dl-box .h2 { margin: 0 0 16px; font-size: 24px; }
.dl-box .store { --badge-h: 48px; }

/* ---------- PC（761px 以上） ---------- */
@media (min-width: 761px) {
  .eyebrow { font-size: 16px; letter-spacing: .2em; }
  .h2 { font-size: clamp(30px, 3.2vw, 46px); }

  .hero { padding: 24px 24px 0; }
  .hero-media { border-radius: 32px; box-shadow: 0 30px 80px rgba(120, 80, 150, .16); }
  .hero-note { width: fit-content; margin: 16px auto 0; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 0; box-shadow: 0 8px 24px rgba(90, 60, 130, .12); --badge-h: 44px; }
  .hero-note p { gap: 7px; font-size: 15px; line-height: 1.5; white-space: normal; }

  .message { padding-top: 28px; }
  .msg-box { width: auto; max-width: 100%; padding: 14px clamp(20px, 7vw, 96px); }
  .msg-line { font-size: min(44px, calc((86vw - 64px) / 18)); }
  .msg-box .d1 { --s: 34px; left: 0; top: 0; }
  .msg-box .d2 { --s: 22px; left: 18px; bottom: 6px; top: auto; }
  .msg-box .d3 { --s: 26px; right: 6px; top: 4px; }
  .msg-box .d4 { --s: 36px; right: 0; bottom: 0; }
  .msg-box .d5 { --s: 16px; left: 44px; top: 46%; }
  .msg-box .d6 { --s: 16px; right: 46px; top: 46%; bottom: auto; }

  .hl-arrows { display: flex; }
  .stage { --gap: 24px; aspect-ratio: 2.34 / 1; }
  .slide { left: 12%; width: 76%; }
  .pills { flex-wrap: wrap; gap: 10px; padding: 8px 24px 0; }
  .pill { gap: 10px; padding: 12px 22px; font-size: 16px; }

  .features { padding: 120px 24px 40px; }
  .features > .h2 { margin: 12px 0 80px; font-size: clamp(30px, 3.2vw, 46px); }
  .feat-list { gap: clamp(72px, 10vw, 140px); }
  .feat { flex-direction: row; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px); }
  .feat-txt { order: 0; }
  .feat.rev { flex-direction: row-reverse; }
  .feat-img { flex: 1 1 520px; border-radius: 32px; }
  .feat-txt { flex: 1 1 340px; }
  .feat-num b { font-size: 72px; }
  .feat-num span { font-size: 15px; letter-spacing: .18em; }
  .feat h3 { margin: 16px 0 14px; font-size: 42px; }
  .feat p.desc { font-size: 20px; line-height: 1.9; }
  .more { display: inline-flex; }

  .safety { padding: 40px 24px 100px; }
  .safety-head { margin-bottom: 48px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
  .card { padding: 40px 32px 36px; border-radius: 32px; }
  .card-icon { width: 88px; height: 88px; margin-bottom: 22px; }
  .card-icon svg { width: 40px; height: 40px; }
  .card h3 { margin-bottom: 10px; font-size: 24px; white-space: normal; }
  .card p { font-size: 17px; line-height: 1.8; }

  .download { padding: 0 24px 110px; }
  .dl-box { padding: clamp(64px, 8vw, 96px) 32px; border-radius: 48px; }
  .dl-logo { height: 64px; margin-bottom: 20px; }
  .dl-box .h2 { margin-bottom: 32px; font-size: clamp(30px, 3.4vw, 46px); }
  .dl-box .store { --badge-h: 56px; }
}

/* 横に十分広いときだけ、バッジと「暗号化」の札をヒーロー画像の左下に重ねる（デザインの PC 表示） */
@media (min-width: 1000px) {
  .hero-note { position: absolute; left: 3.5%; bottom: 4%; max-width: 46%; margin: 0; background: rgba(255, 255, 255, .88); --badge-h: 50px; }
  .hero-note p { font-size: 16px; }
}

/* ---------- 動き ---------- */
@keyframes nsFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(12deg); } }
@keyframes nsBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.15); } }
@keyframes nsProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nsHeroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nsGTop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes nsGLeft { from { opacity: 0; transform: translate(-90px, 30px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes nsGRight { from { opacity: 0; transform: translateX(140px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes nsGUp { from { opacity: 0; transform: translateY(70px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes nsPop { from { opacity: 0; transform: translateY(56px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes nsInL { from { opacity: 0; transform: translateX(-72px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nsInR { from { opacity: 0; transform: translateX(72px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nsInUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

.top .site-header { animation: nsGTop .9s cubic-bezier(.34, 1.56, .64, 1) .7s both; }
.hero-media img { animation: nsHeroIn .6s cubic-bezier(.22, 1, .36, 1) both; }
.hero-note { animation: nsGLeft .9s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.message { animation: nsGUp .9s cubic-bezier(.34, 1.56, .64, 1) 1.05s both; }
.hl-head { animation: nsGUp .9s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
.stage { animation: nsGRight 1s cubic-bezier(.34, 1.56, .64, 1) 1.3s both; }
.pills { animation: nsGUp .9s cubic-bezier(.34, 1.56, .64, 1) 1.5s both; }

/* スクロールに合わせて現れる（対応ブラウザだけ。未対応ならそのまま表示） */
@supports (animation-timeline: view()) {
  .feat-img { animation: nsInL linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .feat.rev .feat-img { animation-name: nsInR; }
  .feat-txt { animation: nsInUp linear both; animation-timeline: view(); animation-range: entry 15% cover 40%; }
  .rise { animation: nsInUp linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .card-1 { animation: nsPop linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .card-2 { animation: nsPop linear both; animation-timeline: view(); animation-range: entry 8% cover 34%; }
  .card-3 { animation: nsPop linear both; animation-timeline: view(); animation-range: entry 16% cover 40%; }
}
/* PC の横並びでは画像が左右からすべり込む分、ページが横にゆれないように */
.features, .safety { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .pill .bar { display: none; }
}
