/* strengths.css */


/* ===== FV ===== */

.strengthspage::before {
    background-image: url("../img/sub/about.png");
}


/* ===== 4つの特徴 ===== */

#str-features {
    background: #f5f8ff;
}

.str-features-inner {
    padding-top: 80px;
    padding-bottom: 80px;
}

.str-features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.str-features-list li {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 29, 136, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.str-feature-desc{
  color: #000!important;
}

.str-features-list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 29, 136, 0.15);
}

.str-feature-icon {
    width: 120px;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
}

.str-feature-icon img {
  width: 100%;
}

.str-feature-content h3 {
  color: #001d88;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.str-feature-content > p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e60012;
}

.str-feature-content > p span {
  display: block;
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

.str-feature-desc {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed #555;
  font-size: 0.85rem !important;
  color: #555;
  line-height: 1.7;
  text-align: left;
  font-weight: 500!important;
}


/* ===== やまちゃんのこだわり 3つ ===== */

#str-kodawari {
    background: #fff;
}

.str-kodawari-inner {
    padding-top: 80px;
    padding-bottom: 80px;
}

.kodawari-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 29, 136, 0.10);
}

.kodawari-item:last-child {
    margin-bottom: 0;
}

/* 画像ブロック */
.kodawari-img-wrap {
    position: relative;
    overflow: hidden;
}

.kodawari-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.kodawari-item:hover .kodawari-img-wrap img {
    transform: scale(1.04);
}

/* 番号バッジ（画像の上に重ねる） */
.kodawari-num-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #f7c400;
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 2;
    line-height: 1;
}


.num-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
}

.num {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: "Roboto", sans-serif;
    line-height: 1;
}

/* テキストブロック */
.kodawari-body {
    background: #f5f8ff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.kodawari-body h3 {
    color: #001d88;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid #f7c400;
}

.kodawari-body h3 span {
    display: block;
    font-size: 0.95rem;
    color: #000;
    font-weight: 600;
    margin-top: 4px;
}

.kodawari-body > p {
    color: #000;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.kodawari-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kodawari-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size:1.25rem;
    font-weight: 700;
    color: #333;
}

.kodawari-points li i {
    color: #f7c400;
    font-size: 1.25rem;
    flex-shrink: 0;
}



/* ===== 施工の流れ ===== */

#str-flow {
    background: #f5f8ff;
}

.str-flow-inner {
    padding-top: 80px;
    padding-bottom: 80px;
}

.flow-subtitle {
    text-align: center;
    color: #000;
    margin-top: 30px;
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flow-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    padding-bottom: 0;
}


.flow-step {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #001d88;
    border-radius: 12px;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.flow-step::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #f7c400;
  background: none;
}

.flow-item-last .flow-step::after {
  display: none;
}

.flow-step-last {
  background: #f7c400;
}

.flow-num {
  color: #fff;
  font-size:1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1;
  font-family: "Roboto", sans-serif;
  position: relative;
  top: -2px;
}

.flow-num small{
  font-size: 60%;
}

.flow-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 29, 136, 0.07);
}

.flow-item-last .flow-content {
  border: 3px solid #f7c400;
}

.flow-content h3 {
  color: #001d88;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  border-bottom: 1px dashed #001d88;
  padding-bottom: 5px;
}

.flow-content p {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.7;
}

.flow-arrow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 30px;
    color: #001d88;
    font-size: 1.2rem;
}


/* ===== CTA ===== */

#str-cta {
    background: #001d88;
}

.str-cta-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.str-cta-content {
    flex: 1;
}

.str-cta-content h2 {
    color: #fff !important;
    margin: 0 0 20px;
}

.str-cta-content h2::after {
    display: none;
}

.str-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    line-height: 2;
}

.str-cta-content p strong {
    color: #f7c400;
}

.str-cta-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.str-cta-btns .button {
    background: #f7c400;
    border-color: #f7c400;
    color: #001d88;
}

.str-cta-btns .button:hover {
    color: #001d88;
}

.str-cta-btns .btn-outline {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.str-cta-btns .btn-outline:hover {
    color: #001d88;
}

.str-cta-btns .btn-outline::before {
    background: #fff;
}

.str-cta-img {
    width: 280px;
    flex-shrink: 0;
}

.str-cta-img img {
    width: 100%;
}


/* ===== Responsive ===== */

@media (max-width: 1250px) {

  .str-features-list {
      grid-template-columns: repeat(2, 1fr);
  }

  .kodawari-body {
      padding: 36px 32px;
  }


  .kodawari-points li {
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) {

    .kodawari-item {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    /* 画像の高さを固定してテキストを下に */
    .kodawari-img-wrap {
        height: 280px;
    }
  
  
    .kodawari-points li {
        font-size: 1.05rem;
    }

    /* reverse のとき画像を先に（order使用） */
    .kodawari-reverse .kodawari-img-wrap {
        order: -1;
    }

    .kodawari-body h3 {
        font-size: 1.25rem;
    }

    .str-cta-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .str-cta-img {
        width: 200px;
    }

    .str-cta-btns {
        justify-content: center;
    }

}

@media (max-width: 768px) {

  .str-feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 60%;
  }
  
  .str-feature-content h3 {
    margin-bottom: 2px;
    margin-top: 10px;
    font-size: 1.75rem;
  }

  .kodawari-img-wrap {
      height: 220px;
  }

  .kodawari-body {
      padding: 28px 24px;
  }

  .kodawari-body h3 {
      font-size: 1.1rem;
      margin-bottom: 14px;
      padding-bottom: 12px;
  }

  .kodawari-num-badge {
      top: 16px;
      left: 16px;
      padding: 8px 14px;
  }

  .num {
      font-size: 1.4rem;
  }

  .flow-item {
      grid-template-columns: 72px 1fr;
      gap: 14px;
  }

  .flow-item-last {
      grid-template-columns: 72px 1fr;
  }

  .flow-step {
      width: 68px;
      height: 68px;
  }

  .flow-num {
      font-size: 1.2rem;
  }

  .str-cta-btns {
      flex-direction: column;
      align-items: center;
  }

  .str-features-inner,
  .str-kodawari-inner,
  .str-flow-inner,
  .str-cta-inner {
      padding-top: 50px;
      padding-bottom: 50px;
  }

}

@media (max-width: 600px) {
  

  .str-features-list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .str-features-list li {
    max-width: 400px;
    margin: auto;
  }
  
  .kodawari-body h3 {
    font-size: 1.35rem;
  }
  
  .kodawari-body > p {
    font-size: 0.85rem; 
    margin-bottom: 10px;
  }
  
  .kodawari-points {
    gap: 5px;
  }
  
  .kodawari-points li {
    gap: 5px;
    font-size: 1rem;
  }
  
  
  .flow-subtitle span{
    display: inline-block;
  }
  
  .flow-step::after {
    display: none;
  }
  
  .flow-item {
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .flow-step {
    width: 100%;
    height: 45px;
    background: #001d88;
    border-radius: 12px 12px 0 0;
  }
  
  .flow-num {
    top: 0px;
  }
  
  .flow-num small{
    margin-right: 5px;
    font-size: 75%;
    
  }
  
  .flow-num br{
    display: none;
  }
  
  .flow-content h3 {
    text-align: center;
  }  
  
  .flow-item-last .flow-step{
    background: #f7c400;
  } 
  
  .flow-item-last .flow-content {
    border-radius:0 0 12px 12px;
    border-top:none;
  }
  
  .flow-item-last h3{
    font-size: 1.2rem;
    color: #f7c400;
    border-bottom: 1px dashed #f7c400;
  }
  
  .flow-item{
    position: relative;
  }
  
  .flow-item::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #f7c400;
    background: none;
  }
  
  .flow-item-last::after{
    display: none;
  }
  
  .flow-content {
    padding: 20px;
  }
  
}
