/* =========================================================
  Service lower pages
========================================================= */
@media screen and (min-width: 432px) {
  .service-lower {
    position: relative;
    padding: 95px 0 160px;
    overflow: hidden;
  }

  .service-lower::before {
    content: "";
    position: absolute;
    left: calc(50% - 1428px);
    top: 109px;
    width: 1092px;
    height: 1192px;
    background: url("../img/img31.png") center / contain no-repeat;
    pointer-events: none;
    opacity: 0.8;
    z-index: 5;
  }

  .service-lower::after {
    content: "";
    position: absolute;
    right: calc(50% - 1252px);
    top: 585px;
    width: 957px;
    height: 1015px;
    background: url("../img/img32.png") center / contain no-repeat;
    opacity: 0.8;
    pointer-events: none;
    z-index: 3;
  }

  .service-intro {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr 500px;
    column-gap: 70px;
    align-items: start;
    z-index: 200;
  }

  .service-intro__title {
    padding: 0;
    margin-top: 5px;
  }

  .service-intro__body p {
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 2.15;
    letter-spacing: 0.06em;
  }

  .custom-products .service-intro__body p:nth-of-type(3) {
    margin: 0 0 48px;
  }

  .precision-parts .service-intro__body p:nth-of-type(4) {
    margin: 0 0 46px;
  }

  .resin-processing .service-intro__body p:nth-of-type(3) {
    margin: 0 0 46px;
  }

  .service-example {
    position: relative;
    margin-top: 34px;
    padding: 20px 20px;
    background: #f7f7f7;
  }

  .service-example::before {
    content: "";
    position: absolute;
    top: 0;
    left: 125px;
    width: 355px;
    height: 1px;
    background: rgba(185, 154, 88, 0.55);
  }

  .service-example__label {
    position: absolute;
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
    top: -12px;
  }

  .service-example p {
    margin: 0;
    font-size: 14px;
    line-height: 2.3;
  }

  .service-intro__image {
    width: 500px;
    height: 550px;
    overflow: hidden;
  }

  .service-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-method {
    position: relative;
    width: 1200px;
    margin: 85px auto 0;
    padding: 76px 200px;
    background: #f8f7f4;
    display: grid;
    grid-template-columns: 135px 1fr;
    column-gap: 50px;
    align-items: center;
    z-index: 2;
  }

  .custom-products .service-method {
    padding: 76px 180px;
  }

  .precision-parts .service-method {
    padding: 76px 270px;
  }

  .service-method__title {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-right: 26px;
  }

  .service-method__title::after {
    content: "";
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background: #333;
  }

  .service-method__title h2 {
    writing-mode: vertical-rl;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.7;
  }

  .service-method__title span {
    writing-mode: vertical-rl;
    color: var(--gold);
    font-size: 11px;
  }

  .service-method__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 2px;
  }

  .service-method__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
  }

  .service-method__list strong {
    color: var(--gold);
    margin-right: 10px;
    position: relative;
  }

  .service-method__list strong::after {
    position: absolute;
    content: "｜";
    color: #333;
    right: 0px;
  }

  .service-works {
    position: relative;
    z-index: 1;
    width: 1200px;
    margin: 120px auto 0;
    display: grid;
    grid-template-columns: 655px 1fr;
    column-gap: 78px;
    align-items: center;
    z-index: 2;
  }

  .service-works__image {
    position: relative;
  }

  .service-works__image::after {
    content: "";
    position: absolute;
    left: 50px;
    bottom: -45px;
    width: 1147px;
    height: 455px;
    background: #f4f3f0;
    z-index: -1;
  }

  .service-works__image img {
    width: 655px;
    height: 450px;
    object-fit: cover;
  }

  .service-works__body {
    position: relative;
    padding-left: 18px;
    padding-top: 70px;
  }

  .service-works__vertical {
    position: absolute;
    left: 310px;
    top: -36px;
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
  }

  .service-works__vertical h2 {
    writing-mode: vertical-rl;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.5;
  }

  .service-works__vertical span {
    writing-mode: vertical-rl;
    color: var(--gold);
    font-size: 11px;
  }

  .service-works__body h3 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.08em;
  }

  .service-works__body p {
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 2.3;
  }

  .service-works__link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
  }

  .service-works__link::before {
    content: "";
    width: 80px;
    height: 1px;
    background: #333;
  }
}

@media screen and (max-width: 431px) {
  .service-lower {
    position: relative;
    padding: 62px 0 100px;
    overflow: hidden;
  }

  .service-lower::before {
    content: "";
    position: absolute;
    left: -239px;
    top: -53px;
    width: 100%;
    height: 700px;
    background: url(../img/img31.png) center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
  }

  .service-intro {
    position: relative;
    z-index: 1;

    width: var(--inner);
    margin: 0 auto;

    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 25px;
    align-items: start;
  }

  .service-intro__title {
    grid-column: 1;
    grid-row: 1;

    width: fit-content;
    margin: 0;
    padding: 0;
  }

  .service-intro__body {
    grid-column: 1 / -1;
    grid-row: 2;

    margin-top: 40px;
  }

  .service-intro__body p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 2.15;
    letter-spacing: 0.04em;
  }

  .resin-processing .service-intro__body p {
    font-size: 15px;
  }

  .resin-processing .service-intro__body .service-example p {
    font-size: 13px;
  }

  .service-intro__body > p:last-of-type {
    margin-bottom: 44px;
  }

  .service-example {
    margin: 26px 0 32px;
    padding: 16px 18px;
    background: #f7f6f3;
    position: relative;
  }

  .service-example::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 1px;
    background: rgba(185, 154, 88, 0.55);
  }

  .service-example__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    position: absolute;
    top: -12px;
  }

  .service-example p {
    margin: 0;
    font-size: 12px;
    line-height: 2.1;
  }

  .service-intro__image {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .service-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .service-method {
    width: var(--inner);
    margin: 40px auto 0;
    padding: 36px 22px;
    background: #f8f7f4;
    z-index: 1;
  }

  .service-method__title {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 28px;
  }

  .service-method__title h2 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.7;
    position: relative;
  }

  .service-method__title h2::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0px;
    bottom: -5px;
    z-index: 1;
    border: 1px solid #333;
    opacity: 0.5;
  }

  .service-method__title span {
    writing-mode: vertical-rl;
    color: var(--gold);
    font-size: 10px;
  }

  .service-method__list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 13px;
    font-size: 14px;
    line-height: 1.9;
  }

  .service-method__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
  }

  .service-method__list strong {
    display: block;
    color: var(--gold);
    font-size: 16px;
    padding-bottom: 1px;
  }

  .precision-parts .service-method__list li:nth-child(4) {
    font-size: 13px;
  }

  .service-works {
    width: var(--inner);
    margin: 80px auto 0;
    position: relative;
    z-index: 1;
  }

  .service-works::after {
    content: "";
    display: block;
    width: 431px;
    height: 370px;
    position: absolute;
    left: -20px;
    top: 43px;
    background-color: #f8f8f8;
    z-index: -1;
  }

  .service-works__image {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .service-works__image img {
    width: 75%;
    height: 75%;
    object-fit: cover;
  }

  .service-works__body {
    position: relative;
    margin-top: 24px;
  }

  .service-works__vertical {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 10px;
    position: absolute;
    right: 0;
    top: -200px;
  }

  .service-works__vertical h2 {
    writing-mode: vertical-rl;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.6;
  }

  .service-works__vertical span {
    writing-mode: vertical-rl;
    color: var(--gold);
    font-size: 10px;
  }

  .service-works__body h3 {
    position: static;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
  }

  .service-works__body h3::after {
    content: "";
    position: absolute;
    right: -222px;
    top: -413px;
    width: 100%;
    height: 700px;
    background: url(../img/img32.png) center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
  }

  .service-works__body p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 2;
  }

  .service-works__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
  }

  .service-works__link::before {
    content: "";
    width: 52px;
    height: 1px;
    background: #333;
  }
}
