/* Coincheck LP — estático, sem scroll (100dvh) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  background: #f6f6f6;
}

body.cc-home {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: #f6f6f6;
  color: #12575f;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Yu Gothic",
    Meiryo,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Header ---------- */
.cc-home-header {
  flex-shrink: 0;
  background: #f6f6f6;
}

.cc-home-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

.cc-home-header__logo {
  display: inline-flex;
  align-items: center;
}

.cc-home-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.cc-home-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cc-home-header__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #12575f;
  font-size: 13px;
  font-weight: 400;
}

.cc-home-header__chevron {
  width: 10px;
  height: 10px;
  color: #12575f;
}

.cc-home-header__cta {
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: #09ba85;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Main layout ---------- */
.cc-home {
  display: flex;
  flex-direction: column;
}

.cc-home-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero ---------- */
.cc-home-hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}

.cc-home-hero__title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: #12575f;
}

.cc-home-hero__cta {
  display: block;
  width: min(100%, 320px);
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  background: #09ba85;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.cc-home-hero__login {
  display: block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #19c994;
  font-size: 15px;
  font-weight: 400;
}

.cc-home-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.cc-home-hero__phones {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(42vh, 340px);
  height: auto;
  object-fit: contain;
}

.cc-home-hero__badge {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: min(120px, 28%);
  height: auto;
}

.cc-home-hero__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2px;
  font-size: 11px;
  line-height: 1.6;
  color: #12575f;
  opacity: 0.5;
}

/* ---------- Rate cards ---------- */
.cc-home-rates {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 12px;
}

.cc-home-rate {
  display: block;
  min-width: 0;
  padding: 10px 8px 12px;
  background: #fff;
  border: 1px solid #e8ecea;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(14, 23, 38, 0.06);
  transition: box-shadow 0.15s ease;
}

.cc-home-rate:hover {
  box-shadow: 0 2px 8px rgba(14, 23, 38, 0.1);
}

.cc-home-rate__coin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cc-home-rate__coin img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cc-home-rate__symbol {
  font-size: 13px;
  font-weight: 600;
  color: #12575f;
}

.cc-home-rate__price {
  display: block;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 500;
  color: #12575f;
  white-space: nowrap;
}

.cc-home-rate__change {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
}

.cc-home-rate__change--down {
  color: #ee2e6b;
}

.cc-home-rate__change--up {
  color: #00cfb5;
}

/* ---------- App download ---------- */
.cc-home-download-wrap {
  flex-shrink: 0;
  padding: 0 0 16px;
  background: #f6f6f6;
}

.cc-home-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: #fff;
  border: 1px solid #b5c6c1;
  border-radius: 8px;
}

.cc-home-download__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: #12575f;
  white-space: nowrap;
}

.cc-home-download__stores a {
  display: inline-flex;
}

.cc-home-download__stores {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cc-home-download__stores img {
  display: block;
  height: 40px;
  width: auto;
}

.cc-home-download__qr {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 960px) {
  .cc-home-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cc-home-hero__cta,
  .cc-home-hero__login {
    margin-left: auto;
    margin-right: auto;
  }

  .cc-home-hero__badge {
    right: 8%;
  }

  .cc-home-rates {
    grid-template-columns: repeat(3, 1fr);
  }

  .cc-home-download {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .cc-home-download__text {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cc-home-header__nav .cc-home-header__link:not(.cc-home-header__cta) {
    display: none;
  }

  .cc-home-rates {
    grid-template-columns: repeat(2, 1fr);
  }
}
