/* 20240214追記：404改修 */
.p-404-header {
    padding: 19rem 0 25.4rem;
}
.p-404-header__title {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}
.p-404-header .p-lower-header__en {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 35px;
    line-height: 1.4;
}
.p-404-header .p-lower-header__ja {
    font-size: 30px;
    font-weight: 700;
}
.p-404__section {
    max-width: 1280px;
    width: 100%;
}
.p-404__body {
    padding: 130px 80px 114px;
    max-width: 100%;
    width: 100%;
}
.p-404__content-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin: 66px 0 40px;
    line-height: normal;
}
.p-404__content-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 56px;
}
.p-404__content-list > li {
    width: calc(100% / 3 - 38px);
}
.p-404__content-list > li .c-mega-button__link {
    background-color: var(--accent, #ffc612);
}
.p-404__content-list > li .c-mega-button__en {
    color: #fff;
}

.p-404__content-list > li .c-mega-button__arrow svg {
    fill: #343434;
}
.p-404__link {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
}
.p-404__bg {
    margin-bottom: 200px;
}
@media (max-width: 1200px) {
    .p-404-header {
        padding: 10rem 0 50rem;
    }
    .p-404__content-list {
        gap: 30px;
    }
    .p-404__content-list > li {
        width: calc(100% / 3 - 20px);
    }
}
@media (max-width: 900px) {
    .p-404__content-list {
        gap: 20px;
    }
    .p-404__content-list > li {
        width: calc(100% / 1 - 0px);
    }
    .p-404__section {
        top: -50px;
    }
}
@media (max-width: 766px) {
    .p-404-header {
        padding: 10rem 0 24rem;
    }
    .p-404-header .p-lower-header__en {
        font-size: 30px;
        margin-bottom: 35px;
    }
    .p-404-header .p-lower-header__ja {
        font-size: 18px;
    }
    .p-404__section {
        max-width: 92%;
        top: -43rem;
    }
    .p-404__content-title {
        font-size: 20px;
        margin: 30px 0 40px;
    }
    .p-404__bg {
        margin-bottom: 0;
    }
    .p-404__content-list {
        margin-bottom: 40px;
    }
}

.is-sp {
    display: none;
}
.is-pc {
    display: block;
}
@media (max-width: 798px) {
    .is-sp {
        display: block;
    }
    .is-pc {
        display: none;
    }
}

/* 20240215追記：サイトマップ改修 */
.p-sitemap {
    width: 100%;
}
.p-sitemap__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 70px;
}
.p-sitemap__content:last-child {
    margin-bottom: 0;
}
.p-sitemap__content-head {
    width: 157px;
    margin-top: 10px;
}
.p-sitemap__content-head > h2 {
    font-size: 24px;
    color: #ffc612;
    font-weight: 700;
}
.p-sitemap__content-list {
    width: calc(100% - 157px);
}
.p-sitemap__content-list > ol,
.p-sitemap__content-list__service > ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 44px;
}
.p-sitemap__content-list > ol > li,
.p-sitemap__content-list__service > ol > li {
    width: calc(100% / 2 - 22px);
    border-bottom: 1px solid #e2e2e2;
}
.p-sitemap__content-list > ol > li > a {
    font-size: 16px;
    color: #343434;
    font-weight: 600;
    font-family: Prompt;
    position: relative;
    padding: 20px 0 20px 20px;
    display: block;
}
.p-sitemap__content-list__service > ol > li > a {
    font-size: 14px;
    color: #343434;
    font-weight: 500;
    position: relative;
    padding: 20px 0 20px 20px;
    display: block;
    line-height: 1.5;
}
.p-sitemap__content-list > ol > li > a::before,
.p-sitemap__content-list__service > ol > li > a::before {
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e2e2e2;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.p-sitemap__content-list > ol > li > a:hover {
    color: #ffc612;
}
.p-sitemap__content-list > ol > li > a:hover::before,
.p-sitemap__content-list__service > ol > li > a:hover::before {
    background-color: #ffc612;
}
.p-sitemap__content-list__service {
    margin-bottom: 40px;
}
.p-sitemap__content-list__service:last-child {
    margin-bottom: 0;
}
.p-sitemap__content-list__service-title {
    font-size: 16px;
    color: #343434;
    font-weight: 600;
    font-family: Prompt;
    position: relative;
    padding: 20px 0 20px 20px;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 18px;
    display: block;
    width: 100%;
}
.p-sitemap__content-list__service-title:hover {
    color: #ffc612;
}
.p-sitemap__content-list__service-title::before {
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e2e2e2;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.p-sitemap__content-list__service-title:hover::before {
    background-color: #ffc612;
}

@media (max-width: 766px) {
    .p-sitemap__content-list > ol,
    .p-sitemap__content-list__service > ol {
        display: block;
    }
    .p-sitemap__content-list > ol > li,
    .p-sitemap__content-list__service > ol > li {
        width: 100%;
    }
    .p-sitemap__content-head {
        width: 100px;
        margin-top: 17px;
    }
    .p-sitemap__content-list {
        width: calc(100% - 100px);
    }
    .p-sitemap__content-head > h2 {
        font-size: 24px;
        color: #ffc612;
    }
    .p-sitemap__content-head > h2 {
        font-size: 20px;
    }
}
@media (max-width: 500px) {
    .p-sitemap__content {
        display: block;
        margin-bottom: 50px;
    }
    .p-sitemap__content-head {
        width: 100%;
        margin-bottom: 10px;
        margin-top: 0;
    }
    .p-sitemap__content-list {
        width: 100%;
    }
    .p-sitemap__content-list__service {
        margin-bottom: 30px;
    }
}

/* 20240216追記：ブログページ修正 */
.p-post strong {
    font-weight: bold;
}
.p-post a {
    color: #58a9ef;
    padding: 0 2px;
}
.p-post p {
    font-size: 16px;
}

/* 20240219追記：フォーム作成 */
.p-contact__body input[type='text'],
.p-contact__body input[type='email'],
.p-contact__body input[type='tel'],
.p-contact__body input[type='date'] {
    padding: 21px 0 10px;
}
.p-contact__body textarea {
    padding: 15px;
}
.p-contact__body input[type='text']:focus,
.p-contact__body input[type='email']:focus,
.p-contact__body input[type='tel']:focus,
.p-contact__body input[type='date']:focus,
.p-contact__body textarea:focus {
    outline: none;
}
.p-contact__body input[type='checkbox'] + .wpcf7-list-item-label:before {
    width: 25px;
    height: 25px;
    top: 2px;
}
.p-contact__body input[type='checkbox'] + .wpcf7-list-item-label:after {
    width: 15px;
    height: 15px;
    top: 7px;
    left: 5px;
}
.p-contact__body input[type='checkbox'] + .wpcf7-list-item-label {
    padding-left: 35px;
    font-size: 14px;
}
.wpcf7-list-item-label > a {
    font-weight: 700;
}
.wpcf7-list-item-label > a:hover {
    color: #ffc612;
}
.p-contact__body label {
    font-size: 14px;
    width: fit-content;
}
.p-contact__body label.must {
    position: relative;
}
.p-contact__body label.must::after {
    content: '必須';
    position: absolute;
    color: #fff;
    background-color: #f25d5d;
    top: 0px;
    right: -45px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
}
.p-contact__body input[type='date'] {
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    line-height: 2;
    letter-spacing: 0.8px;
    text-align: left;
    color: rgba(52, 52, 52, 0.5);
    border: none;
    background-color: transparent;
    outline: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-bottom: 1px solid #ececec;
}
.p-contact__date-wrap > p {
    display: flex;
    align-items: flex-end;
}
.p-contact__date-wrap > p span {
    margin-right: 5px;
    margin-left: 15px;
}
.p-contact__date-wrap > p [data-name='birth-year'] {
    margin-left: 0;
    width: 80px;
}
.p-contact__date-wrap > p [data-name='birth-year'] input {
    padding-bottom: 0 !important;
    font-size: 20px;
    text-align: center;
}
.p-contact__date-wrap .wpcf7-not-valid-tip {
    margin: 0 !important;
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100px;
}
.p-contact__date-wrap > p select {
    margin: 0;
    padding: 0;
    height: 35px;
    line-height: 1.5;
    border-radius: 5px;
    background-size: 15px 6px;
    background-position: right 5px bottom 12px;
    text-align: center;
    padding: 0px 30px 0px 10px;
    box-shadow: none;
}
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #dc3232 !important;
    padding: 20px;
    color: #dc3232;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 3px;
}
@media (max-width: 760px) {
    .p-lower-header__contact {
        padding-bottom: 5rem;
        margin-bottom: 10rem;
    }
}
.p-lower-header__en.collaboration {
    font-size: 100px;
}
@media (max-width: 760px) {
    .p-lower-header__en.collaboration {
        font-size: 3.4rem;
    }
}

/* 20240220追記：トップページ改修 */
.p-cta-section {
    background-image: url(../images/index/cta-section-pc.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 80px 20px 100px;
}
.p-cta-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.p-cta-section__head > img {
    max-width: 213px;
    width: 100%;
    display: block;
}
.p-cta-section__head > h2 {
    max-width: calc(100% - 240px);
    width: 100%;
    font-size: 45px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 60px;
}
.p-cta-section__head-big {
    font-size: 57px;
    letter-spacing: 6px;
}
.p-cta-section__head-small {
    font-size: 40px;
    letter-spacing: 3px;
}
.p-cta-section__content {
    max-width: 500px;
    width: 100%;
    margin: 33px auto 0;
}
.p-cta-section__content-title {
    color: #fff;
    font-size: 26px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.5;
}
.p-cta-section__content-btn-1 > a > .c-button {
    background-color: #ffc612;
    color: #343434;
    border-radius: 27px;
    padding: 25px 20px 35px 20px;
    text-align: center;
    display: block;
    position: relative;
}
.p-cta-section__content-btn-1 > a > .c-button:hover {
    border-radius: 40px;
}
.p-cta-section__content-btn-1 > a > .c-button span {
    font-size: 16px;
    line-height: 1.5;
}
.p-cta-section__content-btn-1 > a > .c-button p {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-top: 5px;
}
.p-cta-section__content-btn-arrow {
    width: 23px;
    position: absolute;
    content: '';
    bottom: 20px;
    right: 36px;
}
.p-cta-section__content-btn-arrow > svg {
    width: 100%;
}
.p-cta-section__content-btn-2 {
    max-width: 430px;
    margin: 16px auto 0;
    text-align: center;
}
.p-cta-section__content-btn-2 > a {
    position: relative;
}
.p-cta-section__content-btn-2__icon {
    position: absolute;
    content: '';
    left: 33px;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 23px;
}
.p-cta-section__content-btn-2 .c-button {
    border-radius: 27px;
}
.p-cta-section__content-btn-2 .c-button__text {
    padding-top: 5px;
    font-size: 16px;
}
.p-three-reason {
    background-color: #f5f5f5;
    padding: 82px 0 93px;
}
.p-three-reason__title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    padding: 0 20px;
}
.p-three-reason__title span {
    color: #ffc612;
    font-size: 38px;
}
.p-three-reason__list {
    max-width: 1160px;
    width: 100%;
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}
.p-three-reason__list > li {
    width: calc(100% / 3 - 13.5px);
    height: fit-content;
    background-color: #ffc612;
    color: #343434;
    padding: 58px 38px 50px;
    border-radius: 37px;
    box-shadow: 0px 20px 20px 0 rgba(69, 69, 74, 0.07);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.p-three-reason__list > li.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.p-three-reason__list > li:nth-child(2) {
    margin-top: 67px;
}
.p-three-reason__list > li:nth-child(3) {
    margin-top: 160px;
}
.p-three-reason__list-head > h3 {
    font-size: 20px;
    font-weight: 700;
}
.p-three-reason__list-head {
    position: relative;
    width: fit-content;
    margin: 0 auto 30px;
}
.p-three-reason__list-head::before {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    position: absolute;
    content: '';
    width: 100px;
    height: 100px;
    left: -110px;
    bottom: 0;
    z-index: 10;
}
.p-three-reason__list-head.num-1::before {
    background-image: url(../images/index/three-reason-num-1.png);
}
.p-three-reason__list-head.num-2::before {
    background-image: url(../images/index/three-reason-num-2.png);
}
.p-three-reason__list-head.num-3::before {
    background-image: url(../images/index/three-reason-num-3.png);
}
.p-three-reason__list > li > p {
    line-height: 30px;
    font-size: 16px;
    font-weight: 400;
}
@media (max-width: 1000px) {
    .p-cta-section__head {
        flex-direction: column;
    }
    .p-cta-section__head > img {
        margin: 0 auto 30px;
    }
    .p-cta-section__head > h2 {
        max-width: calc(100% - 0px);
        text-align: center;
    }
}
@media (max-width: 900px) {
    .p-cta-section {
        background-image: url(../images/index/cta-section-sp.jpg);
        padding: 80px 20px;
    }
    .p-three-reason__list {
        flex-direction: column;
    }
    .p-three-reason__list > li {
        width: 100%;
        margin-top: 30px;
    }
    .p-three-reason__list > li:nth-child(2) {
        margin-top: 30px;
    }
    .p-three-reason__list > li:nth-child(3) {
        margin-top: 30px;
    }
}
@media (max-width: 760px) {
    .p-contact__body label.must::after {
        padding: 0px 5px;
        line-height: 1.4;
        top: 11px;
    }
    .p-cta-section__head > img {
        max-width: 150px;
    }
    .p-cta-section__head > h2 {
        font-size: 30px;
        line-height: 45px;
    }
    .p-cta-section__head-big {
        font-size: 38px;
    }
    .p-cta-section__head-small {
        font-size: 25px;
    }
    .p-three-reason__list > li {
        padding: 48px 28px 40px;
    }
    .p-three-reason__list-head::before {
        width: 80px;
        height: 80px;
        left: -90px;
    }
    .p-three-reason__list-head {
        margin: 0 auto 20px 50px;
    }
    .p-three-reason__title {
        font-size: 24px;
        line-height: 1.5;
    }
    .p-three-reason__title span {
        color: #ffc612;
        font-size: 30px;
    }
    .p-cta-section__content-btn-arrow {
        right: 20px;
    }
    .p-cta-section__content-btn-2 .c-button {
        padding-right: 5rem;
    }
    .p-cta-section__content-btn-2 .c-button__text {
        padding-left: 10px;
    }
    .p-cta-section__content-btn-2__icon {
        left: 20px;
    }
    .p-cta-section__content-btn-2 .c-button__text {
        font-size: 14px;
    }
}
.p-header-menu__nav__item .c-button--header {
    width: auto;
}
.p-header-menu__nav__item .c-button--header .c-button__text {
    font-family: 'Noto Sans JP', sans-serif;
    color: #343434;
}
.p-footer__contact .c-button__text {
    font-family: 'Noto Sans JP', sans-serif;
}
.p-menu__other-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}
.p-menu__other-wrap .p-menu__other {
    margin-top: 0;
}
.p-menu {
    flex-direction: column;
}
.p-menu__btn {
    max-width: 300px;
    width: 100%;
    margin-bottom: 20px;
}
.p-menu__btn .c-button__text {
    font-size: 18px;
}
.p-menu__btn .c-button {
    background-color: #ffc612;
    text-align: center;
    border-radius: 27px;
}
@media (max-width: 760px) {
    .p-menu__btn {
        max-width: 200px;
    }
    .p-menu__btn .c-button__text {
        font-size: 16px;
    }
    .p-menu__btn .c-button {
        padding: 20px 10px;
    }
    .p-menu__btn .c-mega-button__arrow {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    .p-header {
        z-index: 9;
    }
}

/* 20240304追記：営業フォームへの導線追加 */
.l-contact__aside-collaboration-btn {
    margin-top: 20px;
}
.l-contact__aside-collaboration-btn .c-button__arrow {
    right: 15px;
    width: 20px;
}
.l-contact__aside-collaboration-btn > a > .c-button {
    padding-bottom: 20px;
    padding-top: 20px;
}
.l-contact__aside-collaboration-btn > a > .c-button span {
    font-size: 14px;
}

/* 20240321追記：ロックハーツはこちらアイコン */
.link-btn .external-link-btn::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background: url(/wp-content/themes/rockhearts/assets/images/common/icon-window.svg) no-repeat 0 0;
    position: absolute;
    top: 23%;
    right: 20px;
}

/* 20240322追記：ブログカード */
.custom-blog-card {
    border: 1px solid #343434;
    position: relative;
    border-radius: 2px;
    margin: 50px 0;
    box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.07);
}
.custom-blog-card::before {
    position: absolute;
    content: '関連記事';
    top: -12px;
    left: 30px;
    background-color: #343434;
    color: #fff;
    padding: 5px 10px 7px;
    font-size: 14px;
    border-radius: 2px;
    line-height: 1;
}
.custom-blog-card.custom-case-card::before {
    content: '関連事例';
}
.custom-blog-card > a {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.custom-blog-card > a:hover {
    opacity: 0.7;
}
.custom-blog-card > a > img {
    max-width: 200px;
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.custom-blog-card-content {
    max-width: calc(100% - 330px / 20px);
    width: 100%;
}
.custom-blog-card-content h4 {
    margin-top: 0;
    color: #343434;
    letter-spacing: 2px;
}
.custom-blog-card-content p {
    color: #777;
    line-height: 1.7;
    margin-top: 10px;
    letter-spacing: 2px;
}

@media (max-width: 760px) {
    .custom-blog-card > a {
        display: block;
        padding: 20px;
    }
    .custom-blog-card-content {
        max-width: 100%;
        margin-top: 20px;
    }
    .custom-blog-card-content h4 {
        font-size: 18px;
    }
    .custom-blog-card-content p {
        font-size: 14px;
    }
}

/* 20240328追記：営業フォーム動線修正 */
.p-collaboration-message__title {
    color: #ffc612;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding-left: 70px;
}
.p-collaboration-message__title-icon {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
}
.p-collaboration-message__title-icon > svg {
    width: 100%;
    height: 100%;
}
.p-collaboration-message__subtitle {
    font-size: 22px;
    text-align: center;
    margin-bottom: 58px;
    font-weight: bold;
    line-height: 35px;
    letter-spacing: 3px;
}
.p-collaboration-message__text {
    text-align: left;
    max-width: 939px;
    width: 100%;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 30px;
}
.p-contact__body .p-cta-section__content-btn-2 {
    margin-bottom: 50px;
}
.p-contact__body .p-cta-section__content-btn-2 br {
    display: none;
}
@media (max-width: 760px) {
    .p-collaboration-message__title > h2 {
        text-align: left;
    }
    .p-collaboration-message__subtitle {
        font-size: 16px;
        text-align: left;
        margin-bottom: 30px;
    }
    .p-collaboration-message__subtitle br {
        display: none;
    }
    .p-collaboration-message__text {
        font-size: 14px;
    }
    .p-contact__body .p-cta-section__content-btn-2 {
        margin-bottom: 30px;
    }
    .p-contact__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .p-contact__body .p-cta-section__content-btn-2 br {
        display: block;
    }
}

/* 20240410追記：採用ページ作成 */
.p-lower-youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9アスペクト比 */
    height: 0;
    overflow: hidden;
    margin: 50px 0 80px;
}

.p-lower-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 767px) {
    .p-lower-youtube {
        margin: 0 0 3rem;
    }
}
