/* ==========================================================================
   Saify — site stylesheet
   Handcrafted rebuild of saify.com (originally built with STUDIO)
   ========================================================================== */

:root {
  --yellow: #ffcb24;
  --teal: #29b3c4;
  --green: #54b793;
  --red: #d14629;
  --purple: #b494de;
  --ink: #000;
  --text: #333;
  --gray-bg: #f2f2f2;
  --gray-row: #eee;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: Montserrat, sans-serif;
  --font-lato: Lato, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; padding: 0; background: none; cursor: pointer; }

::selection { background: var(--yellow); }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

/* Yellow rounded label: 暗号資産管理を〜もっと楽しく */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 32px;
  padding: 6px 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* App Store / Google Play badge row */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.store-badges img { height: 40px; width: auto; }
.store-badges a { transition: transform 0.3s; }
.store-badges a:hover { transform: scale(1.06); }

/* Big section headings: Features / 3STEP Install / FAQ */
.section-heading {
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
}
.section-subheading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.05em;
  text-align: center;
}
.section-subheading .inline-logo { height: 66px; display: inline-block; vertical-align: middle; margin: 0 0.2em; }

/* Soft rounded-square decorations scattered around sections.
   Each blob sets its own --size / --tilt and a position;
   --blob-scale shrinks them all at once on smaller screens. */
.blob {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 38%;
  transform: rotate(var(--tilt, 0deg)) scale(var(--blob-scale, 1));
  pointer-events: none;
}
.blob--yellow { background: var(--yellow); }
.blob--green  { background: var(--green); }
.blob--red    { background: var(--red); }
.blob--purple { background: var(--purple); }

/* Scroll-in animation: .appear is hidden, .appear-active fades in */
.appear { opacity: 0; transform: translateY(10px); }
.appear-active { opacity: 1; transform: none; transition: opacity 1s 0.2s, transform 1s 0.2s; }

/* --------------------------------------------------------------------------
   Hero (KV)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  max-height: 58vw;
  overflow: hidden;
}

/* Full-bleed photo-collage marquee behind the hero */
.collage {
  position: absolute;
  inset: 0;
  display: flex;
}
.collage-col {
  width: calc(100% / 6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.collage-col img { width: 100%; height: auto; }
.collage-col:nth-child(odd) img { animation: slide-up 30s linear infinite; }
.collage-col:nth-child(even) img { animation: slide-down 30s linear infinite; }

@keyframes slide-up   { from { transform: translateY(0); }      to { transform: translateY(-100%); } }
@keyframes slide-down { from { transform: translateY(-100%); }  to { transform: translateY(0); } }

/* Mobile collage variant (3 columns) is hidden on desktop */
.collage--sp { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 60px;
}

.hero-phone {
  width: 300px;
  flex: none;
  margin-right: -48px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25));
}

.hero-card {
  background: #fff;
  border-radius: 60px;
  padding: 30px 40px;
  width: 530px;
  max-width: calc(100% - 32px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-card .logo { width: 210px; }
.hero-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 66px;
  letter-spacing: 0.05em;
}
.hero-lead { font-size: 16px; font-weight: 700; letter-spacing: 0.05em; }

/* Mobile-only hero elements */
.hero-logo-card, .hero-pill-sp, .hero-title-sp,
.hero-phone-sp, .hero-lead-sp, .hero-badges-sp { display: none; }

/* Yellow wave that closes the hero */
.hero > .wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  background-color: white;
}
.wave { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  position: relative;
  background: #fff;
  padding: 90px 0 60px;
}
.features > .section-heading { color: var(--yellow); }

/* decorations around the Features section */
.blob--f1 { --size: 76px;  --tilt: 12deg;  top: 40px;  left: 4.5%; }
.blob--f2 { --size: 130px; --tilt: -8deg;  top: 120px; left: 1%; }
.blob--f3 { --size: 60px;  --tilt: 20deg;  top: 30px;  right: 12%; }
.blob--f4 { --size: 120px; --tilt: -14deg; top: 100px; right: 3%; }
.blob--f5 { --size: 96px;  --tilt: 10deg;  top: 38%;   left: 2%; }
.blob--f6 { --size: 110px; --tilt: -12deg; top: 54%;   right: 2.5%; }
.blob--f7 { --size: 90px;  --tilt: 16deg;  top: 76%;   right: 7%; }
.blob--f8 { --size: 92px;  --tilt: -10deg; top: 90%;   left: 5%; }

.feature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 110px;
}
.feature-media { width: 620px; flex: none; }
.feature-body { width: 470px; flex: none; }

/* Number badge: yellow speech-bubble square with "Feature NN" */
.feature-badge {
  width: 124px;
  border-radius: 100px 100px 100px 0;
  background: var(--yellow);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 18px 21px 16px;
  margin-bottom: 20px;
}
.feature-badge small { font-size: 14px; line-height: 1; }
.feature-badge span { font-size: 65px; line-height: 1.1; }

.feature-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.feature-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.05em;
}

/* Gray rounded panels that bleed to the viewport edge */
.feature-panel {
  background: var(--gray-bg);
  height: 518px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature--left  .feature-panel { border-radius: 0 100px 100px 0; margin-left: calc(50% - 50vw); padding-left: calc(50vw - 50%); }
.feature--right .feature-panel { border-radius: 100px 0 0 100px; margin-right: calc(50% - 50vw); padding-right: calc(50vw - 50%); }
.feature-panel > img { height: 82%; width: auto; }

/* Feature 03 coins sit on a plain image, no tall panel */
.feature-coins { width: 100%; height: auto; }

/* ---- Phone screenshot carousel (Feature 01) ---- */

.carousel { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-list {
  position: relative;
  width: 520px;
  max-width: 90%;
  height: 500px;
}
.carousel-item {
  position: absolute;
  top: 50%;
  height: 100%;
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
  transition: transform 0.4s, left 0.4s, right 0.4s, opacity 0.4s;
}
.carousel-item img { height: 100%; width: auto; }
.carousel-item.is-prev  { left: 0;  opacity: 0.6; }
.carousel-item.is-next  { right: 0; opacity: 0.6; }
.carousel-item.is-current {
  left: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1;
}
.carousel-item.is-second-prev { left: 0; }
.carousel-item.is-second-next { right: 0; }

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  max-width: 104%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.carousel-nav button { width: 60px; transition: transform 0.3s; }
.carousel-nav button:hover { transform: scale(1.1); }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: #bebebe; }
.carousel-dots button.is-current { width: 12px; height: 12px; background: #000; }

/* --------------------------------------------------------------------------
   CTA band (used three times)
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  padding: 60px 16px;
  display: flex;
  justify-content: center;
}

/* Rotated marquee of app screenshots behind the card */
.cta-marquee {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  opacity: 0.36;
  display: flex;
  flex-direction: column;
  gap: 30px;
  pointer-events: none;
}
.cta-row { display: flex; height: 335px; gap: 31px; }
.cta-row--main { height: 516px; gap: 47px; }
/* 帯画像は高さ基準・アスペクト比維持。グローバルの img { max-width: 100% } と
   flex の縮小に潰されないよう max-width: none / flex: none で防御する */
.cta-row img { height: 100%; width: auto; max-width: none; flex: none; animation: slide-left 120s linear infinite; }
.cta-row--main img { animation: slide-right 120s linear infinite; }

@keyframes slide-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slide-left  { from { transform: translateX(100%); }  to { transform: translateX(0); } }

.cta-card {
  position: relative;
  background: #fff;
  border-radius: 40px;
  padding: 24px 40px 32px;
  width: 703px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cta-lead img { height: 34px; width: auto; }
.cta-title { font-size: 42px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; }

.cta-stores { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 6px; }
.cta-store { display: flex; align-items: center; gap: 10px; }
.cta-store .badge { height: 40px; width: auto; }
.cta-store .qr { width: 56px; height: 56px; }

/* --------------------------------------------------------------------------
   3STEP Install
   -------------------------------------------------------------------------- */

.steps {
  position: relative;
  background: #fff;
  padding: 40px 16px 90px;
  text-align: center;
}
.steps > .section-heading { color: var(--teal); margin-bottom: 39px; }
.steps .section-subheading { margin-bottom: 70px; }

.blob--s1 { --size: 90px;  --tilt: -10deg; top: 60px;  left: 8%; }
.blob--s2 { --size: 120px; --tilt: 14deg;  top: 140px; left: 2.5%; }
.blob--s3 { --size: 66px;  --tilt: 18deg;  top: 70px;  right: 11%; }
.blob--s4 { --size: 110px; --tilt: -12deg; top: 150px; right: 3%; }

.steps-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 830px;
  margin: 0 auto;
  position: relative;
}
.step { position: relative; width: 250px; }

.step-circle {
  width: 124px;
  height: 124px;
  margin: 0 auto;
  border-radius: 50%;
  background: #28b0c0;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-circle small { font-size: 14px; line-height: 1; }
.step-circle span { font-size: 66px; line-height: 1.1; }

/* Connector line between the circles */
.steps-list::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 125px;
  right: 125px;
  height: 12px;
  background: #28b0c0;
}

.step-title { color: var(--teal); font-size: 26px; font-weight: 700; letter-spacing: 0.03em; margin-top: 12px; }
.step-text { font-size: 16px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.65; margin-top: 12px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  position: relative;
  background: #fff;
  padding: 80px 16px 110px;
}
.faq-heading { position: relative; max-width: 620px; margin: 0 auto 60px; text-align: center; }
.faq-heading .section-heading { color: var(--green); margin-bottom: 30px; }
.faq-heading .tri { position: absolute; pointer-events: none; }
.tri--red    { width: 96px;  top: -10px; left: -180px; }
.tri--purple { width: 80px;  bottom: -30px; left: -120px; }
.tri--teal   { width: 110px; top: 0; right: -190px; }
.tri--yellow { width: 90px;  bottom: -40px; right: -130px; }

.faq-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.faq-item { background: var(--gray-row); border-radius: 40px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 70px 26px 28px;
  position: relative;
  text-align: left;
}
.faq-q .mark { color: var(--green); font-family: var(--font-en); font-size: 30px; font-weight: 700; line-height: 1; }
.faq-q .question { color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; }

/* plus / minus toggle icon drawn with two bars */
.faq-icon { position: absolute; right: 28px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  transform: translateY(-50%);
  transition: transform 0.3s;
}
.faq-item.is-closed .faq-icon::after { transform: translateY(-50%) rotate(90deg); }

.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.is-closed .faq-a { grid-template-rows: 0fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-body { display: flex; gap: 14px; padding: 2px 70px 30px 28px; }
.faq-a .mark { color: var(--red); font-family: var(--font-en); font-size: 30px; font-weight: 700; line-height: 1.4; }
.faq-a .answer { color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: 0.05em; line-height: 1.8; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--gray-bg); text-align: center; padding-top: 70px; }
.footer .logo { width: 200px; margin: 0 auto 30px; }
.footer-notes { color: var(--text); font-size: 10px; line-height: 1.2; letter-spacing: 0.05em; margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.footer-x { display: inline-block; width: 36px; margin-top: 24px; transition: transform 0.3s; }
.footer-x:hover { transform: scale(1.1); }
.footer-privacy { display: inline-block; color: var(--text); font-size: 12px; letter-spacing: 0.05em; margin: 40px 0; }
.footer-privacy:hover { text-decoration: underline; }
.footer-copyright {
  background: #000;
  color: #fff;
  font-family: var(--font-lato);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px;
}

/* --------------------------------------------------------------------------
   Privacy policy page
   -------------------------------------------------------------------------- */

.policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.policy h1 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.policy h2 { font-size: 16px; font-weight: 700; margin: 40px 0 8px; }
.policy h3 { font-size: 14px; font-weight: 700; margin: 24px 0 8px; }
.policy p + p { margin-top: 8px; }
.policy a { color: #1a0dab; text-decoration: underline; }

.policy table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.policy th, .policy td { border: 1px solid #999; padding: 8px 12px; vertical-align: top; text-align: left; font-weight: 400; }
.policy th { background: #ddd; text-align: center; font-weight: 700; }

/* information-collection module card with a yellow spine */
.policy-module { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px; margin: 12px 0 20px 8px; }
.policy-module h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }

.policy-date { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Tablet (≤990px)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 990px) {
  .section-heading { font-size: 46px; }
  .section-subheading { font-size: 32px; }
  .section-subheading .inline-logo { height: 44px; }
  .pill { font-size: 10px; padding: 4px 18px; }
  .blob { --blob-scale: 0.7; }

  .hero { max-height: 135vw; }
  .hero-title { font-size: 36px; line-height: 1.5; }
  .hero-phone { width: 220px; margin-right: -36px; }
  .hero-card { width: 560px; padding: 24px 32px 32px; }
  .hero-card .logo { width: 180px; }

  .feature { gap: 28px; margin-top: 80px; }
  .feature-media { width: 52%; }
  .feature-body { width: 38%; }
  .feature-title { font-size: 25px; margin-top: 0; }
  .feature-text { font-size: 12px; }
  .feature-panel { height: 420px; }
  .carousel-list { height: 340px; }

  .cta-title { font-size: 28px; }
  .cta-lead { font-size: 15px; }
  .cta-lead img { height: 26px; }

  .steps-list { gap: 60px; }
  .steps-list::before { top: 50px; left: 105px; right: 105px; }
  .step-title { font-size: 20px; }
  .step-text { font-size: 13px; }
  .step-circle { width: 100px; height: 100px; }
  .step-circle span { font-size: 52px; }

  .faq-heading .tri { transform: scale(0.6); }
  .tri--red { left: -120px; }
  .tri--teal { right: -130px; }
  .tri--purple { left: -80px; }
  .tri--yellow { right: -90px; }
}

/* --------------------------------------------------------------------------
   Mobile (≤690px)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 690px) {
  /* ---- hero: different composition on mobile ---- */
  .collage--pc { display: none; }
  .collage--sp { display: flex; }
  .collage--sp .collage-col { width: calc(100% / 3); }

  .hero { min-height: 640px; height: 92vh; max-height: 205vw; }
  .hero-inner { flex-direction: column; justify-content: flex-end; padding-bottom: 34px; }
  .hero-phone, .hero-card { display: none; }

  .hero-logo-card {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: #fff;
    border-radius: 0 0 28px 0;
    padding: 10px 18px 14px 14px;
  }
  .hero-logo-card img { width: 110px; }

  .hero-pill-sp {
    display: inline-flex;
    position: absolute;
    top: 16px;
    left: 152px;
    z-index: 3;
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .hero-logo-card { display: block; }
  .hero-title-sp {
    display: block;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-align: center;
  }

  .hero-phone-sp { display: block; position: relative; z-index: 2; width: 52%; max-width: 195px; margin: 0 auto; }
  .hero-badges-sp { display: flex; }

  /* solid yellow base under the collage */
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background: var(--yellow);
  }
  .hero-lead-sp {
    display: block;
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 18px 0 10px;
  }
  .hero .store-badges { position: relative; z-index: 2; }
  .hero .store-badges img { height: 36px; }
  .hero > .wave { display: none; }

  /* ---- sections ---- */
  .features { padding: 60px 0 40px; }
  .feature { flex-direction: column; margin-top: 70px; gap: 20px; }
  .feature--right { flex-direction: column-reverse; }
  .feature-media, .feature-body { width: 100%; }
  .feature-body { padding: 0 24px; }
  .feature-title { font-size: 26px; }
  .feature-text { font-size: 14px; }
  .feature-panel { width: 88%; height: 420px; }
  .feature--left  .feature-panel { margin-left: 0; padding-left: 0; }
  .feature--right .feature-panel { margin-right: 0; padding-right: 0; margin-left: auto; }
  .feature-badge { margin-left: 0; }
  .feature-coins { width: 92%; margin: 0 auto; }

  .cta { padding: 42px 16px; }
  .cta-card { border-radius: 21px; padding: 24px 16px; width: 88%; }
  .cta-title { font-size: 28px; }
  .cta-stores { gap: 14px; }
  .cta-store .qr { width: 44px; height: 44px; }
  .store-badges img { height: 32px; }

  .steps { padding-bottom: 60px; }
  .steps > .section-heading { font-size: 48px; }
  .steps-list { flex-direction: column; align-items: center; gap: 36px; }
  .steps-list::before { top: 60px; bottom: 60px; left: 50%; right: auto; width: 4px; height: auto; }
  .step-title { font-size: 22px; }
  .step-text { font-size: 14px; }

  .faq { padding: 60px 16px 80px; }
  .faq-heading .section-heading { font-size: 36px; }
  .section-subheading { font-size: 24px; }
  .faq-q { padding: 20px 56px 20px 18px; gap: 10px; }
  .faq-q .mark, .faq-a .mark { font-size: 24px; }
  .faq-q .question { font-size: 14px; }
  .faq-icon { right: 18px; width: 20px; }
  .faq-a-body { padding: 2px 56px 24px 18px; }
  .faq-a .answer { font-size: 14px; }

  .footer .logo { width: 150px; }
}
