/*
 * Front page custom styles.
 * Extracted from front-page.php to keep page markup easier to maintain.
 */

/* Extracted style block 1 */
.leona-media-banners-pc {
    width: 100%;
    max-width: 620px;
    margin: 48px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .leona-media-banners-pc__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .leona-media-banners-pc__item a {
    display: block;
    width: 100%;
    max-width: 520px;
    line-height: 0;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .leona-media-banners-pc__item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    transition: transform 0.3s ease;
  }

  .leona-media-banners-pc__item a:hover img {
    transform: scale(1.03);
  }

/* Extracted style block 2 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: inherit; background: none; }

    .cta-wrapper { display: flex; justify-content: center; padding: 60px 20px; }
    .cta-card {
      width: 100%; max-width: 720px;
      background: #fff;
      border-radius: 0;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      overflow: hidden;
    }

    .cta-header { padding: 40px 30px 20px; text-align: center; }
    .cta-header h2 {
      font-family: Garamond, "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
      font-size: 1.8rem; font-weight: 700; color: #1c235a; line-height: 1.3;
      user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
    }
    .cta-divider {
      height: 2px;
      background: linear-gradient(to right, #5562b7, #fff, #5562b7);
      margin: 0 auto 24px;
      width: 60%;
    }

    .cta-list { list-style: none; }
    .cta-item { position: relative; border-bottom: 1px solid #f0f0f0; }
    .cta-item:last-child { border-bottom: none; }

    .cta-link {
      display: flex; align-items: center;
      text-decoration: none;
      padding: 16px 20px;
      color: #fff !important;
      background: linear-gradient(90deg, #6274e3 0%, #4b5ec9 50%, #3447af 100%);
      border-radius: 0;
      box-shadow: 0 6px 12px rgba(50, 60, 140, 0.25);
      pointer-events: none;
      cursor: default;
    }

    .cta-icon {
      flex-shrink: 0;
      width: 32px; height: 32px;
      margin-right: 14px;
      background: rgba(255,255,255,0.2);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
    }

    .cta-text {
      flex: 1;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      line-height: 1.5;
    }

    .cta-arrow { display: none; }

    @media (max-width: 768px) {
      .cta-wrapper { padding: 40px 15px; }
      .cta-header h2 { font-size: 1.5rem; }
      .cta-link { padding: 14px 16px; }
      .cta-text { font-size: 0.95rem; }
    }

/* Extracted style block 3 */
.security-menu {
    max-width: 900px;
    margin: 40px auto;
    padding: 28px 30px;
    background: linear-gradient(135deg, #f8f9fd 0%, #ffffff 100%);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .security-menu h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c235a;
    text-align: center;
    margin-bottom: 6px;
    user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
  }

  .security-menu .subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5562b7;
    text-align: center;
    margin-bottom: 18px;
    user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
  }

  .security-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .security-list li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #e8eaf0;
    user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
  }

  .security-list li:last-child {
    border-bottom: none;
  }

  .security-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 1rem;
    font-weight: bold;
    color: #5562b7;
  }

  @media (max-width: 768px) {
    .security-menu {
      margin: 30px 15px;
      padding: 20px 18px;
    }
    .security-menu h3 {
      font-size: 1.1rem;
    }
    .security-menu .subtitle {
      font-size: 0.9rem;
    }
    .security-list li {
      font-size: 0.88rem;
      padding-left: 22px;
    }
  }

/* Extracted style block 4 */
#my-custom-services-wrapper {
    max-width: 1180px;
    margin: 56px auto 64px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #333;
}

#my-custom-services-wrapper * {
    box-sizing: border-box;
}

#my-custom-services-wrapper .services-overview {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

#my-custom-services-wrapper .services-overview h2 {
    margin: 0 0 14px;
    color: #1c235a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
}

#my-custom-services-wrapper .services-overview p {
    margin: 0;
    font-size: 16px;
    line-height: 2;
}

#my-custom-services-wrapper .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

#my-custom-services-wrapper .service-card {
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e3e6ee;
    box-shadow: 0 8px 22px rgba(28, 35, 90, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#my-custom-services-wrapper .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(28, 35, 90, 0.14);
}

#my-custom-services-wrapper .service-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

#my-custom-services-wrapper .service-card h3 {
    margin: 0;
    padding: 20px 22px 0;
    color: #1c235a;
    font-family: Garamond, "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

#my-custom-services-wrapper .service-card ul {
    flex: 1 1 auto;
    margin: 14px 0 0;
    padding: 0 24px 24px 42px;
    list-style: disc;
    color: #333;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
}

#my-custom-services-wrapper .service-card li {
    margin: 0 0 5px;
    text-align: left;
}

#my-custom-services-wrapper .service-card.banner {
    grid-column: 1 / -1;
    min-height: 320px;
    justify-content: center;
    padding: 38px 44px;
    border: 1px solid #c9d7e7;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.84) 48%, rgba(255,255,255,0.18) 100%),
        url("https://leona-ohki-law.jp/wp-content/uploads/2025/05/経済安全保障関係法務.png") center center / cover no-repeat;
}

#my-custom-services-wrapper .service-card.banner h3,
#my-custom-services-wrapper .service-card.banner ul {
    max-width: 560px;
}

#my-custom-services-wrapper .service-card.banner h3 {
    padding: 0;
    font-size: 28px;
}

#my-custom-services-wrapper .service-card.banner ul {
    margin-top: 18px;
    padding: 0 0 0 24px;
    font-size: 15px;
}

#my-custom-services-wrapper .banner-button {
    display: inline-block;
    width: fit-content;
    margin-top: 18px;
    padding: 10px 18px;
    background: #1c235a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1024px) {
    #my-custom-services-wrapper .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #my-custom-services-wrapper {
        margin: 40px auto 48px;
        padding: 0 15px;
    }

    #my-custom-services-wrapper .services-overview h2 {
        font-size: 22px;
    }

    #my-custom-services-wrapper .services-overview p {
        font-size: 14px;
        line-height: 1.8;
    }

    #my-custom-services-wrapper .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #my-custom-services-wrapper .service-card img {
        height: 190px;
    }

    #my-custom-services-wrapper .service-card h3 {
        font-size: 19px;
        padding: 18px 18px 0;
    }

    #my-custom-services-wrapper .service-card ul {
        padding: 0 20px 22px 36px;
    }

    #my-custom-services-wrapper .service-card.banner {
        min-height: 0;
        padding: 28px 24px;
        background:
            linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
            url("https://leona-ohki-law.jp/wp-content/uploads/2025/05/経済安全保障関係法務_mobile.jpg") center center / cover no-repeat;
    }

    #my-custom-services-wrapper .service-card.banner h3 {
        font-size: 22px;
    }
}

