
:root {
  --primary-red: #CF131B;
  --primary-orange: #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;
}

  /* ヒーローセクション */
  .hero {
    height: 110vh;
    position: relative;
    overflow: hidden;
    /* margin-top: var(--header-height); */
    margin-top: 0;
  }
  
  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/fv-pc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* animation: zoomIn 20s ease-in-out infinite alternate; */
  }
  
  .hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); */
  }
  
  /* @keyframes zoomIn {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.1);
    }
  }
   */

   /* --------------
   
   TOP　共通レイアウト

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

   .top-section {
    margin-top: 13rem;
   }


   .top-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.2rem;
   }


   @media (max-width: 1300px) {
    .top-section {
        margin-top: 0;
        padding: 3.3rem 2.2rem;
       }
   }


   @media (max-width: 768px) {
   .top-section {
    padding: 3.3rem 0 0;
   }
   }
   

   /* --------------
   
    NEWS　共通レイアウト

   -----------------*/
  .news-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .news-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 5.3rem;
  }
  
  .news-heading {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
  }
  
  .news-heading-left {
    display: flex;
    flex-direction: column;
    row-gap: .31rem;
  }
  
  .news-heading-title {
    line-height: var(--ttl-lineHeight);
    font-size: var(--font-Ssize);
  }
  
  .news-heading-en {
    line-height: var(--ttl-lineHeight);
    font-size: var(--ttl-fontSize);
    font-weight: var(--ttl-fontWeight);
    color: var(--primary-red);
  }
  
  .news-heading-more {
    margin-top: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .63rem;
    text-decoration: none;
    color: var(--text-color);
    font-size:var(--font-XSsize);
    transition: opacity 0.3s ease;
  }
  

  .news-heading-more.sp {
    display: none;
  }


  @media (hover: hover) {
    .news-heading-more:hover .link-txt {
      opacity: 0.7;
    }

    .news-heading-more:hover .circle-arrow {
      background-color: var(--primary-red);
    }
    .news-heading-more:hover .circle-arrow::after {
      content: "";
      background: url('../img/common/arrow-r-w.svg') no-repeat;
      background-position: center;
      background-size: contain;
    }
  }

  .news-heading-more span:first-child {
    flex: 1;
  }

  .top-section  .news-list {
    margin-top: 0;
  }

  .top-section  .news-list > .news-link:first-child {
    padding-top: 0;
  }


  @media (max-width: 1204px) {

    .top-section  .news-list {
      margin-top: 2.78rem;
    }

    .news-heading-more.sp {
      display: flex;
    }
  
  }

  @media (max-width: 768px) {

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-image: url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/fv-sp-v2.webp');
    }


    .top-section  .news-list {
      margin-top: 2.78rem;
    }
  
    .top-section  .news-list > .news-link:first-child {
      padding-top: 1rem;
    }
   

  }


   /* --------------
   
VIDEO　Section

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


.video-section {
    position: relative;
    width: 100%;
    height: 100%;
    /* background: rgb(93, 115, 123); */
    background: url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/japanese-bg.png') no-repeat;
    background-color:rgba(255,255,255,0.7);
  background-blend-mode:lighten;
    background-size: 150%;
    background-position: center center;
    overflow: hidden;
  }
  
  .video-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 8.5rem 0;
    position: relative;
  }
  
  .video-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 雲のスタイリング */
  .cloud {
    position: absolute;
  
    z-index: 5;
    /* mix-blend-mode: screen; */
  }
  
  .cloud-top {
    top: 6%;
    left: 7%;
    animation: cloudMove 5s linear infinite;

    width: 25.3125rem;
    height: 11.6875rem;
    background: url('../img/top/cloud.png')  no-repeat;
    background-size: contain;
  }
  
  .cloud-bottom {
    bottom: -3%;
    right: 6%;
    animation: cloudMove 5s linear infinite ;

    width: 27.3125rem;
    height: 12rem;
    background: url('../img/top/cloud.png')  no-repeat;
    background-size: contain;
  }
  
  @keyframes cloudMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(0);
    }
  }
  
  /* ビデオフレーム */
  .video-frame {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255,1);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .video-frame::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 102%;
    height: 104%;
    border: solid 3px #EB9A4E;
    transform: translate(-50%, -50%);
  }
  
  .video-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }
  
  .play-icon {
    color: var(--primary-color);
    font-size: 32px;
    margin-left: 6px;
  }
  
  .video-placeholder:hover .play-button {
    transform: scale(1.1);
  }

  @media (max-width: 1024px) {
      
  .cloud-top {
    top: 6%;
    left: 7%;
    width: 15.3125rem;
  }
  
  .cloud-bottom {
    bottom: -3%;
    right: 6%;
    width: 17.3125rem;
  }
  }
  
  @media (max-width: 768px) {
    .video-section {
        margin-top: 5rem;
        padding: 0;
    }
    .video-frame {
      width: 80%;
    }
    
      
  .video-container {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    padding:  3rem 0;
    position: relative;
  }
    .play-button {
      width: 60px;
      height: 60px;
    }
    
    .play-icon {
      font-size: 24px;
    }
 

    .cloud-top {
        top: 0;
        left: 7%;
        animation: cloudMove 5s linear infinite;
        width: 5.6875rem;
        height: 2.625rem;
        background: url('../img/top/cloud-top.png')  no-repeat;
        background-size: contain;
      }
      
      .cloud-bottom {
        bottom: 0;
        right: 6%;
        transform: scaleY(-1);
        animation: cloudMove 5s linear infinite ;
    
        width: 6.125rem;
        height: 2.625rem;
        background: url('../img/top/cloud-bottom.png')  no-repeat;
        background-size: contain;
      }
      
  }



 /* --------------
   
Link Button　Section

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


  
  .link-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.9rem;
  }
  
  .link-button {
    position: relative;
    display: block;
    height: 10rem;
    text-decoration: none;
    color: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  
  .link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
  }
  
  .link-button:hover::before {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .button-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
  }
  
  .button-imgWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
    width: 100%;
  }
  .button-icon {
    width: 2.5rem;
    height: 2.5rem;
    filter: brightness(0) invert(1);
  }
  
  .link-button h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .click-text {
    bottom: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  
  .link-button:hover .click-text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .corner-shape {
    position: absolute;
    bottom: 2.1%;
    right: 1%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent rgba(255, 255, 255, 1) transparent;
    z-index: 1;
  }
  

  /* 背景の画像差し替え予定 */
  .search {
    background:url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/論文検索.jpg') no-repeat;
    background-size: cover;
    background-position: center;
  }
  
  .edit {
    background:url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/論文投稿.jpg') no-repeat;
    background-size: cover;
    background-position: center;
  }
  
  .login {
    background:url('http://jabudo.ac/wordpress/wp-content/themes/budo-site/src/img/top/会員ページログイン.jpg') no-repeat;    
    background-size: cover;
    background-position: center;
  }
  @media (max-width: 1024px) {
    .link-container {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .link-container {
      grid-template-columns: 1fr;
    }

    .link-container {
        gap: 1.8rem;
    }
  
    .link-button {
      height: 9rem;
    }
    .link-button h2 {
        font-size: 1.5rem;
    }
  
    .button-icon {
      width: 2.4rem;
      height: 2.4rem;
    }
  
    .corner-shape {
      border-width: 0 0 20px 20px;
      bottom: 3%;
      right: 1%;
    }
  }









 /* --------------
   
Patron　Section

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

.patrons-section {
    background-color: var(--white);
  }
  
  .patron-grid {
    padding: 0 5%;
    margin-top:var(--content-marginTop-pc);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6.25rem;
    row-gap: 3.7rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;

  }
  
  .patron-card {
    display: block;
    text-decoration: none;
    background-color: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  }
  

  .patron-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.12rem;
    height: 5.5rem;
  }
  
  .patron-logo {
    width: 13rem;
  }
  
  .patron-link {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: .38rem;
    font-size: var(--font-XSsize);
    transition: all 0.3s ease;
    text-decoration: underline;
  }
  
  .patron-card:hover .patron-link {
    background-color: var(--primary-red);
  }
  




 /* --------------
   
About　Section

   -----------------*/
  .about-section {
    background-color: var(--gray-light);
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    margin-top: var(--content-marginTop-pc);
  }
  
  .about-card {
    display: flex;
    align-items:flex-start;
    justify-content: space-between;
    color: var(--text-color);
    background-color: var(--white);
    border-top: solid 1px var(--dark-gray);
    border-bottom: solid 1px var(--dark-gray);
    border-right: solid 1px var(--dark-gray);
    padding: 1rem;
  }


  .about-card:last-child {
    border-right: none;
  }
  

	@media (hover: hover) and (pointer: fine) {
    .about-card:hover .corner-shape.gray {
      border-color: transparent transparent rgba(207, 19, 27, 1) transparent;
    }
    
  }

  .about-icon {
    margin-top: 1rem;
    margin-right: 3.8rem;
    position: relative;
    z-index: 3;
    width: 4rem;
    height:4rem;
  }
  
  .about-icon img {
    width: 100%;
    height: 100%;
  }
  
  .about-title {
    position: relative;
    z-index: 3;
    text-align: left;
  }

  .corner-shape.gray {
    position: absolute;
    bottom: 2.1%;
    right: 1%;
    width: 0;
    height: 0;
    transition: .3s ease all;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent rgba(80, 80, 80, 1) transparent;
    z-index: 1;
  }

  .corner-shape.red {
    border-width: 0 0 14px 14px;
    border-color: transparent transparent rgba(207, 19, 27, 1) transparent;
    transition: .3s ease all;
  }
  

  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 1024px) {
    .patron-grid {
      grid-template-columns: 1fr 1fr;
    }
    
  }
  @media (max-width: 1024px) {
    .about-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
    .about-card:nth-child(2) {
      border-right: none;
  }
  .about-card:nth-child(3) {
    border-top: none;
  }
  }
  @media (max-width: 768px) {
  
    .patron-grid {
      grid-template-columns: 1fr;
      margin-top:var(--content-marginTop-sp);
      gap: 16px;
    }


    .patron-inner {
        height: 5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
  
    .patron-logo {
        max-width: 100%;
      height: 4rem;
    }

    .patron-logo { 
        max-width:18rem;
        max-height:100%;
        object-fit: contain;
    }

  
    .about-grid {
      margin-top:var(--content-marginTop-sp);

    }
  
    .about-card {
      padding: .4rem;
    }

  
    .about-icon {
      margin-right: 0;
    }
    .about-icon img {
      max-width: 3rem;
      max-height: 3rem;
      flex: 1;
    }
  }






 /* --------------
   
 Organizations　Section

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3.6rem;
    row-gap: 1.88rem;
    animation: fadeInUp 0.6s ease forwards;
    margin-top: var(--content-marginTop-pc);
  }
  
  .related-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-gray);
    border: 1px solid var(--light-gray);
    padding: 1rem 2rem;
    text-align: center;

    min-height: 6.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-break: break-all;
    width: 100%;
    transition: .3s ease all;
  }

  .related-card.layer-anime::after {
    display: none;
  }
  
  .border-grad {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #F4A14C, #CF131B);
    transition: all 0.3s ease;
  }
  
  @media (hover: hover){
    .related-card:hover {
      color: #CF131B;
      text-decoration: underline;
    }
    
  }

  
  @media (max-width: 1200px) {
    .related-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 1024px) {
    .related-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
  
    .related-grid {
      margin-top: var(--content-marginTop-sp);
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .related-card {
      padding: 1.5rem;
      min-height: 4.5rem;
      animation: none;
    }
  }