/* 1. Neutralize ONLY the content wrapper, NOT the header */
.page-template-page-guide #content > .col-full {
    max-width: 100% !important; /* Edge-to-edge for content only */
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Remove the top padding from the site content area to close the gap */
.page-template-page-guide .site-content {
    padding-top: 0 !important;
}

/* 3. Ensure the banner image is 100% width */
.guide-hero img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

/* 4. Re-center the text containers (1066px) so they don't hit the screen edges */
.guide-intro, 
.guide-details-container {
    max-width: 1066px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}




/* 1. Hide the breadcrumb container and remove all its space */
.page-template-page-guide .storefront-breadcrumb {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 2. Remove the top padding from the site content area */
/* This is critical in Storefront to make the banner touch the yellow header */
.page-template-page-guide .site-content {
    padding-top: 0 !important;
}

/* 3. Ensure the primary container has no top margin */
.page-template-page-guide #primary {
    margin-top: 0 !important;
	margin-bottom: 0 !important;
}


/* --- GLOBAL GUIDE PAGE RESET --- */
.guide-page-wrapper .col-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.guide-page-wrapper .site-main {
    padding: 0 !important;
}

/* Hide default breadcrumbs and entry title */
.page-template-page-guide .woocommerce-breadcrumb,
.page-template-page-guide .entry-header {
    display: none !important;
}

/* --- BANNER --- */
.guide-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- INTRO SECTION --- */
.guide-intro {
    max-width: 1066px; /* Consistency with other pages */
    margin: 30px auto 60px auto;
    text-align: center;
    padding: 0 20px;
}

.guide-title {
   font-size: 2rem;
   font-weight: bold;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    margin-bottom: 5px !important;
	color: #000000 !important;
}

.guide-subtitle {
 font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #888;

    text-transform: uppercase;
    margin-bottom: 27px !important;
}

.guide-intro-text p {
    font-size: 16px !important;
    line-height: 2 !important;
    color: #000000;
}

/* --- RESPONSIVE --- */
@media (max-width: 550px) {
    .guide-intro {
        margin: 30px auto 56px;
    }
    .guide-title {
        font-size: 24px !important;
    }
    .guide-intro-text p {
        font-size: 14px !important;
        text-align: center; 
		line-height: 35px !important;
    }
	    .guide-section h2 {
        font-size: 24px !important;
        padding-left: 22px !important;
    }
	
	    .guide-section h2::after {
        font-size: 14px !important;
    }
	
	.guide-section h2[data-en="how to order"]::after {
    background-size: 92px 100%, 100% 2px;
}
	
	.guide-text p {
        font-size: 14px !important;
        line-height: 26px !important;
    }
	
	
}













/* --- GUIDE PAGE CONTENT AREA --- */
.guide-wrapper {
    max-width: 1066px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.guide-section {
    margin-bottom: 80px;
}

/* --- SMART HEADER LOGIC --- */
.guide-section h2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative;
    padding-left: 38px !important;
    margin-bottom: 30px !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    color: #000;
    border: none !important;
    line-height: 1.2 !important;
	/* ADD THIS: Ensures padding is included in width calculation */
    box-sizing: border-box !important; 
    width: 100% !important;
    overflow: hidden; /* Safety against minor sub-pixel rendering issues */
}

/* 1. The Yellow Vertical Bar (Pinned to the top Japanese text only) */
.guide-section h2::before {
   content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 1.8em;
    background-color: #FCDF00;
}


/* 2. The Row Below (Gray Line + English Subtitle) */
.guide-section h2::after {
        content: attr(data-en);
    display: flex;
    align-items: center;
    justify-content: flex-end;
      /* CHANGE THIS: Remove width: 100% and use align-self */
    width: auto !important; 
    align-self: stretch !important; /* This makes it fill the width safely */
    margin-top: 2px;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #BBB !important;
    text-transform: lowercase;
    background-image: linear-gradient(#fff, #fff), linear-gradient(#EAEAEA, #EAEAEA);
    background-position: right center, left center;
    background-repeat: no-repeat;
    background-size: 0 100%, 100% 1px;
    padding-left: 10px;
}


/* 3. Refine Mask widths for the new stacked layout (10px gap management) */
.guide-section h2[data-en="how to order"]::after    {     background-size: 158px 100%, 100% 2px; }
.guide-section h2[data-en="payment methods"]::after { background-size: 220px 100%, 100% 2px; }
.guide-section h2[data-en="delivery"]::after        { background-size: 104px 100%, 100% 2px; }
.guide-section h2[data-en="consumption tax"]::after { background-size: 204px 100%, 100% 2px; }
.guide-section h2[data-en="returns"]::after         { background-size: 95px 100%, 100% 2px; }



/* --- BODY TEXT STYLING --- */
.guide-text p {
    font-size: 16px !important;
    line-height: 35px !important;
    font-weight: 400 !important;
    color: #000000;
    margin-bottom: 1.5em;
}

/* --- SECTION 2: CARD BRANDS SPECIAL STYLING --- */
.payment-card-brands {
    margin: 20px 0 !important;
    font-size: 18px !important; /* PC Size */
    font-weight: 700 !important; /* Bold */
    line-height: 1.8 !important;
    color: #000 !important;
}

/* Style the slashes (/) to have the Figma gap */
.payment-card-brands span {
    margin: 0 12px !important; 
    font-weight: 400 !important; 
    color: #333;
}

/* Hide the break on PC */
.sp-only-break {
    display: none !important;
}

/* --- MOBILE (SP) RESPONSIVENESS --- */
@media (max-width: 550px) {
    .payment-card-brands {
        font-size: 14px !important; /* SP Size from Figma */
        line-height: 2.2 !important; 
    }

    /* Show the break after JCB on mobile */
    .sp-only-break {
        display: block !important;
        content: "";
        margin-top: 5px;
    }

    /* Tighten slash gaps slightly for small screens */
    .payment-card-brands span {
        margin: 0 8px !important;
    }
}

/* --- MOBILE RESPONSIVENESS (SP) --- */
@media (max-width: 767px) {
    .guide-section h2 {
        font-size: 24px !important; /* Scale down Japanese */
        padding-left: 18px !important;
    }
    
    .guide-section h2::after {
        font-size: 20px !important; /* Scale down English */
        
    }

    .guide-text p {
        font-size: 15px !important; /* Standard mobile reading size */
        line-height: 28px !important;
    }
}

@media (max-width: 550px) {
   .guide-section h2 {
  
    margin-bottom: 25px !important;
}
	
	.guide-section h2[data-en="how to order"]::after {
    background-size: 94px 100%, 100% 2px;
}
	
.guide-section h2[data-en="payment methods"]::after {
        background-size: 130px 100%, 100% 2px;
    }
	
    .guide-section h2[data-en="delivery"]::after {
        background-size: 62px 100%, 100% 2px;
    }

	    .guide-section h2[data-en="consumption tax"]::after {
        background-size: 121px 100%, 100% 2px;
    }

	
    .guide-section h2[data-en="returns"]::after {
        background-size: 57px 100%, 100% 2px;
    }


.guide-section {
    margin-bottom: 50px;
}	
	
	.guide-wrapper {
  
    padding-bottom: 50px;
}
	    .guide-section h2::after {
        font-size: 14px !important;
    }
	
	
	    .guide-section h2 {
     
        padding-left: 24px !important;
    }
	
	    .guide-text p {
        font-size: 14px !important;
        
    }
	    .guide-text p {
       
        line-height: 26px !important;
    }
	
	
	.break-line{
		display:block;
	}
	p.payment-card-brands {
    margin-top: -18px !important;
}
	
}