/* Hero Section */
.hero {
    position: relative;
    height: 1046px;
    margin-top: 123px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(29, 98, 226, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 134px;
    z-index: 2;
}

.hero-text {
    max-width: 984px;
}

.hero-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.448;
    letter-spacing: -1.5%;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.6;
    letter-spacing: -1.5%;
    color: #FFFFFF;
    margin-bottom: 33px;
}

.hero-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 2;
    letter-spacing: -1.5%;
    color: #000000;
    margin-bottom: 40px;
}

.hero-menu {
    margin-top: 40px;
}

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

.hero-menu li {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 2.444;
    letter-spacing: -1.5%;
    color: #1C2226;
    margin-bottom: 8px;
}

/* Service Overview Section */
.service-overview {
    background-color: #FFFFFF;
    padding: 100px 0;
    position: relative;
}

.overview-content {
    text-align: center;
    position: relative;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.6875;
    letter-spacing: -1.5%;
    color: #132D8A;
    margin-bottom: 100px;
    text-align: center;
}

.service-diagram {
    position: relative;
    height: 600px;
    margin: 0 auto;
    max-width: 1200px;
}

.diagram-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.diagram-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

.service-layer {
    position: absolute;
    text-align: left;
}

.service-layer h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4286;
    letter-spacing: -1.5%;
    color: #000000;
    margin-bottom: 10px;
}

.service-layer p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6875;
    letter-spacing: -1.5%;
    color: #000000;
    max-width: 231px;
}

.layer-1 {
    top: 180px;
    left: 100px;
}

.layer-2 {
    top: 420px;
    right: 150px;
}

.layer-3 {
    top: 150px;
    right: 50px;
}

/* Service Detail Sections */
.service-detail {
  position: relative;
  padding: 0;
  min-height: 1200px;
  overflow: hidden;
  margin-bottom: 60px;
  margin-top: 60px;
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  z-index: 1;
  padding: 70px 30px 30px 50px;
  background-attachment: fixed;
}

.service-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.warranty-platform .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback01.jpg);
    background-position: center;
}

.bpo-service .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback02.jpg);
    background-position: center;
}

.api-service .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback03.jpg);
    background-position: center;
}

.service-content {
    position: relative;
    z-index: 2;
    padding-left:30%;
}

.service-info {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 80px 60px 20px;
    max-width: 1000px;
}

.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 37px;
    line-height: 1.378;
    letter-spacing: -1.5%;
    color: #FFFFFF;
    margin-bottom: 20px;
    background-clip: text;
}

.subtitle-small {
    font-size: 24px;
    font-weight: 400;
}

.service-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 2.05;
    letter-spacing: -1.5%;
    color: #FFFFFF;
    margin-bottom: 50px;
    background-clip: text;
}

.service-sections {
    margin-bottom: 50px;
}

.service-section {
    margin-bottom: 60px;
}

.service-section h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.708;
    letter-spacing: -1.5%;
    color: #000000;
    margin-bottom: 30px;
    padding-left: 20px;
}

/* Challenges */
.challenges {
    display: flex;
    flex-wrap:wrap;
    gap: 20px;
}

.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #F5F5F8;
  padding: 20px;
  border-radius: 10px;
  width: calc(100%/2 - 10px);
}

.challenge-icon {
    flex-shrink: 0;
    width: 22px;
    height: 19px;
    margin-top: 5px;
}

.challenge-icon svg {
    width: 100%;
    height: 100%;
    fill: #000000;
}

.challenge-item p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6875;
    letter-spacing: -1.5%;
    color: #000000;
    margin: 0;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background-color: #f5f5f8;
  padding: 20px;
  border-radius: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: #000000;
}

.feature-content h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -1.5%;
    color: #296CE4;
}

.bpo-service .feature-content h4 {
    color: #22BDAD;
}

.api-service .feature-content h4 {
    color: #AFAA1D;
}

.feature-content p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.556;
    letter-spacing: -1.5%;
    color: #000000;
    margin: 0;
}

/* Benefits */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: #F5F5F8;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.benefit-img {
    width: 100%;
    height: 180px;
}

#service02 .benefit-item::before {
    display: none;
}

#service02 .benefit-item {
    padding: 0;
    overflow: hidden;
}

#service02 .benefit-item img{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.benefit-item.blue01::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/blue01.svg');
}
.benefit-item.blue02::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/blue02.svg');
}
.benefit-item.blue03::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/blue03.svg');
}
.benefit-item.green01::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/green01.svg');
}
.benefit-item.green02::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/green02.svg');
}
.benefit-item.green03::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/green03.svg');
}
.benefit-item.yellow01::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/yellow01.svg');
}
.benefit-item.yellow02::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/yellow02.svg');
}
.benefit-item.yellow03::before {
  background-image: url('https://wrt.co.jp/tec2025/wp-content/themes/moc/images/yellow03.svg');
}

.benefit-item h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 2.05;
    letter-spacing: -1.5%;
    color: #000000;
    margin: 50px 0 15px 0;
}

#service02 .benefit-item h4 {
    margin: 20px 0 15px 0;
}

.benefit-item p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.875;
    letter-spacing: -1.5%;
    color: #000000;
    margin: 0;
}

#service02 .benefit-item p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: -1.5%;
  color: #000000;
  margin: 10px 15px 20px;
}

.service-detail-btn {
    background-color: #FFFFFF;
    border: 3px solid #FFFFFF;
    color: #0D5C9C;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.48;
    letter-spacing: -1.5%;
    padding: 9px 106px;
    border-radius: 66px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.service-detail-btn:hover {
    background-color: transparent;
    color: #FFFFFF;
}

/* Divider Lines */
.warranty-platform::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background-color: #296CE4;
    z-index: 2;
}

.bpo-service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background-color: #29D5C3;
    z-index: 2;
}

.api-service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background-color: #FFFA83;
    z-index: 2;
}

.planlist-content h4 {
  text-align: center;
  padding: 20px;
  background-color: #092589;
  color: #fff;
}


.planlist-content p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.875;
  letter-spacing: -0.015em;
  margin: 20px;
}
.case-card button {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .header-container {
        padding: 30px 40px;
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .service-content {
        padding: 0 40px;
    }
    
    .planlist-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
    
    .cta-content {
        padding: 0 40px;
    }
    
    .footer-container {
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .service-diagram {
        height: 500px;
    }
    
    .layer-1 {
        top: 120px;
        left: 50px;
    }
    
    .layer-2 {
        top: 320px;
        right: 80px;
    }
    
    .layer-3 {
        top: 100px;
        right: 30px;
    }
    
    .service-layer h3 {
        font-size: 24px;
    }
    
    .service-layer p {
        font-size: 14px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 20px;
    }
    
    .nav {
        display: none;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .service-content {
        padding: 0 20px;
    }
    
    .service-info {
        padding: 40px 30px;
    }

.challenges {
    margin-bottom: 20px;
}

.challenge-item {
  width: calc(100%/1 - 10px);
}
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

.benefit-item p{
  text-align: left;
}
.benefit-img {
  width: 100%;
  height: 300px;
}
    
    .planlist-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .planlist-card {
        width: 100%;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .cta-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-card {
        width: 100%;
        max-width: 549px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .service-diagram {
        height: 400px;
    }
    
    .service-layer {
        position: static;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .service-layer p {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ============================
    Hero Section Responsive Fix
============================ */
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 700px;
    display: flex;
    align-items: center;
  }

  .hero-content {
    position: relative;
    padding: 0 40px;
    text-align: center;
    justify-content: center;
  }

  .hero-text {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ============================
    Service Detail Responsive Fix
============================ */
@media (max-width: 1400px) {
.service-bg {
  position: relative;
  width: 100%;
  background-attachment: initial;
}
.service-info {
  margin: 0 auto;
}
.warranty-platform .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback01_smp.jpg);
    background-position: center;
}

.bpo-service .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback02_smp.jpg);
    background-position: center;
}

.api-service .service-bg {
    background-image: url(https://wrt.co.jp/tec2025/wp-content/themes/moc/images/serviceback03_smp.jpg);
    background-position: center;
}
}

@media (max-width: 992px) {
  .service-detail {
    min-height: auto;
  }

  .service-bg {
    position: relative;
    width: 100%;
    background-attachment: scroll;
  }

  .service-content {
    padding: 0;
  }

  .service-info {
    box-shadow: none;
    background: #fff;
    padding: 50px 20px 0px;
  }
}

/* ============================
    Layout Tweaks
============================ */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 32px;
  }
  .sectionttl-en {
    font-size: 36px;
  }
  .hero-title {
    font-size: 18px;
  }
  .hero-description {
    font-size: 14px;
  }
.service-sections {
  margin-bottom: 0;
}
.service-section {
  margin-bottom: 0;
}

  .service-section h3 {
    font-size: 20px;
  }

  .service-overview .section-title {
  font-size: 20px;
  margin-bottom: 0;
}
.service-overview {
  padding: 100px 0 0;
}
.service-title {
  font-size: 28px;
}
.service-subtitle {
  font-size: 18px;
}
.planlist-section {
  background: #fff;
  padding: 0rem 5% 1rem;
}
}
