@charset "UTF-8";

/* ----- 会長挨拶ページ専用スタイル greeting.html ------- */

/* 上段：メタ（左）＋写真（右） */
.greeting-top {
  display: flex;
  justify-content: flex-end; /* 右寄せの塊 */
  align-items: end;
  gap: 10px;
}

/* メタ情報：右寄せ */
.greeting-top__meta {
  text-align: right;
  max-width: 520px;
}
.greeting-top__conf {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.greeting-top__conf > span {
  display: inline-block;
}
.greeting-top__role {
  font-weight: 700;
  font-size: 14px;
  line-height: 2;
}
.greeting-top__role > span {
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  padding-left: 0.5em;
}

.greeting-top__org {
  font-size: 12px;
  line-height: 1.25;
}

/* 写真 */
.greeting-top__photo {
  width: 120px;
  height: auto;
  overflow: hidden;
}
.greeting-top__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.greeting-body {
  padding: 25px 5px 65px;
  line-height: 1.8;
}
.greeting-body p {
  text-align: justify;
  text-justify: inter-ideograph;
  text-align-last: left;
  margin-bottom: 1.2rem;
}

/* SP：写真を左、テキストを右 */
@media (max-width: 576px) {
  .greeting-top {
    flex-direction: row-reverse; /* ← ここがポイント */
    justify-content: flex-start;
    align-items: end;
    gap: 12px;
  }

  .greeting-top__photo {
    flex: 0 0 110px;
    height: auto;
  }

  .greeting-top__meta {
    text-align: left;
    flex: 1;
  }
}

/* 会長挨拶：所属はプログラムと同じデザイン（グレー小文字の括弧書き） */
.greeting-top__org {
  line-height: 1.6;
}
