@charset "utf-8";
.message {
  padding-bottom: 0;
}
.message .title {
  background-image: url("../images/message/message_header_bg.jpg");
  background-position: center;
  background-repeat: repeat-x;
}
.message .title > div {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--pc-contents-max-width);
  width: var(--pc-contents-width);
}
.message .title .photo {
  max-height: 430px;
  width: 30%;
}
.message .title .photo img {
  display: block;
  padding-top: 1em;
  width: 100%;
}
.message .title h1 {
  background-color: #FFF;
  background-image: none;
  height: auto;
  justify-content: flex-start;
  margin: 0;
  max-height: 430px;
  padding: 1.75em 1.5em;
  width: 60%;
}
.message .title h1 span {
  margin-bottom: 1em;
  width: auto;
}
.message .title h1 strong {
  color: var(--dark-gray);
  font-size: clamp(2.3rem, 4vw, 4rem);
  text-align: left;
}
.message .title h1 .name img {
  display: block;
}
.message .title + div {
  background-color: var(--light-gray);
  margin: 0;
  padding: 10rem 0;
}
.message .block {
  padding-top: 0;
  padding-bottom: 100px;
}
.message .block .catch {
  color: var(--dark-gray);
  display: block;
  font-size: clamp(2.0rem, 4vw, 3.6rem);
  font-weight: bold;
  margin-bottom: 0.5em;
  width: 100%;
}
.message .block .catch span {
  background-color: #FFF;
  display: inline-block;
  margin-bottom: 0.25em;
  padding: 0 0.5em;
}
.message .block .catch span br {
  display: none;
}
.message .block h3 {
  font-size: 1.8rem;
  margin-bottom: 1em;
}
.message .block .detail > div {
  display: flex;
  justify-content: space-between;
}
.message .block:nth-of-type(even) .photo {
  order: 0;
}
.message .block:nth-of-type(even) .section {
  order: 1;
}
.message .block .detail p {
  margin: 1em 0;
}
.message .block .detail .photo {
  margin: 0 0 2em 0;;
}
.message .block .detail .photo img {
  width: 100%;
}
.message .block:nth-of-type(1) .detail .section {
  width: 52%;
}
.message .block:nth-of-type(1) .detail .photo {
  max-width: 500px;
  width: 45%;
}
.message .block:nth-of-type(2) .detail > div:nth-of-type(1) .section {
  width: 38%;
}
.message .block:nth-of-type(2) .detail > div:nth-of-type(1) .photo {
  max-width: 670px;
  width: 60%;
}
.message .block:nth-of-type(3) .detail > div:nth-of-type(1) .section {
  width: 52%;
}
.message .block:nth-of-type(3) .detail > div:nth-of-type(1) .photo {
  max-width: 500px;
  width: 45%;
}
@media screen and (max-width: 1152px) {
  .message .title > div {
    width: 92%;
  }
  .message .title .photo {
    display: flex;
    align-items: flex-end;
    width: 25%;
  }
  .message .title h1 {
    padding: 1em;
    width: 70%;
  }
  .message .title h1 strong {
    line-height: 1.5;
  }
  .message .block .detail > div {
    display: block;
  }
  .message .block:nth-of-type(1) .detail .section,
  .message .block:nth-of-type(2) .detail > div:nth-of-type(1) .section,
  .message .block:nth-of-type(3) .detail > div:nth-of-type(1) .section {
    width: 100%;
  }
  .message .block .detail .photo,
  .message .block:nth-of-type(1) .detail .photo,
  .message .block:nth-of-type(3) .detail > div:nth-of-type(1) .photo {
    margin: 2em auto;
    width: 60%;
  }
}
@media screen and (max-width: 767px) {
  .message .title {
    background-size: cover;
  }
  .message .title > div {
    display: block;
    position: relative;
    width: 100%;
  }
  .message .title .photo {
    bottom: 0;
    position: absolute;
    right: 4%;
    width: 40%;
  }
  .message .title h1 {
    display: inline-block;
    background-color:rgba(255,255,255,0.7);
    margin: 1em 4% 2em 0;
    padding: 0.5em;
    width: auto;
  }
  .message .title h1 span {
    display: block;
    height: 2.6rem;
    margin-bottom: 0.5em;
    width: fit-content;
    width: -moz-fit-content;
  }
  .message .title h1 strong {
    display: block;
    line-height: 1.6;
    margin-bottom: 0;
    width: fit-content;
    width: -moz-fit-content;
  }
  .message .title h1 .name,
  .message .title h1 .name img {
    display: inline;
  }
  .message .title + div {
    padding: 3em 0;
  }
  .message .block {
    padding-bottom: 3em;
  }
  .message .block .catch span {
    background-color: transparent;
    padding: 0;
  }
  .message .block .catch span br {
    display: block;
  }
  .message .block h3 {
    margin-bottom: 0;
  }
  
  .contents .block:last-of-type > div {
    margin-bottom: 0;
  }
}