/* ===================================
   新しいトップページ用CSS
   デザインに忠実な実装
=================================== */

/* リセット・基本設定 */
* {
    box-sizing: border-box;
}

/* 全体のフォント設定 */
body {
    font-family: "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "Hiragino Kaku Gothic ProN", Verdana, Meiryo, sans-serif;
    margin: 0;
    padding: 0;
}

/* メインコンテンツの余白リセット */
.mainContentsIn {
    padding: 0;
    overflow: hidden;
}

.pc-top-hide {
    display: none;
}

.sp-top-hide {
    display: block;
}

@media (max-width: 768px) {
    .pc-top-hide {
        display: block;
    }

    .sp-top-hide {
        display: none;
    }
}

/* ===================================
   KVセクション
=================================== */
.kv-section {
    width: 100%;
    height: 100%;
}

.kv-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 背景画像 */
.kv-visual {
    width: 100%;
    height: 100%;
}

.kv-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* メインタイトル（テキスト画像） */
.kv-title {
    position: absolute;
    top: 8%;
    right: 4%;
    z-index: 4;
    margin: 0;
}

.kv-title-image {
    width: auto;
    height: 138px;
    object-fit: contain;
}

/* スクロール表示 */
.kv-scroll {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 4;
    transform: rotate(90deg);
    transform-origin: center;
}

.kv-scroll-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: #00704A;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===================================
   レスポンシブ対応（PC版）
=================================== */
@media (max-width: 1200px) {
    .kv-title-image {
        height: 138px;
    }

    .kv-title {
        right: 4%;
    }
}

@media (max-width: 768px) {
    .mainContentsIn {
        overflow: hidden !important;
    }

    .kv-title-image {
        width: 180px;
    }

    .kv-title {
        top: 18%;
        right: 2%;
    }

    .kv-scroll {
        bottom: 3%;
        right: 3%;
    }

    .kv-scroll-text {
        font-size: 0.8rem;
    }
}

/* 
===================================
   採用情報セクション
=================================== */
.recruitment-section {
    background-color: #046342;
    padding: 100px 0 0;
    color: #fff;
}

.recruitment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

/* 上部エリア */
.recruitment-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 108px;
    gap: 60px;
}

.recruitment-intro {
    flex: 1;
    max-width: 500px;
}

.recruitment-intro-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: 0.12em;
    margin: 0 0 30px 0;
    color: #fff;
}

.recruitment-intro-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

/* ABOUTリンクカード */
.recruitment-about-link {
    flex-shrink: 0;
    box-shadow: 6px 0 18px -7px rgba(0, 0, 0, 0.7);
}

.about-link-card {
    display: block;
    position: relative;
    width: 450px;
    height: 156px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.about-link-card:hover {
    text-decoration: none;
    opacity: 1;
}

.about-link-card:hover .about-link-bg {
    -webkit-transform: scale(1.13);
    transform: scale(1.13);
    -webkit-filter: brightness(1.4) contrast(1.2);
    filter: brightness(1.4) contrast(1.2);
}

.about-link-card:hover .arrow-icon::before {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
}

.about-link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/recruit/assets/images/other/img_other_contents05_sp.jpg');
    z-index: 1;
    -webkit-transition: -webkit-transform 1s, -webkit-filter 1s;
    transition: transform 1s, filter 1s;
}

.about-link-content {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 2;
}

.about-link-title {
    font-family: "SoDoSans";
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.about-link-subtitle {
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
    line-height: 1;
}

.about-link-arrow {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 2;
}

.arrow-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: visible;
}

.arrow-icon::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.3s ease;
    z-index: 1;
}

.arrow-icon::after {
    content: "";
    display: block;
    position: absolute;
    width: 18px;
    height: 12px;
    background-image: url('/recruit/assets/images/icon/icon_arrow_green.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.arrow-icon>img {
    display: none;
}

/* 中央タイトル */
.recruitment-middle {
    text-align: center;
    margin-bottom: 25px;
}

.recruitment-main-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 18px 0;
    color: #fff;
}

.recruitment-main-text {
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/* 下部リンクエリア */
.recruitment-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.recruitment-link-item {
    flex: 1;
    box-shadow: 6px 0 18px -7px rgba(0, 0, 0, 0.7);
}

.recruitment-link-card {
    display: block;
    position: relative;
    width: 100%;
    height: 156px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.recruitment-link-card:hover {
    text-decoration: none;
    opacity: 1;
}

.recruitment-link-card:hover .recruitment-link-bg {
    -webkit-transform: scale(1.13);
    transform: scale(1.13);
    -webkit-filter: brightness(1.4) contrast(1.2);
    filter: brightness(1.4) contrast(1.2);
}

.recruitment-link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    z-index: 1;
    -webkit-transition: -webkit-transform 1s, -webkit-filter 1s;
    transition: transform 1s, filter 1s;
}

.recruitment-link-bg.recruitment-link-bg-1 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(/recruit/assets/images/message/img-message-list04.jpg);
}

.recruitment-link-bg.recruitment-link-bg-2 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(/recruit/assets/images/message/img-message-list01.jpg);
}

.recruitment-link-bg.recruitment-link-bg-3 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(/recruit/assets/images/message/img-message-list03.jpg);
}

.recruitment-link-content {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.recruitment-link-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.3;
    text-align: center;
}

.recruitment-link-subtitle {
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.recruitment-link-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.3;
    text-align: center;
}

.recruitment-link-subtitle {
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

/* ===================================
   レスポンシブ対応
=================================== */

@media (max-width: 768px) {
    .recruitment-section {
        padding: 60px 0 40px;
    }

    .recruitment-container {
        padding: 0 16px;
    }

    .recruitment-top {
        display: block;
        margin-bottom: 52px;
    }

    .recruitment-intro {
        text-align: center;
        max-width: none;
    }

    .recruitment-intro-title {
        font-size: 1.7rem;
    }

    .recruitment-intro-text {
        font-size: 1.3rem;
    }

    .recruitment-about-link {
        width: min(100%, 450px);
        margin: 25px auto 0;
    }

    .about-link-card {
        width: 100%;
        height: 120px;
    }

    .about-link-title {
        font-size: 2.6rem;
    }

    .about-link-subtitle {
        font-size: 1.3rem;
    }

    .arrow-icon {
        width: 50px;
        height: 50px;
    }

    .recruitment-main-title {
        font-size: 1.4rem;
    }

    .recruitment-main-text {
        font-size: 1.2rem;
    }

    .recruitment-links {
        gap: 15px;
        flex-wrap: wrap;
    }

    .recruitment-link-item {
        flex: unset;
        width: min(160px, 100%);
    }

    .recruitment-link-card {
        height: 90px;
    }

    .recruitment-link-title {
        font-size: 1.4rem;
    }

    .recruitment-link-subtitle {
        font-size: 1.1rem;
    }
}

/*
 ===================================
   MESSAGEセクション
=================================== */
.message-section {
    background: #046342;
    padding: 120px 0 0;
    position: relative;
}


.message-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 40px 120px;
    background: linear-gradient(to bottom, #046342 0%, #046342 62%, #ffe49d 96%);
}

/* セクションタイトル */
.message-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.message-header::after {
    content: "";
    position: absolute;
    top: -260px;
    right: -40px;
    width: 876px;
    height: 500px;
    background-image: url(/recruit/images/top/message01/bg-item1.png);
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.message-section-title {
    font-family: "SoDoSans";
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: 0.1em;
    line-height: 1;
}

.message-section-subtitle {
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

/* メッセージコンテンツ */
.message-content {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    justify-content: center;
}

.message-visual {
    flex-shrink: 0;
    width: 468px;
}

.message-circle-illustration {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-decoration-person {
    height: auto;
    max-width: 100%;
}



/* メッセージテキスト */
.message-text {
    color: #fff;
}

.message-number {
    font-family: "SoDoSans";
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.message-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 2;
    color: #fff;
    margin: 0 0 30px;
    letter-spacing: 4.5px;
}

.message-body {
    margin-bottom: 38px;
}

.message-body p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.message-footer {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

/* 下部植物のイラスト（画面幅いっぱい） */
.message-people-section {
    width: 104%;
    position: relative;
    background: linear-gradient(to bottom, #ffe49d 0%, #ffe49d 34%, #cfeae2 34%, #cfeae2 100%);
    left: -2%;
}

.message-people-image {
    width: 100%;
    height: auto;
    display: block;
}

/* タブレット以下は後でSP版デザインに合わせて調整 */
@media (max-width: 768px) {
    .message-section {
        padding: 60px 0 0;
    }

    .message-header::after {
        content: "";
        position: absolute;
        top: -218px;
        right: -22px;
        width: 480px;
        height: 306px;
        background-image: url(/recruit/images/top/message01/bg-item1.png);
        background-size: cover;
        background-repeat: no-repeat;
        pointer-events: none;
    }

    .message-container {
        padding: 0 20px 90px;
    }

    .message-content {
        flex-direction: column;
        gap: 25px;
        text-align: left;
    }

    .message-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 2;
    }

    .message-circle-illustration {
        width: 280px;
    }

    .message-decoration-person {
        width: 280px;
    }

    .message-header {
        margin-bottom: 65px;
    }

    .message-section-title {
        font-size: 2rem;
    }

    .message-section-subtitle {
        font-size: 1.2rem;
    }

    .message-number {
        font-size: 1.2rem;
    }

    .message-title {
        font-size: 1.7rem;
    }

    .message-body p {
        font-size: 1.3rem;
        line-height: 2.2;
        letter-spacing: 1px;
    }

    .message-people-section {
        padding: 0;
    }

    .message-people-image {
        width: 100%;
    }
}

/* / *===================================MESSAGE 02セクション===================================*/
.message02-section {
    background: linear-gradient(#cfeae2 60%, #00704a 84%, #133a31 93%, #133a31 100%);
    padding: 80px 0 0;
    position: relative;
    color: #00704A;
}

.message02-container {
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* セクションタイトル */
.message02-header {
    text-align: center;
    margin-bottom: 40px;
}

.message02-number {
    font-family: "SoDoSans";
    font-size: 1.4rem;
    font-weight: 700;
    color: #00704A;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.message02-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: #00704A;
    margin: 0;
}

/* メッセージコンテンツ */
.message02-content {
    text-align: center;
}

.message02-text {
    max-width: 800px;
    margin: 0 auto;
}

.message02-text p {
    font-size: 1.4rem;
    line-height: 2.7;
    color: #00704A;
    margin: 0;
    font-weight: 700;
}

.message02-text p:last-child {
    margin-bottom: 0;
}

/* イラスト */
.message02-illustration {
    position: relative;
    text-align: center;
}

.message02-image {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* タブレット以下での調整 */
@media (max-width: 768px) {
    .message02-section {
        padding: 60px 0 0;
        background: linear-gradient(#cfeae2 73%, #00704a 93%, #133a31 97%, #133a31 100%);
    }

    .message02-container {
        padding: 0 20px;
    }

    .message02-header {
        margin-bottom: 35px;
    }

    .message02-number {
        font-size: 1.2rem;
    }

    .message02-title {
        font-size: 1.7rem;
        line-height: 2.4;
    }

    .message02-text p {
        font-size: 1.3rem;
        line-height: 2.4;
    }

    .message02-content {
        margin-bottom: 56px;
        text-align: left;
    }

    .message02-illustration {
        position: static;
    }
}

/* ========
===========================
   MESSAGE 03セクション
=================================== */
.message03-section {
    background: linear-gradient(to bottom, #133a31 3%, #00704a 23%, #cfeae2 67%, #cfeae2 95%, #a7dccc 95%, #a7dccc 100%);
    padding: 100px 0 0px;
    position: relative;
    color: #fff;
}

.message03-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

/* メインコンテンツ */
.message03-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 30px;
}

/* 左側テキスト */
.message03-text {
    width: max-content;
}

.message03-number {
    font-family: "SoDoSans";
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.message03-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 2;
    color: #fff;
    margin: 0 0 30px;
    letter-spacing: 4.5px;
}

.message03-body {
    margin-bottom: 0;
}

.message03-body p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.message03-body p:last-child {
    margin-bottom: 0;
}

/* 右側イラスト */
.message03-illustration {
    position: relative;
    height: 100%;
}

.message03-person-01 {
    position: absolute;
    top: -19%;
    left: 0%;
    width: 235px;
    height: auto;
}

.message03-person-02 {
    position: absolute;
    left: 161px;
    top: -5%;
    width: 286px;
    height: auto;
}

.message03-person-03 {
    position: absolute;
    bottom: -13%;
    left: -52px;
    width: 264px;
    height: auto;
}

/* 下部コーヒーセクション */
.message03-bottom {
    text-align: center;
    position: relative;
    margin-top: 100px;
}

.message03-coffee-section {
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.message03-coffee-cup {
    width: 586px;
    height: auto;
    display: inline-block;
}

.message03-coffee-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-41%, -40%);
    z-index: 2;
}

.message03-hero-text {
    width: auto;
    max-width: 480px;
}

/* PC版での調整 */
/* @media (min-width: 769px) {
    .message03-content {
        align-items: center;
    }
} */

/* 1200px以下での調整 */
/* @media (max-width: 1200px) {
    .message03-container {
        padding: 0 30px;
    }

    .message03-content {
        gap: 60px;
    }

    .message03-title {
        font-size: 2rem;
    }

    .message03-illustration {
        height: 500px;
    }

    .message03-person-01 {
        width: 130px;
    }

    .message03-person-02 {
        width: 110px;
    }

    .message03-person-03 {
        width: 120px;
    }

    .message03-coffee-cup {
        width: 320px;
    }

    .message03-hero-text {
        height: 100px;
        max-width: 350px;
    }
} */

/* タブレット以下での調整 */
@media (max-width: 768px) {
    .message03-section {
        padding: 0 0;
        background: linear-gradient(to bottom, #133a31 3%, #00704a 51%, #cfeae2 95%, #cfeae2 95%, #a7dccc 95%, #a7dccc 100%);
    }

    .message03-container {
        padding: 0 20px;
    }

    .message03-content {
        gap: 0;
        margin-bottom: 80px;
        grid-template-columns: repeat(1, 1fr);
    }

    .message03-text {
        max-width: none;
        padding-top: 380px;
        order: 2;
        width: 100%;
    }

    .message03-title {
        font-size: 1.7rem;
    }

    .message03-body p {
        font-size: 1.2rem;
        line-height: 2.4;
    }

    .message03-hero-text {
        height: 80px;
        max-width: 280px;
    }

    .message03-person-01 {
        top: 50px;
        left: 35%;
        width: 165px;
    }

    .message03-person-02 {
        top: 140px;
        left: 60%;
        width: 186px;
    }

    .message03-person-03 {
        top: 131px;
        left: -16%;
        width: 180px;
    }

    .message03-bottom {
        margin-top: 65px;
    }

    .message03-coffee-cup {
        width: 295px;
    }

    .message03-hero-text {
        width: 240px;
    }
}

@media (min-width: 1039.1px) {
    .index-about__item--i03 .index-about__ico:before {
        color: #fff;
        background: #005725;
    }
}

@media (max-width: 768px) {

    /* タイトル部分を画像上に配置（PCのホバー前のように） */
    .index-about__hd {
        position: absolute;
        top: 7px !important;
        left: 0 !important;
        z-index: 3;
        color: #fff !important;
        opacity: 1;
        transform: none;
        width: auto;
        margin: 0;
    }

    .index-about__hd .en {
        display: block;
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
        font-family: SoDoSans, Arial, sans-serif;
        transform: none;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .index-about__hd .jp {
        display: block;
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.2;
        transform: none;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        margin: 0;
    }

    /* 矢印アイコンを画像上の右に配置（VIEW MOREと線を消す） */
    .index-about__ico {
        position: absolute !important;
        top: 83px !important;
        left: 266px !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        background-color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        visibility: visible !important;
        margin-top: 0 !important;
    }

    /* 既存のafter要素を完全に打ち消し */
    .index-about__ico:after {
        display: none !important;
        content: none !important;
        background: none !important;
        border: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
    }

    /* 既存のimg要素（detail画像）を非表示 */
    .index-about__ico img {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 指定された矢印画像をbefore要素で表示（アニメーション回避） */
    .index-about__ico:before {
        content: "" !important;
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url('/recruit/assets/images/icon/icon_arrow_green.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* 画像上に緑のフィルターを追加 */
    .index-about__img:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0 !important;
        width: 100%;
        height: 100%;
        background: rgba(0, 87, 37, 0.4);
        z-index: 2;
        opacity: 1;
    }

    .index-about__img img {
        filter: brightness(0.9);
    }

    .index-about__desc {
        margin-top: 15px;
    }
}

@media (max-width: 1039px) {
    .index-about__item a {
        padding: 0;
    }
}

.index-about__item--i03 .index-about__desc {
    right: 500px;
}

.index-about__desc .hd:before {
    font-size: 4.6rem;
}

.index-about__item--i03 .index-about__img {
    background: #fff;
}

.index-about__item--i03 .index-about__ico img {
    filter: none;
}

.scroll-sign {
    position: fixed;
    bottom: 40px;
}

@media (max-width: 768px) {
    .index-about__item a:hover {
        text-decoration: none;
    }
}

@media (min-width: 769px) {
    .index-about__hd .en {
        margin: -4px 0 0;
    }
}