/* ボタンの親要素：本文エリアの幅いっぱいに配置 */
#mainR .btn-group {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* ボタン */
#mainR a.btn-corporate-serif {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 13px 30px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;

  color: #fff;
  background-color: #3c88b5;
  border: 1px solid #3c88b5;
  border-radius: 4px;

  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;

  /* ボタンだけ明朝体 */
  font-family: inherit;
}

/* 訪問済みでも通常時の文字色を維持 */
#mainR a.btn-corporate-serif:visited {
  color: #fff;
}

/* ボタン：マウスを重ねたとき */
#mainR a.btn-corporate-serif:hover {
  background-color: #f7f7f7;
  border-color: #3c88b5;
  color: #3c88b5;
}

/*
 * スマホ以外：
 * 2つのボタンを同じ幅にして、
 * ボタン2つ＋間隔30pxの合計を本文エリアの幅に合わせる
 */
@media screen and (min-width: 641px) {
  #mainR a.btn-corporate-serif {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* スマホ：現在の縦並び・幅100％を維持 */
@media screen and (max-width: 640px) {
  #mainR .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
}

  #mainR a.btn-corporate-serif {
    width: 100%;
  }
}

/* メイン画像のはみ出し防止 */
#mainR .main-img img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ビジョン全体：背景・枠なし、本文と同じフォント */
#mainR .vision-text {
  margin: 30px 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

/* 見出し：下の余白を12pxから9.6pxに変更 */
#mainR .vision-text__title {
  margin: 0 0 9.6px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 19.2px;
  font-weight: bold;
  line-height: 1.5;
  color: inherit;
  text-align: left;
  text-indent: 0;
}

/* ビジョン */
#mainR .vision-text__message {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 15.36px;
  font-weight: bold;
  line-height: 1.8;
  color: inherit;
  text-align: left;
  text-indent: 0;
}

/* PCでは指定位置で改行しない */
.vision-text__break {
  display: none;
}

/* 空行1行分の50％の高さを入れる */
#mainR .text-gap {
  display: block;
  height: 0.5lh;
  margin: 0;
  padding: 0;
  border: none;
}

/* スマートフォン */
@media screen and (max-width: 640px) {
  #mainR .vision-text {
    margin: 20px 0;
  }

  #mainR .vision-text__title {
    font-size: 16.5px;
  }

  #mainR .vision-text__message {
    font-size: 14.2px;
  }

  /* 指定位置で改行 */
  .vision-text__break {
    display: inline;
  }
}


/* 署名：PC・スマホで文字サイズを統一 */
#mainR span.sign_tx {
  font-size: 13.5px;
}

/* ボタンの文字の下線をすべての状態で非表示 */
#mainR a.btn-corporate-serif,
#mainR a.btn-corporate-serif:link,
#mainR a.btn-corporate-serif:visited,
#mainR a.btn-corporate-serif:hover,
#mainR a.btn-corporate-serif:focus,
#mainR a.btn-corporate-serif:active {
  text-decoration: none !important;
}

/* 全画面幅で、ビジョンの見出しの文字間隔を調整 */
#mainR .vision-text__title {
  letter-spacing: 0.03em;
}