
:root {
  --primary-red: #CF131B;
  --dark-gray: #F4A14C;
  --text-color: #000;
  --white: #FFFFFF;
  --light-gray: #D9D9D9;
  --dark-gray: #505050;
  --red-grad: linear-gradient(180deg , #F4A14C 0%, #CF131B 100%);

  --ttl-fontSize: 2.625rem;;
  --ttl-fontSizeSP: 2rem;;
  --ttl-fontWeight: 700;
  --ttl-lineHeight: 1;

  --font-Ssize: 1rem;
  --font-XSsize:  0.875rem;

  --table-border:#D9D9D9;
  --table-bg:#F1F1F1;


  --content-marginTop-pc: 6.25rem;
  --content-marginTop-sp: 1.91rem;

  --header-height: 5.2rem;

      
  --footer-marginTop-pc:20rem;
  --footer-marginTop-sp:4rem;
}

  
  /* 学会概要セクション */
  
  .overview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }
  

  
  /* 運営情報 */

  .management-content {
    padding: 1.88rem 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1.88rem;
  }

  .management-content  .management-img {
    width: 100%;
    max-width: 20rem;
  }

  .check-arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .check-arrow img {
    width: 4.8rem;
  }
  

  
  
  @media (max-width: 768px) {
 
  /* 運営情報 */

  .management-content {
    padding: 1.88rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 1rem;
    height: 100%;
  }

  .check-arrow {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 5rem;
    margin: 2rem 0;
  }
  .check-arrow img {
    transform: rotate(90deg);
    height: 100%;
    width: 100%;
    margin-bottom: 1.6rem;
  }

  /* .management-content  .management-img:last-child {
    margin-top: 1rem;
  } */

  
  }



  /* ---------
  
  組織、学会の歩みの文章
  
  --------------*/

  .article-content.org-article {
    margin-top: var(--content-marginTop-pc);
  }

  @media (max-width: 768px) {
    .article-content.org-article {
    margin-top: var(--content-marginTop-sp);
    }
  }



  /* -------------
  
  学会の歩み（タイムライン） 
  
  -------------------*/
  
  
  .timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 9.6rem;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.5rem;
    width: 1.5px;
    height: 97%;
    background-color: var(--primary-red);
  }
  
  .timeline::after {
    content: '';
    position: absolute;
    bottom: 0%;
    left: 0.5rem;
    height: 4%;
    width: 1.6px;
    background-image : linear-gradient(to bottom, var(--primary-red), var(--primary-red) 4px, transparent 4px, transparent 8px); 
    background-size: 1.6px 8px;  
    background-position: left;  
    background-repeat: repeat-y;
  }
  .timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    padding-left: 1.87rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 5rem;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: -1.95rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
  }
  
  .timeline-year {
    margin-bottom: 0.5rem;
  }
  
  .year-badge {
    display: inline-block;
    padding: 0.2rem 0;
    text-align: center;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 1.875rem;
    width: 6.25rem;
    font-size: 1rem;
    font-weight: bold;
    flex: 1;
  }
  
  .timeline-content {
    width: 80%;
  }
  
  .timeline-title {
    margin-bottom: 0.62rem;
    font-weight: 700;
  }
  
  .timeline-text {
    margin-bottom: 3rem;
    line-height: 1.6;
  }
  .timeline-text:last-child {
    margin-bottom: 0;
  }
  

  
  @media (max-width: 768px) {
  
    /* スマホ表示のタイムライン修正 */
    .timeline {
      padding-left: 0;
      margin-top: 1.37rem;
    }
  
    .timeline::before {
      display: none;
    }

    .timeline-item {
        flex-direction: column;
        row-gap: .62rem;
        padding-left: 0;
        margin-bottom: 1.25rem;
        padding-bottom: 0;
    }

    .timeline-content {
        width: 100%;
    }
  
    .timeline-item::before,
    .timeline::after {
        display: none;
    }
  
    .timeline-year {
      margin-bottom: 0.3rem;
    }
  
    .year-badge {
      padding: 0.2rem 0.8rem;
      font-size: 0.8rem;
    }
  
    .timeline-title {
      font-size: 1rem;
      margin-bottom: .62rem;
    }
  
    .timeline-text {
      font-size: 0.9rem;
      margin-bottom: 1.25rem;
    }
  
 
  }





  /* ------------
  
  学会会則
  
  ---------------*/



/* 学会会則 */
.rules-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
    animation: fadeIn 0.6s ease forwards;
    display: block;
    padding-top: 140px;
    margin-top: -140px;
  }

  .tab-pane > .rules-content  {
    margin-top: 0;
  }

  
  .rules-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .rules-subtitle {
    margin-bottom: 2rem;
  }
  .rules-subtitle a {
    display: block;
    text-decoration: underline;
    transition: .3s ease all;
  }

  .rules-subtitle a:hover {
    color: var(--primary-red);
  }
  
  .rules-subtitle a,
  .rules-revisions p  {
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
  }
  
  .rules-revisions {
    text-align: right;
  }

  .rules-content  {
    margin-top: 3.12rem;
  }
  
  .rules-chapter {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
  }

  .rules-section-wrapper {
    margin-top: 3.12rem;
  }
  
  
  .rules-section-title {
    font-weight: 700;
    margin-bottom: .1rem;
  }
  
  .rules-article {
    display: flex;
  }

  .rules-article.column {
    flex-direction: column;
  }

  .art-content-title {
    font-weight: 700;
  }
  
  .article-number {
    padding-right: 1rem;
  }
  .article-number + .article-list.number {
    margin-top: 0;
  }
  .article-content {
    flex: 1;
  }
  
  .article-list {
    margin-left: 1rem;
    margin-top: 0rem;
    list-style-position: inside;
  }
  
  .article-list li {
    margin-bottom: 0.2rem;
  }

  .article-list.number {
    list-style: number;
  }


  .article-list.number-type2 ,
  .article-list.number-type3 {
    list-style-type: none;
    counter-reset: number;

  }
  .article-list.number-type2  li::before {
    counter-increment: number;
    content:'' counter(number) ')';
  }
  .article-list.number-type3  li::before {
    counter-increment: number;
    content:'(' counter(number) ')';
  }


  .article-content a {
    word-wrap: break-word;
    word-break: break-all;
  }

  /* -------------

  学会雑誌のレイアウト 


  ------------------*/
  .rules-section {
    margin-top: var(--content-marginTop-pc);
  }
  .rule-intro {
    margin:6rem 0 2rem;
    font-size: var(--font-Ssize);
  }


  .link-section.journal-section {
    margin-top: var(--content-marginTop-pc);
  }

  @media (max-width: 768px) {

  /* スマホ表示の会則修正 */
  .rules-article {
    flex-direction: column;
  }

  .article-number {
    margin-bottom: 0.5rem;
  }
  .rules-content {
    padding-top: 5rem;
    margin-top: 0;
  }

  .article-list {
    margin-left: 0;
  }
  .article-list.number {
    margin-left: 1.4rem;
  }

  .rules-section {
    margin-top:5rem;
  }
  .link-section.journal-section {
    margin-top: var(--content-marginTop-sp);
  }



}





  /* ------------
  
  支部会
  
  ---------------*/

  .map-wrapper  {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 26%;

    margin-top: var(--content-marginTop-pc);
    margin-bottom: var(--content-marginTop-pc);
  }

  .map-wrapper .map-sp {
    display: none;
  }

  @media (max-width: 1024px) {

    .map-wrapper  {  
      padding: 0 10%;

    }
  }

  @media (max-width: 768px) {
    .map-wrapper  {
      margin-top: var(--content-marginTop-sp);
    margin-bottom: var(--content-marginTop-sp);
      padding: 0 3%;
    }
    .map-wrapper .map-pc {
      display: none;
    }
    .map-wrapper .map-sp {
      display: block;
      width: 100%;
    }
  }



  /* ------------
  
  日本地図レイアウト
  
  ---------------*/

  .map-content {
    max-width: 1000px;
    margin: 0 auto 7.4rem;
    height: 37rem;
    position: relative;
    padding: 40px 0;
    z-index: 2;
    background: url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/about/map.webp') no-repeat center center;
    background-size: contain;
}


.branch-texts {
  position: absolute;
  width: 100%;
  height: 100%;
}

.branch-text {
  position: absolute;  
  font-size: 1.125rem;
  letter-spacing: 0.0125rem;
  padding: 0 .4rem;
  z-index: 100;

}

.branch-text a {
  text-decoration: underline;
  transition: .3s ease all;
  font-size: 1rem;
  font-weight: 400;
}

.branch-text a:hover {
  color: var(--primary-red);
}


/* 埼玉 */
.branch-text.saitama {
  top: 45%;
  right: 34%;
  text-align: right;
  transform: translateX(50%);
}
.branch-text.saitama::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

.branch-text.saitama::before {
  content: '';
  position: absolute;
  left: -70px; /* 折れ線のスタート位置 */
  bottom: -5px; 
  width: 70px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(-45deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}



/* 東京 */
.branch-text.tokyo {
  top: 64%;
  right: 26%;
  text-align: left;
  transform: translateX(-50%);
}

 .branch-text.tokyo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.tokyo::before {
  content: '';
  position: absolute;
  left: -70px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 70px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(45deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}


html[lang="en"] .branch-text.tokyo {
  top: 64%;
  right: 30%;
  text-align: left;
  transform: translateX(-50%);
}

/* 山梨 */
.branch-text.yamanashi {
  top: 72%;
  right: 29%;
  text-align: left;
  transform: translateX(-50%);
}

 .branch-text.yamanashi::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.yamanashi::before {
  content: '';
  position: absolute;
  left: -100px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 100px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(70deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}


html[lang="en"] .branch-text.yamanashi {
  top: 72%;
  right: 27%;
  text-align: left;
  transform: translateX(-50%);
}


/* 関西 */
.branch-text.kansai {
  top: 80%;
  right: 39%;
  text-align: left;
  transform: translateX(-50%);
}

 .branch-text.kansai::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.kansai::before {
  content: '';
  position: absolute;
  left: -100px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 100px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(70deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}

html[lang="en"] .branch-text.kansai {
  top: 78%;
  right: 42%;
  text-align: left;
  transform: translateX(-50%);
}

/* 九州 */
.branch-text.kyusyu {
  top: 85%;
  right: 52%;
  text-align: left;
  transform: translateX(-50%);
}

 .branch-text.kyusyu::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.kyusyu::before {
  content: '';
  position: absolute;
  left: -80px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 80px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(40deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}

html[lang="en"] .branch-text.kyusyu {
  top: 85%;
  right: 54%;
  text-align: left;
  transform: translateX(-50%);
}


/* 北信越 */
.branch-text.hokusinetsu {
  top: 35%;
  left: 42%;
  text-align: right;
  transform: translateX(-50%);
}

 .branch-text.hokusinetsu::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.hokusinetsu::before {
  content: '';
  position: absolute;
  right: -100px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 100px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(45deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left top;
}



/* 東海 */
.branch-text.tokai {
  top: 45%;
  left: 41%;
  text-align: right;
  transform: translateX(-50%);
}

 .branch-text.tokai::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.tokai::before {
  content: '';
  position: absolute;
  right: -90px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 90px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(50deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left top;
}




/* 中四国 */
.branch-text.chusikoku {
  top: 57%;
  left: 29%;
  text-align: right;
  transform: translateX(-50%);
}

 .branch-text.chusikoku::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px; /* テキストからの距離 */
  width: 100%;
  height: 1.1px; /* 線の太さ */
  background: var(--dark-gray); /* 線の色 */
}

 .branch-text.chusikoku::before {
  content: '';
  position: absolute;
  right: -70px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 70px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(60deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left top;
}
html[lang="en"] .branch-text.chusikoku {
  top: 54%;
  left: 27%;
  text-align: right;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .map-content {
    max-width: 800px;
    margin: 0 auto 5rem;
  }


    /* 埼玉 */
.branch-text.saitama {
  top: 45%;
  right: 30%;
}

/* 東京 */
.branch-text.tokyo {
  top: 64%;
  right: 22%;
}

html[lang="en"] .branch-text.tokyo {
  top: 64%;
  right: 25%;
}

/* 山梨 */
.branch-text.yamanashi {
  top: 73%;
  right: 25%;
}
html[lang="en"] .branch-text.yamanashi {
  top: 73%;
  right: 23%;
}

/* 関西 */
.branch-text.kansai {
  top: 80%;
  right: 37%;
}

/* 北信越 */
.branch-text.hokusinetsu {
  top: 15%;
  left: 36%;
}
.branch-text.hokusinetsu::before {
  content: '';
  position: absolute;
  right: -60px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 60px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(50deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left top;
}

html[lang="en"] .branch-text.hokusinetsu {
  top: 37%;
  left: 43%;
}


/* 九州 */
.branch-text.kyusyu {
  top: 85%;
  right: 53%;
}

/* 東海 */
.branch-text.tokai {
  top: 46%;
  left: 36%;
}

/* 中四国 */
.branch-text.chusikoku {
  top: 55%;
  left: 25%;
}

html[lang="en"] .branch-text.chusikoku {
  top: 55%;
  left: 20%;
}
}

@media (max-width: 768px) {
  .map-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 5rem;
    height: 22rem;
    position: relative;
  }

  .branch-text {
    position: absolute;  
  }
  /* 埼玉 */
.branch-text.saitama {
  top: 34%;
  right: 16%;
}
.branch-text.saitama::before {
  content: '';
  position: absolute;
  left: -50px; /* 折れ線のスタート位置 */
  bottom: -5px; 
  width: 50px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(-45deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}

html[lang="en"] .branch-text.saitama {
  top: 36%;
  right: 12%;
}


/* 東京 */
.branch-text.tokyo {
  top: 54%;
  right: -3%;
}
.branch-text.tokyo::before {
  content: '';
  position: absolute;
  left: -35px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 35px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(45deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}
html[lang="en"] .branch-text.tokyo {
  top: 55%;
  right: 5%;
}


/* 山梨 */
.branch-text.yamanashi {
  top: 67%;
  right: 1%;
}
.branch-text.yamanashi::before {
  content: '';
  position: absolute;
  left: -70px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 70px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(65deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}
html[lang="en"] .branch-text.yamanashi {
  top: 67%;
  right: -11%;
}


/* 関西 */
.branch-text.kansai {
  top: 80%;
  right: 19%;
}
.branch-text.kansai::before {
  content: '';
  position: absolute;
  left: -90px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 90px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(80deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}
html[lang="en"] .branch-text.kansai {
  top: 80%;
  right: 23%;
}

/* 北信越 */
.branch-text.hokusinetsu {
  top: 20%;
  left: 36%;
}

html[lang="en"] .branch-text.hokusinetsu {
  top: 23%;
  left: 32%;
}

/* 九州 */
.branch-text.kyusyu {
  top: 82%;
  right: 45%;
}

.branch-text.kyusyu::before {
  content: '';
  position: absolute;
  left: -50px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 50px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(70deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: right top;
}
html[lang="en"] .branch-text.kyusyu {
  top: 82%;
  right: 50%;
}

/* 東海 */
.branch-text.tokai {
  top: 32%;
  left: 28%;
}
.branch-text.tokai::before {
  content: '';
  position: absolute;
  right: -60px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 60px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(56deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left bottom;
}

html[lang="en"] .branch-text.tokai::before {
  content: '';
  position: absolute;
  right: -60px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 60px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(65deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left bottom;
}
html[lang="en"] .branch-text.tokai {
  top: 34%;
  left: 33%;
}


/* 中四国 */
.branch-text.chusikoku {
  top: 49%;
  left: 11%;
}
.branch-text.chusikoku::before {
  content: '';
  position: absolute;
  right: -40px; /* 折れ線のスタート位置 */
  bottom: -6px; 
  width: 40px;
  height: 1px;
  background: var(--dark-gray);
  clip-path: none;
  transform: rotate(60deg); /* 線を45度に傾けて折れ線を表現 */
  transform-origin: left top;
}
html[lang="en"] .branch-text.chusikoku {
  top: 34%;
  left: 9%;
}
}

