: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;
}

.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.1);
  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;
  word-break: keep-all;
}

.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;
}

.photo {
  display: block;
  object-fit: contain;
}

/* 04 */
.concept-page {
  padding-top: 58px;
}

.concept-page h2 {
  margin-bottom: 24px;
}

.concept-photo {
  width: 88%;
  max-width: 320px;
  margin: 0 auto 24px;
}

/* 05 */
.triple-cross-page {
  position: relative;
  padding: 58px 42px 46px;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.86)
    ),
    url("images/triple-cross-bg.JPG");
  background-size: cover;
  background-position: center;
}

.triple-cross-inner {
  position: relative;
  z-index: 1;
}

.triple-cross-page h2 {
  margin-bottom: 26px;
}

.triple-logo {
  width: 52%;
  max-width: 190px;
  margin: 10px auto 24px;
  display: block;
}

.triple-lead {
  font-size: 13.5px;
  margin-bottom: 16px;
}

.triple-cross-page p {
  line-height: 2;
  margin-bottom: 14px;
}

/* 06 */
.image-page {
  padding-bottom: 42px;
}

.lifestyle-page {
  padding-top: 58px;
}

.lifestyle-photo-large {
  width: 92%;
  max-width: 340px;
  margin: 0 auto 26px;
}

.lifestyle-text {
  line-height: 2.2;
}

/* 07 */
.example-page {
  padding-top: 58px;
}

.example-page h2 {
  margin-bottom: 24px;
}

.example-photo {
  width: 88%;
  max-width: 320px;
  margin: 0 auto 24px;
}

.example-page p {
  line-height: 1.95;
}

.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) + 38px) 12px 18px;
  }

  .page-counter {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-top: 2px;
  }

  .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.1);
  }

  .en {
    font-size: 8.5px;
    letter-spacing: 0.32em;
    margin-bottom: 28px;
  }

  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: 28px;
  }

  .compact p {
    font-size: 10.6px;
    line-height: 1.65;
    margin-bottom: 9px;
  }

  .dense-page {
    padding-top: 38px;
    padding-bottom: 26px;
  }

  .cover-content {
    padding: 54px 30px 0;
  }

  .cover-en {
    margin-bottom: 20px;
  }

  .cover h1 {
    font-size: 23px;
    line-height: 1.58;
    letter-spacing: 0.035em;
    margin-bottom: 22px;
    white-space: nowrap;
    word-break: keep-all;
  }

  .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;
  }

  .concept-page {
    padding-top: 40px;
  }

  .concept-page h2 {
    margin-bottom: 18px;
  }

  .concept-photo {
    width: 90%;
    max-width: 270px;
    margin-bottom: 18px;
  }

  .concept-page p {
    font-size: 10.6px;
    line-height: 1.65;
    margin-bottom: 9px;
  }

  .triple-cross-page {
    padding: 40px 26px 28px;
    background:
      linear-gradient(
        rgba(255, 255, 255, 0.86),
        rgba(255, 255, 255, 0.86)
      ),
      url("images/triple-cross-bg.JPG");
    background-size: cover;
    background-position: center;
  }

  .triple-cross-page h2 {
    margin-bottom: 20px;
  }

  .triple-logo {
    width: 44%;
    max-width: 150px;
    margin: 6px auto 18px;
  }

  .triple-cross-page p {
    font-size: 10.6px;
    line-height: 1.65;
    margin-bottom: 9px;
  }

  .triple-lead {
    font-size: 10.8px;
    margin-bottom: 10px;
  }

  .lifestyle-page {
    padding-top: 40px;
  }

  .lifestyle-photo-large {
    width: 92%;
    max-width: 290px;
    margin-bottom: 18px;
  }

  .lifestyle-text {
    font-size: 11px;
    line-height: 1.9;
  }

  .example-page {
    padding-top: 40px;
  }

  .example-page h2 {
    margin-bottom: 18px;
  }

  .example-photo {
    width: 90%;
    max-width: 270px;
    margin-bottom: 18px;
  }

  .example-page p {
    font-size: 10.8px;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .simple-list {
    margin-top: 8px;
  }

  .simple-list li {
    padding: 11px 0 11px 14px;
    font-size: 11px;
    line-height: 1.55;
  }

  .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;
  }
}