/*
Theme Name:     Lightning-child
Description:    Lightningの子テーマ
Author:         mirai-todoke
Template:       lightning

(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/


/* =========================
   Lightningのh2の横棒を消す
========================= */

h2 {
	border-top: none !important;
	padding-top: 0 !important;
}

/* -----------------------------
        改行
----------------------------- */

.hidden {
        display: none;
}

.hidden.pcBlock {
        display: inline;
}

@media screen and (max-width: 640px) {
        .hidden.pcBlock {
                display: none;
        }

        .hidden.spBlock {
                display: inline;
        }
}


/* ------------------------------------
   PCは中央寄せ、スマホだけ左寄せ
------------------------------------ */

.mobile-left {
  text-align: center !important;
}

@media screen and (max-width: 640px) {
  .mobile-left {
    text-align: left !important;
  }
}

/* -----------------------------
        汎用
----------------------------- */

.clear {
    clear:both;
}

.floatL{
        float:left;
        margin: 0;
}

.floatR{
        float:right;
        margin: -15px 0 0 20px;
}

.center{
        text-align:center;
}

.right{
        text-align:right;
}

.left{
        text-align:left;
}

.underline {
    text-decoration:underline;
}

strong {
        font-weight:bold;
}

em {
        font-weight:bold;
}

.font-bold {
        font-weight:bold;
}

.font-normal {
        font-weight:normal;
}

.indent-1 {
        margin:0 0 0 1em;
        text-indent: -1em;
}

.indent1 {
        text-indent: 1em;
}

/* =========================
   消す
========================= */

@media only screen and (min-width: 641px) {
  .pc_off {
    display: none !important;
  }
}

@media only screen and (max-width: 640px) {
  .mobile_off {
    display: none !important;
  }
}

/* =========================
   box横並び
========================= */

.gazo_item {
	padding: 10px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	background: #fff;
}

figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
	margin:0;
	float: left;
}

figure.gazo-box2 {
	width: 49.5%;
}

figure.gazo-box3 {
	width: 32.8%;
}
	
figure.gazo-box4 {
	width: 24.0%;
}
	
figure.gazo-box5 {
	width: 18.0%;
}
	
figure.gazo-box6 {
	width: 15.0%;
}

@media only screen and (min-width: 769px) and (max-width: 959px) {

	figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
		margin:0;
		float: left;
	}

	figure.gazo-box2 {
		width: 49.5%;
	}

	figure.gazo-box3 {
	width: 32.8%;
	}

	figure.gazo-box4 {
		width: 48.8%;
	}

	figure.gazo-box5 {
		width: 18.0%;
	}

	figure.gazo-box6 {
		width: 24.0%;
	}
}

@media only screen and (min-width: 600px) and (max-width: 768px) {

	figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
		margin:0;
		float: left;
	}

	figure.gazo-box2 {
		width: 100%;
	}

	figure.gazo-box3 {
		width: 100%;
	}

	figure.gazo-box4 {
		width: 48.8%;
	}

	figure.gazo-box5 {
		width: 18.0%;
	}

	figure.gazo-box6 {
		width: 24.0%;
	}
}

@media only screen and (min-width: 480px) and (max-width: 599px) {

	figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
		margin:0;
		float: left;
	}

	figure.gazo-box2 {
		width: 100%;
	}

	figure.gazo-box3 {
		width: 100%;
	}

	figure.gazo-box4 {
		width: 48.8%;
	}

	figure.gazo-box5 {
		width: 18.0%;
	}

	figure.gazo-box6 {
		width: 24.0%;
	}
}

@media only screen and (min-width: 375px) and (max-width: 479px) {

	figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
		margin:0;
		float: left;
	}

	figure.gazo-box2 {
		width: 100%;
	}

	figure.gazo-box3 {
		width: 100%;
	}

	figure.gazo-box4 {
		width: 48.8%;
	}

	figure.gazo-box5 {
		width: 18.0%;
	}

	figure.gazo-box6 {
		width: 24.0%;
	}
}

@media only screen and (max-width: 374px) {

	figure.gazo-box2, figure.gazo-box3, figure.gazo-box4, figure.gazo-box5, figure.gazo-box6 {
		margin:0;
		float: left;
	}

	figure.gazo-box2 {
		width: 100%;
	}

	figure.gazo-box3 {
		width: 100%;
	}

	figure.gazo-box4 {
		width: 100%;
	}

	figure.gazo-box5 {
		width: 100%;
	}

	figure.gazo-box6 {
		width: 100%;
	}
}


/* =========================
   基本設定
========================= */

:root {
  --nim-orange: #f28c22;
  --nim-orange-dark: #d86f0f;
  --nim-green: #8cc63f;
  --nim-green-dark: #6fa722;
  --nim-green-soft: #f5fbef;
  --nim-border-green: #d8edc3;
  --nim-border-orange: #f0cfb5;
  --nim-text: #1f2933;
  --nim-muted: #5f6b76;
  --nim-soft-orange: #fff7ef;
}

/* Lightningのh2の横棒を消す */
h2 {
  border-top: none !important;
  padding-top: 0 !important;
}

/* 改行制御 */
.hidden {
  display: none;
}

.hidden.pcBlock {
  display: inline;
}

@media screen and (max-width: 640px) {
  .hidden.pcBlock {
    display: none;
  }

  .hidden.spBlock {
    display: inline;
  }
}

/* =========================
   Lightningページ見出し
========================= */

.entry-body h1{
  font-size:2em !important;
}

.page-header {
  background: linear-gradient(90deg, #7fbf32 0%, #9ccc4a 55%, #f3a536 100%) !important;
  border-bottom: none !important;
}

.page-header .page-header_pageTitle,
.page-header h1 {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.breadcrumb {
  margin-bottom: 28px;
}

/* =========================
   HOME
========================= */

.nim-home-hero,
.nim-home-section,
.nim-home-cta {
  max-width: 1100px;
}

.nim-home-hero {
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 55%, #f2faea 100%);
  border: 1px solid var(--nim-border-green);
  border-radius: 24px;
  margin: 48px auto 40px;
  padding: 64px 40px;
  box-shadow: 0 10px 24px rgba(111, 167, 34, 0.08);
}

.nim-home-hero-inner {
  max-width: 760px;
}

.nim-home-label,
.nim-home-section-label {
  margin: 0 0 10px;
  color: var(--nim-green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nim-home-hero h1 {
  margin: 0 0 20px;
  color: var(--nim-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.35;
  font-weight: 800;
}

.nim-home-lead {
  margin: 0 0 28px;
  color: #4b5b6a;
  font-size: 16px;
  line-height: 1.9;
}

.nim-home-buttons,
.nim-home-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nim-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

/* HOME上部のボタンはグリーン */
.nim-home-hero .nim-home-btn-main {
  background: var(--nim-green) !important;
  border: 1px solid var(--nim-green) !important;
  color: #fff !important;
}

.nim-home-hero .nim-home-btn-main:hover {
  background: var(--nim-green-dark) !important;
  border-color: var(--nim-green-dark) !important;
  color: #fff !important;
}

.nim-home-hero .nim-home-btn-sub {
  background: #fff !important;
  border: 1px solid var(--nim-green) !important;
  color: var(--nim-green-dark) !important;
}

.nim-home-hero .nim-home-btn-sub:hover {
  background: var(--nim-green-soft) !important;
  border-color: var(--nim-green-dark) !important;
  color: var(--nim-green-dark) !important;
}

/* HOMEセクション */
.nim-home-section {
  margin: 0 auto 52px;
  padding: 0 20px;
}

.nim-home-section-head {
  margin-bottom: 24px;
  text-align: center;
}

.nim-home-section-head h2 {
  margin: 0 0 10px;
  color: var(--nim-text);
  font-size: 28px;
  font-weight: 800;
}

.nim-home-section-head p {
  margin: 0;
  color: var(--nim-muted);
  line-height: 1.8;
}

/* =========================
   HOME：商品カテゴリをPCもスマホも横2枚にする
========================= */
/* HOMEカテゴリ */

.nim-home-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.nim-home-category-card {
  display: block;
  min-height: 190px;
  padding: 34px 30px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--nim-border-green);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(111, 167, 34, 0.06);
  transition: 0.2s ease;
  width: 100% !important;
  box-sizing: border-box;
}

.nim-home-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(111, 167, 34, 0.12);
}

.nim-home-category-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--nim-green-dark) !important;
  font-size: 13px;
  font-weight: 800;
}

.nim-home-category-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--nim-text);
  font-size: 22px;
  line-height: 1.5;
}

.nim-home-category-card strong::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 12px;
  background: var(--nim-green);
}

.nim-home-category-card em {
  display: block;
  color: var(--nim-muted);
  font-style: normal;
  line-height: 1.7;
}

/* HOMEおすすめ商品 */
.nim-home-pickup {
  margin-top: 56px;
}

.nim-home-pickup .nim-list-wrap {
  margin-top: 0;
}

.nim-home-pickup .nim-item-grid,
.nim-home-pickup .nim-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.nim-home-pickup .nim-item-card {
  background: #fff;
  border-color: var(--nim-border-green);
}

.nim-home-more {
  justify-content: center;
  margin-top: 28px;
}

/* HOME特徴カード */
.nim-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.nim-home-feature-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--nim-border-green);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(111, 167, 34, 0.06);
}

.nim-home-feature-card h3 {
  margin: 0 0 12px;
  color: var(--nim-text);
  font-size: 19px;
  font-weight: 800;
}

.nim-home-feature-card h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: var(--nim-green);
}

.nim-home-feature-card p {
  margin: 0;
  color: var(--nim-muted);
  line-height: 1.8;
}

/* HOME下部CTA */
.nim-home-cta {
  margin: 0 auto 64px;
  padding: 0 20px;
}

.nim-home-cta-inner {
  background: var(--nim-green-soft);
  border: 1px solid var(--nim-border-green);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
}

.nim-home-cta h2 {
  margin: 0 0 12px;
  color: var(--nim-text);
  font-size: 26px;
  font-weight: 800;
}

.nim-home-cta p {
  margin: 0 0 24px;
  color: var(--nim-muted);
  line-height: 1.8;
}

.nim-home-cta .nim-home-btn-main {
  background: var(--nim-green) !important;
  border: 1px solid var(--nim-green) !important;
  color: #fff !important;
}

.nim-home-cta .nim-home-btn-main:hover {
  background: var(--nim-green-dark) !important;
  border-color: var(--nim-green-dark) !important;
  color: #fff !important;
}

/* =========================
   商品カード
========================= */

.nim-item-card {
  border: 1px solid #ead7c7;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(50, 60, 70, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nim-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(50, 60, 70, 0.1);
}

.nim-item-body {
  padding: 20px 20px 22px;
}

.nim-item-title {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 19px;
  line-height: 1.45;
}

.nim-item-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 10px;
  background: var(--nim-green);
}

.nim-item-lead {
  margin-bottom: 16px;
  color: #52606d;
  font-size: 14px;
  line-height: 1.8;
}

.nim-badge {
  background: var(--nim-orange);
  color: #fff;
  font-weight: 800;
}

/* 価格 */
.nim-price {
  background: var(--nim-soft-orange);
  border: 1px solid var(--nim-border-orange);
  border-radius: 13px;
  padding: 12px 14px;
}

.nim-price-label {
  color: #6b7280;
}

.nim-price-value {
  color: var(--nim-orange-dark);
}

/* 商品ボタンはオレンジ */
.nim-btn-primary,
.nim-detail-contact,
.nim-search-actions button {
  background: var(--nim-orange) !important;
  border-color: var(--nim-orange) !important;
  color: #fff !important;
}

.nim-btn-primary:hover,
.nim-detail-contact:hover,
.nim-search-actions button:hover {
  background: var(--nim-orange-dark) !important;
  border-color: var(--nim-orange-dark) !important;
  color: #fff !important;
}

.nim-btn-outline {
  background: #fff !important;
  border: 1px solid var(--nim-orange) !important;
  color: var(--nim-orange-dark) !important;
}

.nim-btn-outline:hover {
  background: var(--nim-soft-orange) !important;
  color: var(--nim-orange-dark) !important;
}

/* =========================
   検索フォーム
========================= */

.nim-search-form {
  border: 1px solid #ead7c7;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(50, 60, 70, 0.06);
}

.nim-search-field label {
  color: var(--nim-text);
  font-weight: 800;
}

.nim-search-field input,
.nim-search-field select {
  border: 1px solid #d6dce1;
  border-radius: 10px;
}

.nim-search-field input:focus,
.nim-search-field select:focus {
  outline: none;
  border-color: var(--nim-green);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.18);
}

/* =========================
   商品詳細
========================= */

.nim-detail-header {
  background: linear-gradient(135deg, var(--nim-soft-orange) 0%, #ffffff 70%);
  border: 1px solid #ead7c7;
}

.nim-detail-label {
  color: var(--nim-orange-dark);
}

.nim-detail-section h2 {
  border-left-color: var(--nim-green);
}

.nim-detail-summary {
  border: 1px solid #ead7c7;
}

/* =========================
   タブレット
========================= */

@media (max-width: 900px) {
  .nim-home-pickup .nim-item-grid,
  .nim-home-pickup .nim-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .page-header {
    padding: 28px 16px !important;
  }

  .page-header .page-header_pageTitle,
  .page-header h1 {
    font-size: 25px !important;
    line-height: 1.4 !important;
    text-align: center;
  }

  .breadcrumb {
    padding: 8px 14px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* HOME */
  .nim-home-hero {
    margin: 22px 16px 32px !important;
    padding: 24px 16px !important;
    border-radius: 18px !important;
  }

  .nim-home-hero h1 {
    font-size: 23px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }

  .nim-home-label {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .nim-home-lead {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .nim-home-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px !important;
  }

  .nim-home-btn {
    width: 100%;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  .nim-home-section {
    padding: 0 14px;
    margin-bottom: 38px;
  }

  .nim-home-section-head {
    margin-bottom: 18px;
    text-align: center;
  }

  .nim-home-section-head h2 {
    font-size: 21px !important;
    line-height: 1.4 !important;
  }

  .nim-home-section-head p {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .nim-home-category-grid,
  .nim-home-feature-grid,
  .nim-home-pickup .nim-item-grid,
  .nim-home-pickup .nim-list-grid,
  .nim-home-pickup .nim-items,
  .nim-home-pickup .nim-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .nim-home-category-card {
    min-height: auto;
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .nim-home-category-card strong {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .nim-home-category-card em {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .nim-home-feature-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .nim-home-cta {
    padding: 0 14px;
    margin-bottom: 44px;
  }

  .nim-home-cta-inner {
    padding: 26px 18px !important;
    border-radius: 18px;
  }

  .nim-home-cta h2 {
    font-size: 19px !important;
    line-height: 1.55 !important;
  }

  .nim-home-cta p {
    font-size: 14px;
    line-height: 1.9;
  }

  /* 商品一覧 */
  .nim-list-wrap,
  .nim-search-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nim-item-grid,
  .nim-list-grid,
  .nim-items,
  .nim-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .nim-item-card {
    border-radius: 16px;
  }

  .nim-item-image img,
  .nim-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .nim-item-body {
    padding: 18px;
  }

  .nim-item-title {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .nim-item-lead {
    font-size: 13px !important;
    line-height: 1.8;
  }

  .nim-price {
    padding: 12px;
  }

  .nim-price-value {
    font-size: 20px;
  }

  .nim-item-actions,
  .nim-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nim-btn-primary,
  .nim-btn-outline {
    width: 100%;
    min-height: 44px !important;
    font-size: 14px !important;
    justify-content: center;
    text-align: center;
  }

  /* 検索 */
  .nim-search-form {
    margin: 0 14px 24px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .nim-search-grid,
  .nim-search-fields {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .nim-search-field label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .nim-search-field input,
  .nim-search-field select {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  .nim-search-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nim-search-actions button,
  .nim-search-actions a {
    width: 100%;
    min-height: 46px;
    text-align: center;
    justify-content: center;
  }

  /* 商品詳細 */
  .nim-detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nim-detail-header {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .nim-detail-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .nim-detail-main,
  .nim-detail-layout,
  .nim-detail-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .nim-detail-image,
  .nim-detail-summary {
    border-radius: 16px;
  }

  .nim-detail-image {
    padding: 12px;
  }

  .nim-detail-summary {
    padding: 18px;
  }

  .nim-detail-contact {
    width: 100%;
    min-height: 48px;
    text-align: center;
    justify-content: center;
  }

  .nim-detail-section {
    margin-top: 28px;
  }

  .nim-detail-section h2 {
    font-size: 20px;
    line-height: 1.5;
  }

  .nim-detail-section p,
  .nim-detail-section li,
  .nim-detail-spec,
  .nim-detail-spec table {
    font-size: 14px !important;
    line-height: 1.9 !important;
  }

  .nim-detail-spec table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .admin-bar .site-header {
    top: 0;
  }
}


/* =========================
   問い合わせページ：引き継ぎ商品情報
========================= */

.nim-contact-item-info {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 22px 24px;
  background: #f5fbef;
  border: 1px solid #d8edc3;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(111, 167, 34, 0.06);
}

.nim-contact-item-label {
  margin: 0 0 8px;
  color: #6fa722;
  font-size: 13px;
  font-weight: 800;
}

.nim-contact-item-name {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}

.nim-contact-item-code,
.nim-contact-item-note {
  margin: 0 0 8px;
  color: #5f6b76;
  font-size: 14px;
  line-height: 1.7;
}

.nim-contact-item-link {
  margin: 10px 0;
}

.nim-contact-item-link a {
  color: #6fa722;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nim-contact-item-info {
    margin: 0 14px 24px;
    padding: 18px;
    border-radius: 16px;
  }

  .nim-contact-item-name {
    font-size: 19px;
  }
}


/* =========================
   お問い合わせページ
========================= */

.nim-contact-intro {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 34px 32px;
  background: linear-gradient(135deg, #f5fbef 0%, #ffffff 72%);
  border: 1px solid #d8edc3;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(111, 167, 34, 0.08);
  text-align: center;
}

.nim-contact-intro-label {
  margin: 0 0 8px;
  color: #6fa722;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nim-contact-intro h2 {
  margin: 0 0 14px;
  color: #1f2933;
  font-size: 28px;
  font-weight: 800;
}

.nim-contact-intro p {
  margin: 0;
  color: #5f6b76;
  line-height: 1.9;
}

/* Contact Form 7 本体をカード化 */
.rels-contact-form {
  max-width: 860px;
  margin: 0 auto 64px;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(50, 60, 70, 0.08);
}

.rels-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.rels-form-field-full {
  grid-column: 1 / -1;
}

.rels-form-field label {
  display: block;
  margin-bottom: 8px;
  color: #1f2933;
  font-weight: 800;
}

.rels-required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  background: #f28c22;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
}

.rels-input,
.rels-select,
.rels-textarea,
.rels-contact-form input[type="text"],
.rels-contact-form input[type="email"],
.rels-contact-form input[type="tel"],
.rels-contact-form select,
.rels-contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d6dce1;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.rels-contact-form textarea,
.rels-textarea {
  min-height: 150px;
}

.rels-contact-form input:focus,
.rels-contact-form select:focus,
.rels-contact-form textarea:focus {
  outline: none;
  border-color: #8cc63f;
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.18);
}

.rels-form-consent {
  margin-top: 26px;
  padding: 18px 20px;
  background: #f5fbef;
  border: 1px solid #d8edc3;
  border-radius: 16px;
}

.rels-form-consent p {
  margin: 0 0 10px;
}

.rels-form-consent a {
  color: #6fa722;
  font-weight: 700;
  text-decoration: underline;
}

.rels-form-submit {
  margin-top: 26px;
  text-align: center;
}

.rels-submit,
.wpcf7-submit.rels-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 50px;
  padding: 0 30px;
  background: #8cc63f !important;
  border: 1px solid #8cc63f !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 800;
}

.rels-submit:hover,
.wpcf7-submit.rels-submit:hover {
  background: #6fa722 !important;
  border-color: #6fa722 !important;
  color: #fff !important;
}

/* =========================
   thanksページ
========================= */

.nim-thanks-box {
  max-width: 880px;
  margin: 0 auto 72px;
  padding: 48px 38px;
  background: linear-gradient(135deg, #f5fbef 0%, #ffffff 70%);
  border: 1px solid #d8edc3;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(111, 167, 34, 0.1);
  text-align: center;
}

.nim-thanks-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8cc63f;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}

.nim-thanks-label {
  margin: 0 0 8px;
  color: #6fa722;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nim-thanks-box h2 {
  margin: 0 0 22px;
  color: #1f2933;
  font-size: 30px;
  font-weight: 800;
}

.nim-thanks-box p {
  color: #4b5b6a;
  line-height: 1.9;
}

.nim-thanks-name {
  margin-top: 28px;
  font-weight: 800;
  color: #1f2933 !important;
}

.nim-thanks-note {
  margin-top: 34px;
  padding: 20px;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 16px;
  text-align: left;
}

.nim-thanks-note p {
  margin: 0;
  font-size: 14px;
}

.nim-thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.nim-thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  background: #8cc63f;
  border: 1px solid #8cc63f;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.nim-thanks-btn:hover {
  background: #6fa722;
  border-color: #6fa722;
  color: #fff;
}

.nim-thanks-btn-sub {
  background: #fff;
  color: #6fa722;
}

.nim-thanks-btn-sub:hover {
  background: #f5fbef;
  color: #6fa722;
}

@media (max-width: 768px) {
  .nim-contact-intro,
  .rels-contact-form,
  .nim-thanks-box {
    margin-left: 14px;
    margin-right: 14px;
    padding: 26px 18px;
    border-radius: 18px;
  }

  .nim-contact-intro h2,
  .nim-thanks-box h2 {
    font-size: 22px;
    line-height: 1.5;
  }

  .rels-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rels-submit,
  .wpcf7-submit.rels-submit {
    width: 100%;
  }

  .nim-thanks-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nim-thanks-btn {
    width: 100%;
  }
}


/* =========================
   カテゴリー別セクション表示
========================= */

.nim-category-sections {
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.nim-category-section {
  margin-bottom: 42px;
}

.nim-category-section-title {
  position: relative;
  padding: 14px 18px 7px;
  margin-bottom: 18px;
  border-radius: 10px;
  border-bottom: none !important;
}

.nim-category-section-title::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.nim-category-section-title h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}

.nim-category-sections-green .nim-category-section-title {
  background: linear-gradient(90deg, #7fbf32 0%, #9ccc4a 100%);
}

.nim-category-sections-orange .nim-category-section-title {
  background: linear-gradient(90deg, #f28c22 0%, #f7a33c 100%);
}

.nim-category-section-desc {
  margin: -6px 0 18px;
  color: #5f6b76;
  line-height: 1.8;
}

.nim-category-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nim-category-product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(50, 60, 70, 0.06);
  transition: 0.2s ease;
}

.nim-category-sections-orange .nim-category-product-card {
  border-color: #f0cfb5;
}

.nim-category-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(50, 60, 70, 0.1);
}

.nim-category-product-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  background: #f28c22;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.nim-category-product-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f7fafc;
  overflow: hidden;
}

.nim-category-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.nim-category-product-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-weight: 700;
}

.nim-category-product-body {
  padding: 16px;
}

.nim-category-product-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
}

.nim-category-product-body h3 a {
  color: #1f2933;
  text-decoration: none;
}

.nim-category-product-body h3 a:hover {
  color: #6fa722;
}

.nim-category-product-code {
  margin: 0 0 8px;
  color: #6fa722;
  font-size: 12px;
  font-weight: 700;
}

.nim-category-sections-orange .nim-category-product-code {
  color: #d86f0f;
}

.nim-category-product-lead {
  margin: 0 0 14px;
  color: #5f6b76;
  font-size: 13px;
  line-height: 1.7;
}

.nim-category-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nim-category-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: #8cc63f;
  border: 1px solid #8cc63f;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nim-category-product-btn:hover {
  background: #6fa722;
  border-color: #6fa722;
  color: #fff;
}

.nim-category-product-btn-sub {
  background: #fff;
  color: #6fa722;
}

.nim-category-product-btn-sub:hover {
  background: #f5fbef;
  color: #6fa722;
}

.nim-category-sections-orange .nim-category-product-btn {
  background: #f28c22;
  border-color: #f28c22;
}

.nim-category-sections-orange .nim-category-product-btn:hover {
  background: #d86f0f;
  border-color: #d86f0f;
}

.nim-category-sections-orange .nim-category-product-btn-sub {
  background: #fff;
  color: #d86f0f;
}

.nim-category-sections-orange .nim-category-product-btn-sub:hover {
  background: #fff7ef;
  color: #d86f0f;
}

@media (max-width: 900px) {
  .nim-category-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nim-category-sections {
    padding: 0 14px;
  }

  .nim-category-section {
    margin-bottom: 34px;
  }

  .nim-category-section-title {
    padding: 9px 13px;
  }

  .nim-category-section-title h2 {
    font-size: 17px;
  }

  .nim-category-section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nim-category-product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nim-category-product-btn {
    width: 100%;
    min-height: 42px;
  }
}


/* =========================
   カテゴリ別ページ：左ナビ付きレイアウト
========================= */

.nim-category-layout {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.nim-category-layout .nim-category-sections {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 左側カテゴリナビ */
.nim-category-nav {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(50, 60, 70, 0.06);
}

.nim-category-nav-orange {
  border-color: #f0cfb5;
}

.nim-category-nav-title {
  background: transparent !important;
  color: #1f2933 !important;
  padding: 0 0 10px !important;
  margin: 0 0 12px !important;
  border-bottom: 2px solid #8cc63f;
  border-radius: 0 !important;
  font-size: 15px;
  font-weight: 800;
}

.nim-category-nav-orange .nim-category-nav-title {
  background: #f28c22;
  border-bottom-color: #f28c22;
}

.nim-category-nav-title::before {
  content: "Category";
  display: block;
  margin-bottom: 3px;
  color: #6fa722;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nim-category-nav-orange .nim-category-nav-title::before {
  color: #d86f0f;
}

.nim-category-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nim-category-nav li {
  margin: 0 0 8px;
}

.nim-category-nav li:last-child {
  margin-bottom: 0;
}

.nim-category-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  background: #f5fbef;
  border: 1px solid #d8edc3;
  border-radius: 12px;
  color: #1f2933;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: 0.2s ease;
}

.nim-category-nav-orange a {
  background: #fff7ef;
  border-color: #f0cfb5;
}

.nim-category-nav a:hover {
  background: #8cc63f;
  border-color: #8cc63f;
  color: #fff;
}

.nim-category-nav-orange a:hover {
  background: #f28c22;
  border-color: #f28c22;
  color: #fff;
}

.nim-category-nav a em {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  color: #6fa722;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.nim-category-nav-orange a em {
  color: #d86f0f;
}

/* ジャンプ時に見出しがヘッダーに隠れないように */
.nim-category-section {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

/* タブレット・スマホ */
@media (max-width: 900px) {
  .nim-category-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nim-category-nav {
    position: static;
  }

  .nim-category-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nim-category-nav li {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .nim-category-layout {
    padding: 0 14px;
  }

  .nim-category-nav {
    padding: 14px;
    border-radius: 16px;
  }

  .nim-category-nav ul {
    grid-template-columns: 1fr;
  }

  .nim-category-nav a {
    min-height: 44px;
  }
}

/* =========================
   カテゴリ別ページ：レイアウト崩れ修正
========================= */

.entry-body .nim-category-layout,
.site-body .nim-category-layout,
.nim-category-layout {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 70px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 30px !important;
  align-items: start !important;
}

.nim-category-layout > .nim-category-nav {
  width: 100% !important;
  box-sizing: border-box !important;
}

.nim-category-layout > .nim-category-sections {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nim-category-layout .nim-category-section-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 280px)) !important;
  justify-content: start !important;
  gap: 18px !important;
}

.nim-category-layout .nim-category-product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 280px !important;
}

.nim-category-layout .nim-category-product-body h3,
.nim-category-layout .nim-category-product-lead,
.nim-category-layout .nim-category-product-code {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 900px) {
  .entry-body .nim-category-layout,
  .site-body .nim-category-layout,
  .nim-category-layout {
    width: calc(100% - 28px) !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .nim-category-nav {
    position: static !important;
  }

  .nim-category-nav ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .nim-category-nav li {
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  .entry-body .nim-category-layout,
  .site-body .nim-category-layout,
  .nim-category-layout {
    width: calc(100% - 28px) !important;
  }

  .nim-category-nav ul {
    grid-template-columns: 1fr !important;
  }

  .nim-category-layout .nim-category-section-grid {
    grid-template-columns: 1fr !important;
  }

  .nim-category-layout .nim-category-product-card {
    max-width: none !important;
  }
}

/* ===============================
   フッターメニュー調整
=============================== */

.site-footer .footerMenu,
.site-footer .footer-nav,
.site-footer .menu,
footer .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  padding: 14px 10px;
  margin: 0;
}

.site-footer .footerMenu li,
.site-footer .footer-nav li,
.site-footer .menu li,
footer .menu li {
  margin: 0;
  padding: 0 16px;
  line-height: 1.4;
  border-left: 1px solid #d6d6d6;
}

.site-footer .footerMenu li:first-child,
.site-footer .footer-nav li:first-child,
.site-footer .menu li:first-child,
footer .menu li:first-child {
  border-left: none;
}

.site-footer .footerMenu a,
.site-footer .footer-nav a,
.site-footer .menu a,
footer .menu a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .site-footer .footerMenu,
  .site-footer .footer-nav,
  .site-footer .menu,
  footer .menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 10px 12px 84px;
  }

  .site-footer .footerMenu li,
  .site-footer .footer-nav li,
  .site-footer .menu li,
  footer .menu li {
    padding: 8px 10px;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
  }

  .site-footer .footerMenu a,
  .site-footer .footer-nav a,
  .site-footer .menu a,
  footer .menu a {
    white-space: normal;
    font-size: 13px;
  }
}

