@charset "UTF-8";
body {
  background-color: #f9e2d2;
  color: #333;
}
.main-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background-image: url(../intro/image/header_0054.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 640px;
  padding: 2em 1em;
  color: #f9e2d2;
  text-align: right;
  position: relative;
}
.main-nav {
  position: absolute;
  bottom: 4px;
  left: 30%;
  transform: translateX(50%);
  z-index: 1;
}
.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list li a {
  display: block;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 30px;
  border: 2px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #f9e2d2;
  font-weight: bold;
  transition: 0.2s ease;
}
.nav-list li a:hover {
  background-color: #eee;
  border-color: #ccc;
}
header h1 {
  font-size: 80px;
  margin: 0 0 0.2em 0;
  color: #f9e2d2;
}
header h2 {
  margin: 0;
  font-size: 32px;
  color: #f9e2d2;
}
.profile {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  margin: 2em auto;
  padding: 0 1em;
  text-align: left;
  position: relative;
  font-size: 32px;
}
.profile-text {
  flex: 1;
  font-size: 24px;
  line-height: 2;
}
.profile img {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.cat {
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  align-items: flex-start;
  margin: 2em auto;
  padding: 0 1em;
  font-size: 32px;
  text-align: left;
}
.cat-life-text-block {
  padding: 0;
  margin: 0;
  flex: 1;
  font-size: 1.2em;
  line-height: 2;
}
.cat-life-text li {
  margin-bottom: 0.5em;
  font-size: 24px;
}
.cat-life img {
  display: block;
  margin-left: 0;
  margin-right: auto;
  width: 45%;
  max-width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.collection {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  margin: 2em auto;
  padding: 0 1em;
  text-align: left;
  position: relative;
  font-size: 32px;
}
.collection-text {
  flex: 1;
  font-size: 24px;
  line-height: 2;
}
.collection img {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.qna {
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  align-items: flex-start;
  margin: 2em auto;
  padding: 0 1em;
  font-size: 32px;
  text-align: left;
}
.qna-text {
  flex: 1;
  font-size: 24px;
  line-height: 2;
}
.qna img {
  display: block;
  margin-left: 0;
  margin-right: auto;
  width: 50%;
  max-width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.closing-message {
  text-align: center;
  font-size: 1.3em;
  font-style: italic;
  margin: 3em 1em 2em;
  color: #444;
}
body {
  font-family: "Kosugi Maru", sans-serif;
}
.intro-page {
  max-width: 600px;
  margin: 32px auto;
  padding: 16px;
  font-size: 24px;
  line-height: 2;
  background-color: #f9e2d2;
}
.signature {
  text-align: right;
  font-style: italic;
  margin-top: 2em;
  color: #f9e2d2;
}
.back-link {
  margin-top: 3em;
  text-align: center;
}
.page-footer {
  margin-top: 5em;
  padding: 1em;
  text-align: center;
  font-size: 16px;
  background-color: #f9e2d2;
}
.gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2em 1em;
}
.gallery-text {
  font-size: 48px;
  text-align: center;
}
.gallery-item {
  display: flex;
  align-items: center;
  margin-bottom: 2em;
}
.gallery-item img {
  width: 450px;
  height: auto;
  border-radius: 12px;
}
.gallery-item.left {
  flex-direction: row;
}
.gallery-item.right {
  flex-direction: row-reverse;
}
.gallery-item p {
  flex: 1;
  padding: 1em;
  font-size: 18px;
}

@media (max-width: 600px) {
  .main-header {
    height: auto;
    align-items: center;
    text-align: center;
    padding: 2em 1em;
  }
  .h2 {
    font-size: 20px !important;
    text-align: center;
    margin: 1em 0 0.5em 0;
  }
  header h1 {
    font-size: 28px;
  }
  header h2 {
    font-size: 18px;
  }
  .main-nav {
    position: static;
    transform: none;
    margin-top: 1em;
  }
  .nav-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .cat {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cat-life,
  .profile,
  .collection,
  .qna {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cat img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .profile img,
  .collection img,
  .qna img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .cat-life > div,
  .profile > div,
  .collection > div,
  .qna-text-block > div {
    max-width: 100%;
    padding: 0 1em;
    text-align: center;
  }
  .cat-life-text-block,
  .profile-text,
  .collection-text,
  .qna-text {
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
  }
  .gallery-item {
    flex-direction: column !important;
  }
  .gallery-item img {
    width: 80%;
  }
  .page-footer {
    font-size: 14px;
  }
}
