@charset "UTF-8";
/* ==========================================================
トップ
========================================================== */
@media screen and (min-width: 768px) {
.keni-main .keni-section.lp-section h1 {
    padding: 20px 56px 0;
    margin: 120px -40px 30px;
    text-align: center;
}
}

/* メリット */
.merits-list {
    display: block; 
    padding: 0; 
}

/* merit-item をブロック要素として中央配置する */
.merit-item {
    max-width: 260px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    /* imgとh3の横並びは維持 */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.merit-item img {
    margin-right: 10px;
    width: 32px;
    height: auto;
}

.merit-item h3.merit-title {
    margin: 0;
    color: #ff3a77;
    font-size: 2.4rem;
}

@media (max-width:480px) {
.lp-section.keni-section h1 {
    padding: 20px 0px 0;
}
.merit-item h3.merit-title {
    font-size: 2.2rem;
    padding: 4px 0;
}
}

/* ==========================================================
アイキャッチ画像
========================================================== */
.article-visual {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 1.4;
    vertical-align: bottom;
    overflow: hidden;
}

.article-visual img {
    width: 100%;
    height: 100%; /* 親要素の高さいっぱいに広げる */
    object-fit: cover; /* 縦横比を維持しつつ、はみ出る部分をトリミング */
    display: block;
}


/* 1. ラッパーを基準点にする */
.image-and-button-wrapper {
    position: relative; /* 子要素のボタンを絶対配置するための基準点 */
    display: block; /* ブロック要素にする */
    margin-bottom: 100px;
}

/* 2. ボタンを画像コンテナの下端の中央に配置 */
.image-link-button {
    /* 絶対配置でラッパーの領域から位置を指定 */
    position: absolute;
    /* 上端からの位置を、画像コンテナの高さ + ボタンの高さ半分で設定 */
    top: 100%; /* 画像の下端に合わせる */
    
    /* 垂直方向の調整: ボタンの高さの半分だけ上にずらすことで、ボタンの中心を画像の下端に合わせる */
    transform: translateY(-50%); 
    
    /* 水平方向の調整: 中央に配置 */
    left: 50%;
    transform: translate(-50%, -50%); /* X軸(-50%)で中央寄せ、Y軸(-50%)で中心合わせ */
    
    /* ボタンのスタイル (適宜調整してください) */
    padding: 8px 32px;
    background-color: #0098E8;
    color: white;
    text-decoration: none;
    z-index: 10; /* 画像より手前に表示されるように */
}
a.image-link-button:hover, 
a.image-link-button:active, 
a.image-link-button:focus {
    color: rgba(255, 255, 255,0.7)
}

#detail::before {
  content:'';
  display: block;
  padding-top: 120px;
  margin-top: -120px;
}


/* 3. キャプションの配置 */
.image-and-button-wrapper .caption_plow {
    position: absolute;
    top: 100%;
    right: 0;
}


@media (max-width:480px) {
.article-visual {
    aspect-ratio: 3 / 1.8;
}
.image-link-button {
    font-size: 1.4rem;
    padding: 8px 16px;        
}
.image-and-button-wrapper .caption_plow {
    top: 0;
    background: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    line-height: 1.0rem;
    margin: 4px;
    padding: 4px;
}
}

/* ==========================================================
募集要項
========================================================== */
/* レスポンシブ対応のコンテナ */
.responsive-table-container {
    width: 100%;
    overflow-x: auto; /* テーブルが画面幅を超えた場合スクロールバーを表示 */
}

/* ACFデータテーブルの基本スタイル */
.acf-data-table {
    width: 100%;
    border-collapse: collapse; /* 罫線を結合 */
    margin: 1em 0;
    font-size: 16px;
}

/* PC/タブレット表示 (769px以上) のスタイル */
.acf-data-table th, 
.acf-data-table td {
    padding: 10px;
    border: 1px solid #ccc; /* 罫線 */
    text-align: left;
}

.acf-data-table th.table-label {
    width: 30%; /* 項目名の列幅 */
    background-color: #f7f7f7;
    font-weight: bold;
}

/* --- スマートフォン表示 (768px以下) のレスポンシブ対応 --- */
@media  (max-width: 768px) {
    .acf-data-table {
        /* スマートフォンではテーブルを縦長のブロックとして扱う */
        border: none;
        width: 100%;
    }
    
    .acf-data-table tbody, 
    .acf-data-table tr, 
    .acf-data-table th, 
    .acf-data-table td {
        display: block; /* すべての要素をブロック要素にする */
        width: 100%;
    }
    
    .acf-data-table tr {
        margin-bottom: 15px; /* 行間にスペース */
        border: 1px solid #ddd;
        padding: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* カード形式に見せる影 */
    }

    /* 項目名（ラベル）のスタイル */
    .acf-data-table th.table-label {
        font-size: 14px;
        background-color: transparent;
        border: none;
        border-bottom: 1px solid #eee; /* 下線のみ残す */
        padding-bottom: 5px;
    }

    /* 値のスタイル */
    .acf-data-table td.table-value {
        text-align: left;
        border: none;
        padding-top: 5px;
    }
}

/* エントリーボタン  */
.lp-section .contact2-btn {
    margin-bottom: 80px;
}

/* 募集終了 */
.lp-section .closed {
    color: #000000;
    padding: 0px 16px 0;
}

@media (max-width:480px) {
.acf-data-table th.table-label {
    width: 100%; 
}
}

/* 投稿日・カテゴリー表示 */
.lp-section .entry_status {
    margin-top: 16px;
}

/* タグ表示 */
.lp-section .post-tag dl {
    margin: 0;
}
.lp-section .post-tag dt {
    display: none;
}
.lp-section .post-tag dd li {
    border-radius: 0;
    background: transparent;
    border: 1px solid #cccccc;
}