/* セルフカルテ LP - Concept A reproduction */

:root {
  --text-heading: #111827;
  --text-body: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --accent: #18a56a;
  --accent-dark: #0f8554;
  --accent-soft: #eaf8f1;
  --accent-border: #bdebd4;
  --coral: #f47c71;
  --coral-soft: #fff1ec;
  --amber: #f59e0b;
  --blue: #2f7de1;

  --bg-white: #ffffff;
  --bg-gray: #f7faf8;
  --bg-green: #eef9f3;
  --bg-warm: #fff8f5;
  --card-border: #e5e7eb;
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --card-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);

  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-number: 'Inter', 'SF Pro Display', sans-serif;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--text-body);
  background: var(--bg-white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

main {
  background: var(--bg-white);
}

.section-white {
  background: var(--bg-white);
}

.section-gray {
  background: var(--bg-gray);
}

.section-green {
  background: var(--bg-green);
}

.section-soft {
  background: var(--bg-gray);
}

.section-container {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.section-title {
  margin: 0 0 32px;
  color: var(--text-heading);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(100% - 28px, var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: var(--card-shadow-soft);
}

.brand-name {
  color: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.header-nav {
  display: none;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 700;
}

.header-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-nav a:hover {
  color: var(--accent-dark);
}

.header-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 165, 106, 0.2);
  white-space: nowrap;
}

.header-download:hover {
  background: var(--accent-dark);
}

.hero-section {
  padding: 42px 0 56px;
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 58%, #ffffff 100%);
}

.hero-inner {
  width: min(100% - 28px, var(--content-width));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-media-panel {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #edf7f1;
  box-shadow: var(--card-shadow);
}

.hero-media-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.58) 100%);
  pointer-events: none;
}

.hero-person-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-media-panel picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-app-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.hero-app-screen {
  position: relative;
  display: block;
  width: 84px;
  height: auto;
  border: 5px solid #ffffff;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.hero-app-screen + .hero-app-screen {
  margin-left: -22px;
}

.hero-app-screen-primary {
  z-index: 2;
  width: 108px;
}

.hero-app-screen-secondary,
.hero-app-screen-tertiary {
  margin-bottom: 4px;
}

.hero-app-screen-secondary {
  z-index: 1;
}

.hero-app-screen-tertiary {
  z-index: 3;
}

.hero-copy {
  min-width: 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 18px;
  color: var(--text-heading);
  font-size: clamp(2rem, 7vw, 4.1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-description {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--text-body);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.95;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge,
.store-badge-cta {
  min-width: min(100%, 230px);
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: #4b5563;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--card-shadow-soft);
  cursor: not-allowed;
}

.store-badge svg,
.store-badge-cta svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-badge-active,
.store-badge-cta-active {
  color: #ffffff;
  background: #111827;
  cursor: pointer;
}

.store-badge-active:hover,
.store-badge-cta-active:hover {
  transform: translateY(-2px);
}

.hero-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.story-intro {
  padding: 62px 0;
}

.founder-card {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow-soft);
  overflow: hidden;
}

.founder-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-gray);
  overflow: hidden;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-lead {
  margin: 0 0 14px;
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.55;
}

.founder-copy p {
  margin: 0 0 14px;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.95;
}

.founder-story-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.founder-story-link svg {
  width: 18px;
  height: 18px;
}

.founder-story-link:hover {
  background: var(--accent-soft);
}

.founder-links {
  margin-top: 18px;
}

.founder-links-label {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.founder-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-link {
  min-height: 44px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.founder-link:hover {
  background: var(--accent-soft);
}

.founder-letter-section {
  padding: 64px 0;
}

.founder-letter {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 4px solid var(--accent);
}

.founder-letter p {
  margin: 0 0 20px;
  color: var(--text-body);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 2;
}

.founder-letter-emphasis {
  color: var(--text-heading) !important;
  font-size: clamp(1.12rem, 1.8vw, 1.3rem) !important;
  font-weight: 800;
  line-height: 1.85 !important;
}

.founder-letter-signature {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.testimonials-section {
  padding: 62px 0;
  overflow: hidden;
}

.testimonials-carousel {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow-soft);
}

.testimonial-rating {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0;
}

.testimonial-title {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.testimonial-text {
  min-height: 98px;
  margin: 0 0 16px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

.testimonial-name {
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 800;
}

.testimonial-source {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 0.72rem;
  font-weight: 800;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonials-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
}

.testimonials-dot[aria-selected='true'] {
  width: 24px;
  background: var(--accent);
}

.features-section {
  padding: 62px 0;
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capability-item {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-heading);
  background: #ffffff;
  box-shadow: var(--card-shadow-soft);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.capability-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.capability-icon svg {
  width: 24px;
  height: 24px;
}

.screens-section {
  padding: 62px 0;
}

.screenshot-gallery {
  display: flex;
  gap: 18px;
  margin: 0 -16px;
  padding: 4px 16px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 210px;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 500 / 1083;
  object-fit: cover;
  border: 7px solid #ffffff;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.screenshot-card figcaption {
  margin-top: 12px;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 800;
}

.scroll-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.how-section {
  padding: 62px 0;
}

.steps-grid {
  display: grid;
  gap: 16px;
}

.step-item {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow-soft);
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-family: var(--font-number);
  font-size: 0.92rem;
  font-weight: 800;
}

.step-item h3 {
  margin: 0 0 8px;
  color: var(--text-heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.step-item p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.85;
}

.faq-section {
  padding: 62px 0;
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow-soft);
}

.faq-question {
  margin: 0 0 8px;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}

.faq-answer {
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.85;
}

.faq-answer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-cta {
  background: #18a56a;
}

.cta-section {
  padding: 66px 0;
}

.cta-container {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

.cta-description {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.8;
}

.store-badge-cta {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(17, 24, 39, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.store-badge-cta-active {
  color: var(--text-heading);
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.footer {
  padding: 36px 0 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  background: #ffffff;
}

.footer-container {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
}

.footer-content {
  display: grid;
  gap: 24px;
  padding-bottom: 28px;
  text-align: center;
}

.footer-app-name {
  margin: 0 0 4px;
  color: var(--text-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.footer-tagline {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.footer-link,
.footer-developer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-link:hover,
.footer-developer-link:hover {
  color: var(--accent-dark);
}

.footer-developer-label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.footer-column-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-divider {
  border-top: 1px solid var(--card-border);
  padding: 18px 0;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(24, 165, 106, 0.42);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (min-width: 640px) {
  .store-badges {
    flex-direction: row;
  }

  .capability-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .hero-section {
    padding: 54px 0 70px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 46px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
  }

  .hero-copy .store-badges {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 500px;
  }

  .hero-note {
    text-align: left;
  }

  .founder-card {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .testimonials-track {
    gap: 18px;
  }

  .testimonial-card {
    flex: 0 0 calc(33.333% - 12px);
  }

  .testimonials-dots {
    display: none;
  }

  .screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 4px 0 0;
    overflow: visible;
  }

  .screenshot-card {
    flex: initial;
  }

  .scroll-hint {
    display: none;
  }

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

  .footer-content {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    text-align: left;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-column-right {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .capability-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-header-inner {
    min-height: 64px;
  }

  .header-download {
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .founder-copy {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .header-download {
    display: none;
  }

  .hero-media-panel {
    aspect-ratio: 1.03;
  }

  .hero-app-stack {
    right: 12px;
    bottom: 10px;
  }

  .hero-app-screen {
    width: 56px;
    border-width: 4px;
    border-radius: 14px;
  }

  .hero-app-screen + .hero-app-screen {
    margin-left: -16px;
  }

  .hero-app-screen-primary {
    width: 74px;
  }

  .store-badge,
  .store-badge-cta {
    width: 100%;
  }

  .capability-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
