/*
Theme Name: Yasuragi Recruitment
Theme URI: https://github.com/jinoChristian/rectangle-yasuragi-recruitment
Author: Jino Christian
Description: Custom theme for Yasuragi Recruitment.
Version: 1.0.0
Text Domain: yasuragi-recruitment
*/

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --yasuragi-font-sans: 'Geologica', 'Noto Sans JP', sans-serif;
    --yasuragi-body-copy-pc: 1rem;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--yasuragi-font-sans);
}

/* Shared lower-page hero title. Keep this above page-level legacy rules. */
.page-hero--about-company .page-hero__title {
    color: #5a4e4e;
}

/*
 * Shared heading marker from the supplied 12px SVG.
 * Page-specific classes keep responsibility for surrounding gaps and layout.
 */
body .icon-plus,
body .features-merit__plus,
body .contact-section-heading__plus,
body .entry-section-heading__plus,
body .jobs-section-heading__plus,
body .privacy-policy__plus,
body .recruitment-detail-section-heading__plus,
body .recruitment-section-heading__plus,
body .recruitment-group__plus,
body .our-family-intro__plus,
body .staff-interview-qa__plus,
body .staff-interview-movie__plus,
body .staff-interview-list__header > span:nth-child(2) {
    display: block;
    width: 12px;
    min-width: 12px;
    height: 12px;
    flex: 0 0 12px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
    background: url('assets/images/icon-plus.svg') center / 12px 12px no-repeat;
}

body .icon-plus > svg {
    display: none;
}

body .workstyle-section .icon-plus {
    background-image: url('assets/images/icon-plus-white-20.svg');
}

body .features-merit__plus {
    background-image: url('assets/images/icon-plus-white-30.svg');
}

body .environment-section__header > .icon-plus,
body .about-contents-section__header > .icon-plus,
body .aboutus-contents-section__header > .icon-plus,
body .jobs-section-heading--center > .jobs-section-heading__plus,
body .jobs-schedule-block > .jobs-section-heading__plus,
body .features-merit__plus,
body .our-family-intro__plus,
body .staff-interview-qa__plus,
body .staff-interview-movie__plus,
body .staff-interview-list__header > span:nth-child(2) {
    margin-left: auto;
    margin-right: auto;
}

/* Shared Latin labels paired with Japanese h2/h3 headings. */
body .jobs-section__label,
body .environment-section__label,
body .interview-section__label,
body .news-section__label,
body .about-contents-section__label,
body .data-section-heading__label,
body .jobs-section-heading__label,
body .our-family-intro__label,
body .recruitment-section-heading__label,
body .recruitment-detail-section-heading__label,
body .contact-section-heading__label,
body .entry-section-heading__label,
body .wellness-section__label,
body .environment-section__sub-label {
    color: #d8c9c6;
    letter-spacing: 0.2em;
}

/*
 * PC body copy follows the shared 16px type size from the design source.
 * Larger lead copy, headings, labels, notes, and metadata keep their
 * component-specific sizes.
 */
@media (min-width: 769px) {
    /*
     * Align Latin labels to the final Japanese baseline when the h2 wraps.
     * flex-end remains the fallback for engines without last-baseline support.
     */
    body .jobs-section__header-left,
    body .interview-section__header-left,
    body .news-section__left,
    body .workstyle-section__header,
    body .contact-section-heading,
    body .entry-section-heading,
    body .recruitment-detail-section-heading:not(.recruitment-detail-section-heading--center) {
        align-items: flex-end;
        align-items: last baseline;
    }

    /* These detail-page headings are single-line label/title pairs. */
    body .recruitment-detail-attractions .recruitment-detail-section-heading,
    body .recruitment-detail-flow .recruitment-detail-section-heading {
        align-items: center;
    }

    /* Remaining black common h3 headings that were below the 20px rule. */
    body .workstyle-section__card-title,
    body .recruitment-detail-card__title,
    body .entry-form__section-title {
        color: #5a4e4e;
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }

    body .jobs-section__description,
    body .jobs-section__card-text,
    body .profile-section__info-text,
    body .environment-section__benefit-text,
    body .about-contents-section__description,
    body .page-about-us-content__message-text p,
    body .workstyle-section__card-text,
    body .benefits-overview__text,
    body .benefits-points__text,
    body .career-growth__intro,
    body .career-step__text,
    body .career-details__item p,
    body .features-merit__text p,
    body .features-achievement__note,
    body .features-merit-card__text,
    body .data-card__note,
    body .data-entry__text p,
    body .jobs-intro__description p,
    body .jobs-position__text,
    body .jobs-position__subhead,
    body .jobs-position__tags li,
    body .jobs-timeline li,
    body .jobs-timeline-card__note,
    body .jobs-work-list li,
    body .jobs-faq-item__answer,
    body .jobs-voice-card__body p,
    body .our-family-intro__text p,
    body .staff-interview-question__answer,
    body .recruitment-detail-intro__body p,
    body .recruitment-detail-card__body,
    body .recruitment-detail-table__content,
    body .recruitment-detail-location__body,
    body .recruitment-detail-entry__text p,
    body .news-index-item__excerpt,
    body .news-single__content p,
    body .privacy-policy__lead,
    body .privacy-policy-section__text,
    body .privacy-policy-section__list li {
        font-size: var(--yasuragi-body-copy-pc);
    }
}
