/*
Theme Name: Custom Theme
Theme URI: 
Author: Your Name
Author URI: 
Description: A custom WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
*/

/* Import the original styles */
/* @import url('index.css'); */ 

/* Keep original CSS styles */
body * {
  box-sizing: border-box;
}
/* Override flex-shrink for English and Japanese pages */
body.page-en *,
body.page-jp * {
  flex-shrink: initial !important;
}
body.page-en .logo,
body.page-en .lang-toggle-btn,
body.page-jp .logo,
body.page-jp .lang-toggle-btn {
  flex-shrink: 0 !important;
}
body.page-en .nav,
body.page-jp .nav {
  flex-shrink: 1 !important;
}
body {
  padding: 0;
  margin: 0;
  font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma,
    Arial, PingFang SC-Light, Microsoft YaHei;
  /* overflow: hidden; Cancel page scrollbar restriction */
}

.container {
  width: 100%;
  height: auto;      /* Change to auto to avoid forcing full parent height */
  overflow: visible; /* Change to visible to avoid scrollbar */
  background-color: #fff;
}
/* Comment out all old header styles to let styles in header file take effect */
/* 
.header {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
}
.header-japan {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
}
.logo {
  position: absolute;
  left: 348px;
  width: 136.11px;
  height: 24.55px;
  display: flex;
  align-items: center;
}
.logo img {
  width: 136.11px;
  height: 24.55px;
  display: block;
}
.nav {
  position: absolute;
  right: 322px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}
*/
/* Comment out nav a styles */
/*
.nav a {
  display: flex;
  align-items: center;
  color: #333333;
  font-size: 16px;
  text-decoration: none;
  height: 100%;
  padding: 29px 0;
  transition: color 0.2s;
}
.nav a img {
  margin-left: 8px;
  height: 24px;
  width: 24px;
  display: inline-block;
}
.nav a:hover {
  color: #1550a5;
}
*/
.banner {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("./images/sunup.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.banner_content {
  width: auto;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.banner_title {
  font-size: 100px;
  font-weight: 600;
  color: #fff;
}
.banner_text {
  width: 100%;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}
.banner_button {
  width: fit-content;
  margin-top: 50px;
  border-radius: 20px;
  padding: 6px 12px;
  border: 1px solid #fff;
  color: #fff;
  text-align: center;
}
.banner_button a {
  color: #fff !important;
  text-decoration: none;
}
.section_1 {
  width: 100%;
  min-height: 620px;   /* Use min-height instead of height to prevent content overflow */
  background-color: #fff;
  padding-top: 40px;   /* Reduce top spacing */
  padding-bottom: 40px; /* Increase bottom spacing appropriately */
}
.section_1_title, .section_2_title, .section_3_title, .section_4_title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding: 20px 0 32px 0;
  position: relative;
}

.section_1_title::after, .section_2_title::after, .section_3_title::after, .section_4_title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 2px;
  background-color: #333;
  bottom: 12px;
}
.section_1_content {
  width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section_1_content_left {
  width: 50%;
  padding: 50px;
}
.section_1_content_right {
  width: 50%;
  text-align: center;
}
.section_1_content_left_title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
}
.section_1_content_left_text1 {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  padding: 20px 0px;
}
.section_1_content_left_text2 {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  padding: 20px 0px;
}
.section_2 {
  width: 100%;
  min-height: 620px;   /* Use min-height instead of height to prevent content overflow */
  background-color: #f5f7fa;
  padding-top: 40px;   /* Reduce top spacing */
  padding-bottom: 40px;
}
.section_2_content {
  width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section_2_content_left {
  width: 55%;
  text-align: center;
}
.section_5_content_left {
  width: 55%;
  text-align: center;
}
.section_2_content_right {
  width: 50%;
  padding: 50px;
}
.section_2_content_right_title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
}
.section_2_content_right_text {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  padding: 10px 0px;
  margin-bottom: 4px;
}
.section_3 {
  width: 100%;
  padding-bottom: 80px;
  background-color: #fff;
}
.section_3_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1120px;
  height: 380px;
  margin: 0 auto;
}
.section_3_content_left {
  width: 50%;
  background-color: #1550a5ff;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  color: #fff;
  height: 100%;
  padding: 60px;
}

.section_3_content_right_title {
  font-size: 32px;
  font-weight: 600;
}
.section_3_content_left_text1 {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  padding: 20px 0px;
}
.section_3_content_right_text {
  font-size: 16px;
  font-weight: 400;
  padding: 20px 0px;
}
.section_3_content_right {
  width: 50%;
  height: 100%;
}
.section_6_content_right {
  width: 50%;
  height: 100%;
}
.section_3_content_right img {
  height: 100%;
  width: 560px;
}
.section_6_content_right img {
  height: 100%;
  width: 560px;
}

.section_4 {
  width: 100%;
  padding-bottom: 20px;
  background-image: url('./images/Frame-45.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
.section_4_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1120px;
  height: 380px;
  margin: 0 auto;
  margin-bottom: 80px;
}
.section_4_content_left {
  width: 50%;
  text-align: center;
}
.section_4_content_right {
  width: 50%;
  padding: 30px;
}

.bottom {
  width: 100%;
  height: 500px;
  background-color: #1550a5ff;
}
.bottom_content {
  width: 1120px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.bottom_content_left {
  width: 50%;
  height: 100%;
  padding: 80px 20px 0px 0px;
}
.bottom_content_right {
  width: 50%;
  height: 100%;
  padding: 80px 20px 0px 0px;
}
  .bottom_content_left_title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
  }
  .bottom_content_left_title1 {
    font-family: 'Source Han Sans CN Medium', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    line-height: 22px;
    color: #fff;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
  }
.bottom_content_left_text {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  padding: 20px 0px;
}
.footer {
  width: 100%;
  height: 100px;
  background-color: #144394ff;
}
.footer_content {
  width: 100%;
  height: 100%;
  line-height: 100px;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.solutions-row {
  display: flex;
  margin-top: 32px;
  gap: 0;
  align-items: flex-start;
}
.solution-box {
  width: 118px;
  height: 124px;
  background: #fff;
  border: 1px solid #e6eaf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 80px;
  box-sizing: border-box;
}
.solution-box img {
  width: 25px;
  height: 25px;
  margin-bottom: 8px;
  margin-top: 0;
}

.solution-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-title, .solution-subtitle {
  color: #666666 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: center;
}

.white-text-custom {
  color: #fff !important;
}

.section_2_content_left img {
  border-radius: 9px;
}
.section_5_content_left img {
  height: 100%;
  width: 560px;
}


.bottom_contact_block {
  width: 359px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bottom_contact_info {
  font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.bottom_contact_item {
  margin-bottom: 4px;
  white-space: nowrap;
}

.bottom_contact_item:last-child {
  margin-bottom: 0;
}

.bottom_contact_address {
  font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.contact-form-title, .contact-form-label {
  color: #fff !important;
}

.contact-form-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 28px;
}

.section_4_content_left img[src$='2.png'] {
  border-radius: 10px;
} 

.contact-form-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: bold;
}

.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.cf7-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 200px;
}

.cf7-col-name .cf7-name-row {
  display: flex;
  gap: 8px;
}

.contact-form-label {
  color: #fff;
  margin-bottom: 5px;
  font-size: 16px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
}

.wpcf7-form .cf7-col-message input[type="text"] {
  width: 100%;
}

.wpcf7-form .cf7-col-submit {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

.wpcf7-submit {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-left: 12px;
}

.wpcf7-submit:hover {
  background-color: #0056b3;
}

body.page-en .section_3_content,
body.page-en .section_4_content,
body.page-en .bottom_content {
  height: auto !important;
  min-height: 380px !important;
  align-items: flex-start !important;
}

body.page-en .section_3_content_left,
body.page-en .section_3_content_right,
body.page-en .bottom_content_left,
body.page-en .bottom_content_right {
  height: auto !important;
}

/* New header layout for English and Japanese pages */
body.page-en .header,
body.page-jp .header {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  position: relative !important;
  padding: 0 !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
  min-height: 70px !important;
  background: #fff !important;
  gap: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
}

/* Force override body * flex-shrink: 0 */
body.page-en .header *,
body.page-jp .header * {
  flex-shrink: inherit !important;
}
body.page-en .logo,
body.page-jp .logo {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: static !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  margin-right: 60px !important;
  margin-left: 0 !important;
}
body.page-en .logo img,
body.page-jp .logo img {
  width: auto !important;
  height: 25px !important;
  display: block !important;
}
body.page-en .nav,
body.page-jp .nav {
  display: flex !important;
  gap: 32px !important;
  flex: 1 1 auto !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 60px !important;
  position: static !important;
  right: auto !important;
  height: auto !important;
}
body.page-en .nav a,
body.page-jp .nav a {
  white-space: nowrap !important;
  text-decoration: none !important;
  color: #333 !important;
  font-size: 16px !important;
  padding: 0 !important;
}
body.page-en .lang-toggle-btn,
body.page-jp .lang-toggle-btn {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  padding: 8px 18px 7px !important;
  border: 1px solid #c1c1c2 !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #424242 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: opacity 0.4s, background 0.2s, border 0.2s !important;
  outline: none !important;
}

/* ============================================
   Mobile Responsive Design
   ============================================ */

/* Tablets and medium screens (768px - 1024px) */
@media (max-width: 1024px) {
  .section_1_content,
  .section_2_content,
  .section_3_content,
  .section_4_content {
    width: 90% !important;
    padding: 0 20px;
  }

  .section_1_content_left,
  .section_2_content_right,
  .section_3_content_left,
  .section_4_content_right {
    padding: 30px !important;
  }

  .bottom_content {
    width: 90% !important;
    padding: 0 20px;
  }
}

/* Mobile devices (max width 768px) */
@media (max-width: 768px) {
  /* Global mobile optimization */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Banner area mobile optimization */
  .banner {
    height: 60vh !important;
    min-height: 400px;
    width: 100% !important;
  }

  .banner_content {
    left: 5% !important;
    width: 90% !important;
    padding: 20px;
  }

  .banner_title {
    font-size: 42px !important;
    line-height: 1.2;
  }

  .banner_text {
    font-size: 16px !important;
    margin-top: 16px;
  }

  .banner_button {
    margin-top: 30px !important;
    padding: 8px 16px !important;
    font-size: 14px;
  }

  /* Section title optimization */
  .section_1_title,
  .section_2_title,
  .section_3_title,
  .section_4_title {
    font-size: 24px !important;
    padding: 20px 20px 24px 20px !important;
  }

  /* Section 1 - Intelligent Computing */
  .section_1 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .section_1_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-direction: column !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .section_1_content_left {
    width: 100% !important;
    padding: 20px 0 !important;
    order: 2;
  }

  .section_1_content_right {
    width: 100% !important;
    order: 1;
    margin-bottom: 20px;
  }

  .section_1_content_right img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
  }

  .section_1_content_left_title {
    font-size: 22px !important;
  }

  .section_1_content_left_text1,
  .section_1_content_left_text2 {
    font-size: 14px !important;
    padding: 12px 0 !important;
    line-height: 1.6;
  }

  /* Section 2 - Solutions */
  .section_2 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .section_2_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-direction: column !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .section_2_content_left {
    width: 100% !important;
    order: 1;
    margin-bottom: 20px;
  }

  .section_2_content_left img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
  }

  .section_2_content_right {
    width: 100% !important;
    padding: 0 !important;
    order: 2;
  }

  .section_2_content_right_title {
    font-size: 22px !important;
  }

  .section_2_content_right_text {
    font-size: 14px !important;
    padding: 12px 0 !important;
    line-height: 1.6;
  }

  /* Solutions box row */
  .solutions-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 20px !important;
    justify-content: space-between;
  }

  .solution-box {
    width: calc(50% - 4px) !important;
    height: auto !important;
    min-height: 120px;
    padding: 16px 8px !important;
    padding-bottom: 20px !important;
    border-radius: 8px !important;
  }

  .solution-box:first-child {
    border-radius: 8px !important;
  }

  .solution-box:last-child {
    border-radius: 8px !important;
  }

  .solution-box:nth-child(2) {
    border-radius: 8px !important;
  }

  .solution-box:nth-child(3) {
    border-radius: 8px !important;
  }

  .solution-title,
  .solution-subtitle {
    font-size: 12px !important;
    line-height: 1.4;
  }

  /* Section 3 - Artificial Intelligence */
  .section_3 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .section_3_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .section_3_content_left {
    width: 100% !important;
    height: auto !important;
    padding: 30px 20px !important;
    border-radius: 10px !important;
    order: 2;
    margin-top: 20px;
  }

  .section_3_content_right {
    width: 100% !important;
    height: auto !important;
    order: 1;
  }

  .section_3_content_right img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 10px;
  }

  .section_3_content_right_title {
    font-size: 22px !important;
  }

  .section_3_content_left_text1,
  .section_3_content_right_text {
    font-size: 14px !important;
    padding: 12px 0 !important;
    line-height: 1.6;
  }

  /* Section 4 - Related Products */
  .section_4 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .section_4_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 40px auto !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .section_4_content:first-child {
    flex-direction: column;
  }

  .section_4_content:first-child .section_4_content_left {
    order: 1;
    width: 100% !important;
    margin-bottom: 20px;
  }

  .section_4_content:first-child .section_4_content_right {
    order: 2;
    width: 100% !important;
    padding: 0 !important;
  }

  .section_4_content:last-child {
    flex-direction: column;
  }

  .section_4_content:last-child .section_4_content_left {
    order: 2;
    width: 100% !important;
    margin-top: 20px;
  }

  .section_4_content:last-child .section_4_content_right {
    order: 1;
    width: 100% !important;
    padding: 0 !important;
  }

  .section_4_content_left {
    width: 100% !important;
  }

  .section_4_content_left img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 10px;
  }

  .section_4_content_right {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Bottom area */
  .bottom {
    height: auto !important;
    min-height: auto;
    padding: 40px 0 !important;
  }

  .bottom_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-direction: column !important;
    padding: 0 20px;
    gap: 30px !important;
    box-sizing: border-box;
  }

  .bottom_content_left {
    width: 100% !important;
    padding: 0 !important;
    order: 2;
  }

  .bottom_content_right {
    width: 100% !important;
    padding: 0 !important;
    order: 1;
  }

  .bottom_content_left_title {
    font-size: 22px !important;
  }

  .bottom_content_left_title1 {
    font-size: 18px !important;
    margin-top: 30px !important;
    margin-bottom: 16px !important;
  }

  .bottom_content_left_text {
    font-size: 14px !important;
    padding: 12px 0 !important;
    line-height: 1.6;
  }

  .bottom_contact_block {
    width: 100% !important;
  }

  .bottom_contact_info {
    font-size: 14px !important;
    line-height: 24px !important;
  }

  .bottom_contact_item {
    white-space: normal !important;
    word-break: break-word;
    margin-bottom: 8px !important;
  }

  .bottom_content_right iframe {
    width: 100% !important;
    height: 250px !important;
    border-radius: 10px;
  }

  /* Footer */
  .footer {
    height: auto !important;
    min-height: 80px;
    padding: 20px 0;
  }

  .footer_content {
    line-height: 1.6 !important;
    padding: 0 20px;
    font-size: 14px !important;
  }

  /* Contact form mobile optimization */
  .cf7-row {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .cf7-col {
    min-width: 100% !important;
    width: 100% !important;
  }

  .cf7-col-name .cf7-name-row {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wpcf7-submit {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

/* Small screen mobile devices (max width 480px) */
@media (max-width: 480px) {
  .banner {
    height: 50vh !important;
    min-height: 350px;
  }

  .banner_title {
    font-size: 32px !important;
  }

  .banner_text {
    font-size: 14px !important;
  }

  .banner_button {
    margin-top: 20px !important;
    padding: 6px 12px !important;
    font-size: 12px;
  }

  .section_1_title,
  .section_2_title,
  .section_3_title,
  .section_4_title {
    font-size: 20px !important;
    padding: 16px 16px 20px 16px !important;
  }

  .section_1_content_left_title,
  .section_2_content_right_title,
  .section_3_content_right_title,
  .section_4_content_right .section_2_content_right_title,
  .bottom_content_left_title {
    font-size: 18px !important;
  }

  .section_1_content_left_text1,
  .section_1_content_left_text2,
  .section_2_content_right_text,
  .section_3_content_left_text1,
  .section_3_content_right_text,
  .section_4_content_right .section_2_content_right_text,
  .bottom_content_left_text {
    font-size: 13px !important;
  }

  .solution-box {
    width: calc(50% - 4px) !important;
    min-height: 110px;
    padding: 12px 6px !important;
    padding-bottom: 16px !important;
  }

  .solution-box img {
    width: 20px !important;
    height: 20px !important;
  }

  .solution-title,
  .solution-subtitle {
    font-size: 11px !important;
  }

  .section_3_content_left {
    padding: 24px 16px !important;
  }

  .section_4_content {
    margin-bottom: 30px !important;
  }

  .bottom {
    padding: 30px 0 !important;
  }

  .bottom_content_right iframe {
    height: 200px !important;
  }
}