/*
Theme Name: Lightning Child Resilience
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

.catchphrase{
	margin-left:25px;
}
.table_resi {
  border-collapse: collapse;
  table-layout: fixed;
  width: 80% !important;
  max-width: 750px !important;
  text-align: center;
  margin: 0 auto;
}
.table_resi tr {
  background-color: #f9f9f9;
}
.table_resi tr:nth-child(even) {
  background-color: #fff;
}
.table_resi th, .table_resi td {
  border: 2px solid #efefef;
  padding: 1em;
}
.table_resi thead th {
  background-color: #6c757d;
  color: #fff;
  border: 2px solid #6c757d;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.table_resi thead th:last-of-type {
  border-right: 2px solid #4d9bc1;
}
.table_resi tbody th {
  color: #343a40;
  font-weight: bold;
  text-align: center;
}
@media screen and (max-width: 787px) {
  .table_resi {
    text-align: center;
  }
  .table_resi thead {
    display:none;
  }
  .table_resi th, .table_resi td {
    display: block;
    border: 0;
    border-bottom: 2px solid #e6f1f6;
  }
  .table_resi tbody th{
    background: #4d9bc1;
    color:#fff;
  }
  .table_resi td::before{
    content: attr(data-label);
    color: #4d9bc1;
    font-weight: bold;
    display: inline-block;
  }
}

/*薪販売　各樹種の特長テーブル*/
.table_firewood {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}
.firewood_percent_big{
	width:55%;
}
.firewood_percent_small{
	width:12%;
}
.firewood_Features{
	text-align:left;
}
.table_firewood th, .table_firewood td {
  border: 2px solid #d6e9c7;
  padding: 1em;
}
.table_firewood thead th {
  background-color: #4d8326;
  color: #fff;
  border: 2px solid #d6e9c7;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.table_firewood thead th:last-of-type {
  border-right: 2px solid #4d9bc1;
}
.table_firewood tbody th {
  color: #315319;
  font-weight: bold;
  text-align: center;
  background-color: #f5f5f5;
}
@media screen and (max-width: 787px) {
  .table_firewood {
    text-align: left;
  }
  .table_firewood thead {
    display:none;
  }
  .table_firewood th, .table_firewood td {
    display: block;
    border: 0;
    border-bottom: 2px solid #d6e9c7;
  }
  .table_firewood tbody th{
    background: #4d8326;
    color:#fff;
  }
  .table_firewood td::before{
    content: attr(data-label);
    color: #315319;
    font-weight: bold;
    display: inline-block;
    width: 20%;
    min-width: 4em;
  }
  .table_firewood td.firewood_Features::before{
	text-align:left;
    content: attr(data-label);
    color: #315319;
    font-weight: bold;
    display: inline-block;
    width: 100% !important;
    min-width: 4em;
  }
}

/*薪販売　商品バリエーションテーブル*/
.table_merchandise {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}
.merchandise_percent_big{
	width:25%;
}
.merchandise_percent_small{
	width:20%;
}
.table_merchandise th, .table_merchandise td {
  border: 2px solid #d2e8f1;
  padding: 1em;
}
.table_merchandise thead th {
  background-color: #2179bc;
  color: #fff;
  border: 2px solid #4d9bc1;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.table_merchandise thead th:last-of-type {
  border-right: 2px solid #4d9bc1;
}
.table_merchandise tbody th {
  color: #185889;
  font-weight: bold;
  text-align: center;
  background-color: #f5f5f5;
}
@media screen and (max-width: 787px) {
  .table_merchandise {
    text-align: left;
  }
  .table_merchandise thead {
    display:none;
  }
  .table_merchandise th, .table_merchandise td {
    display: block;
    border: 0;
    border-bottom: 2px solid #e6f1f6;
  }
  .table_merchandise tbody th{
    background: #2179bc;
    color:#fff;
  }
  .table_merchandise td::before{
    content: attr(data-label);
    color: #4d9bc1;
    font-weight: bold;
    display: inline-block;
    width: 20%;
    min-width: 4em;
  }
}

/* ===== 薪の消費量を減らすコツは？　Responsive Table ここから===== */
.table-wrap{
  width:100%;
  overflow-x:auto;           /* 画面が狭い時は横スクロール */
  -webkit-overflow-scrolling: touch;
}

.r-table{
  width:100%;
  border-collapse:collapse;
  min-width:560px;           /* PCでは列幅が潰れないように基準幅 */
  background:#fff;
  border:1px solid #ddd;
}
.r-table th,
.r-table td{
  padding:.6rem .8rem;
  border:1px solid #e6e6e6;
}
.r-table thead th{
  background:#f7f7f7;
  font-weight:700;
  text-align:center;
}
.r-table td[data-align="right"]{ text-align:right; }

/* --- スマホ：カード型に変形（見出しは data-label を表示） --- */
@media (max-width: 640px){
  .r-table{ min-width:0; border:0; }
  .r-table thead{ display:none; }          /* ヘッダを隠す */
  .r-table tbody tr{
    display:block;
    margin:0 0 .9rem;
    border:1px solid #e5e5e5;
    border-radius:12px;
    overflow:hidden;
  }
  .r-table tbody td{
    display:grid;
    grid-template-columns: 11em 1fr;       /* 左=見出し / 右=値 */
    gap:.4rem .6rem;
    border:0;
    border-bottom:1px solid #f0f0f0;
    padding:.7rem .9rem;
  }
  .r-table tbody td:last-child{ border-bottom:0; }
  .r-table tbody td::before{
    content: attr(data-label);
    font-weight:700;
    color:#333;
  }
  .table-wrap{ overflow-x:visible; }       /* カード化時は横スクロール不要 */
}
/* ===== 薪の消費量を減らすコツは？　Responsive Table ここまで===== */

/* ===== 天板・グリルでのクッキング ここから===== */
/* =========================================
   Theme tokens
========================================= */
:root{
  --bg:#ffffff; --fg:#1f2937; --muted:#6b7280;
  --border:#d1d5db; --headbg:#f3f4f6; --zebra:#fafafa;
  --shadow:0 6px 18px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1020; --fg:#e5e7eb; --muted:#9ca3af;
    --border:#2a3243; --headbg:#151b2e; --zebra:#0f1426;
    --shadow:0 6px 20px rgba(0,0,0,.35);
  }
}

/* =========================================
   Wrapper（PC：本文最大幅で100%・外枠なし）
========================================= */
.table-scroll{
  overflow:auto;                  /* 横スクロールのみ */
  margin:16px auto;
  max-width:1200px;               /* 本文最大幅に合わせる（必要なら調整） */
  padding:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,
    "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--fg);
}

/* =========================================
   Tables（共通：hotplate / grill）
========================================= */
.cooking-table{
  border-collapse:collapse;
  width:100%;                     /* 本文幅いっぱい */
  min-width:720px;                /* 列が潰れない基準幅 */
  line-height:1.6;
  font-size:15px;
  color:var(--fg);
}

.cooking-table thead th{
  position:sticky; top:0;         /* 見出し固定 */
  background:var(--headbg);
  color:var(--fg);
  text-align:left;
  font-weight:700;
  white-space:nowrap;
  border-bottom:1px solid var(--border);
  padding:12px 14px;
}

.cooking-table th,
.cooking-table td{
  border-bottom:1px solid var(--border);
  padding:12px 14px;
  vertical-align:top;
}

/* ゼブラ */
.cooking-table tbody tr:nth-child(odd){
  background:var(--zebra);
}

/* セル内段落の余白 */
.cooking-table td p{ margin:0 0 .5em; }

/* =========================================
   列幅：両表で縦線を揃える（<colgroup> と組み合わせ）
   ※ HTML側の <col class="col-..."> と一致させてください
========================================= */
.cooking-table col.col-classification{ width:12%; } /* 分類 */
.cooking-table col.col-tool{          width:18%; } /* 使う調理器具 */
.cooking-table col.col-method{        width:30%; } /* 料理方法 */
.cooking-table col.col-example{       width:20%; } /* 参考例 */
.cooking-table col.col-wood{          width:20%; } /* 推奨薪 */

/* =========================================
   PCのみ：「分類」「使う調理器具」を折り返さない（可変幅）
   ※ thead はすでに nowrap 指定済み。tbody の1列目/2列目を対象
========================================= */
@media (min-width:641px){
  .cooking-table tbody tr > *:nth-child(1),
  .cooking-table tbody tr > *:nth-child(2){
    white-space:nowrap;
  }
}

/* =========================================
   注記（表の下に置くテキスト用）
========================================= */
.table-note{
  font-size:13px;
  color:var(--muted);
  margin:6px 0 0;
}

/* =========================================
   Mobile (<=640px)：カード型に変換（崩れ対策込み）
========================================= */
@media (max-width:640px){
  /* 幅制限や内側余白を解除 */
  .table-scroll{
    max-width:none;
    padding:0;
  }

  /* colgroup の固定幅を無効化（スマホでの窮屈さ回避） */
  .cooking-table col{ width:auto !important; }

  .cooking-table{
    min-width:0;
    width:100%;
    border-collapse:separate;
    border-spacing:0 12px;        /* 行間に余白 */
    table-layout:auto;
  }

  .cooking-table thead{ display:none; }

  .cooking-table tbody tr{
    display:block;
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:var(--shadow);
    padding:10px 12px;
    overflow:hidden;              /* はみ出し防止 */
  }
  .cooking-table tbody tr + tr{ margin-top:2px; }

  /* ラベル列/内容列の比率を可変で安定させる */
  .cooking-table tbody th,
  .cooking-table tbody td{
    display:grid;
    grid-template-columns: minmax(6.5em, 40%) 1fr; /* 左：ラベル 右：内容 */
    gap:8px 10px;
    border:0;
    padding:8px 4px;
    white-space:normal;                 /* スマホでは自然改行に戻す */
    overflow-wrap:anywhere;             /* 長い語も折り返す */
    word-break:break-word;
  }
  .cooking-table tbody th{ font-weight:700; }

  /* 疑似ラベル（thead 非表示の代替） */
  .cooking-table tbody th::before{ content:"分類"; color:var(--muted); font-weight:600; }
  .cooking-table tbody td:nth-of-type(1)::before{ content:"使う調理器具"; color:var(--muted); }
  .cooking-table tbody td:nth-of-type(2)::before{ content:"料理方法"; color:var(--muted); }
  .cooking-table tbody td:nth-of-type(3)::before{ content:"参考例"; color:var(--muted); }
  .cooking-table tbody td:nth-of-type(4)::before{ content:"推奨薪"; color:var(--muted); }

  .cooking-table td{ line-height:1.55; }
}

/* ===== 天板・グリルでのクッキング ここまで===== */

/* inquiry 送信ボタン専用デザイン */
/* 問い合わせ送信ボタンの装飾 */
.inquiry {
  text-align: center;      /* ボタンとスピナーを中央寄せ */
  margin-top: 60px;        /* 上部余白 */
}

.inquiry input.wpcf7-submit {
  display: block;          
  margin: 0 auto;          /* 横中央 */
  width: 80%;              /* スマホでも常に80% */
  max-width: 600px;        /* PCでは広すぎないよう制限 */
  background-color: #2179bc; /* 基調色 */
  color: #fff;
  border: none;
  border-radius: 5px;      /* 角丸 */
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* 薄めの影 */
}

.inquiry input.wpcf7-submit:hover {
  background-color: #1a5f94;  /* ホバー時は少し濃い青 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.inquiry .wpcf7-spinner {
  display: block;          /* 横並びを解除 */
  margin: 10px auto 0;     /* ボタンの下に中央配置 */
}

/* 投稿ページのタイトル上にアイキャッチを表示 */
.post-eyecatch img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
