/* General structure */
.solutions-page {
    width: 100%;
    overflow-x: hidden;
}
.solutions-page .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 25px;
}
.solutions-page .section-padding {
  padding-top: 110px;
  padding-bottom: 50px;
  padding-right: 20px;
  padding-left: 20px;
}
.solutions-page .relative {
    position: relative;
}
.solutions-page .opacity-0 {
    opacity: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 610px;
  display: flex;
  align-items: flex-start;
  border-bottom: 10px solid #cb2f20;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0; /* Start from top */
    padding-bottom: 100px;
    width: 100%;
}
.red-polygon {
  position: relative;
  width: 100%;
  max-width: 450px;
  min-height: 330px;
  margin-left: 40px;
}
.polygon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 10%, 0% 100%);
  background: linear-gradient(to right, #ce112d 80%, hsla(0,0%,100%,0.00) 0%);
    z-index: 1;
}
.polygon-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 120px;
  padding-left: 80px;
  color: #fff;
  z-index: 2;
}
.red-polygon .line {
    width: 100px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 20px;
}
.red-polygon h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 5px;
}
.red-polygon p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
}
.hero-product {
    position: absolute;
    right: 15%;
    bottom: -240px;
    width: 500px;
    z-index: 3;
}
.hero-product img {
    width: 100%;
    display: block;
    animation: floatDevice 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floatDevice {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Title */
.features-title-section {
    padding-top: 180px;
    padding-bottom: 40px;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.title-line {
    width: 40px;
    height: 3px;
    background-color: #CE0E2D;
    margin: 0 auto;
}

/* Common Grid Layout */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 35px;
}
.flex-grid .left-col, .flex-grid .right-col {
    flex: 1;
    min-width: 300px;
}
.red-short-line {
    width: 30px;
    height: 3px;
    background-color: #CE0E2D;
    margin-bottom: 15px;
}
.text-content h3 {
    font-size: 34px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.text-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* SEERes Section */
.solutions-page .seeres-section {
    position: relative;
    padding: 0;
    min-height: 460px;
}
.seeres-bg-block {
  position: absolute;
  top: 18px;
  left: 0;
  width: 50%;
  height: 430px;
  background-color: #D6D1C4;
  z-index: -1;
}
.seeres-section .flex-grid {
    gap: 0;
    align-items: stretch;
}
.seeres-section .left-col {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}
.seeres-section .left-col img {
    width: 890px;
    max-width: none; 
    height: 460px;
    object-fit: contain;
    display: block;
}
.seeres-section .right-col {
  flex: 0 0 50%;
  display: flex;
  padding-top: 90px;
  padding-right: 20px;
  padding-left: 60px;
  padding-bottom: 0;
}

/* Sleep Apnea Section */
.apnea-section {
  position: relative;
  padding: 170px 0;
  color: #fff;
  overflow: hidden;
  margin-top: 15px;
}
.apnea-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.apnea-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apnea-section .red-short-line {
    margin: 0 auto 15px;
}
.apnea-section h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}
.apnea-section p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 450px;
}

/* API Section */
.api-section {
    padding: 100px 0;
}
.api-section .left-col {
}
.api-section .right-col img {
    width: 100%;
    margin: 0 auto;
}

/* Telemedicine Section */
.telemed-section {
    position: relative;
    margin-bottom: 40px;
}
.telemed-bg-split {
    position: absolute;
    top: 10%;
    left: 0;
    width: 50%;
    height: 80%;
    background-color: #D6D1C4;
    z-index: -1;
}
.telemed-section .left-col {
    display: flex;
    justify-content: flex-end;
}
.telemed-section .left-col img {
    max-width: 100%;
    width: 450px;
}
.telemed-section .right-col {
  padding-left: 60px;
  padding-right: 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 1600px) {
  .seeres-bg-block {
    width: 50%;
  }
  .hero-section {
    min-height: 38vw;
  } 
  .hero-product {
    bottom: -200px;
    width: 30vw;
  }  
}
@media screen and (max-width: 1400px) {
  .hero-product {
    bottom: -130px;
  }  
  .seeres-bg-block {
    background-color: #FFFFFF;
  }
  .solutions-page .container {
    padding: 0 0px;
  }
  .seeres-section .left-col img {
    width: 100%;
    height: 340px;
  }
  .solutions-page .seeres-section {
    min-height: 0;
  }
  .seeres-section .right-col {
      padding-top: 40px;
      padding-right: 20px;
      padding-left: 40px;
  }
  .apnea-section {
    padding-top: 10vw;
    padding-bottom: 10vw;
    margin-top: 15px;
  }
}

@media screen and (max-width: 1200px) {
  .hero-product {
      width: 350px;
      bottom: -100px;
      right: 5%;
  }
  .red-polygon h1 {
      font-size: 36px;
  }
  .polygon-content {
      padding-top: 70px;
      padding-left: 60px;
  }
  .red-polygon {
      max-width: 340px;
      min-height: 280px;
      margin-left: 30px;
  }
  .red-polygon p {
      font-size: 16px;
  }
  .seeres-section .left-col img {
    height: 290px;
  }
}
@media screen and (max-width: 991px) {
  .polygon-content {
      padding: 60px 40px;
  }
  .right-col,
  .api-section .left-col,
  .telemed-section .right-col {
      padding: 0;
  }
  .features-title-section {
      padding-top: 80px;
  }
  .logo img {
    height: 35px;
  }
  .seeres-section .right-col {
    padding-top: 30px;
    padding-right: 20px;
    padding-left: 25px;
  }
  .text-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .text-content p {
    font-size: 15px;
    line-height: 1.6;
  }
  .telemed-section .left-col img {
      width: 280px;
  }

}

@media screen and (max-width: 767px) {
  .red-polygon h1 {
    font-size: 32px;
  }
  .red-polygon p {
    font-size: 16px;
  }
  .section-title {
    font-size: 28px;
  }
  .text-content h3 {
    font-size: 24px;
  }
  .text-content p {
    font-size: 16px;
  }
  .apnea-section h3 {
    font-size: 28px;
  }
  .apnea-section p {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-content {
    padding-bottom: 0px;
  }
  .red-polygon {
    max-width: 310px;
    min-height: 230px;
    margin-left: 20px;
  }
  .polygon-content {
    padding-top: 80px;
    padding-right: 40px;
    padding-left: 20px;
    padding-bottom: 10px;
  }
  .red-polygon .line {
    width: 70px;
    margin-bottom: 10px;
  }
  .polygon-bg {
    clip-path: polygon(0% 0%, 100% 0%, 100% 3%, 0% 100%);
    background: linear-gradient(to right, #ce112d 70%, hsla(0, 0%, 100%, 0.00) 0%);
  }
  .hero-section {
      min-height: 500px;
  }
  .hero-product {
    position: relative;
    right: 0;
    margin: 0px auto 0;
    width: auto;
    bottom: -65px;
    max-width: 320px;
  }
  .solutions-page .section-padding {
    padding-top: 40px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .seeres-section .left-col img {
    width: 100%;
    height: 100%;
  }
  .flex-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .seeres-section .right-col {
    padding-top: 40px;
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 20px;
  }
  .telemed-section {
    padding-left: 30px;
    padding-right: 30px;
  }
  .telemed-section .left-col img {
    width: 280px;
  }
  .telemed-section .left-col {
    justify-content: center;
  }
  .telemed-bg-split {
    height: 40%;
  }
  .api-section .left-col {
    margin-bottom: 20px;
  }
  .telemed-bg-split {
    width: 90%;
  }
  .seeres-section .left-col {
    display: block;
  }
  
}

/* 英文版調整 */
.lang-en .red-polygon h1 {
    font-size: 40px;
    letter-spacing: 1px;
}
.lang-en .red-polygon {
    max-width: 600px;
}
.lang-en .polygon-bg {
    background: linear-gradient(to right, #ce112d 60%, hsla(0, 0%, 100%, 0.00) 0%);
}

@media screen and (max-width: 767px) {
    .lang-en .red-polygon h1 {
        font-size: 32px;
    }
}