@charset "UTF-8";
/* 代表メッセージ（page-message.php）
   サイト共通のスタイル（contents_header / h4.h4border2 / 配色・書体）を踏襲 */

#message .msg__inner {
  padding: 10px 0 60px;
  overflow: visible;
}

/* ---- Hero ---- */
#message .msg__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  grid-template-areas: "text photo";
  align-items: center;
  column-gap: 6%;
  margin: 0 0 50px;
}
#message .msg__heroText {
  grid-area: text;
}
#message .msg__lead {
  margin: 0;
  color: #0e1c24;
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
#message .msg__person {
  margin: 28px 0 0;
}
#message .msg__role {
  margin: 0 0 6px;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
}
#message .msg__name,
#message .msg__signName {
  margin: 0;
  color: #0e1c24;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
}
#message .msg__photo {
  grid-area: photo;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  justify-content: center; /* はみ出した分は左右均等にカット */
}
/* どんな比率の画像でも枠の高さ100%で表示 */
#message .msg__photoImg {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: 100%;
}

/* ---- Body ---- */
#message .msg__body {
  width: 100%;
}
/* 本文（エディタで自由入力） */
#message .msg__text {
  font-size: 13px;
  line-height: 1.9;
}
#message .msg__text > *:first-child {
  margin-top: 0;
}
#message .msg__text h2 {
  position: relative;
  margin: 45px 0 20px;
  padding: 0 0 6px;
  border-bottom: 1px solid #ccc;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
}
#message .msg__text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 1px;
  background: #e03838;
}
#message .msg__text h3 {
  margin: 35px 0 15px;
  padding: 0 0 0 10px;
  border-left: 3px solid #e03838;
  font-size: 16px;
  line-height: 1.5;
}
#message .msg__text h4 {
  margin: 25px 0 10px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}
#message .msg__text p,
#message .msg__text ul,
#message .msg__text ol,
#message .msg__text figure,
#message .msg__text blockquote {
  margin: 0 0 1em;
}
#message .msg__text ul,
#message .msg__text ol {
  padding-left: 1.5em;
}
#message .msg__text ul { list-style: disc; }
#message .msg__text ol { list-style: decimal; }
#message .msg__text li { margin-bottom: 0.3em; }
#message .msg__text strong { font-weight: bold; }
#message .msg__text a { color: #e03838; }
#message .msg__text img {
  max-width: 100%;
  height: auto;
}
#message .msg__text figcaption {
  margin-top: 0.5em;
  color: #555;
  font-size: 12px;
}
#message .msg__text blockquote {
  padding: 15px 20px;
  border-left: 3px solid #ccc;
  background: #f7f7f7;
}
#message .msg__text hr {
  margin: 45px 0 35px;
  border: 0;
  border-top: 1px dotted #ccc;
}
#message .msg__sign {
  margin-top: 30px;
  text-align: right;
}
#message .msg__signRole {
  margin: 0 0 4px;
  color: #555;
  font-size: 12px;
}

/* ---- SP ---- */
@media screen and (max-width: 767px) {
  #message .msg__inner {
    width: 90%;
    padding: 0 0 40px;
  }
  #message .msg__hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "photo"
      "person";
    margin: 0 0 35px;
  }
  #message .msg__heroText {
    display: contents;
  }
  #message .msg__lead {
    grid-area: lead;
    font-size: 22px;
  }
  #message .msg__person {
    grid-area: person;
    margin: 15px 0 0;
  }
  #message .msg__photo {
    width: 80%;
    max-width: 320px;
    margin: 20px auto 0;
  }
  #message .msg__text h2 {
    margin-top: 35px;
    font-size: 16px;
  }
}
