/*
Theme Name: My Child Theme
Template: lightning
Author: あなたの名前
Version: 1.0
Description: 求人ページ＋CLS対策済み子テーマ
*/

@import url("../lightning/style.css");

/* ===== 全体設定 ===== */
body {
  background-color: #fff5f5; /* 温かい薄い赤系の背景 */
  margin: 0;
  padding: 0;
}

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

/* ページヘッダーやパンくず、タイトル類を非表示 */
.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;
}

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

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

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

/* 必須・任意ラベル */
.wpcf7-form .required,
.wpcf7-form .free {
  color: white;
  padding: 3px 5px;
  border-radius: 3px;
  margin-left: 5px;
  font-size: 12px;
}
.wpcf7-form .required { background-color: #e57373; }
.wpcf7-form .free { background-color: #ef9a9a; }

/* 送信ボタン */
.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 #ddd;
  background: #e57373;
  transition: 0.3s;
}
.wpcf7 input[type="submit"]:hover { background: #d65a5a; }

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

/* 求人ボックスのデザイン */
.job-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #f8c9c9;
  border-radius: 12px;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
}
.job-title {
  text-align: center;
  font-size: 1.8em;
  color: #e57373;
  margin-bottom: 20px;
}
.job-summary {
  background: #fdeaea;
  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: #ef9a9a;
  color: #fff;
  padding: 10px;
  font-size: 1em;
}
.job-table td {
  background: #fdeaea;
  padding: 10px;
  border: 1px solid #f8c9c9;
}
.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: #e57373;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}
.job-button:hover { background: #d65a5a; }

/* 広告枠 */
.ad-slot {
  text-align: center;
  width: 100%;
  min-height: 250px;
  background: #fdeaea;
}
@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;
}
