:root {
  --color-text: #5D430F;
  --width-content: 700px;
  --bg-image: url('../img/background.webp');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--bg-image) center center / cover no-repeat fixed;
  font-family: 'BIZ UDPGothic', sans-serif;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: var(--bg-image) center center / cover no-repeat fixed;
}

nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  padding: 16px 30px;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transform: translate(-15px, 15px);
}

nav a:hover {
  opacity: 0.7;
}

.title {
  padding: 40px 0 60px;
  text-align: center;
}

.title img {
  max-width: var(--width-content);
  width: 90%;
  height: auto;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 100px;
  padding: 30px 20px 60px;
  max-width: var(--width-content);
  width: 100%;
}

.card {
  text-align: center;
  transition: transform 0.3s;
}

a.card {
  cursor: pointer;
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.05);
  }
}

.card.in-view {
  transform: scale(1.15);
}

.card img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.coming-soon {
  text-align: center;
  margin-top: 80px;
  padding: 0 20px 200px;
  max-width: var(--width-content);
  width: 100%;
}

.coming-soon img {
  max-width: 140px;
  width: 100%;
  height: auto;
}

.error-page {
  text-align: center;
  padding: 120px 20px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
}

.error-page h1 {
  margin: 0 0 40px;
}

.error-page h1 img {
  max-width: 280px;
  width: 70%;
  height: auto;
}

.error-page p {
  margin: 0;
}

.error-page p + p {
  margin-top: 56px;
}

.error-page a {
  color: var(--color-text);
  text-decoration: underline;
}

.error-page a:hover {
  opacity: 0.7;
}

body.about::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 1;
}

.about-page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--width-content);
  padding: 80px 20px 200px;
  font-size: 16px;
  line-height: 1.8;
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.about-header img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.about-header h1 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.about-body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 20px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.about-body p {
  margin-bottom: 40px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-etymology {
  font-family: 'Noto Sans JP', sans-serif;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 10px 32px 24px;
  text-align: left;
  font-size: 15px;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 0 16px 8px rgba(229, 205, 158, 0.9);
  box-sizing: border-box;
}

.about-etymology p.about-etymology-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.about-etymology p {
  margin-bottom: 32px;
}

.about-etymology p:last-child {
  margin-bottom: 0;
}

.about-etymology strong {
  font-size: 1.2em;
  font-weight: 700;
}

.about-back {
  margin-top: 80px;
  text-align: center;
}

.about-back a {
  color: var(--color-text);
  text-decoration: underline;
}

.about-back a:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  body,
  header {
    background-attachment: scroll;
  }

  nav a {
    font-size: 13px;
  }

  .title {
    padding: 30px 0 20px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 100px;
    padding-top: 80px;
    max-width: 300px;
  }

  .coming-soon {
    margin-top: 120px;
    padding-bottom: 300px;
  }

  .about-header {
    margin-bottom: 40px;
  }

  .about-page {
    padding-top: 60px;
    padding-bottom: 300px;
  }

  .about-back {
    margin-top: 56px;
  }
}
