.page-container .page-contents .column .videos {
    margin-top: 100px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}


.page-container .page-contents .column .videos iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-center{
    text-align: center;
}

.bold{
    font-weight:bold;
}

.video {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.nav-button {
    background-color: #43a4e1;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "Hiragino Sans", Meiryo, sans-serif;
    font-weight: normal;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    height: 45px;
    line-height: 21px;
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #43a4e1;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    background-color: #ffffff;
    color: #43a4e1;
    text-decoration: none;
}

.nav-button:hover::before {
    opacity: 1;
}

/* MIRAIE Section Styles */
.miraie-container {
    background: #e8eaed;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
}

.miraie-header {
    text-align: center;
    margin-bottom: 5px;
}

.miraie-logo {
    max-width: 200px;
    height: auto;
}

.miraie-content {
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 25px;
    align-items: center;
    margin-bottom: 40px;
}

.product-image {
    width: 80%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 40px auto 0 auto;
    display: block;
}

.sub-heading {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 15px 0;
}

.chainwaiter-intro {
    padding: 0 20px;
    margin-top: -40px;
}

.chainwaiter-intro .sub-heading {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.product-item {
    background: #e8eaed;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.product-logo {
    max-width: 150px;
    height: auto;
    flex-shrink: 0;
}

.product-detail {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Text Hierarchy */
.certification-text {
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
    font-size: 18px;
}

.small-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* MIRAIE Technology with Video Side-by-Side */
.miraie-technology-video {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin: 20px 0;
    padding-top: 20px;
    position: relative;
}

.miraie-technology-video .video-container {
    margin-top: 110px;
}

.miraie-technology-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    right: -40px;
    height: 8px;
    background: white;
}

.miraie-technology-video .technology-content {
    padding-top: 0;
}

.miraie-technology-video .sub-heading {
    margin-top: 0;
}

.technology-content {
    padding-right: 20px;
}

/* Video Container (updated) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Comparison Images */
.comparison-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

/* CHAINWAITER Section */
.chainwaiter-container {
    background: #f8f9fa;
    padding: 10px 0 40px 0;
    border-radius: 10px;
    margin: 15px 0 30px 0;
}

/* CHAINWAITER Heading with Logo */
.chainwaiter-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

.chainwaiter-heading::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.chainwaiter-heading::before {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 40%;
    height: 2px;
    background: #0095d9;
}

.chainwaiter-heading .l-heading {
    margin-bottom: 0;
    padding-bottom: 0;
}

.chainwaiter-heading .l-heading::before,
.chainwaiter-heading .l-heading::after {
    display: none;
}

.chainwaiter-logo-small {
    max-width: 100px;
    height: auto;
    margin-bottom: -5px;
}

.chainwaiter-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

/* Product Models - Vertical Layout */
.product-models-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
    padding: 0 20px;
}

.model-item-horizontal {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 30px;
    align-items: center;
    background: #e8eaed;
    padding: 15px 20px;
    border-radius: 10px;
}

.model-text {
    padding-right: 20px;
}

.model-image-wrapper {
    text-align: center;
}

.model-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.model-subtitle {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.model-description {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.model-image {
    max-width: 80%;
    height: auto;
    margin: 10px auto;
    border-radius: 5px;
    display: block;
}

/* Features */
.chainwaiter-features {
    padding: 0 20px;
}

.features-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.feature-group {
    background: #e8eaed;
    padding: 20px;
    border-radius: 10px;
}

.feature-group p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.feature-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    text-align: center;
}

/* Z1plus Features with Image Side-by-Side */
.z1plus-features-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 30px 0;
}

.z1plus-features {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.z1plus-image {
    text-align: center;
}

.z1plus-image .features-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
}

.features-ul {
    list-style-type: none;
    padding-left: 0;
}

.features-ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
}

.features-ul li:last-child {
    border-bottom: none;
}

/* Video and Examples Side-by-Side */
.video-examples-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

.video-section {
    text-align: center;
    margin-top: 0;
}

.video-section .video-container {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    height: 250px;
    margin-top: 0;
}

.video-section .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title-centered {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-top: 15px;
}

/* Downloads and Links */
.comparison-resources {
    padding: 0 20px;
}

.comparison-table {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.housing-facility-image-section {
    text-align: center;
    margin: 30px 0;
}

.housing-facility-image {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    display: block;
}

.download-section {
    text-align: center;
    margin: 30px 0;
}

.download-button {
    background-color: #43a4e1;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "Hiragino Sans", Meiryo, sans-serif;
    font-weight: normal;
    font-size: 15px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 45px;
    line-height: 21px;
    border: none;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #43a4e1;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover {
    background-color: #ffffff;
    color: #43a4e1;
    text-decoration: none;
}

.download-button:hover::before {
    opacity: 1;
}

.video-examples-section .installation-examples {
    text-align: center;
    margin: 0;
}

.examples-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.examples-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.examples-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.examples-text {
    display: inline-block;
    background-color: #43a4e1;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "Hiragino Sans", Meiryo, sans-serif;
    font-weight: normal;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 15px;
    height: 45px;
    line-height: 21px;
    border: none;
    position: relative;
    overflow: hidden;
}

.examples-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #43a4e1;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.examples-text:hover {
    background-color: #ffffff;
    color: #43a4e1;
    text-decoration: none;
}

.examples-text:hover::before {
    opacity: 1;
}

@media screen and (max-width: 767px){
    .page-container .page-contents {
        padding-bottom: 75px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 80%;
        text-align: center;
    }
    
    .miraie-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .miraie-technology-video {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .technology-content {
        padding-right: 0;
    }
    
    .miraie-container,
    .chainwaiter-container {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .model-item-horizontal {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .model-text {
        padding-right: 0;
    }
    
    .product-models-vertical {
        gap: 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .z1plus-features-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-examples-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .miraie-logo {
        max-width: 150px;
    }
    
    .chainwaiter-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chainwaiter-logo-small {
        max-width: 80px;
        margin-bottom: 0;
    }
    
    .chainwaiter-logo {
        max-width: 200px;
    }
    
    .examples-image {
        max-width: 250px;
    }
    
    .sub-heading {
        font-size: 18px;
    }
    
    .model-title {
        font-size: 16px;
    }
}
