@charset "utf-8";

.recruit-container{
    margin-top: 70px;
}
/* -----------API レイアウト---------- */
.sp-upper-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1em;
    width: 90%;
    margin: 13% auto 10%;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sp-upper-text::before {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background-color: #ffd700;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .sp-upper-text {
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 1em;
        width: 60%;
        margin: 10% auto;
        align-items: start;
    }
}


.api-wrapper{
    width: 95%;
    max-width: 1600px;
    margin: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    height: auto;
    overflow: visible;   /* ← 高さいっぱい表示 */
}
.sp-hero-slide{
    width: 100%;
    margin: 3em auto 0;
    line-height: 1.5em;
}

.g-image{
    text-align: center;
}
.g-image img{
    /* width: 70%;
    max-width: 800px; */
    width: 630px;
    height: 415px;
    object-fit: cover;
    object-position: center;
}
.detail-title{
    text-align: center;
    font-weight: bold;
    margin: 10% auto 5%;
    font-size: 18px;
    border-bottom: 3px solid #dedede;
    width: fit-content;
    padding: 0 2em 0.4em;
}
@media screen and (max-width: 1200px) {
    .g-image img{
        width: 430px;
        height: 315px;
        object-fit: cover;
        object-position: center;
    }
}
@media screen and (max-width: 600px) {
    .g-image img{
        width: 100%;
        height: 230px;
        object-fit: cover;
        object-position: center;
    }
}
/* 求人原稿の地図のスタイル */
.map-inline-link {
    color: #0073e6;
    text-decoration: none;
    margin-left: 6px;
}

.map-inline-link:hover {
    text-decoration: underline;
}


/* 求人原稿のdl dt ddのスタイル */
.apply-section {
    width: 100%;
    overflow: visible; /* ← iframe が伸びる時に切れない */
    padding-bottom: 0;
}
.apply-section h3{
    text-align: center;
    margin: 2em auto 0;
    font-weight: 700;
    color: #5a0000;
}
.job-title{
    font-size: 18px;
    font-weight: 700;
    margin-top: 3em;
    line-height: 1.5em;
}

.job-message{
    font-size: 16px;
    font-weight: 500;
    margin-top: 1.5em;
    line-height: 1.5em;
}




/* ===================================================
   求人詳細：募集要項の表（dl dt dd）のスタイル
   =================================================== */
.job-details-dl {
    display: grid;
    width: 100%;             /* 80% から 100% に広げて窮屈さを解消 */
    max-width: 900px;        /* PC画面で綺麗に見える最大の幅 */
    margin: 0 auto 50px;     /* 下の余白を適切に調整 */
    grid-template-columns: 25% 75%; /* 項目の幅を調整（dt: 25%, dd: 75%） */
    background: #d0fff0;     /* 薄緑色の背景 */
    padding: 4.5em;          /* 内側の余白を少し広げてリッチに */
    row-gap: 20px;           /* 【最重要】行と行の間の隙間をGridの機能で自動化 */
    justify-items: start;
    border-radius: 25px;
    height: auto;            /* 高さを自動にして文字量に追従させる */
}

/* 画面幅1000px以下のときの表の調整 */
@media screen and (max-width: 1000px) {
    .job-details-dl {
        width: 95%;          /* 画面端に張り付かないように95%に */
        padding: 1.5em;      /* スマホ・タブレット用に余白を少し狭める */
        grid-template-columns: 30% 70%; /* 少し狭い画面用に比率を微調整 */
    }
}

.job-details-dl dt {
    width: 100%;
    color: #5A0000;
    padding-bottom: 0.8em;
    border-bottom: 1px solid #dedede; /* 線の太さを少しはっきり */
    font-size: 14px;
    font-weight: bold;       /* 項目名を太字にして見やすく */
}

.job-details-dl dd {
    width: 100%;
    color: #191919;
    padding-bottom: 0.8em;
    border-bottom: 1px solid #dedede;
    font-size: 14px;
    line-height: 1.6;        /* 行間を少し広げて読みやすく */
}

/* 完全なスマホ表示（画面幅767px以下）のときの縦並び切り替え */
@media screen and (max-width: 767px) {
    .job-details-dl {
        width: 100%;
        margin: 30px auto;
        grid-template-columns: 100%; /* スマホは1列にして縦並びにする */
        row-gap: 10px;       /* 縦並び時の隙間 */
        font-size: 13px;
        padding: 2em 1.5em;  /* 上下の無駄な大きな余白（4emなど）をカット */
    }
    .job-details-dl dt {
        border-bottom: none; /* スマホ時はdtの下線を消す */
        padding-bottom: 0;
    }
    .job-details-dl dd {
        padding-top: 0.2em;
        padding-bottom: 1em;
        border-bottom: 1px dashed #dedede; /* スマホ時はddの下に区切り点線を入れると綺麗 */
        margin-bottom: 0.8em;
        line-height: 1.5;
    }
    /* 最後の項目だけ下の点線を消すおまけ設定 */
    .job-details-dl dd:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* ===================================================
   求人詳細：全体を包む白いボックス（ラッパー）
   =================================================== */
.job-detail-wrapper {
    background: #fff;        /* ベースの白背景 */
    width: 95%;
    max-width: 1000px;       /* dlが綺麗に収まるように少し広げる */
    margin: 0 auto 60px;
    padding: 40px 40px;
    height: auto;            /* 💡高さを絶対に固定しない（文字量に合わせる） */
    box-sizing: border-box;
}

@media screen and (max-width: 1000px) {
    .job-detail-wrapper {
        width: 100%;
        padding: 20px 15px;  /* ❌ 0 だったのを適切な余白に変更！これで白背景が潰れません */
        background: #fff;
    }
}










    @media screen and (max-width: 599px) {
      .form-row {
        display: block;
        align-items: center;
        margin-bottom: 25px;
      }
      .contact-form {
        width: 95%;
        max-width: 800px;
        margin: 30px auto;
        padding: 0;
        background: #f5f5f5;
      }
      .form-row label {
        width: 180px;
        font-weight: 700;
        color: #5a0000;
        font-size: 14px;
        padding-right: 0.5em;
      }
      .form-row .inline-inputs {
        display: flex;
        gap: 8px;
        flex: 1;
        width: 100%;
        margin-top: 0.3em;
      }
      #inquiryForm{
        width: 90%;
        margin: auto;
        padding-top: 60px;
        padding-bottom: 60px;
      }
      
      .form-row input[type="email"],
      .form-row select,
      .form-row textarea {
        flex: 1;
        /* min-width: 200px; */
        min-width: 95%;
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        margin-top: 0.5em;
      }
      .form-row input[type="number"]{
        flex: 1;
        /* min-width: 200px; */
        min-width: 55%;
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
      }
      .form-row textarea {
        height: 180px;
        resize: none;
      }
      .required-mark {
        width: 4em;
        color: white;
        background-color: #e80000;
        padding: 0 6px 1px;
        margin-right: 1em;
        font-size: 0.4em;
        border-radius: 5px;
        text-align: center;
        display: inline-block;
    }
  }


  .view-more-btn{
    display: block;
    padding: 8px 30px;
    border-radius: 20px;
    border: 1px solid #222222;
    margin: 0 auto 20%;
    font-size: 12px;
    width: fit-content;
    text-align: center;
}