/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --hero-bg: #fafbfd;
  --heading: #0d1b2a;
  --text: #3a4255;
  --accent: #1b4d6e;
  --accent-light: #2670a0;
  --red: #c0392b;
  --red-soft: rgba(192, 57, 43, 0.08);
  --accent-soft: rgba(27, 77, 110, 0.05);
  --border: #e8ecf2;
  --muted: #7a8599;
  --stat-bg: #f4f7fb;
  --footer-bg: #0d1b2a;
  --footer-text: #8a9ab5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.nav__logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 3px;
  font-family: "DM Sans", sans-serif;
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heading);
  margin: 4px 0;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: var(--hero-bg);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--red));
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 77, 110, 0.024), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(27, 77, 110, 0.13);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--heading);
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0 0 16px;
  font-family: "Noto Sans JP", sans-serif;
}

.hero__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 32px;
  letter-spacing: 1px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn--primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(27, 77, 110, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 77, 110, 0.25);
}

.btn--outline {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1.5px solid var(--accent);
  transition: background 0.2s;
}

.btn--outline:hover {
  background: var(--accent-soft);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 24px;
}

.section--alt {
  background: var(--stat-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.section__subtitle {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Service ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.service-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(27, 77, 110, 0.13);
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 10px;
}

.service-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.service-card__desc strong {
  color: var(--text);
}

.service-card__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.service-card:hover .service-card__link {
  gap: 8px;
}

.service-card__link-arrow {
  transition: transform 0.2s;
}

.service-card__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.service-card__detail.is-open {
  max-height: 400px;
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-card__detail p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin: 0 0 12px;
}

.service-card__detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__detail li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.service-card__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.service-card__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.service-card__toggle.is-open .service-card__link-arrow {
  transform: rotate(180deg);
}

/* ===== App Grid ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.app-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.app-card__screenshots {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-card__screenshots::-webkit-scrollbar {
  display: none;
}

.app-card__screenshot {
  flex-shrink: 0;
  width: 120px;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-card__screenshot img {
  width: 100%;
  height: auto;
}

.app-card__screenshot--landscape {
  width: 220px;
}

.app-card__body {
  padding: 16px 20px 20px;
}

.app-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__name {
  font-size: 17px;
  font-weight: 900;
  color: var(--heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-card__badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.app-card__badge--new {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.13);
}

.app-card__badge--ai {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(27, 77, 110, 0.13);
}

.app-card__desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.app-card__stores {
  display: flex;
  gap: 10px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.8;
}

.store-badge img {
  height: 40px;
  width: auto;
}

.app-card__unavailable {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--stat-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.app-grid--more {
  display: none;
  margin-top: 24px;
}

.app-grid--more.is-open {
  display: grid;
}

.app-grid__more-wrap {
  text-align: center;
  margin-top: 32px;
}

.btn--more {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s;
}

.btn--more:hover {
  background: var(--accent-soft);
}

.btn--more.is-hidden {
  display: none;
}

/* ===== Stats ===== */
.stats {
  padding: 56px 24px;
}

.stats__grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats__item {
  text-align: center;
}

.stats__num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
}

.stats__num--red {
  color: var(--red);
}

.stats__label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Voice ===== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.voice-card {
  background: var(--stat-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.voice-card__stars {
  color: #f5a623;
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.voice-card__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 12px;
  line-height: 1.6;
}

.voice-card__meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

/* ===== Journey (Timeline) ===== */
.timeline {
  max-width: 600px;
  margin: 0 auto;
}

.timeline__item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__line {
  position: absolute;
  left: 27px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item:last-child .timeline__line {
  display: none;
}

.timeline__year {
  width: 56px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 77, 110, 0.15);
}

.timeline__year--latest {
  background: linear-gradient(135deg, var(--red), #e04030);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.15);
}

.timeline__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 4px;
}

.timeline__desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__name {
  font-size: 22px;
  font-weight: 900;
  color: var(--heading);
  margin: 0 0 4px;
}

.about__name-en {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.about__role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px;
}

.about__bio {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin: 0 0 20px;
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about__skill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(27, 77, 110, 0.1);
}

.about__career {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about__career-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.about__career-item:first-child {
  padding-top: 0;
}

.about__career-item:last-child {
  border-bottom: none;
}

.about__career-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.about__career-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.about__career-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ===== CTA Buttons ===== */
.cta__buttons {
  margin-top: 24px;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.btn--cta {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), #d44030);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.25);
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.7;
  margin: 0 0 16px;
  font-family: "Noto Sans JP", sans-serif;
}

.cta__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ===== Contact Channels ===== */
.contact__channels {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 8px;
}

.contact__channel {
  text-align: center;
}

.contact__channel-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  padding: 40px 24px 32px;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-family: "DM Sans", sans-serif;
}

.footer__tagline {
  font-size: 11px;
  color: var(--footer-text);
  margin: 0;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer__nav-link {
  display: block;
  font-size: 11px;
  color: var(--footer-text);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 10px;
  color: var(--footer-text);
  opacity: 0.6;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.footer__social:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.footer__social svg {
  width: 14px;
  height: 14px;
  fill: var(--footer-text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .hero__title {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 56px 24px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card__screenshot {
    width: 130px;
  }

  .app-card__screenshot--landscape {
    width: 240px;
  }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .voice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__top {
    flex-direction: column;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .section__title {
    font-size: 24px;
  }

  .stats__num {
    font-size: 26px;
  }

  .app-card__screenshot {
    width: 110px;
  }

  .app-card__screenshot--landscape {
    width: 200px;
  }
}
