:root {
  --text: #514c48;
  --bg: #f5f2ee;
  --line: #d8d2cc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
}

.catalog {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px 16px;
}

.page-counter {
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--text);
}

.book {
  position: relative;
  width: min(88vw, 420px);
  aspect-ratio: 1 / 1.414;
  perspective: 1400px;
}

.page {
  position: absolute;
  inset: 0;
  background: var(--white);
  padding: 62px 42px 50px;
  box-shadow: 0 18px 40px rgba(65, 58, 52, 0.10);
  border: 1px solid rgba(81, 76, 72, 0.06);
  opacity: 0;
  transform: rotateY(8deg) translateX(20px);
  transition: transform 0.45s ease, opacity 0.45s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page.active {
  opacity: 1;
  transform: rotateY(0) translateX(0);
  z-index: 2;
}

.page.enter-next.active {
  opacity: 0;
  transform: rotateY(10deg) translateX(42px);
}

.page.enter-prev.active {
  opacity: 0;
  transform: rotateY(-10deg) translateX(-42px);
}

.page.exit-next {
  opacity: 0;
  transform: rotateY(-18deg) translateX(-46px);
}

.page.exit-prev {
  opacity: 0;
  transform: rotateY(18deg) translateX(46px);
}

.en {
  font-family: "Futura PT", "Avenir Next", "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 30px;
}

h1,
h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: inherit;
  margin: 0;
}

h1 {
  font-size: 31px;
  line-height: 1.58;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 34px;
}

h2.single-line {
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0.025em;
  white-space: nowrap;
  margin-bottom: 32px;
}

h3 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1.8;
}

p {
  font-size: 13.5px;
  line-height: 2.08;
  letter-spacing: 0.015em;
  margin: 0 0 17px;
}

.compact {
  padding-top: 60px;
  padding-bottom: 42px;
}

.compact .en {
  margin-bottom: 28px;
}

.compact p {
  line-height: 2.02;
  margin-bottom: 15px;
}

.cover {
  padding: 0;
  color: var(--white);
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.5) 0%,
    rgba(18, 18, 18, 0.38) 44%,
    rgba(18, 18, 18, 0.16) 100%
  );
}

.cover-content {
  position: relative;
  z-index: 1;
  padding: 64px 38px 0;
}

.cover-en {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.cover h1 {
  font-size: 31px;
  line-height: 1.65;
  letter-spacing: 0.075em;
  margin-bottom: 30px;
}

.cover-line {
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
  margin: 0 0 30px;
}

.lead {
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.cover-logo {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  left: 50%;
  width: 190px;
  transform: translateX(-50%);
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.logo {
  max-width: 190px;
}

.image-page {
  padding-bottom: 42px;
}

.photo {
  display: block;
  margin: 0 auto 24px;
  object-fit: contain;
}

.lifestyle-photo {
  width: 78%;
  max-width: 290px;
}

.philosophy-page {
  justify-content: flex-start;
}

.triple-logo {
  width: 58%;
  max-width: 210px;
  margin: 18px auto 28px;
  display: block;
}

.philosophy-page p {
  line-height: 2;
  margin-bottom: 14px;
}

.lifestyle-text {
  line-height: 2.2;
}

.point {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.steps,
.simple-list {
  list-style: none;
  padding: 0;
}

.steps {
  margin: 34px 0 0;
}

.simple-list {
  margin: 10px 0 0;
}

.steps li,
.simple-list li {
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

.steps li {
  padding: 22px 0 22px 18px;
}

.simple-list li {
  padding: 16px 0 16px 18px;
}

.note {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 10px;
  opacity: 0.78;
}

.cta-page {
  justify-content: flex-start;
}

.button {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--text);
  color: #fff;
  padding: 16px 18px;
  margin-top: 28px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.button:hover {
  opacity: 0.92;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.nav {
  width: min(88vw, 420px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav button:hover {
  background: #f7f4f0;
  transform: translateY(-1px);
}

.nav p {
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .catalog {
    justify-content: flex-start;
    gap: 12px;
    padding: calc(env(safe-area-inset-top) + 18px) 12px 18px;
  }

  .page-counter {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-top: 4px;
  }

  .book {
    width: min(88vw, 360px);
    aspect-ratio: 1 / 1.414;
  }

  .page {
    padding: 42px 26px 30px;
    box-shadow: 0 12px 30px rgba(65, 58, 52, 0.10);
  }

  .en {
    font-size: 8.5px;
    letter-spacing: 0.32em;
    margin-bottom: 32px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  h2 {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.025em;
    margin-bottom: 20px;
  }

  h2.single-line {
    font-size: 15.5px;
    line-height: 1.55;
    white-space: nowrap;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 11.5px;
    line-height: 1.55;
    margin-bottom: 7px;
  }

  p {
    font-size: 10.8px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: 11px;
  }

  .compact {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .compact .en {
    margin-bottom: 32px;
  }

  .compact p {
    font-size: 10.6px;
    line-height: 1.65;
    margin-bottom: 9px;
  }

  .dense-page {
    padding-top: 38px;
    padding-bottom: 26px;
  }

  .cover-content {
    padding: 44px 30px 0;
  }

  .cover-en {
    margin-bottom: 20px;
  }

  .cover h1 {
    font-size: 25px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .cover-line {
    width: 34px;
    margin-bottom: 22px;
  }

  .lead {
    font-size: 11px;
    line-height: 1.8;
  }

  .cover-logo {
    width: 150px;
    bottom: 26px;
  }

  .point {
    padding-top: 11px;
    margin-top: 3px;
  }

  .steps {
    margin-top: 30px;
  }

  .steps li {
    padding: 14px 0 14px 14px;
    font-size: 11px;
    line-height: 1.55;
  }

  .simple-list {
    margin-top: 8px;
  }

  .simple-list li {
    padding: 11px 0 11px 14px;
    font-size: 11px;
    line-height: 1.55;
  }

  .triple-logo {
    width: 46%;
    max-width: 150px;
    margin: 10px auto 18px;
  }

  .philosophy-page p {
    font-size: 10.8px;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .lifestyle-photo {
    width: 68%;
    max-width: 230px;
    margin-bottom: 18px;
  }

  .lifestyle-text {
    font-size: 11px;
    line-height: 1.9;
  }

  .warranty-page p {
    font-size: 10.6px;
    line-height: 1.65;
  }

  .warranty-page .simple-list li {
    padding: 10px 0 10px 14px;
  }

  .note {
    font-size: 9.8px;
    line-height: 1.6;
    margin-top: 6px;
  }

  .button {
    padding: 12px 14px;
    margin-top: 30px;
    font-size: 10.8px;
  }

  .nav {
    width: min(88vw, 360px);
  }

  .nav button {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .nav p {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}