h1 {
    position: relative;
    padding: 1rem .5rem;
    text-align: left;
    color: #ae0606;
  }
  
  h1:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: '';
    border-radius: 3px;
    background-image: -webkit-linear-gradient(20deg, yellow, blue, orange, purple, green, red);
    background-image: linear-gradient(70deg, yellow, blue, orange, purple, green, red);
  }

  .container {
    display: flex;
    align-items: center;      /* 文字と画像を縦方向に中央揃え */
    justify-content: center;  /* 文字と画像を横方向に中央揃え */
    gap: 20px;                /* 文字と画像の間にスペースを追加 */
    position: relative;       /* 親要素に相対位置を設定 */
  }
  
  .description {
    max-width: 600px;         /* 文字部分の最大幅を設定 */
    position: relative;       /* 署名の位置を相対的に配置 */
  }
  
  .signature {
    position: absolute;       /* 署名を絶対位置に配置 */
    top: 90%;
    left: 50%;                 /* 文字の右端に配置 */
    bottom: 0;                /* 文字の下端に配置 */
    font-weight: bold;        /* 署名を太字に */
  }
  
  .director-image {
    width: 200px;
    height: auto;
    border-radius: 15px;
  }

  /* コンテンツセクション */
.content {
    position: relative;  /* 親要素に対して相対的な位置を設定 */
    top: 50px;  /* 親要素から50px下に配置 */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;  /* 幅を親要素の90%に設定 */
    height: 650px;  /* 高さを固定で500pxに設定 */
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative; /* 配置基準を設定 */
    width: 100%; /* 親要素の幅を親に対して割合で設定 */
    max-width: 1200px; /* 最大幅を指定 */
    height: 300px; /* 固定の高さを指定 */
    margin: 0 auto; /* 横方向で中央揃え */
}

.mission, .vision,.value {
    width: 45%;
}

.mission h2, .vision h2, .value h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.mission h2:first-letter {
    font-size: 150%;
    color: #593689;
  
}
.vision h2:first-letter {
    font-size: 150%;
    color: #158b2b;
}
.value h2:first-letter {
    font-size: 150%;
    color: #eb6100;
  }

  
  
/* モバイル対応 */
@media (max-width: 768px) {
    .mission-vision {
        flex-direction: column;
        align-items: center;
    }

    .mission, .vision,.value {
        width: 100%;
        margin-bottom: 20px;
    }
      /* 各要素間の追加間隔 */
      .mission:not(:last-child), .vision:not(:last-child), .value:not(:last-child) {
        margin-bottom: -15px; /* 最後の要素以外にさらに大きな間隔を指定 */
    }
}

.venn {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0px;
  margin: 0px;
  width: 20em;
  height: 19em;
  font-size: 1.5vw;
  list-style: none;
}
.venn > li {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 11.5em;
  height: 11.5em;
  box-sizing: border-box;
  border: solid 0.3em currentColor;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
}
.venn > li:nth-of-type(1) {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0px 0.5em 0px 0.5em;
  border-color: orange;
}
.venn > li:nth-of-type(2) {
  bottom: 0px;
  left: 0px;
  padding: 0px 0.5em 0px 0.5em;
  border-color: purple;
}
.venn > li:nth-of-type(3) {
  bottom: 0px;
  right: 0px;
  padding: 0px 0.5em 0px 0.5em;
  border-color: rgb(0, 234, 255);
}

/* スマホ対応（画面幅 600px 以下の場合） */
@media (max-width: 768px) {
  .venn {
    transform: translate(-50%, -50%) scale(1.5); /* 全体縮小 */
    top: 85%; /* 少し下に調整 */
  }

  .venn > li:nth-of-type(1) {
    top: -2%; /* 上の円を少し下へ */
  }

  .venn > li:nth-of-type(2) {
    bottom: 1%; /* 左下の円を少し上へ */
    left: -1%; /* 少し内側へ */
  }

  .venn > li:nth-of-type(3) {
    bottom: 1%; /* 右下の円も調整 */
    right: -1%; /* 少し内側へ */
  }
}


.title {
  position: absolute;
  top: 3em; /* 円の上部に配置 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1em;
}

.clsmission {
  position: absolute;
  bottom: 4em; /* 円の下部に配置 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6em;
  text-align: center;
  width: 50%; /* テキストの折り返しに対応 */
}

.clsvision, .clsvalue {
  position: absolute;
  bottom: 2em; /* 円の下部に配置 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6em;
  text-align: center;
  width: 50%; /* テキストの折り返しに対応 */
}

/* モバイル対応 */
@media (max-width: 768px) {
  .title {
    top: 2em; /* スマホ表示で少し上に配置 */
    font-size: 0.8em; /* フォントサイズを小さく調整 */
  }

  .clsmission, .clsvision, .clsvalue {
    bottom: 1em; /* 円の下部に配置 */
    font-size: 0.5em; /* フォントサイズを小さく調整 */
    width: 40%; /* テキストの折り返しに対応 */
  }
}

h2{
    margin: 2em 0 1em 0;
    position: relative;
    border: 2px solid #ff0000;
    padding: 0.3em 0.3em 0.3em 1.2em;
    background: #fffaf0;
    font-weight: bold;
    }
    
    h2:before{
    content: "";
    position: absolute;
    background: #ff0000;
    top: 50%;
    left: 0.5em;
    margin-top :-15px;
    height: 30px;
    width: 8px;
    border-radius: 2px;
    border-radius: 2px;
    font-weight: bold;
    }

    .venn li {
        padding-bottom: 5px; /* 線とテキストの間のスペース */
        border-bottom: 2px solid rgb(162, 24, 24); /* 下線のスタイル */

    }

    .contentclass {
        width: 100%;  /* セクション全体の幅を指定 */
        margin: 0 auto;  /* 中央揃え */
        position: relative;  /* 親要素に対して相対的に配置 */
        top: 280px;  /* ページの上から50px下に配置 */
      }
      
      p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
      }
      
      .class1, .class2, .class3 {
        padding-left: 20px;
      }
      
      strong {
        font-weight: bold;
      }
      
      .class1 {
        background-color: transparent; /* 背景色を薄く指定 */
        border: 4px solid transparent; /* 枠線を透明にし、グラデーションを適用するための準備 */
        border-image: -webkit-linear-gradient(315deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
        border-image: linear-gradient(-225deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%) 1; /* グラデーションを枠線に適用 */
        padding-left: 15px;
        color: rgb(162, 24, 24);
    }
    
      
      .class2 {
        background-color: transparent; /* 背景色を変更 */
        border-left: 10px solid #00796b;
        padding-left: 15px;
        border: 4px solid transparent; /* 枠線を透明にし、グラデーションを適用するための準備 */
        border-image: -webkit-linear-gradient(315deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
        border-image: linear-gradient(-225deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%) 1; /* グラデーションを枠線に適用 */
        padding-left: 15px;
        color: rgb(162, 24, 24);
      }
      
      .class3 {
        background-color: transparent; /* 背景色を変更 */
        border-left: 10px solid #fbc02d;
        border: 4px solid transparent; /* 枠線を透明にし、グラデーションを適用するための準備 */
        border-image: -webkit-linear-gradient(315deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
        border-image: linear-gradient(-225deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%) 1; /* グラデーションを枠線に適用 */
        padding-left: 15px;
        color: rgb(162, 24, 24);
      }
      
    
      .sample31{
        position: relative;
        font-size: 15pt;
        font-weight: bold;
        margin: 0 0 1.5em;
        padding: 0.1em 0 0.1em 1.8em;
        border-bottom: 3px solid #ff6699;
        }
        
        .sample31:before {
        position:  absolute;
        top: 16px;
        left: 11px;
        width: 8px;
        height: 8px;
        border: 4px solid #ff99cf;
        content: "";
        }
        
        .sample31:after {
        position:  absolute;
        top: 6px;
        left: 1px;
        width: 11px;
        height: 11px;
        border: 4px solid #ff1493;
        content: "";
        }

        .sample33{
          top:15px;
          position: relative;
          font-size: 18pt;
          font-weight: bold;
          margin: 0 0 1.5em;
          padding: 0.2em 0.5em 0.4em 2em;
          border-bottom: 3px solid #ff6699;
          text-align: center;
          left: 35%;
          transform: translateX(-50%);
          }
          
          .sample33:before {
          position: absolute;
          top: -8px;
          left: 7px;
          transform: rotate(45deg);
          -webkit-transform: rotate(45deg);
          height: 12px;
          width: 12px;
          background: #ff1493;
          content: "";
          }
          
          .sample33:after {
          position: absolute;
          top: 8px;
          left: 2px;
          transform: rotate(15deg);
          -webkit-transform: rotate(15deg);
          height: 8px;
          width: 8px;
          background: #ff99cf;
          content: "";
          }
          /* スマホ対応用のメディアクエリ */
@media (max-width: 768px) {
  .sample31 {
      font-size: 12pt; /* フォントサイズを小さく */
      padding: 0.1em 0 0.1em 1.5em; /* パディングを調整 */
  }

  .sample31:before {
      width: 6px; /* アイコンサイズを縮小 */
      height: 6px;
  }

  .sample31:after {
      width: 9px; /* アイコンサイズを縮小 */
      height: 9px;
  }

  .sample33 {
      font-size: 16pt; /* フォントサイズを小さく */
      left: 50%; /* 左寄せから中央寄せに */
      transform: translateX(-50%);
      padding: 0.2em 0.4em 0.3em 1.8em; /* パディング調整 */
  }

  .sample33:before {
      top: -6px; /* アイコン位置を調整 */
      left: 5px;
      width: 10px; /* アイコンサイズ縮小 */
      height: 10px;
  }

  .sample33:after {
      top: 6px; /* アイコン位置を調整 */
      left: 1px;
      width: 7px; /* アイコンサイズ縮小 */
      height: 7px;
  }
}

.black-text {
  position: relative; /* 相対位置を指定 */
  left: 30px;         /* 左に30px移動 */
  color: black; /* 文字色を黒に設定 */
}

/* モバイル対応 */
@media (max-width: 768px) {
  .black-text {
    left: 15px; /* スマホ表示では少し左に移動量を調整 */
    font-size: 0.9em; /* フォントサイズを少し小さく調整 */
  }
}