/* =========================
   Base / Tokens
========================= */
:root {
  --brand: #4309a1;
  --ink: #1f1147;
  --ink-2: #2d0f73;
  --ink-3: #3d2a6b;

  --bg-grad: linear-gradient(90deg, #fefcf9, #e5d4ff);
  --card-border: #f1eaff;
  --border-soft: #eadbff;
  --border-softer: #f3edff;

  --shadow-sm: 0 10px 24px rgba(67, 9, 161, 0.06);
  --shadow-md: 0 14px 34px rgba(67, 9, 161, 0.1);
  --shadow-lg: 0 16px 38px rgba(67, 9, 161, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family:
    Noto Sans JP,
    Arial,
    sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.2rem;
}

.container {
  letter-spacing: 0;
  line-height: 1.5;
}

/* Anchor jump with fixed header */
#download,
#faq {
  scroll-margin-top: 72px;
}

/* =========================
   Navbar / Hero
========================= */
.navbar {
  width: 100%;
  z-index: 30;
  top: 0;
  position: fixed;
  background-image: var(--bg-grad);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 50px;
  padding: 0 20px;
  border-bottom: solid 1px #f0e6ff;
}

.navbar-left {
  display: flex;
  align-items: center;
  min-width: 0; /* ellipsis のため重要 */
}

.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-app-icon-area img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: inline;
  max-width: 100%;
  border-radius: 10px;
}

.navbar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: 0 10px 20px rgba(67, 9, 161, 0.18);
  white-space: nowrap;
}

.navbar-download-btn:hover {
  opacity: 0.92;
}

.navbar-download-btn:active {
  transform: translateY(1px);
}

.main {
  margin-top: 50px;
  padding: 20px;
  background-image: var(--bg-grad);
  color: var(--brand);
}

.overview-area {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.app-description-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.app-description-area__subtitle {
  width: 100%;
  text-transform: uppercase;
}

.app-description-area__title {
  line-height: 1.25;
  font-weight: 700;
  font-size: 2.25rem;
  margin: 1rem 0;
}

.app-description-area__description {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.5;
}

.app-link-area {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  justify-content: center;
}

/* Hero media (screenshot + small icon badge) */
.hero-media-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 0;
}

.hero-phone {
  width: min(340px, 100%);
  aspect-ratio: 9 / 19.5;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-phone__top {
  height: 16px;
  background: var(--bg-grad);
  border-bottom: 1px solid var(--border-soft);
}

.hero-phone__img {
  width: 100%;
  height: calc(100% - 16px);
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.hero-phone__placeholder {
  display: none;
  padding: 14px;
}

.hero-phone--placeholder .hero-phone__placeholder {
  display: block;
}

.hero-phone__placeholder-title {
  font-weight: 900;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.hero-phone__placeholder-text {
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.hero-badge__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.hero-badge__text {
  text-align: left;
  line-height: 1.2;
}

.hero-badge__title {
  font-weight: 900;
  color: var(--ink-2);
  font-size: 1rem;
}

.hero-badge__sub {
  margin-top: 3px;
  color: var(--ink-3);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Old icon hero (unused now, but kept safe if HTML still has it) */
.app-icon-area {
  text-align: center;
  padding: 1.5rem 0;
}
.app-icon-area img {
  width: 20rem;
  height: 20rem;
  object-fit: contain;
  display: inline;
  max-width: 100%;
}

.wave-image {
  position: relative;
  background-image: var(--bg-grad);
}

/* =========================
   Content Section
========================= */
.content-section {
  background: #ffffff;
  border-top: solid 1px var(--border-softer);
  border-bottom: solid 1px var(--border-softer);
  padding: 56px 20px;
  color: var(--ink);
}

.content-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-head--tight {
  margin-bottom: 18px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: #f4ecff;
  border: solid 1px var(--border-soft);
}
.pill--sub {
  background: #fbf7ff;
}

.section-title {
  font-size: 1.7rem;
  margin: 14px 0 10px;
  line-height: 1.25;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.section-title--small {
  font-size: 1.4rem;
  margin-top: 0;
}

.section-lead {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-3);
}
.section-lead--small {
  max-width: 520px;
  font-size: 1rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 40px;
}

.feature-card {
  background: #ffffff;
  border: solid 1px var(--card-border);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.feature-card--accent {
  border-color: #d8c2ff;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-grad);
  border: solid 1px var(--border-soft);
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.feature-text {
  margin: 0;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.75;
}

.mini-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-3);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* Example chip (label + axis + multiply) */
.example-chip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fbf7ff;
  color: var(--ink-2);
  font-weight: 800;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.example-label {
  background: var(--brand);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.example-axis {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.example-multiply {
  font-weight: 900;
  color: var(--brand);
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0 8px;
  border-top: dashed 1px #efe6ff;
  border-bottom: dashed 1px #efe6ff;
  margin: 22px 0 44px;
}

.checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: var(--ink-3);
  line-height: 1.7;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

.mini-cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--border-soft);
}
.btn-ghost:hover {
  background: #fbf7ff;
}

.btn:active {
  transform: translateY(1px);
}

/* Screenshot cards */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.phone-card {
  aspect-ratio: 9 / 19.5;
  background: #ffffff;
  border: solid 1px var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.phone-top {
  height: 16px;
  background: var(--bg-grad);
  border-bottom: solid 1px var(--border-soft);
}

.phone-img {
  width: 100%;
  height: calc(100% - 16px);
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.placeholder {
  padding: 14px;
  display: none;
}

.phone-card--placeholder .placeholder {
  display: block;
}

.placeholder-title {
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.placeholder-text {
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ */
.faq {
  margin: 38px 0 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  border: solid 1px var(--card-border);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
}

.faq-q {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-2);
  list-style: none;
}
.faq-q::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-a {
  margin-top: 10px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* Download CTA */
.download {
  margin-top: 34px;
}

.download-card {
  background: var(--bg-grad);
  border: solid 1px var(--border-soft);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.download-title {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 1.35rem;
  line-height: 1.25;
}

.download-text {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.8;
}

.download-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
}

/* =========================
   Footer
========================= */
.footer-wave-image {
  background-image: var(--bg-grad);
  color: var(--brand);
  position: relative;
}

.footer {
  background-image: var(--bg-grad);
  color: var(--brand);
  padding: 20px 10px 60px 10px;
}

.footer__content {
  text-align: center;
  font-size: 1.3rem;
}

.footer__app-link-area,
.footer__link-area {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__link {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--brand);
  text-decoration: none;
}
.footer__link:hover {
  background: rgba(67, 9, 161, 0.06);
}

/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
  .overview-area {
    max-width: 768px;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .app-description-area {
    text-align: left;
    width: 60%;
  }

  .app-description-area__subtitle {
    text-align: left;
  }

  .app-description-area__description {
    padding: 0 10px;
  }

  .app-link-area {
    justify-content: flex-start;
  }

  .hero-media-area {
    padding: 0;
    margin-top: 6px;
    max-width: 37%;
  }

  .hero-phone {
    width: 217px;
  }

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

  .showcase {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .download-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .phone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .navbar-title {
    font-size: 1.05rem;
  }
  .navbar-download-btn {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}
