@charset "UTF-8";

/* ==========================================================================
   Recruit Page Styles (SP)
   ========================================================================== */

:root {
    --primary-color: #002d6f;
    --accent-color: #0068b7;
    --bg-light-blue: #e1f0fa;
    --text-color: #2f3a40;
    --font-din: "Bebas Neue", "Oswald", sans-serif;
    --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

body {
    font-family: var(--font-jp);
    color: var(--text-color);
    background-color: #fff;
    /* Use the blue wavy background for SP */
    background-image: none;
}

.container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-recruit {
    padding: 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-recruit-inner {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    position: relative;
    /* Use the blue wavy background for SP */
    background-image: url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center top ;
    padding: 32px 20px 32px;
}

.hero-recruit-image {
    display: none;
}

.hero-recruit-content {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    text-align: left;
    pointer-events: auto;
    box-sizing: border-box;
}

.hero-recruit-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: left;
}

.hero-recruit-line {
    width: 61px;
    height: 1px;
    background-color: var(--primary-color);
    margin-bottom: 16px;
}

.hero-recruit-copy {
    font-size: 28px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: left;
    font-weight: 700;
}

.hero-recruit-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--primary-color);
    padding: 0;
    max-width: 100%;
    text-align: left;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.section-stats {
    padding: 20px 0 20px;
    position: relative;
}

.section-stats .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    justify-content: center;
}

.stats-header {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.stats-header h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    white-space: normal;
}

.stats-header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--primary-color);
    max-width: 100%;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    justify-content: space-between;
}

.stats-card {
    background-color: var(--bg-light-blue);
    border-radius: 8px;
    padding: 16px;
    height: auto;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* Force 2 columns */
    width: calc(50% - 6px) !important;
}

.stats-icon {
    position: absolute;
    bottom: -0px;
    right: -0px;
    width: 100px;
    height: 100px;
    opacity: 0.6;
    pointer-events: none;
    background-size: contain !important;
}

.stats-card-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    white-space: nowrap;
    gap: 4px;
    margin-bottom: auto;
}

.stats-sub {
    font-size: 10px;
    font-weight: normal;
}

/* 1枚目のパネルの「半世紀以上の実績」を右上に配置 */
.stats-card:nth-child(1) .stats-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.stats-card:nth-child(1) .stats-sub {
    margin-left: auto;
}

.stats-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: var(--primary-color);
    line-height: 1;
    margin-top: auto;
    margin-bottom: 0;
    max-width: 100%;
    overflow: visible;
    padding-top: 4px;
}

.stats-value .number {
    font-family: var(--font-din);
    font-size: clamp(32px, 16vw, 96px); 
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: -16px;
    max-width: 100%;
    overflow: visible;
}

.unit-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    margin-left: 2px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.stats-value .plus {
    font-family: var(--font-jp);
    font-size: clamp(12px, 5vw, 20px);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.stats-value .unit {
    font-size: clamp(12px, 5vw, 20px);
    font-weight: 700;
    margin-left: 0;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Fields Section
   -------------------------------------------------------------------------- */
.section-fields {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Background blob for Fields */
.section-fields::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: 0px;
    width: 100vw;
    height: 100vw;
    background-image: url('../images/ellipse.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.fields-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    justify-content: center; 
}

.fields-content {
    width: 100%;
    order: 1;
}

.fields-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    order: 2;
}

.fields-content h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
}

.fields-content p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--primary-color);
}

.field-card {
    background-color: var(--bg-light-blue);
    border-radius: 12px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 4px;
}

.field-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-size: contain !important;
}

.field-card span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    white-space: normal; /* Allow wrapping */
}

.fields-grid.en .field-card span {
    font-size: 10px;
}

.fields-grid.en .field-card.text-sm span {
    font-size: 8px;
}

/* --------------------------------------------------------------------------
   Roles Section
   -------------------------------------------------------------------------- */
.section-roles {
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Background blob for Roles */
.section-roles::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: 120px;
    width: 35vw;
    height: 35vw;
    background-image: url('../images/ellipse.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.roles-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}

.roles-content {
    width: 100%; 
}

.roles-content h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
}

.roles-content p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--primary-color);
}

.roles-tags {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.role-tag {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    box-sizing: border-box;
}

.role-tag.highlight {
    font-weight: 700;
}

/* ==========================================================================
   Image Assignments
   ========================================================================== */

/* Stats Icons */
.stats-card:nth-child(1) .stats-icon {
    background: url('../images/stats1.png') no-repeat center center;
}
.stats-card:nth-child(2) .stats-icon {
    background: url('../images/stats2.png') no-repeat center center;
}
.stats-card:nth-child(3) .stats-icon {
    background: url('../images/stats3.png') no-repeat center center;
}
.stats-card:nth-child(4) .stats-icon {
    background: url('../images/stats4.png') no-repeat center center;
}

/* Fields Icons */
.field-card:nth-child(1) .field-icon {
    background: url('../images/fields1.png') no-repeat center center;
}
.field-card:nth-child(2) .field-icon {
    background: url('../images/fields2.png') no-repeat center center;
}
.field-card:nth-child(3) .field-icon {
    background: url('../images/fields3.png') no-repeat center center;
}
.field-card:nth-child(4) .field-icon {
    background: url('../images/fields4.png') no-repeat center center;
}
.field-card:nth-child(5) .field-icon {
    background: url('../images/fields5.png') no-repeat center center;
}
.field-card:nth-child(6) .field-icon {
    background: url('../images/fields6.png') no-repeat center center;
}
.field-card:nth-child(7) .field-icon {
    background: url('../images/fields7.png') no-repeat center center;
}
.field-card:nth-child(8) .field-icon {
    background: url('../images/fields8.png') no-repeat center center;
}
.field-card:nth-child(9) .field-icon {
    background: url('../images/fields9.png') no-repeat center center;
}
