@layer pages {
  .p-home__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .p-home .c-section-title {
    margin: 20px 0 2em;
    font-size: 2.14em;
    font-weight: 700;
    font-feature-settings: "palt";
    text-align: center;
  }

  .p-home .c-section-title--inline {
    text-align: left;
  }

  .p-home .c-button {
    vertical-align: top;
  }

  .p-home-hero {
    position: relative;
    display: grid;
    align-items: center;
    height: 100vh;
    background: url("../../images/common/default-bg.webp") 50% 50% / cover no-repeat;
    text-align: center;
  }

  .p-home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 200px;
    background: linear-gradient(rgb(0 0 0 / 0.45), rgb(0 0 0 / 0));
    pointer-events: none;
  }

  .p-home-hero::after {
    content: "";
    position: absolute;
    bottom: 2em;
    left: calc(50% - 24px);
    z-index: 2;
    width: 48px;
    height: 80px;
    background: url("../../images/common/mouse.webp") 50% 50% / contain no-repeat;
    animation: p-home-mouse 5s ease infinite;
  }

  @keyframes p-home-mouse {
    0% {
      transform: translateY(0);
    }

    70% {
      transform: translateY(-15px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .p-home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .p-home-hero__copy {
    position: relative;
    z-index: 2;
    width: 715px;
    margin: 0 auto;
    color: var(--c-white);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-shadow:
      -0.5px 0 0 #000,
      0.5px 0 0 #000,
      0 0.5px 0 #000,
      0 -0.5px 0 #000,
      0 3px 8px rgb(0 0 0 / 0.25);
  }

  .p-home-business {
    padding: 3em 0 4em;
    background: url("../../images/common/bg-home-business.webp") center / cover no-repeat;
    color: var(--c-white);
    text-align: center;
  }

  .p-home-business__title {
    margin: 20px 0 30px;
    font-size: 2.14em;
    font-weight: 700;
    font-feature-settings: "palt";
    line-height: 1.3;
  }

  .p-home-business__text {
    margin-bottom: 2em;
    line-height: 2;
  }

  .p-home-business__link {
    margin: 1em 0.5em;
    background-image: url("../../images/common/bg-dotpatarn.webp");
  }

  .p-home-products {
    padding: 3em 0 4em;
    background-color: #10828c;
  }

  .p-home-products__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .p-home-products__item {
    position: relative;
    color: var(--c-white);
    text-align: center;
  }

  .p-home-products__icon {
    display: inline-block;
    margin: -0.25em 0 -2em;
    color: rgb(255 255 255 / 0.7);
    font-size: 7em;
  }

  .p-home-products__title {
    font-size: 1.7em;
    font-weight: 700;
  }

  .p-home-products__en {
    font-family: var(--f-en);
    text-transform: uppercase;
  }

  .p-home-products__text {
    display: inline-block;
    padding: 1em 0;
    text-align: justify;
  }

  .p-home-products__link::after {
    transform: translate(-10px, -50%);
  }

  .p-home-pickup {
    padding: 2em 0 5em;
    background: linear-gradient(var(--c-white) 45%, rgb(16 130 140 / 0.1) 45%);
  }

  .p-home-pickup .c-section-title {
    margin-bottom: 3em;
  }

  .p-home-recruit {
    padding: 0 0 2em;
    background: #37756f left top 30% / 50% no-repeat;
    color: var(--c-white);
  }

  .p-home-recruit__inner {
    margin: 0 -12px;
  }

  .p-home-recruit__image img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .p-home-recruit__body {
    padding: 0 12px;
  }

  .p-home-recruit .c-section-title {
    margin-bottom: 1.5em;
  }

  .p-home-recruit__link {
    margin: 1.5em 0.5em 1em;
  }

  .p-home-about__container {
    padding: 0 15px;
  }

  .p-home-about__inner {
    display: flow-root;
    margin: 0 -12px;
  }

  .p-home-about__head,
  .p-home-about__links {
    padding: 0 12px;
  }

  .p-home-about .c-section-title::after {
    right: 0;
    left: auto;
    margin-right: 138px;
  }

  .p-home-about__links {
    margin: 0;
    list-style: none;
  }

  .p-home-about__links > li {
    margin: 1em 0.5em;
  }

  .p-home-about__banner {
    margin: 10px 0 0;
    text-align: center;
  }

  .p-home-about__banner a {
    vertical-align: top;
  }

  .p-home-about__banner a:is(:hover, :focus) {
    text-decoration: none;
  }

  .p-home-about__banner img {
    max-width: 100%;
    height: auto;
  }

  @media (min-width: 768px) {
    .p-home-business {
      padding: 7em 0 15em;
    }

    .p-home-business__title {
      letter-spacing: 5px;
    }

    .p-home-business__link {
      width: 290px;
      margin: 1em auto;
    }

    .p-home-products__item {
      display: inline-block;
      width: 33%;
      padding: 0 42px;
    }

    .p-home-products__item:nth-of-type(2) {
      border-right: 1px dashed rgb(255 255 255 / 0.6);
      border-left: 1px dashed rgb(255 255 255 / 0.6);
    }

    .p-home-products__icon {
      font-size: 8.5em;
    }

    .p-home-recruit {
      padding: 0;
    }

    .p-home-recruit__inner {
      display: flex;
      align-items: flex-start;
    }

    .p-home-recruit__image {
      flex: 0 0 35%;
      padding: 0 12px;
    }

    .p-home-recruit__image img {
      margin-left: -12px;
    }

    .p-home-recruit__body {
      flex: 0 0 calc(65% - 24px);
      margin: 0 12px;
    }

    .p-home-recruit__link {
      display: inline-block;
    }

    .p-home-about__inner {
      display: grid;
      grid-template-columns: 1fr 2fr;
    }

    .p-home-about__head {
      padding-top: 1.5em;
      padding-bottom: 1.5em;
      background: url("../../images/common/bg-dotpatarn-green.gif") 0 0 repeat;
    }

    .p-home-about .c-section-title {
      margin: 1.5em 0 2em auto;
      padding-right: 3em;
      text-align: right;
    }

    .p-home-about__links > li {
      display: inline-block;
    }
  }

  @media (max-width: 991px) {
    .p-home .c-section-title,
    .p-home-business__title {
      font-size: 1.7em;
    }

    .p-home-recruit .l-container {
      width: auto;
    }

    .p-home-about .c-section-title::after {
      margin-right: 96px;
    }
  }

  @media (min-width: 992px) {
    .p-home .c-button {
      font-size: 1.25em;
    }

    .p-home-recruit {
      padding: 2em 0;
      background-image: url("../../images/common/bg-home-recruit.webp");
    }

    .p-home-recruit__image {
      flex-basis: 50%;
    }

    .p-home-recruit__image img {
      display: none;
    }

    .p-home-recruit__body {
      flex-basis: calc(50% - 74px);
      margin-left: 62px;
    }

    .p-home-about__links > li {
      margin-top: 4em;
    }
  }

  @media (min-width: 1200px) {
    .p-home .c-button {
      padding: 8px 2.5em;
    }

    .p-home-recruit__link {
      width: 200px;
      margin: 1.5em 1em 1em;
    }

    .p-home-about__links > li {
      width: 200px;
      margin-right: 1em;
      margin-left: 1em;
    }
  }

  @media (max-width: 767px) {
    .p-home__br-pc {
      display: none;
    }

    .p-home-hero__copy {
      width: 295px;
      font-size: 20px;
      line-height: 1.9;
      letter-spacing: 0.02em;
      word-break: keep-all;
      overflow-wrap: normal;
    }

    .p-home .c-section-title--inline {
      margin-top: 1em;
    }

    .p-home-business__title {
      font-size: 24px;
    }

    .p-home-business__phrase {
      display: block;
    }

    .p-home-products__item {
      padding-bottom: 3em;
    }

    .p-home-products__icon {
      float: left;
    }

    .p-home-products__title,
    .p-home-products__en {
      padding-left: 98px;
    }

    .p-home-products__title {
      font-size: 1.4em;
    }

    .p-home-products__text {
      padding: 2em;
    }

    .p-home-products__link {
      margin: 0 2em;
    }

    .p-home-products__link::after {
      transform: translate(-24px, -50%);
    }

    .p-home-pickup {
      background-image: linear-gradient(var(--c-white) 15%, rgb(16 130 140 / 0.1) 15%);
    }

    .p-home-about .c-section-title::after {
      right: auto;
      left: 35px;
    }
  }

  @media (max-width: 500px) {
    .p-home-products__item:last-of-type .p-home-products__icon {
      margin-left: -10px;
    }

    .p-home-products__title,
    .p-home-products__en {
      padding-left: 80px;
    }
  }
}
