/* Reset and Base Styles */
html {
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll caused by wide elements */
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #f3f4f6; 
    padding-top: 55px; /* This needs to be the actual height of your header */
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    line-height: 1.6; 
    overflow-x: hidden; /* Redundant with html, but ensures body itself doesn't cause overflow */
}

*, *::before, *::after {
    box-sizing: inherit;
}
    .product-grid {
        display: grid;
        gap: 1.5rem; /* 24px */
    }


/* Typography and Links */
a {
    color: inherit; 
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

a:hover {
    opacity: 0.8; 
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75em; 
    line-height: 1.3;
    font-weight: 900; 
    font-family: impact;

}



.h1-manga-title{
    font-family: 'Inter';
}

p {
    margin-top: 0;
    margin-bottom: 1em; 
}

@media (min-width: 768px) {
    .sp-br {
        display: none; 
    }
}

/* Desktop: 2 columns */
    @media (min-width: 768px) { /* md breakpoint in Tailwind */
        .product-grid {
            grid-template-columns: 300px 1fr; 
        }
    }
   
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}
.video-modal-content {
    background-color: #fff;
    padding: 1.5rem; 
    border-radius: 0.5rem; 
    position: relative;
    width: 90%;
    max-width: 800px; 
    margin: auto; 
}
.video-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #333;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    z-index: 10; 
}
.aspect-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}
.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- Fixed Header Styles --- */
.fixed-header {
position: fixed;
top: 0;
left: 0;
width: 100%; 
background-color: #000000; 
padding: 0.75rem 1.5rem; 
z-index: 1000; 
box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
border-bottom: 1px solid #333; 
box-sizing: border-box; 
}

.header-container {
max-width: 1280px; 
margin: 0 auto; 
display: flex;
justify-content: space-between; 
align-items: center; 
}

.header-logo-link {
display: inline-block;
}

.header-logo-image {
height: 30px; 
width: auto; 
display: block;
vertical-align: middle; 
}

.header-nav {
display: flex;
align-items: center; 
gap: 1.5rem; 
}

.header-nav-link {
color: #ffffff; 
font-size: 0.875rem; 
font-weight: 500; 
}

.header-nav-link:hover {
color: #f59e0b; 
}

/* --- Hero Page Section Styles --- */
.hero-page-section {
width: 100%; 
background-color: #f4a12b; 
display: flex; 
justify-content: center;
align-items: center;
overflow: hidden; 
}

.hero-image {
width: 100%; 
height: auto; 
display: block; 
max-width: 100%; 
object-fit: cover; 
}



.hero-image-pc {
    display: none; 
}
.hero-image-mobile {
    display: block; 
}

@media (min-width: 768px) { 
    .hero-image-pc {
        display: block; 
    }
    .hero-image-mobile {
        display: none; 
    }
     .hero-image {
         width: 100%; 

     }
}



/* --- video pop up ---  */

.video-section img { 
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

.cover-image-container img{
    max-width: 60%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */

}

@media (min-width: 768px) {
    .cover-image-container img {
        max-width: 100%;
    }
}

.products-section{
    /* --- 背景画像の設定 --- */
    background-image: url("../img/bg-section4.png"); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    padding-top: 3rem; 
    padding-bottom: 0rem; 
}

.product-card{
    background-color: rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.product-card-container{
    padding: 1rem;
}

/* --- Custom Tag Styles --- */
.tag {
    font-size: 0.65rem; 
    line-height: 0.8rem; 
    font-weight: 500; 
    padding-left: 1rem; 
    padding-right: 1rem; 
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem; 
    color: #eb9d39; 
    border-color: #eb9d39;
    border-width: thin;
    border: solid;
    background-color: #000;
    border-radius:2px;
}


.tag-orange {
    background-color: #eb9d39; 
    color: #000;
    border-color: #eb9d39
}

@media (min-width: 768px) {
    .tag {
         padding-left: 2rem; 
         padding-right: 2rem;
        }
.products-section{
    padding-bottom: 5rem;
    padding-top: 5rem;

}

}

/* --- Custom Product Title Color --- */
.product-title-color {
    color: #ffffff; 
    letter-spacing: 1px;
}

/* --- Price Styles --- */
.price { /* Container for all price elements */
    display: flex;
    align-items: flex-end; /* Changed from baseline to flex-end */
    flex-wrap: wrap; /* Allow wrapping if space is tight */
    gap: 0.5rem; 
}
.product-price-main {
     font-size: 2.5rem; 
    line-height: 1; 
    font-weight: 700; 
    color: #ff4f4c; 
}
@media (min-width: 768px) {
    .product-price-main {
        font-size: 3rem; 
    }
}

.price-all-vols {
    color: #ff4f4c; 
    font-size: 0.8rem;
    font-weight: bold;
}

.product-price-save {
    font-size: 1.1rem; 
   line-height: 1.5; 
    color: #fff; 
    background-color: #ff4f4c; 
    padding: 0.3rem 0.8rem;
    display: inline-block; 
}

/* --- Video Section Styles --- */
.video-thumbnail-desktop-container { 
    display: none; /* hidden by default */
    cursor: pointer;
}
@media (min-width: 768px) {
    .video-thumbnail-desktop-container {
        display: block; 
    }
}

.video-thumbnail-image {
    width: 100%;
    max-width: 28rem;
    height: auto;
    object-fit: cover;
    border-radius: 0.375rem; 
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.video-trigger-desktop.group:hover .video-thumbnail-image {
    opacity: 0.8;
}


.video-thumbnail-caption { 
    text-align: center;
    font-size: 0.875rem; 
    line-height: 1.25rem;
    color: #D1D5DB; 
    margin-top: 0.25rem; 
}

.btn-watch-video-mobile {
    display: flex;             
    align-items: center;       
    justify-content: center;   
    gap: 0.5rem;               
    width: 90%;
    background-color: #eb9d39;
    color: #000000;
    font-weight: 900;
    font-family: impact;
    padding: 0.75rem 2rem;
    border-radius: 20px;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px #ff6000;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    margin: 0 auto;
    margin-top: 2rem;
}

.btn-watch-video-mobile .play-icon {
    height: 1.2em;         
    width: auto;          
    flex-shrink: 0;       /* 防止圖示在空間不足時被壓縮變形 */
}
.btn-watch-video-mobile:hover {
    background-color: #EA580C; 
    transform: translateY(-2px);
}
@media (min-width: 768px) {
    .btn-watch-video-mobile {
        display: none; 
        font-size: 1.3rem; 
    }

}

/* --- Action Button Styles --- */
.btn-action-full{ 
    display: inline-block; 
    width: 90%; 
    background-color: #eb9d39; 
    color: #000000; 
    font-weight: 900; 
    font-family: impact;
    padding: 0.75rem 2rem; 
    border-radius: 20px; 
    border: 3px solid #000000; 
    box-shadow: 3px 3px 0px #ff6000; 
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem; 
    line-height: 1.5;
    text-decoration: none; 
    margin-top: 0.75rem; 
    cursor: pointer;
    margin: 0 auto;
}
.btn-action-full:hover {
    background-color: #EA580C; 
    transform: translateY(-2px);
}

@media (min-width: 768px) {
 .btn-action-full{ 
        width: 60%; 
        font-size: 1.3rem; 
    }
}

/* --- Limited Offer Section Styles]--- */
.limited-offer-section.new-offer-design {
    text-align: center; 
    background-image: url('../img/bg-section2.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    padding-top: 3rem; 
    padding-bottom: 0rem; 
}

@media (min-width: 768px) {
.limited-offer-section.new-offer-design{ 
      padding-top: 5rem;
    padding-bottom: 5rem; 
    }
}

.limited-offer-main-title-image {
    display: block; 
    margin: 0 auto 2rem; 
    max-width: 90%;
    width: 50rem; 
    height: auto;
}



.main-offer-item { 
    display: block;
    margin: 0 auto 2rem;
    max-width: 95%;
    width: 900px; 
}


.upcoming-deals-title-image {
    display: block;
    margin: 0 auto 1.5rem; 
    max-width: 80%;
    width: 300px; 
    height: auto;
}

.upcoming-deals-container {
    display: flex;          
    overflow-x: auto;       
    flex-wrap: nowrap;      
    gap: 1rem;              
    max-width: 100%;        
    padding: 0 1rem;        
    margin: 0 auto;         
    scroll-snap-type: x mandatory;   /* 設定滾動吸附效果，讓項目能剛好停在定位點 */
    -webkit-overflow-scrolling: touch; /* 在 iOS 上提供更流暢的滾動慣性 */
    scrollbar-width: none;             /* 隱藏滾動條 (Firefox) */
}

/* 隱藏滾動條 (Chrome, Safari, Opera) */
.upcoming-deals-container::-webkit-scrollbar {
    display: none;
}


.carousel-dots {
    text-align: center;
    padding: 1rem 0; 
}

.dot {
    display: inline-block; /* 讓圓點可以並排 */
    width: 10px;
    height: 10px;
    margin: 0 5px; 
    background-color: #ccc; 
    border-radius: 50%; 
    cursor: pointer; /* 滑鼠移上去時顯示手形圖標 */
    transition: background-color 0.3s ease; 
}

.dot.active {
    background-color: #be0008; 
}

@media (min-width: 768px) {
    .carousel-dots {
        display: none;
    }
}

@media (min-width: 768px) { /* Desktop: 3 columns for upcoming deals */
    .upcoming-deals-container {
        display: grid; 
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible; /*隱藏水平滾動條 */
        gap: 1.5rem;
        max-width: 900px;
        padding: 0;
    }

    .upcoming-deal-item {
        flex: none; 
    }

    .limited-offer-main-title-image {
        max-width: 70%;
    }

}

.upcoming-deal-item {
    overflow: hidden; 
    position: relative; 
}

.upcoming-deal-item {
    flex: 0 0 75%;
    scroll-snap-align: center; 
    overflow: hidden;
    position: relative;
}


@media (min-width: 768px) {
    .upcoming-deal-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 10%; 
        bottom: 10%; 
        right: calc(-0.75rem - 1px); 
        width: 2px; 
        background-color: #000000; 
    }
      .upcoming-deal-image{
        width: 70%;
        margin: 0 auto;

    }

}

.upcoming-deal-image {
    width: 100%;
    height: auto;
    display: block;
}




 /* --- Seasonal Anime Section Styles --- */

.seasonal-buttons-container {
    display: flex;
    flex-direction: column; /* Mobile垂直排列 */
    align-items: center; /* 垂直排列時，項目水平居中 */
    gap: 1rem; 
    margin-bottom: 5rem;
}

.seasonal-btn-link {
    display: block;
    width: 100%;
    max-width: 380px; 
}
@media (min-width: 768px) { /* PC (md breakpoint) */
    .seasonal-buttons-container {
        flex-direction: row; 
        justify-content: center; 
        gap: 1rem; 
    }
    .seasonal-btn-link {
        width: auto; 
    }
}

.seasonal-btn-image {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0.375rem; 
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

@media (min-width: 768px) {
    .seasonal-btn-image {
    width: 100%;}

}

.seasonal-btn-link:hover .seasonal-btn-image {
    transform: translateY(-3px) scale(1.02); 

}

/* --- Featured Works & Video Section Styles --- */
.image-button-showcase-section {
     /* --- bg-img setting --- */
    background-image: url("../img/bg-section5.png"); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    padding-top: 3rem; 
    padding-bottom: 0rem; 
    text-align: center; 
}

.image-button-showcase-main-title {
    display: block;
    margin: 0 auto; 
    max-width: 90%;
    width: 1000px; 
    height: auto;
}

.watch-video-title {
    display: block;
    margin: 0 auto; 
    width: 100%;
    height: auto;
}

.image-button-grid {
    display: grid;
    gap: 1rem; 
    grid-template-columns: 1fr; 
    margin: 0 auto; 
    align-items: start; 
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    
  .image-button-showcase-section {
     padding-bottom: 5rem;
     padding-top: 5rem; 

  }

    .image-button-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0rem;
        align-items: stretch; 
        padding: 2rem 0rem;
        max-width: 1000px;
    }

    .image-button-item {
        background-color: rgba(0, 0, 0, 0);
        padding: 0rem;
    }


    .showcase-buttons-container {
        display: block;
    }

    .btn-watch-teaser {
        display: none;
    }

    .featured-video-section {
        display: block;
    }
    
    .watch-video-title {
        width: 80%;
    }

    .image-button-showcase-main-title {
        max-width: 50%;
    }

    .showcase-image.pc-image {
        display: block; 
    }

    .showcase-image.mobile-image {
        display: none; 
    }

    .showcase-btn-image {
        width: 14rem;
    }
}

.image-button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; 
    box-sizing: border-box; 
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2rem 1rem;
}

.image-container-mobile {
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) { /* PC: 3 columns */
  .image-button-item {
    background-color: rgba(0, 0, 0, 0);
    padding: 0rem;
   }
}

.image-button-link { 
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.75rem; 
    flex-grow: 1; 
    overflow: hidden; 
}

.showcase-image {
    display: block;
    object-fit: contain; 
    max-width: 100%;   
    height: auto;      
}

.showcase-image.pc-image {
    display: none; 
}

.showcase-image.mobile-image {
    display: block; 
    max-width: 100%;  
    height: auto; 
}

@media (min-width: 768px) { /* PC view */
    .showcase-image.pc-image {
        display: block; 
    }
    .showcase-image.mobile-image {
        display: none; 
    }
    
}

.showcase-btn-link {
    display: inline-block; 
    margin-top: auto; 
}

.showcase-btn-image {
    max-width: 100%;
    width: 12rem; /* Adjusted button width */
    height: auto;
    display: block;
    transition: transform 0.2s ease-out;
    border-radius: 0.25rem; 
}
.showcase-btn-link:hover .showcase-btn-image {
    transform: translateY(-3px) scale(1.02); 
}



@media (min-width: 768px) { /* PC: 3 columns */
    .showcase-btn-image {
         width: 14rem; /* Adjusted button width */
    }
}


.showcase-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; 
    width: 100%;
}

.btn-watch-teaser {
    background-color: transparent; 
    border: none;                
    padding: 0;                  
    cursor: pointer;              /* 手形游標 */
    display: inline-block;        /* 讓按鈕行為像一張圖片 */
}

.btn-watch-teaser img {
    display: block; /* 移除圖片底下的多餘空間 */
    width: 12rem;
    transition: opacity 0.2s ease; 
}

.btn-watch-teaser:hover img {
    opacity: 0.85;
}

.btn-watch-teaser:hover {
    background-color: transparent;
}

.featured-video-section {
    display: none;
}

@media (min-width: 768px) {
    .showcase-buttons-container {
        display: block;
    }

    .btn-watch-teaser {
        display: none;
    }

    .featured-video-section {
        display: block;
    }
}



/* --- video select section ---*/

.featured-video-section {
    text-align: center;
    margin-top: 2.5rem; 
}

.featured-video-title {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #000000; 
    margin-bottom: 1.5rem;
}

.featured-video-player-wrapper {
    margin: 0 auto; 
    position: relative; 
    background-image: none; 
    margin-top: 2rem;
    margin-bottom: 2rem;
}


#youtube-player-container-featured > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1; 
}


@media (min-width: 768px) {

    .featured-video-player-wrapper {
        position: relative; 
        margin: 1.5rem auto;
        width: 90%;
    }

    .featured-video-player-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/s5-video-play-BG.png'); 
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;          
        pointer-events: none; /* 讓滑鼠可以穿透它 */
    }

    .iframe-container {
        position: absolute;
        z-index: 2; /* 確保在畫框下面 */
        aspect-ratio: 16 / 9;  /*讓這個容器自己保持 16:9 */
        width: 70%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .iframe-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
}


.featured-video-buttons {
    display: grid; 
    grid-template-columns: 1; /* Mobile: 1 column (1x3 layout) */
    gap: 1rem; 
    max-width: 200px; 
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) { /* PC: 3 columns (3x1 layout) */
    .featured-video-buttons {
        grid-template-columns: repeat(3, 1fr); 
        max-width: 800px; 
    }
}

.btn-video-select {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-video-select:hover {
    transform: translateY(-5px);
}
.btn-video-select.active {
    border: display;
}


/* --- More Titles from VIZ Media Section Styles --- */
.more-titles-section {
    background-color: #1a1a1a;
    color: #ffffff; 
    padding: 2.5rem 1rem;
    text-align: center;
}

.more-titles-main-header {
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing:1px;
    font-family: impact;
}

@media (min-width: 768px) { /* PC: 3 columns (3x1 layout) */
    .more-titles-main-header {
    font-size: 3.5rem; 
    }
}


.more-titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 0.5rem; 
    margin-bottom: 2.5rem;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) { /* For medium screens and up, enforce 4 columns */
    .more-titles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.more-titles-card {
    border-radius: 0.375rem; 
    padding: 0.75rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box; 
}

.more-titles-image {
    width: 100%;
    aspect-ratio: 2 / 3; 
    object-fit: contain; 
    margin-bottom: 0.5rem; 
    height: 16rem;
}

.more-titles-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    width: 100%; 
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem; 
    line-height: 1.3;
    height: 1.3em; 
    letter-spacing: 0.5px;
}

.text-ssm {
    font-size: 0.8rem;
}

.more-titles-info {
    margin-bottom: 0.75rem; 
    padding: 0.2rem 0.5rem;
    display: inline-block; 
}

.more-titles-btn-link {
    display: inline-block; /* To contain the image button */
    margin-top: auto; /* Push button to the bottom of the card if card heights vary */
}

.more-titles-btn { 
    display: inline-block; 
    width: auto; 
    background-color: #eb9d39; 
    color: #000000; 
    font-weight: 900; 
    font-family: impact;
    font-style: italic;
    padding: 0.5rem 2rem; 
    border-radius: 10px; 
    border: 1px solid #963100; 
    box-shadow: 3px 3px 0px #963100; 
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.825rem; 
    line-height: 1.2;
    text-decoration: none; 
    cursor: pointer;
}

.more-titles-btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.see-all-titles-link {
    display: inline-block; 
    margin-top: 1rem; 
}
.see-all-titles-btn-image {
    max-width: 100%;
    width: 500px; 
    height: auto;
    display: block;
    transition: transform 0.2s ease-out;
}
.see-all-titles-link:hover .see-all-titles-btn-image {
   transform: scale(1.05); 
}


/*hero page*/

.c-mv-area {
    background-color: #ff8900;
}

@media screen and (min-width: 768px) {
    .c-mv-area {
        padding-inline:16px;
        background-image: url(../img/bg_mv.png);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: auto 100%
    }
}

.c-mv-area__mv {
    text-align: center
}



.marquee {
    width: 100%;
    background-color: #d83634;
    color: white;
    padding: 10px 0;
    overflow: hidden; 
    display: flex; 
}

.marquee__group {
    flex-shrink: 0; /* 防止群組被壓縮 */
    display: flex;
    align-items: center;
    justify-content: space-around; /* 讓圖片均勻分佈 */
    white-space: nowrap; /* 防止內容換行 */
    min-width: 100%;
    /* 定義動畫：名稱、時長、速度曲線、無限循環 */
    animation: scroll 25s linear infinite;
}

.marquee__group img {
    height: 15px; 
    margin: 0 20px; /* 圖片之間的間距 */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
    
        transform: translateX(-100%);
    }
}

@media screen and (min-width: 768px) {
    .marquee__group img {
    height: 35px; }

}


/* --- How to Use MANGA MIRAI Section Styles --- */
.how-to-use-section {
    background-color: #f69701; 
    padding: 3rem 1rem;
    text-align: center;
     /* ---background-image setting--- */
    background-image: url("../img/bg-section7.png"); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat; 
    padding-top: 2rem; 
    padding-bottom: 5rem; 

}

.how-to-use-main-title {
    color: #000000; 
    margin-bottom: 2.5rem;
    font-family: impact;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 2.5rem;
}

@media (min-width: 768px) { /* PC: 3 columns (3x1 layout) */
   .how-to-use-main-title {
    font-size: 3.5rem; 
    }
}

.how-to-use-steps-container {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 0.5rem; 
    max-width: 1000px; 
    margin: 0 auto; 
    align-items: center; 
}

@media (min-width: 768px) { /* PC: 3 items and 2 arrows in a row */
    .how-to-use-steps-container {
        grid-template-columns: 1fr auto 1fr auto 1fr; /* item, arrow-container, item, arrow-container, item */
        gap: 0rem; 
        align-items: center; 
    }
    .how-to-use-section{
        padding-top: 5rem;
    }

}


.how-to-use-step-card {
    position: relative;
    height: 100%; 
    box-sizing: border-box;
    display:flex;
    align-items: center;
    justify-content: center;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%; 
}

.step-image.pc-step-image {
    display: none; 
}
.step-image.mobile-step-image {
    display: block; 
}

@media (min-width: 768px) { /* PC view */
    .step-image.pc-step-image {
        display: block; 
    }
    .step-image.mobile-step-image {
        display: none; 
    }
    .how-to-use-step-card { 
      min-height: 220px; 
    }
}

/* Styles for the arrow container and image */
.step-arrow-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0; 
}

.step-arrow-wrap { 
    filter: drop-shadow(3px 3px 0px #000000); 
}

.step-arrow-visual { 
    width: 30px; 
    height: 30px; 
    display: block; 
}

@media (min-width: 768px) { /* PC view */
    .step-arrow-container {
        margin: 0; 
       
    }
    .step-arrow-visual {
        transform: rotate(0deg);
    }
    

}

@media (max-width: 767.98px) { /* Mobile view */
    .step-arrow-wrap { 
        filter: drop-shadow(0px 3px 0px #000000);
    }
    .step-arrow-visual {
        transform: rotate(90deg); 
    }
   
    .how-to-use-step-item:not(:last-child)::after {
        display: none;
    }
}

/* --- Site Footer Styles --- */
.site-footer {
    background-color: #101010; 
    color: #a0aec0; 
    padding: 2rem 1rem; 
    border-top: 1px solid #333333; 
    margin-top: auto; 
}

.footer-content-container {
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    gap: 1.5rem; 
}

@media (min-width: 768px) { /* Tablet and larger */
    .footer-content-container {
        flex-direction: row; /* Desktop: items side-by-side */
        justify-content: space-between; 
        align-items: flex-start;
        text-align: left; 
    }
}

.footer-abj-section {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 0.75rem; 
}
@media (min-width: 768px) { /* Tablet and larger */
    .footer-abj-section {
        flex-direction: row;
        align-items: center; 
        text-align: left;
        flex: 1; 
        margin-right: 2rem; /* Space between ABJ section and copyright */
    }
}


.abj-logo {
    height: 60px; 
    width: auto;
    flex-shrink: 0; 
}

.abj-text {
    font-size: 0.75rem; 
    line-height: 1.5;
    color: #9ca3af; 
    max-width: 450px;
    text-align: center;
}
@media (min-width: 768px) {
    .abj-text {
        max-width: none; 
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.75rem; 
    color: #9ca3af; 
    flex-shrink: 0; 
}
@media (min-width: 768px) {
    .footer-copyright {
        text-align: right; 
        align-self: center; 
    }
}


