.message-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 70%;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  border-radius: 12px; 
  background-color: #fff;
}

/* 左側：タイトル＋文章 */
.left-content {
  flex: 1;
  min-width: 300px;
}

.main-title {
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 30px;
   margin-left: 200px; /* ←右にずらしたい分を指定 */
}
.sub-title{
  margin-left: 80px; /* ←右にずらしたい分を指定 */
}
.message-text {
  font-size: 16px;
  line-height: 1.8;
}

/* 右側：写真＋ロゴ＋会社名 */
.right-content {
  width: 300px;
  flex-shrink: 0;
  text-align: center;
}

.president-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ロゴ＋会社名を横並びに */
.logo-name-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 60px;
  height: auto;
}

.company-name {
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  line-height: 1.4;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .message-container {
    flex-direction: column;    /* 縦並びに変更 */
    align-items: center;       /* 中央寄せ */
    width: 90%;                /* 画面幅に合わせる */
    padding: 30px 10px;        /* 内側余白を調整 */
    gap: 30px;                 /* 上下の間隔 */
    margin: 0 auto;
  }

  .left-content {
    width: 100%;               /* 文章は幅いっぱい */
    min-width: unset;          /* 最小幅を解除 */
    text-align: center;        /* 中央揃え */
  }

  .main-title {
    font-size: 24px;           /* スマホ用に縮小 */
    margin-left: 0;            /* 左右余白リセット */
  }

  .sub-title {
    font-size: 14px;
    margin-left: 0;            /* 中央揃えにするためリセット */
  }

  .message-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .right-content {
    width: 80%;                /* 写真＋ロゴ幅を調整 */
    max-width: 300px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 20px;          /* 上に余白 */
  }

  .president-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .logo-name-row {
    flex-direction: column;    /* ロゴと会社名を縦並びに */
    gap: 6px;
    justify-content: center;
    align-items: center;
  }

  .company-name {
    text-align: center;
    font-size: 12px;
  }
    /* スマホでは <br> を消す */
  br {
    display: none;
  }
}
