/*
Theme Name: My Child Theme
Template: lightning
Author: あなたの名前
Version: 1.3
Description: 求人ページ＋CLS対策済み子テーマ（温かみのある明るめオレンジベージュ）
*/

/* ===== 全体設定 ===== */
body {
  background-color: #fff5ea !important;
  margin: 0;
  padding: 0;
}

/* フッターのコピーライト2行目非表示 */
.site-footer-copyright p:nth-child(2) {display:none !important;}

/* ページヘッダーやパンくず、タイトル類を非表示 */
.page-header,
#breadcrumb,
.page .entry-title,
.single-post .entry-title,
.entry-meta-item-author,
.entry-meta-item-updated,
.entry-meta-item-date,
.veu_relatedPosts.veu_contentAddSection {
  display: none !important;
}

/* スマホ時のロゴをきれいに調整 */
@media (max-width: 599px) {
    .site-header-logo img {
        height: 40px !important;
        width: auto !important;
    }
}

/* テーブルデザイン */
.is-style-stripes th { 
  text-align:left; 
  padding:0.5em 1em; 
  background:#f7dfbe; 
}
.is-style-stripes td { 
  padding:0.3em 1em; 
  background:#FFFFFF; 
}

/* 投稿タイトル */
.post .entry-title {
  text-align: center;
  padding: 1% 0%;
  background-color: #eba86c !important;
  font-size: 150%;
  color: white !important;
  font-weight: normal;
}

/* お問い合わせフォーム見出し */
.form-heading {
  text-align: center;
  width: 100%;
  background-color: #f5c58b;
  border-left: 1em solid #eba86c;
  border-right: 1em solid #eba86c;
  color: #ffffff;
  padding:1px 1em 10px 1em;
}

/* 必須・任意ラベル（柔らかい赤＆青・少し小さめ） */
.wpcf7-form .required,
.wpcf7-form .free {
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-size: 11px;
  line-height: 1.4;
  display: inline-block;
  vertical-align: middle;
}

/* 必須：やさしい赤ピンク */
.wpcf7-form .required {
  background-color: #f7b2b2; /* 柔らかい赤 */
  border: 1px solid #f09a9a;
}

/* 任意：やさしい空色 */
.wpcf7-form .free {
  background-color: #b4ddf9; /* 柔らかい青 */
  border: 1px solid #9bcff2;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  font-size: 20px!important;
  font-weight: bold;
  width:300px;
  padding: 13px;
  border-radius:30px;
  border: none;
  box-shadow: 0 5px 0 #eee;
  background: #eba86c;
  color: #fff;
  transition: 0.3s;
}
.wpcf7 input[type="submit"]:hover { background: #dc965f; }

span.wpcf7-spinner { display: none;}
.wpcf7-form p { margin-top: 0.5em; margin-bottom: 0em; }
.wpcf7 { background-color: #ffffff; border: 2px solid #f7dfbe; }
.wpcf7-not-valid-tip { color: #eba86c; }
.screen-reader-response { display: none;}

/* 求人ボックスのデザイン */
.job-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #f7dfbe;
  border-radius: 12px;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
}
.job-title {
  text-align: center;
  font-size: 1.8em;
  color: #eba86c;
  margin-bottom: 20px;
}
.job-summary {
  background: #fff6ee;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.03em;
  margin-bottom: 20px;
}
.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.job-table th {
  background: #f5c58b;
  color: #fff;
  padding: 10px;
  font-size: 1em;
}
.job-table td {
  background: #fff6ee;
  padding: 10px;
  border: 1px solid #f7dfbe;
}
.job-table td:first-child {
  width: 250px;
  font-weight: bold;
  vertical-align: top;
  word-break: break-word;
}
.job-table td:last-child {
  background-color: #ffffff;
  word-break: break-word;
}

/* 応募ボタン */
.job-button-wrap { text-align: center; margin-top: 30px; }
.job-button {
  background: #eba86c;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}
.job-button:hover { background: #dc965f; }

/* 広告枠 */
.ad-slot {
  text-align: center;
  width: 100%;
  min-height: 250px;
  background: #fff6ee;
}
@media (min-width: 768px) { .ad-slot { min-height: 280px; } }
@media (min-width: 1024px) { .ad-slot { min-height: 300px; } }

/* 画像のリサイズ */
body.single-post .wp-block-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}
@media (min-width: 768px) {
  body.single-post .wp-block-image img {
    width: 80%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
  }
}

/* ===== スマホ用調整 ===== */
@media screen and (max-width: 767px) {
  body,
  .site,
  .site-content,
  .job-post,
  .wpcf7,
  .wpcf7-form,
  .job-summary,
  .job-table,
  .job-button-wrap,
  .ad-slot,
  body.single-post .wp-block-image img {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box;
  }

  .job-table,
  .job-table tbody,
  .job-table tr,
  .job-table th,
  .job-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .job-table td:first-child { width: 100% !important; }

  .job-table td,
  .job-table th {
    padding: 4px 6px;
    font-size: 1.05em;
  }
}

/* 投稿ページの上下余白を無しにする */
.single-post .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* YARPP（関連記事）エリアの背景色と余白調整 */
.yarpp-related,
.yarpp-related-widget,
.yarpp-related-content {
    background-color: #ffffff !important;
    border-radius: 20px;
    padding: 20px 20px 20px 35px !important; /* ← 左だけ広げた（35px） */
    box-sizing: border-box;
}

/* YARPP の li 調整（黒丸が飛び出さない & 行間を広げる） */
.yarpp-related li,
.yarpp-related-widget li,
.yarpp-related-content li {
    list-style-position: inside !important;
    padding-left: 10px !important;      /* 黒丸とテキストの余白 */
    margin-bottom: 10px !important;     /* ← 行間（縦のスペース）を追加 */
}

/* YARPPのリスト間に薄い仕切り線を追加 */
.yarpp-related li,
.yarpp-related-widget li,
.yarpp-related-content li {
    list-style-position: inside !important;
    padding-left: 10px !important;       /* 黒丸と文字の余白 */
    margin-bottom: 10px !important;      /* 行間 */
    padding-bottom: 10px !important;     /* 線と文字の距離を確保 */
    border-bottom: 1px solid #e5e5e5;    /* ← 極薄のグレー線 */
}

/* 最後の項目だけは線を消す */
.yarpp-related li:last-child,
.yarpp-related-widget li:last-child,
.yarpp-related-content li:last-child {
    border-bottom: none !important;
}

/* ロゴ画像を確実に制限（ゲスト表示でも崩れないように強制） */
#site-header .site-header-logo a,
#site-header .site-header-logo span {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
}

#site-header .site-header-logo img {
  width: auto !important;
  max-width: 260px !important;   /* ←好みで調整 */
  height: auto !important;
  max-height: 70px !important;   /* ←好みで調整 */
  object-fit: contain;
  display: block;
}
