/* custom.css */

/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

h2 {
    color: #c7c6c7;
}

body {
    font-family: "MS Gothic", "ＭＳ ゴシック", "Yu Gothic", "Meiryo", sans-serif;
}

.no-margin {
    margin-left: -37px;
}
.bold {
    font-weight: 800;
}

.lighter {
    color: rgba(255, 255, 255, 0.8);
}

.blue {
    color: #1D20C9;
}

.square {
border-radius: 0;
}

.mobile-static-container {
    display: none;
}

/* Image Utility */
.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Sticky Navigation Bar */
.logo-and-home-container {
    background-color: #1f20c8;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 30px;
    gap: 20px;
}

.site-main {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 60px; /* Adjust based on your nav height */
}

.sticky-nav {
    position: fixed;
    width: 100%;
    background-color: rgb(5, 4, 71);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.site-logo img, .custom-logo-link img {
    height: 40px; 
    width: auto;
    margin-right: 10px; 
}

.home-button {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 18px;
    padding: 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 20px;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.nav-menu a:hover {
    color: #ddd;
}

/* Disabled nav links (when not on home page) */
body:not(.home):not(.page-template-home) .nav-menu a[href*="#"] {
    opacity: 0.5;
    cursor: not-allowed;
}

body:not(.home):not(.page-template-home) .nav-menu a[href*="#"]:hover {
    color: white;
    opacity: 0.5;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
}
.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    width: 30px;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}
.hamburger::before {
    top: -8px;
}
.hamburger::after {
    bottom: -8px;
}
.nav-menu.active + .menu-toggle .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-menu.active + .menu-toggle .hamburger {
    background: transparent;
}
.nav-menu.active + .menu-toggle .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        padding: 15px;
        cursor: pointer;
    }
}



/* Page Structure */
#page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

#landing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 46px;
    position: relative;
    z-index: 2;
}

body.parallax-open {
    overflow: hidden;
}

#main-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 999;
    background-image: url('../img/parallax2.avif'); /* or your desired background */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#main-parallax.parallax-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.main-parallax__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.main-parallax__content h2 {
    color: rgb(60,60,60);
    font-size: 56px;
    text-align: center;
    
}

.main-parallax__content p {
    font-size: 20px;
    margin-top: 10px;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.recent-post {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
    padding: 20px;
}

.recent-post a {
    display: block;
}

.recent-post img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.recent-post h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.recent-post p {
    font-size: 16px;
    margin: 0;
}

.post-date {
    font-family: Futura;
    color: rgb(60, 60, 60);
    text-align: left;
    font-size: 35px;
}

.upper-banner-container {
    width: 100%;
    height: 100%;
    padding: 200px 0px 150px;
    background-color: rgba(247, 247, 247, 0.8);
}

.blog-posts-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    max-width: 750px;
    border-radius: 15px;
}

.close-dropdown {
    position: fixed;
    top: 90px;
    right: 50px;
    z-index: 1001;
}

.close-dropdown-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-dropdown-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    /* height: 100vh; */
    /* background-image: url('../img/hero.avif'); */
    /* background-size: cover;
    background-position: center; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    top: 90px;
    left: 5%;
    position: absolute;
    color: white;
    text-align: left;
    
}

.hero__header h1 {
    color: #fff;
    font-size: 38px;
    font-family: Arial, sans-serif;
}

.header-divider {
    display: inline-block;
}

.header-divider::after {
    content: '';
    display: block;
    width: 100%;
    border-top: #1f20c8 solid 10px;
}

.hero__header, .hero__body-text {
    perspective: 1000px;
    perspective-origin: center center;
}

.hero__header h1, .hero__body-text p{
  transform-origin: 0% -50%;
  transform-style: preserve-3d;
  backface-visibility: visible; /* Important - allows us to see the back */
  
  /* 3 second delay, then animate */
  animation: swing-forward 3s ease-out 3s forwards;
  
  /* Start at 90deg rotateX (tilted backward/behind) */
  transform: rotateX(-90deg);
  opacity: 0;
}

@keyframes swing-forward {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  
  20% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  
  50% {
    transform: rotateX(10deg);
    opacity: 1;
  }
  
  70% {
    transform: rotateX(-5deg);
    opacity: 1;
  }
  
  85% {
    transform: rotateX(3deg);
    opacity: 1;
  }
  
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}




.hero__body-text p {
    font-size: 18px;
    margin-top: 40px;
}

.hero-button {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    position: relative;
}
.arrow-button {
    width: 70px;
}

/* Solutions Section */

.main-content__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 0 50px;
    text-align: center;
}

.main-content__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.main-content__header h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.main-content__info {
    margin-top: 20px;
}

.main-content__info p {
    font-size: 20px;
    margin-bottom: 30px;
}

.main-content__body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.main-content__item {
    flex: 1 1 300px;
    max-width: 400px;
}

.main-content__image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.main-content__item-body {
    background-color: rgba(148, 148, 148, 0.091);
    padding: 15px;
}

.main-content__item-body p {
    font-size: 13px;
    text-align: justify;
}

.main-content__item-header {
    font-size: 20px;
    margin-bottom: 10px;
}

.main-content__item-header a {
    color: #333;
    text-decoration: none;
}

.main-content__item-header a:hover {
    text-decoration: underline;
}

/* Company Parallax */
.parallax-1 {
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: center;
    width: 100%;
    margin-top: 50px;
}

.parallax__content {
    display: flex;
    flex-direction: column;
    height: 100.2%;
    width: 60%;
    background-color: #f6f6f7;
    color: black;
    text-align: left;
    padding: 75px 20px 20px 60px;
}

.parallax__content-header {
margin-bottom: 20px;
}


.parallax__content h2 {
    font-size: 36px;
    font-family: Arial, sans-serif;
}

.parallax__content p {
    font-size: 16px;
}

.company-info-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.c-info-container__child {
    display: flex;
}


.child-column p {
    margin: 0;
    padding: 5px 0;
    min-height: 30px; /* Ensures consistent height */
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
}

.company-info-table .label {
    width: 130px;
    text-align: left;
    padding-right: 15px;
}

.company-info-table .value {
    flex-grow: 1;
}

.company-info-table tr {
    height: 30px;
}

.company-info-table td {
    vertical-align: middle;
    padding: 5px 0;
} 

/* Stats Section */
.stats {
    width: 100%;
    padding: 50px;
    background-color: rgb(5, 4, 71);
    color: #fff;
    text-align: center;
}

.stats__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.stats__item {
    flex: 1 1 200px;
    min-width: 150px;
}

.stats__number {
    color: #fff;
    font-size: 60px;
    margin-bottom: 10px;
}

.stats__label {
    font-size: 30px;
    color: lightblue;
}

.stats__divider {
    width: 5px;
    height: 95px;
    background: #fff;
}

.smaller {
    font-size: 30px;
}

/* Gallery Section */
.gallery {
    max-width: 940px;
    padding: 50px;
    text-align: center;
}

.gallery__content-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.gallery .header__divider {
    width: 260px;
}

.gallery__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery__item {
    cursor: pointer;
    transition: all 0.3s ease; 
}

.gallery__item:hover {
    opacity: 0.6;
    transition: var(--trans, opacity .4sease 0s);
}

.gallery__image {
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.gallery__item h3 {
    background-color: #f6f6f7;
    font-size: 20px;
    padding: 15px 0 15px;
}

.gallery__item p {
    font-size: 16px;
    color: #666;
}


/* Products & Contact Sections */
.products {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 50px;
    text-align: center;
}

.product__content-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.products {
    margin-top: 150px;
    background-color: #f6f6f7;
}

.product__content-header .header__divider {
    width: 585px;
}

.main-content h2, .parallax h2, .products h2, .contact h2, .gallery h2, .map h2{
    font-size: 45px;
}

.products-info-container {
    margin-top: 40px;
    margin-bottom: 75px;
    max-width: 1200px;
    width: 100%;
    overflow-x: auto;
    pointer-events: none;
}

.products-info-container table {
    width: 100%;
    border-collapse: collapse;
}

.products-info-container td {
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    vertical-align: middle;
    min-width: 120px;
    font-weight: 600;
}


.products p {
    font-size: 21px;
    word-break: keep-all;
}

.contact {
    margin-top: 50px;
}


.contact__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__form__upper {
        display: flex;
        flex-direction: row;
        gap: 200px;
    }

.contact__form__lower {
    display: flex;
    flex-direction: column;
}

.contact__form {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 50%;
}

.contact__form .contact__info-text {
    font-size: 14px;
    margin-bottom: 20px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    text-align: left;
    margin-bottom: 50px;
}


.contact__info-header{
    color: rgb(5, 4, 71);
    font-size: 24px;
    margin-bottom: 10px;
}

.contact__recruitment-header {
    font-size: 24px;
    margin-top: 30px;
}

.contact__info-text, .contact__recruitment-text {
    font-size: 17px;
    white-space: nowrap;
}

.contact__phone a {
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.contact__phone a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: rgb(5, 4, 71);
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-heading {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #1f20c8;
    padding-bottom: 10px;
}

.footer-column p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #1f20c8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Map Section */
.map {
    padding: 50px;
    text-align: center;
}

.map__content-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
}

.map h2 {
    font-size: 45px;
}

.map__content-header .header__divider {
    width: 395px;
}

.map-frame {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 940px;
}
.maps-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    max-width: 940px;
}

.responsive-iframe {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 6; /* Adjust as needed */
    border: 0;
    display: block;
}
@media (max-width: 600px) {
    .responsive-iframe {
        min-height: 200px;
        aspect-ratio: 16 / 12;
    }
}


/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox .img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 25px 50px 50px 50px;
    height: 100%;
    gap: 30px;
}

.lightbox img {
    max-height: 450px;
   
}

.lightbox .prev, .lightbox .next, .lightbox .close {
    position: absolute;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border: none;
    color: #fff;
    background-color: transparent;
}

.lightbox .prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .close {
    top: 60px;
    right: 50px;
    font-size: 60px;
    padding: 5px 10px;
}

.lightbox-info {
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
}






.custom-lightbox {
    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;
}

.custom-lightbox .lightbox-content {
    background-color: white;
    width: 80%;
    max-width: 1000px;
    position: relative;
    padding: 20px;
    border-radius: 10px;
}

.custom-lightbox .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.custom-lightbox .lightbox-body {
    display: flex;
    flex-direction: column;
}

.custom-lightbox .lightbox-images {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.custom-lightbox .lightbox-image {
    width: 48%;
}

.custom-lightbox .lightbox-image-caption {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
}

.custom-lightbox .lightbox-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.custom-lightbox .lightbox-header {
    text-align: center;
    margin-bottom: 15px;
}

.custom-lightbox .lightbox-header h2 {
    color: #303f92;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.custom-lightbox .lightbox-description {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
} 



.custom-lightbox .lightbox-images {
    display: flex;
}

.custom-lightbox .lightbox-image {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.custom-lightbox .lightbox-image img {
    width: 100%;
    height: 400px;
    object-fit: fill;
}

.custom-lightbox .lightbox-caption {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
}

.custom-lightbox .lightbox-description {
    background-color: #f0f0f0;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}








/* WP Form */
.wpforms-container input.wpforms-field-medium {
    max-width: 100%;
}
#wpforms-65-field_1, #wpforms-65-field_2, #wpforms-65-field_3 {
    max-width: 100%;
}

#wpforms-65-field_1-container, #wpforms-65-field_2-container, #wpforms-65-field_3-container, #wpforms-65-field_4-container {
    padding: 2px 0;
}

#wpforms-submit-65{
    background-color: #1f20c8;
}

/* Target all text/email inputs in the form */
#wpcf7-f517-o1 input[type="text"],
#wpcf7-f517-o1 input[type="email"],
#wpcf7-f517-o1 input[type="tel"],
#wpcf7-f517-o1 textarea {
    max-width: 100%;
    width: 100%;
}

/* Field container spacing */
#wpcf7-f517-o1 p {
    padding: 2px 0;
    margin: 0;
}

/* Submit button */
#wpcf7-f517-o1 input[type="submit"] {
    background-color: #1f20c8 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    cursor: pointer;
}

#wpcf7-f517-o1 input[type="submit"]:hover {
    background-color: #1518a0 !important;
}




#wpforms-65 {
    margin: 0;
    width: 100%;
}

/* Single Post Parallax Background */
#single-post {
    width: 100%;
    min-height: 100vh;
    background-image: url('../img/parallax2.avif'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 57px;
}

/* Content Container */
.single-post-main {
    margin: 0 auto;
}

/* Article */


/* Header */
.single-post-header {
    text-align: center;
    background-color: rgba(247, 247, 247, 0.8);
}

.single-post-title {
    font-size: 85px;
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0;
}

.single-post-meta {
    margin-top: 10px;
}

.single-post-date {
    font-size: 40px;
    color: #777;
}

/* Content */
.single-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.single-post-content .post-body{
    padding: 10px;
    background-color: #fff;
    margin: 20px;
}

.single-post-image-body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(247, 247, 247, 0.8);
    width: 550px;
    height: 550px;
}

.single-post-image {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* Navigation */
.single-post-navigation {
    margin-top: 30px;
    font-size: 16px;
}

.nav-previous, .nav-next {
    flex: 0 0 150px;
    width: 150px;
}

.nav-previous a, .nav-next a {
    border-radius: 5px;
    font-size: 30px;
    background-color: #fff;
    display: block;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    padding: 5px 15px;
}

.nav-previous a:hover, .nav-next a:hover {
    text-decoration: underline;
}



.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-bottom: 20px;
}



/* Tokushu Page */

/* Colors
c5c5c5 header text
70798b header info
303f92 blue line
f7f7f7 light gray
475771 header text
d0d7e3 light blue background


*/

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.header-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #c5c5c5;
    margin-top: 40px;
    font-size: 1.5em;
}

.header-block::after {
    content: "";
    display: block;
    width: 100%;
    height: 10px;
    border-top: #303f92 solid 5px;
    margin-bottom: 10px;
}


.header-text {
    color: #717a8b;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}


.inner-header {
    color: #475771;
    margin-bottom: 10px;
}

.inner-text {
   margin-bottom: 10px;
}

.main-image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0 60px 0;
    width:100%;
    gap: 25px;
}

.image-block {
    max-width: 800px;
}

.image-text-block-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 20px 0;
}

.image-text-block-group .image-text-block {
    height: 175px;
}

.image-text-block {
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 20px 20px;
    border-radius: 5%;
    background-color: #f8f8f7;
    justify-content: space-evenly;
}

.bullet-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 1em 2em; */
    list-style-position: inside;
    list-style: none;
}

.bold-text {
    font-weight: 700;
    color: #000000;
}



.margin-left {
    margin-left: 20px;
}

#kikaku-b .grid-header {
    padding: 0;
}

.grid-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding: 0 60px;
    margin: 30px 0 10px 0;
    color: #475771;
}

.grid-container__A {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #d0d7e3;
    width: 100%;

}

#kikaku .grid-container__child, #insatsu .grid-container__child {
    grid-template-rows: repeat(2, 1fr);
    padding-bottom: 50px;
}

.grid-container__child {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 100px;
grid-row-gap: 30px;
/* background-color: #d0d7e3; */
padding: 0px 60px 60px 60px;
width: 100%;
}

#setup .grid-container__child {
    display: flex;
    max-width: 100%;
    overflow: hidden;
}

#setup-b {
display: flex;
max-width: 100%;
overflow: hidden;
}

#setup .grid-container__A .grid-container__child {
 display: flex;
 flex-direction: column;
 margin-top: 25px;
 max-width: 100%;
}

#setup .grid-container__A .grid-inner__child .child-text {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
}


#setup .icon-block__child .inner-image img {
    max-height: 150px;
    width: 100%;
}

#setup .icon-block__child .arrow img {
    max-height: 30px;
    width: 100%;
}

#setup-b .inner-child {
       padding: 20px;
}

#setup-b .inner-child .inner-image img{
    max-height: 100px;
}


#setup-grid-a .blue-big{
  font-size: 30px;
  color: #233c95;
  }

#setup-grid-a .icon-block{
 justify-content: center;
}


.grid-inner__child {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 25px;
    background-color: #f7f7f7;
    max-height: 145px;
    justify-content: space-between;
}

.grid-inner__child p {
    font-size: 16px;
    text-align: left;
}

#kikaku-grid-a .grid-inner__child, #insatsu-grid-a .grid-inner__child {
    flex-direction: row;
}

#insatsu-grid-a .grid-inner__child {
     max-height: 230px;
}


/* .div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 2 / 1 / 3 / 2; }
.div4 { grid-area: 2 / 2 / 3 / 3; }
.div5 { grid-area: 3 / 1 / 4 / 2; }
.div6 { grid-area: 3 / 2 / 4 / 3; } */


.grid-container__B {
display: grid;
width: 100%;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 60px;
grid-row-gap: 40px;
margin: 60px 0;
padding: 0 60px;
}

/* .grid-container__B {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 100px;
} */

.grid-container__B .grid-block {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
}

.grid-container__B .inner-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.grid-container__B .case-text {
}

.grid-container__B .case-text .inner-header {
    font-size: 24px;
    margin-bottom: 10px;
}

.grid-container__B .case-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #f9f9f9; */
}

.grid-container__B .case-image img {
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
}



.grid-container__child1 {
display: flex;
flex-direction: row;
gap: 300px;
}




.grid-container__B2 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 65px;
margin-bottom: 50px;
}



.divA { grid-area: 1 / 1 / 2 / 2; }
.divB { grid-area: 1 / 2 / 2 / 3; }
.divC { grid-area: 2 / 1 / 3 / 2; }
.divD { grid-area: 2 / 2 / 3 / 3; }


#kikaku-b {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 80px 0 0 0;
    grid-row-gap: 0;
}


.grid-container__childB {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 60px;
grid-row-gap: 15px;
/* background-color: #d0d7e3; */
}

.icon-block {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.icon-block__child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.icon-block__child .inner-image img {
    max-height: 70px;
    width: 100%;
}

.icon-block__child .arrow img {
    max-height: 30px;
    width: 100%;
}

.inner-child {
    display: flex;
    flex-direction: column;
    /* padding: 20px; */
    border-radius: 5px;
    text-align: left;
}

.grid-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-radius: 25px;
    max-height: 230px;
    width: 100%;
    background-color: #f7f7f7;
    list-style-position: inside;
}

.no-background {
    background-color: transparent;
    padding: 0;
}

.grid-block-image {
width: 100%;
height: 250px;
}


.grid-block-i {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    border-radius: 25px;
    max-height: 230px;
    width: 100%;
    background-color: #d0d7e3;
}

#kikaku-b_s p{
    padding: 10px;
    font-size: 16px;
}




.child-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inner-header {
    font-size: 24px;
    margin-bottom: 10px;
    color: #303f92;
}

.inner-para-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 5px;
}

.child-image {
    max-width: 150px;
}

.grid-container__C {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.grid-container__C .grid-container__child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(1, 1fr);
    gap: 100px;
}

.grid-container__C .faq-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr); /* Forces equal height rows */
    gap: 30px;
}

.grid-container__C .grid-block-i {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}



.grid-container__C .grid-block-i {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.child1 { grid-area: 1 / 1 / 2 / 2; }
.child2 { grid-area: 1 / 2 / 2 / 3; }
.child3 { grid-area: 2 / 1 / 4 / 2; }
.child4 { grid-area: 2 / 2 / 3 / 3; }
.child5 { grid-area: 3 / 1 / 4 / 2; }
.child6 { grid-area: 3 / 2 / 4 / 3; }



/* Media Sizes */

@media(min-width: 1440px) {
    .hero-button {
        left: 16%;
    }
}

@media (max-width: 1024px) {

    .main-content__info p {
        font-size: 25px;
    }
    
    .parallax-1 {
        height: 170vh;
    }

    .parallax__content {
        padding: 30px 20px 20px 20px;
        width: 71%;
    }

    .parallax__content p {
        /* font-size: 15px; */
    }

    .stats__number {
        font-size: 60px;
    }
    .stats__item {
        min-width: 120px;
    }

    .stats__label {
        font-size: 20px;
    }

    .main-parallax__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; 
        text-align: center;
        color: white;
        padding-top: 55px;
    }
    
    .main-parallax__content h2 {
        color: rgb(60,60,60);
        font-size: 45px;
        
    }
    
    .main-parallax__content p {
        font-size: 20px;
        margin-top: 10px;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }
    
    .recent-post {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .recent-post a {
        display: block;
    }
    
    .recent-post img {
        height: auto;
        object-fit: cover;
    }
    
    .recent-post h3 {
        font-size: 20px;
        margin: 0 0 10px;
    }
    
    .recent-post p {
        font-size: 16px;
        margin: 0;
    }
    
    .post-date {
        color: rgb(60, 60, 60);
        text-align: left;
        font-size: 35px;
    }
    
    .upper-banner-container {
        width: 100%;
        height: 100%;
        padding: 200px 0px 150px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    .blog-posts-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: black;
        max-width: 500px;
    }
    
    #back-btn {
        padding: 10px 20px;
        background: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 15px;
        margin: 20px 0;
        max-width: 500px;
        width: 100%;
    }

}

@media (min-width: 769px) and (max-width: 918px) {
    .nav-menu a {
        font-size: 11px;
    }
}


@media (min-width: 424px) and (max-width: 768px) {

    .main-content h2, .parallax h2, .products h2, .contact h2, .gallery h2, .map h2 {
        font-size: 36px;
    }

    .hero__header h1 {
        font-size: 23px;
        text-align: center;
    }

    .hero-button {
        display: none;
    }

    .hero__content {
        padding: 20px;
    }

    .header__divider {
        width: 220px;
    }

    .hero__body-text p {
        font-size: 11.5px;
    }

    .main-content__body {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-rows: repeat(2, 1fr);
    }

    .main-content__info p {
        font-size: 13px;
    }

    .mobile-static-container {
        display: flex;
    }
 
    .parallax-1 {
        background-image: none;
        flex-direction: column;
        height: 100%;
    }

    .parallax__content .header__divider {
        width: 145px;
    }

    .parallax__content {
        padding: 30px 20px 20px 20px;
        width: 100%;
    }

    .parallax__content p {
        /* font-size: 13px; */
    }

    .products p {
        font-size: 19px;
        word-break: keep-all;
    }

    .company-info-table td {
        font-size: 14px;
    }

    .stats {
        padding: 25px;
    }
    .stats__item {
        min-width: 130px;
    }
    .stats__container {
        flex-direction: column;
        gap: 16px;
    }

    .stats__divider {
        width: 95px;
        height: 5px;
    }

    .gallery__container {
        display: flex;
        flex-direction: column;
    }

    .gallery .header__divider {
        width: 150px;
    }
    
    .products {
        margin-top: 30px;
    }

    .product__content-header .header__divider {
        width: 330px;
    }

    .contact__container {
        flex-direction: column;
        gap: 80px;
    }

    .contact__form__upper {
        flex-direction: column;
        gap: 70px;
    }

    .contact__form, .contact__info {
        width: 100%;
    }

    .stats__number {
        font-size: 70px;
    }
    
    .stats__label {
        font-size: 20px;
    }

    .map__content-header .header__divider {
        width: 220px;
    }

    .main-parallax__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; 
        text-align: center;
        color: white;
        padding-top: 55px;
    }
    
    .main-parallax__content h2 {
        color: rgb(60,60,60);
        font-size: 40px;
        
    }
    
    .main-parallax__content p {
        font-size: 20px;
        margin-top: 10px;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }

    .single-post-title {
        font-size: 50px;
    }
    
    .recent-post {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .recent-post a {
        display: block;
    }
    
    .recent-post img {
        width: 300px;
        height: auto;
        object-fit: cover;
    }
    
    .recent-post h3 {
        font-size: 20px;
        margin: 0 0 10px;
    }
    
    .recent-post p {
        font-size: 16px;
        margin: 0;
    }
    
    .post-date {
        color: rgb(60, 60, 60);
        text-align: left;
        font-size: 25px;
    }
    
    .upper-banner-container {
        width: 100%;
        height: 100%;
        padding: 200px 0px 150px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    .blog-posts-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: black;
        max-width: 320px;
    }
    
    #back-btn {
        padding: 10px 20px;
        background: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 15px;
        margin: 20px 0;
        max-width: 320px;
        width: 100%;
    }
}

@media (min-width: 376px) and (max-width: 425px) {

    .hero__content {
        left: 10px;
        padding: 10px 10px;
    }

    .hero__header h1 {
        margin-left: 17px;
        font-size: 18px;
        text-align: center;
    }

    .main-content h2, .parallax h2, .products h2, .contact h2, .gallery h2, .map h2 {
        font-size: 30px;
    }

    .main-content {
        padding: 25px 15px 50px;
    }

    .main-content p {
        font-size: 13px;
    }


    .main-content__body {
        display: flex;
        flex-direction: column;
    }

    .hero__body-text p {
        font-size: 10px;
    }

    .header__divider {
        width: 190px;
    }

    .hero-button {
        display: none;
        }

    .parallax-1 {
        align-items: flex-end;
    }

    .parallax__content {
        height: 65%;
        width: 100%;
        padding: 20px 20px 20px 20px;
    }

    .parallax__content .header__divider {
        width: 145px;
    }

    .parallax h2 {
        font-size: 35px;
    }

    .parallax__content p {
        /* font-size: 10px; */
    }

    .stats__container {
        flex-direction: column;
    }

    .stats__divider {
        width: 100px;
        height: 2px;
    }

    .gallery {
        padding: 10px;
    }

    .gallery .header__divider {
        width: 125px;
    }

    .gallery__container {
        display: flex;
        flex-direction: column;
    }

    .lightbox img {
        max-height: 160px;
    }

    .lightbox .next, .lightbox .prev {
        top: 80%;
    }

    .lightbox .close {
        top: 74%;
        right: 40%;
    }

    .products {
        padding: 10px;
        margin-top: 25px;
    }

    .products-info-container  {
        margin-bottom: 20px;
    }
    

    .product__content-header .header__divider {
        width: 285px;
    }

    .contact__container{
        flex-direction: column;
        gap: 30px;
    }

    .contact__form, .contact__info {
        width: 100%;
    }

    .gallery__item h3 {
        font-size: 12px;
    }

    .map  {
        padding: 20px;
    }

    .map__content-header .header__divider {
        width: 180px;
    }

    .contact__form__upper {
        flex-direction: column;
        gap: 70px;
    }

    .contact__form .contact__info-text {
        font-size: 13px;
    }

    .main-parallax__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; 
        text-align: center;
        color: white;
        padding-top: 55px;
    }
    
    .main-parallax__content h2 {
        color: rgb(60,60,60);
        font-size: 40px;
        
    }
    
    .main-parallax__content p {
        font-size: 20px;
        margin-top: 10px;
    }

    .single-post-title {
        font-size: 50px;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }
    
    .recent-post {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .recent-post a {
        display: block;
    }
    
    .recent-post img {
        width: 300px;
        height: auto;
        object-fit: cover;
    }
    
    .recent-post h3 {
        font-size: 20px;
        margin: 0 0 10px;
    }
    
    .recent-post p {
        font-size: 16px;
        margin: 0;
    }
    
    .post-date {
        color: rgb(60, 60, 60);
        text-align: left;
        font-size: 25px;
    }
    
    .upper-banner-container {
        width: 100%;
        height: 100%;
        padding: 200px 0px 150px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    .blog-posts-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: black;
        max-width: 320px;
    }
    
    #back-btn {
        padding: 10px 20px;
        background: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 15px;
        margin: 20px 0;
        max-width: 320px;
        width: 100%;
    }
    

}

@media (width: 343px) {
    #single-post {
        padding-top: 57px;
    }
}

@media (min-width: 319px) and (max-width: 375px) {
    /* Main Content */
    .main-content {
        padding: 25px 10px 50px; 
    }

    .main-content__body {
        flex-direction: column;
    }

    .main-content h2 {
        font-size: 30px;
    }

    .main-content__info p {
        font-size: 17px;
    }

    /* Hero Section */
    .hero__header h1 {
        font-size: 17px;
        text-align: center;
    }

    .hero__body-text p {
        font-size: 9px;
    }

    .hero-button {
        display: none;
    }

    .header__divider {
        max-width: 190px;
    }

    /* Parallax Section */
    .parallax-1 {
        align-items: flex-end;
    }

    .parallax h2 {
        font-size: 30px; 
    }

    .parallax__content {
        height: 60%; 
        width: 100%;
        padding: 20px;
    }

    .parallax__content .header__divider {
        width: 120px;
    }

    .parallax__content p {
        font-size: 20px;
    }

    /* Stats Section */
    .stats__container {
        flex-direction: column;
    }

    .stats__divider {
        width: 100px;
        height: 2px;
    }

    /* Gallery Section */
    .gallery {
        padding: 10px;
    }

    .gallery__content-header{
        margin-bottom: 15px;
    }

    .gallery__container {
        display: flex;
        flex-direction: column;
    }

    .gallery h2 {
        font-size: 30px;
    }

    .gallery .header__divider {
        width: 210px;
    }

    .gallery__item h3 {
        font-size: 18px;
        padding: 10px;
    }

    .custom-lightbox .lightbox-content{
        height: auto;
    }

    .custom-lightbox .lightbox-header h2{
        font-size: 16px;
    }

    /* Lightbox */
    .custom-lightbox .lightbox-image img {
        max-height: 160px;
    }

    .custom-lightbox .lightbox-image-caption {
        font-size: 6px;
    }

    .custom-lightbox .lightbox-description {
        margin-top: 0;
    }

    .custom-lightbox .lightbox-close {
        top: -5px;
        right: 3px;
    }

    .lightbox .next, .lightbox .prev {
        top: 80%;
    }

    .lightbox .close {
        top: 74%;
        right: 40%;
    }

    /* Products Section */
    .products {
        margin-top: 40px; 
        padding: 10px 20px; 
    }

    .products h2 {
        font-size: 30px;
    }

    .products p {
        font-size: 18px;
    }

    .product__content-header .header__divider {
        width: 280px; 
    }

    /* Map Section */
    .map {
        padding: 10px;
    }

    .map h2 {
        font-size: 35px;
    }

    .maps-container {
        margin-top: 10px;
    }

    .map__content-header .header__divider {
        width: 210px;
    }

    /* Contact Section */
    .contact__container {
        gap: 50px; 
        flex-direction: column;
    }

     .contact__form__upper {
        flex-direction: column;
        gap: 70px;
    }

    .contact__form, .contact__info {
        width: 100%;
    }

    .wpforms-container .wpforms-submit-container {
        display: flex;
        justify-content: center;
    }

    .contact__recruitment-text {
        font-size: 15px;
    }

    .main-parallax__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; 
        text-align: center;
        color: white;
        padding-top: 55px;
    }
    
    .main-parallax__content h2 {
        color: rgb(60,60,60);
        font-size: 40px;
        
    }
    
    .main-parallax__content p {
        font-size: 20px;
        margin-top: 10px;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }
    
    .recent-post {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .recent-post a {
        display: block;
    }
    
    .recent-post img {
        width: 300px;
        height: auto;
        object-fit: cover;
    }
    
    .recent-post h3 {
        font-size: 20px;
        margin: 0 0 10px;
    }
    
    .recent-post p {
        font-size: 16px;
        margin: 0;
    }
    
    .post-date {
        color: rgb(60, 60, 60);
        text-align: left;
        font-size: 25px;
    }
    
    .upper-banner-container {
        width: 100%;
        height: 100%;
        padding: 200px 0px 150px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    .blog-posts-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: black;
        max-width: 320px;
    }
    
    #back-btn {
        padding: 10px 20px;
        background: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 15px;
        margin: 20px 0;
        max-width: 320px;
        width: 100%;
    }

    #single-post {
        padding-top: 84px;
    }

    

    .single-post-title {
        font-size: 50px;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES FOR SERVICE PAGES
   ============================================ */

/* Tokushu, Kikaku, Insatsu, Setup Pages - Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 20px;
    }

    .header-block h1 {
        font-size: 36px;
    }

    .header-text p {
        font-size: 16px;
    }

    .main-image-container {
        padding: 20px;
    }

    .image-text-block-group {
        flex-direction: column;
        gap: 30px;
    }

    .grid-container__child {
        grid-column-gap: 50px;
        grid-row-gap: 20px;
        padding: 0 30px 30px 30px;
    }

    .grid-header {
        padding: 0 30px;
        font-size: 20px;
    }

    .grid-container__B {
        grid-column-gap: 30px;
        padding: 0 30px;
    }

    .grid-container__C .grid-container__child {
        gap: 50px;
    }
}

/* Tokushu, Kikaku, Insatsu, Setup Pages - Mobile (768px and below) */
@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    .header-block h1 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 14px;
    }

    .main-image-container {
        padding: 15px;
        margin: 20px 0 0px 0;
    }

    .image-text-block {
        padding: 15px;
    }

    .image-text-block-group {
        gap: 20px;
    }

    .image-text-block-group .image-text-block {
        height: auto;
    }

    #insatsu-grid-a .grid-inner__child{
        max-height: 100%;
    }

    .grid-container__A {
        padding: 20px 0;
    }

    .grid-container__child {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        padding: 0 15px 15px 15px;
    }

    #kikaku .grid-container__child, 
    #insatsu .grid-container__child {
        grid-template-rows: auto;
    }

    .grid-header {
        padding: 0 15px;
        font-size: 18px;
    }

    .grid-inner__child {
        flex-direction: column;
        max-height: none;
        padding: 15px;
    }

    #kikaku-grid-a .grid-inner__child, 
    #insatsu-grid-a .grid-inner__child {
        flex-direction: column;
        align-items: center;
    }

    .child-image {
        max-width: 175px;
        text-align: center;
    }

    .grid-container__B {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        grid-row-gap: 20px;
        padding: 0 15px;
    }

    .grid-container__B .inner-child{
        padding: 0;
        }

    .grid-block {
        flex-direction: column;
        max-height: none;
        padding: 15px;
    }

    .grid-container__C .grid-container__child {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 15px 15px;
    }

    .grid-block-i {
        max-height: none;
    }

    /* Setup specific */
    #setup .grid-container__child {
        flex-direction: column;
    }

    #setup .grid-container__A .grid-container__child {
        padding: 0 15px 15px 15px;
    }

    .icon-block {
        flex-wrap: wrap;
        gap: 10px;
    }

    .icon-block__child .inner-image img {
        max-height: 60px;
    }

    #setup-b .grid-container__childB {
        grid-template-columns: 1fr;
    }

    .grid-container__B2 .grid-container__child1 {
        flex-direction: column;
        gap: 20px;
    }

    /* Kikaku specific */
    #kikaku-b {
        margin-top: 40px;
    }

    .grid-container__childB {
        grid-template-columns: 1fr;
        padding: 0 15px 15px 15px;
    }

    #kikaku-b_s p {
        font-size: 14px;
        padding: 5px;
    }
}

/* Tokushu, Kikaku, Insatsu, Setup Pages - Small Mobile (425px and below) */
@media (max-width: 425px) {
    .header-block h1 {
        font-size: 24px;
    }

    .header-text p {
        font-size: 18px;
    }

    .image-text-block {
        padding: 12px;
        font-size: 13px;
    }

    .inner-header p {
        font-size: 16px;
    }

    .grid-header {
        font-size: 16px;
    }

    .grid-inner__child {
        padding: 12px;
    }

    .grid-inner__child p {
        font-size: 14px;
    }

    .grid-container__child2 {
        margin: 10px;
    }

    .grid-block {
        padding: 12px;
    }

    .inner-header {
        font-size: 16px;
    }

    .grid-block-i {
        padding: 12px;
    }

    .icon-block__child .inner-image img {
        max-height: 50px;
    }

    .icon-block__child .inner-para {
        font-size: 14px;
    }

    #setup-b .inner-child .inner-image img {
        max-height: 80px;
    }

    .bullet-list {
        grid-template-columns: 1fr;
        font-size: 14px;
    }

    .products-info-container td {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 90px;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES FOR SINGLE POST
   ============================================ */

/* Single Post - Tablet */
@media (max-width: 1024px) {
    .single-post-title {
        font-size: 70px;
    }

    .single-post-date {
        font-size: 35px;
    }

    .single-post-image-body {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .single-post-image {
        max-width: 100%;
    }

    .single-post-content .post-body {
        max-width: 90%;
        margin: 20px auto;
    }
}

/* Single Post - Mobile (768px and below) */
@media (max-width: 768px) {
    #single-post {
        padding-top: 60px;
    }

    .single-post-title {
        font-size: 45px;
        padding: 20px 15px;
    }

    .single-post-date {
        font-size: 28px;
    }

    .single-post-image-body {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .single-post-image {
        max-width: 100%;
        height: auto;
    }

    .single-post-content {
        font-size: 16px;
    }

    .single-post-content .post-body {
        max-width: 95%;
        margin: 15px auto;
        padding: 15px;
    }

    .nav-links {
        flex-direction: row;
        gap: 15px;
        padding: 20px 15px;
        align-items: center;
    }

    .nav-previous, .nav-next {
        flex: 0 0 150px;
        width: 150px;
    }

    .nav-previous a, .nav-next a {
        font-size: 24px;
    }
}

/* Single Post - Small Mobile (425px and below) */
@media (max-width: 425px) {
    .single-post-title {
        font-size: 32px;
        padding: 15px 10px;
    }

    .single-post-date {
        font-size: 22px;
    }

    .single-post-image-body {
        padding: 10px;
    }

    .single-post-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .single-post-content .post-body {
        padding: 12px;
        margin: 10px;
    }

    .nav-previous, .nav-next {
        flex: 0 0 150px;
        width: 150px;
    }

    .nav-previous a, .nav-next a {
        font-size: 20px;
        padding: 8px 12px;
    }
}



