:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ec;
  --text: #23241f;
  --text-muted: #6b6b62;
  --accent: #2f6f4e;
  --accent-dark: #234f38;
  --card-bg: #ffffff;
  --border: #e5e3da;
  --amazon: #c47a1f;
  --amazon-dark: #9c611a;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* scroll progress bar */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amazon));
  transition: width 0.1s linear;
}

/* scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* back to top */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-dark);
}

a {
  color: var(--accent-dark);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-header nav a:hover {
  color: var(--accent-dark);
  background: var(--bg-alt);
  transform: translateY(-1px);
}

.site-header nav a.is-active {
  color: #fff;
  background: var(--accent);
}

.site-header nav a.is-active:hover {
  color: #fff;
  background: var(--accent-dark);
}

/* hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  z-index: 0;
  animation: hero-float 16s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -200px;
  left: -140px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--amazon);
  bottom: -200px;
  right: -120px;
  animation-delay: -8s;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -24px) scale(1.08); }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0;
  animation: hero-fade-up 0.7s ease 0.05s forwards;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: hero-fade-up 0.7s ease 0.15s forwards;
}

.hero-lead {
  margin: 0 auto;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: hero-fade-up 0.7s ease 0.25s forwards;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .hero-eyebrow,
  .hero h1,
  .hero-lead {
    animation: none;
    opacity: 1;
  }
}

/* sections */

.section {
  padding: 64px 0;
}

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

.section-title {
  font-size: 1.5rem;
  margin: 0 0 32px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-lead {
  margin: -16px 0 32px;
  color: var(--text-muted);
}

/* profile */

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.profile-lead {
  margin: 0 0 28px;
}

.profile-subhead {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.career-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.career-list li {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-list li:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.career-tag {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-closing {
  margin: 0;
  color: var(--text-muted);
}

.profile-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* app card */

.app-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.app-card:hover .app-icon {
  transform: rotate(-4deg) scale(1.06);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.app-name {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.app-tagline {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lang-badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.app-features {
  margin: 0 0 24px;
  padding-left: 1.2em;
  color: var(--text);
}

.app-features li {
  margin-bottom: 6px;
}

.app-screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.app-screenshots img {
  height: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-screenshots img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.play-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(47, 111, 78, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.play-badge:hover {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(47, 111, 78, 0.3);
}

.play-badge:active {
  transform: translateY(0) scale(0.97);
}

.app-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* books */

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.book-cover {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.book-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--amazon-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.book-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.book-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.amazon-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--amazon);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(196, 122, 31, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.amazon-badge:hover {
  background: var(--amazon-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(196, 122, 31, 0.3);
}

.amazon-badge:active {
  transform: translateY(0) scale(0.97);
}

/* footer */

.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .app-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-screenshots img {
    height: 240px;
  }

  .hero-break {
    display: none;
  }

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