:root {

    /* color */
    --black: #0F1524;
    --blue: #0084CE;
    --blueDeep: #0071BC;
    --white: #fff;
    --lightBlue:#E5F3FA;
    --gray: #707070;
    --GrayDark:#808080;
    --grayLight: #BDBDBD;
    --gradation: linear-gradient(90deg, #0071BC 0%, #0097E0 100%);    
  

    /* font family */
    --ja-font: "noto-sans-cjk-jp", sans-serif;
    --en-font:"Roboto", sans-serif;


    /* border radius */
    --radius-s: 0.3125rem;
    --radius-r: 0.625rem;


    /* font size */
    --fontSize-pcS: 1.05rem;
    --fontSize-pcR: 1.125rem;
    --fontSize-tabR: 1rem;
    --fontSize-spR: 1rem;
    --fontSize-spS: 0.875rem;


    /* line height */
    --lineHeight-pcR: 1.875;
    --lineHeight-tabR: 1.75rem;


    /* margin */
    --sp-contentMargin: 4.37rem;
    --sec-margin-r: 4.38rem;
    --sec-margin-l: 6.25rem;
  }

 


/* Hero Section */

.third-wrapper {
  margin-top: 7.35rem;
}
.mood-third-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: url("../img/case/case-ttlBG.webp") no-repeat center center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    
  }
  
  .mood-third-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background:linear-gradient(90deg, rgba(0, 151, 224, 0.60) 0%, #0091DA 15.38%, #0084CE 49.04%, #0077C1 85.1%, rgba(0, 113, 188, 0.60) 100%);
    background-size: cover;
    background-repeat: no-repeat;
  }
  
  .mood-third-content {
    position: relative;
    z-index: 2;
    text-align: left;
    display: flex;
    justify-content:flex-start;
    align-items: center;
    width: 100%;
    opacity: 0;
    height: 16rem;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    padding: 3.25rem 0;
  }
  
  .mood-third-title {
    font-size: 2.225rem;
    font-style: normal;
    font-weight: 700;
    line-height: 4rem; /* 152.381% */
    letter-spacing: -0.02625rem;
    color: var(--white);
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* Case Detail Section */
  .case-detail-section {
    padding-top: 5.47rem;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
  }

  
  /* Main Image */
  .case-image-container {
    margin-top: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .case-image-container img {
        width: 60.3125rem;
        height: auto;
        object-fit: cover;
        border-radius: var(--radius-r);
  }
  
  /* Article Content */
  .article-content {
    font-size: var(--fontSize-pcR);
    line-height: var(--lineHeight-pcR);
    letter-spacing: 0.09rem;
  }
  
  .article-paragraph {
    margin-bottom:  1.56rem;
  }
  
  .article-paragraph:last-child {
    margin-bottom: 0;
  }
  
  /* Company Overview Section */
  .company-overview-section {
    margin-top: 2.5rem;
  }
  
  .case-info-title {
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.8125rem; /* 180% */
    letter-spacing: 0.03125rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid  #AAA
  }
  
  .company-overview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.75rem;
  }
  
  /* Company Info Table */
  .company-info-table {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 70%;
  }
  
  .info-row {
    display: grid;
    grid-template-columns: 30% 1fr;
    align-items: center;
    gap:0.35rem;

  }
  
  .info-row:last-child {
    border-bottom: none;
  }
  
  .info-label {
    background-color: #D9EDF8;
    padding: 0.9375rem 2.6875rem;
    font-size: var(--fontSize-pcR);
    min-height: 4.37rem;
    height: 100%;
    font-style: normal;
    font-weight: 500;
    line-height: var(--lineHeight-pcR); /* 181.818% */
    letter-spacing: 0.09rem;
    display: flex;
    align-items: center;
    text-align: center;
  }
  
  .info-value {
    background-color:#F2F9FC;
    font-size: var(--fontSize-pcR);
    min-height: 4.375rem;
    height: 100%;
    font-style: normal;
    font-weight: 400;
    line-height: var(--lineHeight-pcR); /* 181.818% */
    letter-spacing: 0.09rem;
    padding: 0.875rem 0.75rem 0.875rem 1.25rem;
    display: flex;
    align-items: center;
  }

  .info-value a {
    color: var(--blue);
  }
  
  .company-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  @media (hover: hover) and (pointer: fine) {
  .company-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
  }
}
  
  /* Company Logo */
  .company-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
  }
  
  .company-logo {
    width: 200px;
    height: auto;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--shadow-light);
  }
  
  .logo-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
  }
  
  /* Additional Image */
  .article-image-container {
    margin-top: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .article-image {
    width: 60.3125rem;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-r);
  }
  
  /* Challenge Section */
  .article-section {
    margin-bottom: var(--spacing-2xl);
  }
  
  .case-detail-content h2 { 
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55; /* 137.5% */
    letter-spacing: 0.09rem;
    margin-bottom: 2.5rem;
    margin-top: 6.25rem;
    border-left: 0.625rem solid var(--blue);
    height: 100%;
    padding-left: .94rem;
  }


  .case-detail-content h3 {
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.8125rem; /* 180% */
    letter-spacing: 0.03125rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    margin-top: 6.25rem;
    border-bottom: 1px solid  #AAA
  }

  .case-detail-content h3.case-info-title {
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.8125rem; /* 180% */
    letter-spacing: 0.03125rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    margin-top: 0;
    border-bottom: 1px solid  #AAA
  }


  .case-detail-content p {
    margin-bottom: 2rem;
    line-height: 1.85;
  }
  
  
  .article-content {
    font-size: var(--fontSize-pcR);
    line-height: var(--lineHeight-pcR); /* 181.818% */
    letter-spacing: 0.09rem;

  }
  
  
  .highlight-text {
    color: var(--blue);
    font-weight: 500;
  }
  
  /* Article Navigation Section */
  .article-navigation-section {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.4rem;
    gap: var(--spacing-lg);
    width: 70%;
  }
  
   .article-navigation .nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
  }

.nav-item.nav-list.sp {
    display: none;
  }
  
   .article-navigation .nav-item.nav-prev {
    justify-content: flex-start;
    gap: 1.56rem;
  }

  .article-navigation .pagination-btn {
    width: 4.375rem;
    height: 4.375rem;
    border: 1px solid var(--blue);
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px 0 rgba(0, 132, 206, 0.15);

  }

  
  .article-navigation .nav-item.nav-prev:hover .next.page-numbers ,
  .article-navigation .nav-item.nav-prev:hover .prev.page-numbers {
    background-color: var(--blue);
  }
   
  .article-navigation .nav-item:hover .nav-text {
    color: var(--blue);
  }
  .article-navigation .nav-item.nav-prev:hover .next.page-numbers::after {
    background: url("../img/common/arrow-l-w.svg") no-repeat center center;
  }

  .nav-item:hover .pagination-btn{
    background: var(--blue);
  }
  .nav-item:hover .pagination-btn.prev::after {
    background: url("../img/common/arrow-l-w.svg") no-repeat center center;
  }

  .nav-item:hover .pagination-btn.next::after {
    background: url("../img/common/arrow-r-w.svg") no-repeat center center;
  }



   .article-navigation .nav-item.nav-list {
    flex: 0 0 auto;
  }
  
   .article-navigation .nav-item.nav-next {
    justify-content: flex-end;
    gap: 1.56rem;
  }

  @media (hover: hover) and (pointer: fine) {
  .article-navigation .nav-item.nav-next:hover .next.page-numbers ,
  .article-navigation .nav-item.nav-next:hover .prev.page-numbers {
    background-color: var(--blue);
  }
  .article-navigation .nav-item.nav-next:hover .next.page-numbers::after {
    background: url("../img/common/arrow-r-w.svg") no-repeat center center;
  }
}
  .article-navigation .nav-button {
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary-blue);
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-blue);
  }
  
  @media (hover: hover) and (pointer: fine) {
  .nav-button:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
  }
}
  
  .article-navigation .nav-text {
    font-size: var(--fontSize-pcR);
    line-height: var(--lineHeight-pcR); /* 181.818% */
    letter-spacing: 0.09rem;
  }
  
  .article-nav-link {
    font-size: var(--fontSize-pcR);
    line-height: var(--lineHeight-pcR); /* 181.818% */
    letter-spacing: 0.09rem;
    transition: all 0.3s ease;
    display: inline-block;
  }
  @media (hover: hover) and (pointer: fine) {
  .article-nav-link:hover {
    color: var(--blue);
  }
}
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Scroll Animation Classes */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  
  .scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive Design - PC First */
  @media (max-width: 1500px) {

    /* Hero Section */

    .third-wrapper {
      margin-top: 6.25rem;
    }


    .case-detail-section {
        max-width: 900px;
    }

    .mood-third-title {
        max-width: 900px;
    }

    .mood-third-title {
        font-size: 2.15rem;
        line-height: 1.5;
      }


      .case-detail-content h2 {
        font-size: 2rem;
        line-height: 1.6;
        border-left: 0.525rem solid var(--blue);
      }
      

      .case-detail-content h2::before {
        width: 0.425rem;
        height: 2.875rem;
    }

    .case-detail-content h3 {
      font-size: 1.5625rem;
    }
  

      .info-label {
        padding: 0.9375rem 2.6875rem;
        font-size: var(--fontSize-tabR);
        line-height: var(--lineHeight-tabR);
      }

      .info-value {
        font-size: var(--fontSize-tabR);
        line-height: var(--lineHeight-tabR);
      }

      .case-main-image {
        width: 50.3125rem;
  }

  .article-content {
    font-size: var(--fontSize-tabR);
    line-height: 2.25rem;
  }

  .article-nav-link {
    font-size: var(--fontSize-tabR);
    line-height: var(--lineHeight-tabR);
  }

  .article-navigation .nav-text  {
    font-size: var(--fontSize-tabR);
    line-height: var(--lineHeight-tabR)
  }

  .article-navigation {
    margin-top: 1.35rem;
  }

  .article-navigation .pagination-btn {
    width: 3.875rem;
    height: 3.875rem;
  }
  
  }
  
  @media (max-width: 1100px) {

    .third-wrapper {
      margin-top: 4.75rem;
    }

    .mood-third-section {
        height: 100%;
        padding-left: 0;
    }

    .mood-third-content {
        padding: 2.56rem 5rem;
        height: 12.5rem;
    }
    
    .mood-third-title {
      font-size: 1.85rem;
      line-height: 1.65;
    }
    .case-detail-section {
        max-width: 100%;
        padding: 4.25rem 5rem 0;
    }

    .company-overview-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3.12rem;
      }

      .info-row {
        grid-template-columns: 1fr;
        min-height: auto;
        gap:0.4rem;
      }

      .info-label,
      .info-value {
        text-align: center;
        justify-content: center;
      }

      .info-label {
        min-height: auto;
        min-height: 2.4575rem;
        padding: 0.3375rem 0;
      }

      .info-value {
        min-height: auto;
        height: 4.125rem;
        padding: 0.4375rem 0;
      }
      

    .case-main-image {
      height: 450px;
      width: 100%;
    }
    

    .case-detail-content h2 {
        margin-bottom: 2.5rem;
        margin-top: 4.25rem;
        font-size: 1.65rem;
        line-height: 1.6;
    }

    .company-logo-container {
        width: 100%;
    }
    
    .company-logo {
        width: 15.3125rem;
      height: auto;
    }

    .article-navigation {
      width: 100%;
      margin-top: 3.35rem;
    }


    .article-navigation .pagination-btn {
      width: 3.375rem;
        height: 3.375rem;
    }
  }
  
  @media (max-width: 768px) {


    .third-wrapper {
      margin-top: 4.35rem;
    }
    .mood-third-section {
      height: 100%;
    }
    
    .mood-third-title {
      font-size: 1.4rem;
      line-height: 1.5;
    }

    .mood-third-content {
      padding: 2.56rem 1.88rem;
  }

    
    .case-detail-section {
        padding: 3rem 1.88rem 0;
    }
    
    .case-main-image {
      height: 250px;
      border-radius: 8px;
    }
    
    .article-content {
      font-size: 1rem;
      line-height: 1.7;
    }
    
    
    .company-overview-section {
        margin-top: 1.25rem;
    }
    


    .case-detail-content h3.case-info-title  {
        font-size: 1.25rem;
        line-height: 2.1875rem; /* 175% */
        letter-spacing: 0.025rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
        margin-top: 0.65rem;
      }
    
      .company-info-table {
        width: 100%;
        gap: 0.4rem;
      }
    
    .info-label,
    .info-value {
        font-size: var(--fontSize-spR);
        line-height: var(--lineHeight-tabR);
    }

    .info-value {
        min-height: auto;
        min-height: 3.125rem;
        height: auto;
        padding: 0.3375rem 0;
    }

    .info-label {
        min-height: auto;
        min-height: 1.75rem;
        padding: 0.3375rem;
        font-weight: 600;
    }
    
    .company-logo {
        width: 11.3125rem;
      height: auto;
    }
    
    .article-image {
      height: 200px;
    }
    
    .case-detail-content h2 {
        font-size: 1.4375rem;
        font-style: normal;
        font-weight: 700;
        line-height: 2.1875rem; /* 152.174% */
        letter-spacing: -0.01438rem;
        margin-bottom: 2.75rem;
        margin-top: 6.5rem;
        border-left: 0.435rem solid var(--blue);
    }

    .case-detail-content h2::before {
        height: auto;
    }


    .case-detail-content h3 {
        font-size: 1.25rem;
        line-height: 2.1875rem; /* 175% */
        letter-spacing: 0.025rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
      }
    
    .article-content {
      font-size: 1rem;
    }
  
    /* Mobile Navigation */
    .article-navigation-section {
      flex-direction: column;
    }

    .article-navigation {
      margin-top: 2.25rem;
    }

    .article-navigation .nav-item.pc {
        display: none;
      }
  
    .article-navigation .nav-item.sp {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        position: initial;

      }
  
    .article-navigation .nav-item.nav-prev,
    .article-navigation .nav-item.nav-next {
      width: 100%;
      gap: .95rem;
    }

    .article-nav-link {
        margin: 1.65rem auto 0;
        font-size: var(--fontSize-spR);
    }
    
    .nav-item.nav-list.sp {
        display: block;
        margin: 0 auto;
        text-align: center;
      }
  
    .article-navigation .nav-item.nav-list {
      order: -1;
      margin-bottom: var(--spacing-sm);
    }

  
    .nav-button {
      width: 44px;
      height: 44px;
    }
  
    .article-navigation .nav-text {
      font-size: var(--fontSize-spR);
    }

    .mood-third-section::before {
      background:linear-gradient(90deg, rgba(0, 151, 224, 0.60) 0%, #0091DA 20%, #0084CE 49.04%, #0077C1 80%, rgba(0, 113, 188, 0.60) 100%);
    }
  }
  
  @media (max-width: 480px) {

  
    .nav-text {
      font-size: 0.9rem;
    }
  
  }



  /* wordpress 画像の配置 */
  .case-detail-content p img.alignleft{
  float: left;
}

  .case-detail-content p img.alignright{
  float: right;
}


  .case-detail-content p img.aligncenter {
    margin: 0 auto;
    display: block;
  }



  .case-detail-content p img {
    border-radius: 0.625rem;
  }

 

  /* バナー用のレイアウト */


  .case-detail-content .banner img {
    border-radius: 0;
  }
  
  