@charset "utf-8";
/* CSS Document */

@media screen and (max-width: 768px) {
  /* 768px 以下の画面サイズに適用されるスタイル */

  #contents .box2_b {
    margin-right: 0;
    width: 100%;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1), /* 上 */ 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0 15px 15px;
    box-sizing: border-box;
    height: auto;
    margin-bottom: 30px;
  }
  #contents .box2_b h2 {
    font-size: 2rem;
    border-bottom: 1px solid #2d9b49;
    background: none;
  }
  #contents .box2_b p {
    line-height: 2.7rem;
    margin-bottom: 15px;
    padding-right: 10px;
  }
  .link_btn {
    background-color: #2d9b49;
    color: white;
    border-radius: 25px;
    text-align: center;
    padding-left: 0px !important;
    position: relative;
    width: 96%;
    font-size: 1.6rem;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }
  #contents {
    margin-bottom: 60px;
  }
  .link_btn {
    /* ▼重要：三角をこのボタン基準で配置するために必要です */
    position: relative;

    /* 三角が文字に被らないように右側に少し余白を作ります */
    padding-right: 20px;
  }

  /* 三角形を作る設定 */
  .link_btn::after {
    content: "";
    position: absolute;
    top: 50%; /* 上から50%の位置 */
    right: 15px; /* 右端からの距離（調整してください） */
    transform: translateY(-50%); /* 正確な上下中央配置 */

    /* ▼ここからが三角形を作る魔法の記述 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 6px; /* 上 右 下 左 の太さ */
    border-color: transparent transparent transparent #fff; /* 左側の線だけ白くする＝右向き三角 */
  }
}
