.header_inner .header_lef :is(h1:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h1"])) {
    color: #868daa;
  }
  
  .header_item {
    color: #000;
  }
  
  main {
    margin-top: 200px;
  }
  
  header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    position: relative;
  }
  
  .breadcrumb {
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 50px;
  }
  
  :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
    margin-bottom: 80px;
  }
  
  :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
    content: "Teacher";
    left: 50%;
    transform: translateX(-50%);
  }
  
  .teacher_inner {
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 80px;
  }
  
  .teacher_inner::after {
    content: ""; /* 見えない要素を追加 */
    width: 350px;
  }
  
  .teacher_box {
    display: flex;
    flex-direction: column;
    width: calc(25% - 15px);
    box-sizing: border-box;
  }
  
  .teacher_txt {
    display: flex;
    flex-direction: column;
  }
  
  .teacher_box.active-lawyer .teacher_txt {
    background-color: #f5f8fa;
  }
  .teacher_box.law-school .teacher_txt {
    background-color: #eaf6e9;
  }
  .teacher_box.yobi-exam .teacher_txt {
    background-color: #fdfce8;
  }
  .teacher_txt :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .content-wrapper {
    overflow: hidden;
    max-height: 45px;
    transition: max-height 0.3s ease;
    flex-shrink: 0;
  }
  
  .content-wrapper.expanded {
    max-height: none; /* 制限を解除して全文表示 */
    overflow: visible;
  }
  
  .read-more {
    position: absolute;
    bottom: 0;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .read-more:hover {
    background-color: #005f8d;
  }
  
  .circle-arrow {
    width: 32px; /* 円の直径 */
    height: 32px; /* 円の直径 */
    background-color: #fff; /* ボタンの背景色 */
    border: none; /* ボーダーなし */
    border-radius: 50%; /* 円形にする */
    display: flex; /* 中央揃えのために使用 */
    align-items: center; /* 縦方向の中央揃え */
    justify-content: center; /* 横方向の中央揃え */
    cursor: pointer; /* ポインタを変更 */
    position: absolute; /* 擬似要素の位置基準 */
    right: 0;
    border: solid 1px #162a70;
  }
  
  .content-wrapper.expanded .circle-arrow {
    left: 50%;
    transform: translate(-50%);
    bottom: -35px;
    z-index: 9999;
  }
  
  .circle-arrow::after {
    content: ""; /* 擬似要素で三角形を作成 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent #162a70; /* 三角形の色 */
    position: absolute;
    transform: translateX(2px); /* 微調整 */
  }
  
  .circle-arrow:hover {
    background-color: #1c2a7f; /* ホバー時の背景色 */
  }
  
  .circle-arrow:hover::after {
    border-color: transparent transparent transparent #fff; /* 三角形の色 */
  }
  
  .content-wrapper.expanded .circle-arrow {
    width: 32px; /* 円の直径 */
    height: 32px; /* 円の直径 */
    background-color: #162a70; /* ボタンの背景色 */
    border: none; /* ボーダーなし */
    border-radius: 50%; /* 円形にする */
    display: flex; /* 中央揃えのために使用 */
    align-items: center; /* 縦方向の中央揃え */
    justify-content: center; /* 横方向の中央揃え */
    cursor: pointer; /* ポインタを変更 */
    position: absolute; /* 擬似要素の位置基準 */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* 影の設定 */
  }
  
  /* 擬似要素でバツ印を作成 */
  .content-wrapper.expanded .circle-arrow::before,
  .content-wrapper.expanded .circle-arrow::after {
    content: ""; /* 擬似要素を作成 */
    position: absolute;
    width: 15px; /* 線の長さ */
    height: 1px; /* 線の太さ */
    background-color: #fff; /* 線の色 */
    top: 50%;
    left: 50%;
    transform-origin: center;
    border-width: initial;
    border-style: initial;
  }
  
  /* 左上から右下の斜線 */
  .content-wrapper.expanded .circle-arrow::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  /* 右上から左下の斜線 */
  .content-wrapper.expanded .circle-arrow::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .teacher_txt {
    margin-top: -5px;
  }
  
  @media screen and (max-width: 1000px) {
    main {
      margin-top: 42.5vw;
    }
    .breadcrumb {
      padding-left: 4vw;
      font-size: 3.5vw;
    }
    header {
      padding-bottom: 0;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
      margin-bottom: 17.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
      left: 50%;
      bottom: 6.25vw;
    }
    .teacher_txt :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
      font-size: 4.5vw;
    }
    .content-wrapper p {
      font-size: 3.5vw;
    }
    .teacher_inner {
      justify-content: center;
      margin-bottom: 17.5vw;
    }
    .content-wrapper {
      max-height: 16.25vw;
    }
  }
  
  /*20250905*/
  .teacher_buttons {
    display: flex;
    gap: 20px;
    margin: 0 0 140px;
    justify-content: center; /* 中央寄せ */
  }
  .teacher_buttons button {
    background-color: #fff;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #162a70; /* 薄いグレー */
    box-shadow: 2px 2px 4px rgba(34, 34, 34, 0.2);
    font-size: 18px;
    padding: 20px 40px;
    transition: background-color 0.3s;
    color: #000;
  }
  .teacher_buttons .active-lawyer {
    background-color: #f7fafd; /* 薄いブルー */
  }
  .teacher_buttons .law-school {
    background-color: #eef7f0; /* 薄いグリーン */
  }
  .teacher_buttons .yobi-exam {
    background-color: #fefdea; /* 薄いイエロー */
  }
  .teacher_buttons button:hover {
    opacity: 0.8;
  }
  .teacher_group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
  }
  
  .teacher_box {
    width: calc(25% - 15px); /* 4列表示＋gap考慮 */
    box-sizing: border-box;
  }
  
  @media (max-width: 768px) {
    .teacher_box {
      width: calc(50% - 10px); /* スマホは2列 */
    }
    .teacher_buttons {
        display: block;
        margin-bottom: 70px;
    }
    .teacher_buttons button {
        padding: 10px 40px;
        width: 80%;
        margin: 0 auto;
        display: block;
        margin-bottom: 10px;
    }
    .teacher_inner {
        width: 95%;
        margin: 0 auto;
    }
  }
  