:root {
  --nim-main: #e87523;
  --nim-main-dark: #c85e14;
  --nim-soft: #fff4ea;
  --nim-border: #eadfd6;
  --nim-text: #222;
  --nim-muted: #666;
  --nim-bg: #fff;
  --nim-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nim-search-form,
.nim-list-wrap,
.nim-detail {
  box-sizing: border-box;
}

.nim-search-form * ,
.nim-list-wrap * ,
.nim-detail * {
  box-sizing: border-box;
}

.nim-search-form {
  background: #fff;
  border: 1px solid var(--nim-border);
  border-radius: 18px;
  padding: 20px;
  margin: 0 0 28px;
  box-shadow: var(--nim-shadow);
}

.nim-search-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 14px;
  align-items: start;
}

.nim-search-field label {
  display: block;
  height: 22px;
  line-height: 22px;
  margin: 0 0 8px;
  padding: 0;
  color: var(--nim-text);
  font-size: 14px;
  font-weight: 700;
}

.nim-search-field input,
.nim-search-field select {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  line-height: 1.4;
  box-sizing: border-box;
}

.nim-search-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 30px;
  margin: 0;
  white-space: nowrap;
}

.nim-search-actions button {
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--nim-main);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nim-search-actions button:hover {
  background: var(--nim-main-dark);
}

.nim-search-actions a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin: 0;
  color: var(--nim-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 640px) {
  .nim-search-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 0;
    white-space: normal;
  }

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

.nim-search-field {
  display: block !important;
}

.nim-search-field label {
  display: block !important;
  height: 22px !important;
  line-height: 22px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.nim-search-field input,
.nim-search-field select {
  height: 46px !important;
  min-height: 46px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.nim-search-actions {
  align-self: start !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  height: auto !important;
  margin: 0 !important;
  padding-top: 30px !important;
  white-space: nowrap !important;
}

.nim-search-actions button {
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.nim-search-actions a {
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

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

.nim-item-card {
  background: var(--nim-bg);
  border: 1px solid var(--nim-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--nim-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nim-item-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  color: #999;
  text-decoration: none;
  overflow: hidden;
}

.nim-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.nim-item-card:hover .nim-item-image img {
  transform: scale(1.03);
}

.nim-no-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa, #f1f1f1);
  color: #999;
  font-weight: 700;
}

.nim-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nim-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.nim-item-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nim-item-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.45;
}

.nim-item-title a {
  color: var(--nim-text);
  text-decoration: none;
}

.nim-item-title a:hover {
  color: var(--nim-main-dark);
}

.nim-item-lead {
  margin: 0 0 14px;
  color: var(--nim-muted);
  font-size: 14px;
  line-height: 1.75;
}

.nim-price {
  background: var(--nim-soft);
  border: 1px solid #f2d8c5;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

.nim-price-label {
  display: block;
  color: var(--nim-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.nim-price-value {
  display: block;
  color: var(--nim-main-dark);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.nim-price-note {
  display: block;
  color: var(--nim-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.nim-card-specs {
  margin: 0 0 16px;
  display: grid;
  gap: 7px;
}

.nim-card-specs div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  font-size: 13px;
}

.nim-card-specs dt {
  color: var(--nim-muted);
  font-weight: 700;
}

.nim-card-specs dd {
  margin: 0;
  color: var(--nim-text);
}

.nim-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.nim-btn-primary {
  background: var(--nim-main);
  color: #fff !important;
}

.nim-btn-primary:hover {
  background: var(--nim-main-dark);
}

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

.nim-btn-outline:hover {
  background: var(--nim-soft);
}

.nim-empty,
.nim-not-found {
  background: #fff;
  border: 1px solid var(--nim-border);
  border-radius: 14px;
  padding: 18px;
  color: var(--nim-muted);
}

.nim-detail {
  background: #fff;
}

.nim-detail-header {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--nim-soft), #fff);
  border: 1px solid var(--nim-border);
}

.nim-detail-label {
  margin: 0 0 8px;
  color: var(--nim-main-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
}


/* 商品詳細：商品名タイトルを小さくする */
body .entry-body .nim-detail .nim-detail-header .nim-detail-title,
body .nim-detail h1.nim-detail-title,
body .nim-detail .nim-detail-title {
  margin: 0;
  font-size: 1.6em !important;
  line-height: 1.45 !important;
  letter-spacing: 0.02em !important;
}

.nim-detail-catch {
  margin: 12px 0 0;
  color: var(--nim-muted);
  line-height: 1.8;
}

.nim-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.nim-detail-image {
  border: 1px solid var(--nim-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.nim-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.nim-detail-summary {
  border: 1px solid var(--nim-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--nim-shadow);
}

.nim-detail-points {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.nim-detail-points div,
.nim-spec-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.nim-detail-points dt,
.nim-spec-table dt {
  color: var(--nim-muted);
  font-weight: 700;
}

.nim-detail-points dd,
.nim-spec-table dd {
  margin: 0;
}

.nim-detail-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: var(--nim-main);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
}

.nim-detail-contact:hover {
  background: var(--nim-main-dark);
}

.nim-contact-note {
  margin: 10px 0 0;
  color: var(--nim-muted);
  font-size: 13px;
  line-height: 1.6;
}

.nim-detail-section {
  margin: 0 0 30px;
}

.nim-detail-section h2 {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--nim-main);
  font-size: 24px;
  line-height: 1.45;
}

.nim-spec-table {
  border-top: 1px solid #eee;
  margin: 0;
}

.nim-bottom-cta {
  margin-top: 34px;
  padding: 24px;
  border-radius: 20px;
  background: var(--nim-soft);
  border: 1px solid #f2d8c5;
  text-align: center;
}

.nim-bottom-cta p {
  margin: 0 0 14px;
  font-weight: 700;
}

.nim-bottom-cta .nim-detail-contact {
  max-width: 420px;
  margin: 0 auto;
}

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

  .nim-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nim-search-actions {
    grid-column: 1 / -1;
  }

  .nim-detail-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nim-search-form {
    padding: 16px;
    border-radius: 16px;
  }

  .nim-search-grid,
  .nim-item-grid {
    grid-template-columns: 1fr;
  }

  .nim-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nim-search-actions button,
  .nim-search-actions a {
    width: 100%;
    text-align: center;
  }

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

  .nim-card-actions {
    flex-direction: column;
  }

  .nim-btn {
    width: 100%;
  }

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

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

  .nim-detail-points div,
  .nim-spec-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nim-detail-section h2 {
    font-size: 21px;
  }
}

/* =========================
   商品詳細：複数画像ギャラリー
========================= */

.nim-detail-gallery {
  margin: 34px 0 36px;
}

.nim-detail-gallery h2 {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #8cc63f;
  color: #1f2933;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}

.nim-detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* 商品詳細：ギャラリー画像クリックでメイン画像を切り替える */
.nim-detail-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.nim-detail-gallery-item {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(50, 60, 70, 0.06);
  transition: 0.2s ease;
}

.nim-detail-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(50, 60, 70, 0.1);
}

.nim-detail-gallery-item.is-active {
  border-color: #8cc63f;
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

.nim-detail-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  display: block;
}

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

@media (max-width: 520px) {
  .nim-detail-gallery {
    margin: 28px 0;
  }

  .nim-detail-gallery h2 {
    font-size: 20px;
  }

  .nim-detail-gallery-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   カテゴリ別ページ：商品カードをPCで3列表示
========================= */

@media (min-width: 1024px) {
  .nim-category-layout .nim-category-section-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .nim-category-layout .nim-category-product-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nim-category-layout .nim-category-product-image {
    width: 100% !important;
  }
}

/* 商品カードの画像枠（白背景） */
.nim-category-product-image {
  display: block;
  background: #fff;
  padding: 12px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* 画像本体 */
.nim-category-product-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

/* タブレットは2列 */
@media (min-width: 700px) and (max-width: 1023px) {
  .nim-category-layout .nim-category-section-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* スマホは1列 */
@media (max-width: 699px) {
  .nim-category-layout .nim-category-section-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}


/* =========================
   スタッフ用 商品一覧表：上下スクロールバー色を統一
========================= */

/* 上の横スクロールバー */
.nim-staff-scroll-x-top {
  width: 100%;
  max-width: 100%;
  height: 18px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ecd8b7;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: #fffefb;
  box-sizing: border-box;

  /* Firefox用 */
  scrollbar-width: thin;
  scrollbar-color: #d9b178 #f6ead5;
}

.nim-staff-scroll-x-inner {
  height: 1px;
}

/* 表をスマホ幅に縮めさせない */
.nim-staff-table {
  width: 1200px !important;
  min-width: 1200px !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: separate;
  border-spacing: 0;
}

/* 下の表スクロール */
.nim-staff-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ecd8b7;
  border-radius: 0 0 18px 18px;
  background: #fffefb;

  /* Firefox用 */
  scrollbar-width: thin;
  scrollbar-color: #d9b178 #f6ead5;
}

/* Chrome / Edge / Safari：上下共通 */
.nim-staff-scroll-x-top::-webkit-scrollbar,
.nim-staff-table-scroll::-webkit-scrollbar {
  height: 12px !important;
}

.nim-staff-scroll-x-top::-webkit-scrollbar-track,
.nim-staff-table-scroll::-webkit-scrollbar-track {
  background: #f6ead5 !important;
  border-radius: 999px !important;
}

.nim-staff-scroll-x-top::-webkit-scrollbar-thumb,
.nim-staff-table-scroll::-webkit-scrollbar-thumb {
  background: #d9b178 !important;
  border-radius: 999px !important;
  border: 2px solid #f6ead5 !important;
}

.nim-staff-scroll-x-top::-webkit-scrollbar-thumb:hover,
.nim-staff-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #c99655 !important;
}

/* 上バーを付けるので、表本体の上角は丸めない */
.nim-staff-scroll-x-top + .nim-staff-table-scroll {
  border-radius: 0 0 18px 18px;
}
/* スマホ */
@media (max-width: 767px) {
  .nim-staff-table-wrap {
    margin: 24px 0;
    padding: 14px;
    border-radius: 18px;
    max-width: 100%;
    overflow: visible;
  }

  .nim-staff-table-head {
    margin-bottom:20px !important;
    padding: 16px;
    border-radius: 14px;
  }

  .nim-staff-table-head h2 {
    font-size: 22px;
  }

  .nim-staff-table-head p {
    font-size: 13px;
    line-height: 1.7;
  }

  .nim-staff-scroll-note {
    display: block;
    margin: 12px 0 10px;
    font-size: 12px;
  }

  .nim-staff-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .nim-staff-table {
    width: 1200px !important;
    min-width: 1200px !important;
    max-width: none !important;
    table-layout: auto !important;
    font-size: 13px;
  }


  /* 文字を縦に折り返させない */
  .nim-staff-table th,
  .nim-staff-table td {
    padding: 10px 12px;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
}

/* =========================
   スタッフ用 商品検索：あたたかいデザイン
========================= */

.nim-staff-search-box {
  max-width: 720px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f0d6b3;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf2 0%, #fff3df 100%);
  box-shadow: 0 10px 24px rgba(139, 89, 35, 0.10);
}

.nim-staff-search-head {
  margin-bottom: 12px;
}

.nim-staff-search-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.nim-staff-search-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2a23a 0%, #e87523 100%);
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(232, 117, 35, 0.25);
}

.nim-staff-search-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.nim-staff-search-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: rotate(45deg);
}

.nim-staff-search-title {
  margin: 0;
  color: #5b3b10;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.nim-staff-search-sub {
  margin: 0 !important;
  color: #8a6331 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.nim-staff-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nim-staff-search-input,
.nim-staff-search {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #e7c79a;
  border-radius: 14px;
  background: #fffdf8;
  color: #4a3218;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(120, 80, 30, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nim-staff-search-input::placeholder,
.nim-staff-search::placeholder {
  color: #a98b65;
  opacity: 1;
}

.nim-staff-search-input:focus,
.nim-staff-search:focus {
  outline: none;
  border-color: #e87523;
  background: #fffaf2;
  box-shadow:
    0 0 0 4px rgba(232, 117, 35, 0.16),
    inset 0 2px 4px rgba(120, 80, 30, 0.04);
}

.nim-staff-search-clear {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #df8a32;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0dc 0%, #ffd8aa 100%);
  color: #5a2f08;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(199, 105, 25, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nim-staff-search-clear:hover {
  background: linear-gradient(135deg, #ffe5c2 0%, #ffc884 100%);
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(199, 105, 25, 0.24);
}

.nim-staff-search-clear:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(199, 105, 25, 0.18);
}

/* スマホ */
@media (max-width: 767px) {
  .nim-staff-search-box {
    padding: 14px;
    border-radius: 16px;
  }

  .nim-staff-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nim-staff-search-input,
  .nim-staff-search {
    min-height: 46px;
    font-size: 14px;
  }

  .nim-staff-search-clear {
    width: 100%;
    min-height: 44px;
  }
}


/* =========================
   会社概要
========================= */

.nim-company-info {
  margin: 34px 0;
}

.nim-company-title {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 5px solid #8cc63f;
  color: #1f2933;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
}

.nim-company-card {
  max-width: 680px;
  background: #fff;
  border: 1px solid #d8edc3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(80, 100, 60, 0.08);
}

.nim-company-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid #edf5e5;
}

.nim-company-row:last-child {
  border-bottom: none;
}

.nim-company-label {
  padding: 14px 16px;
  background: #f8fff2;
  color: #4f7f1f;
  font-weight: 800;
}

.nim-company-value {
  padding: 14px 16px;
  color: #1f2933;
  font-weight: 600;
  line-height: 1.8;
}

.nim-company-value a {
  color: #1f7a1f;
  font-weight: 800;
  text-decoration: none;
}

.nim-company-value a:hover {
  text-decoration: underline;
}

.nim-company-note {
  max-width: 680px;
  margin: 12px 0 0;
  color: #666;
  line-height: 1.8;
}

.nim-company-note-small {
  color: #666;
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .nim-company-title {
    font-size: 21px;
  }

  .nim-company-row {
    grid-template-columns: 1fr;
  }

  .nim-company-label {
    padding: 10px 14px 4px;
    background: #fff;
  }

  .nim-company-value {
    padding: 4px 14px 12px;
  }
}



/* 商品一覧：並び替え */
.nim-item-sort-form {
  max-width: 960px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  background: #fffdf8;
  border: 1px solid #eadcc8;
  border-left: 5px solid #8cc63f;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(80, 60, 30, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nim-item-sort-form label {
  font-weight: 800;
  color: #2f4f1f;
}

.nim-item-sort-form select {
  min-width: 190px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #cfe8b8;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-weight: 700;
}

.nim-item-sort-form button {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: #8cc63f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.nim-item-sort-form button:hover {
  background: #79b52f;
}

/* 商品一覧ページネーション */
.nim-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.nim-pagination.is-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.nim-pagination.is-bottom {
  margin-top: 28px;
  margin-bottom: 8px;
}

.nim-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cfe8b8;
  border-radius: 999px;
  background: #fff;
  color: #4f8f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(80, 100, 60, 0.06);
}

.nim-pagination .page-numbers:hover {
  background: #f2faea;
  color: #2f6f10;
  border-color: #8cc63f;
}

.nim-pagination .page-numbers.current {
  background: #8cc63f;
  color: #fff;
  border-color: #8cc63f;
}

.nim-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #999;
}

@media (max-width: 640px) {
  .nim-item-sort-form {
    justify-content: stretch;
  }

  .nim-item-sort-form label,
  .nim-item-sort-form select,
  .nim-item-sort-form button {
    width: 100%;
  }

  .nim-pagination {
    gap: 5px;
  }

  .nim-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

.nim-item-sort-note {
  width: 100%;
  margin: 6px 0 0;
  padding: 10px 12px;
  background: #fff7e8;
  border: 1px solid #f0d4aa;
  border-radius: 10px;
  color: #6b4a1f;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
}

/* 会社概要：Googleマップ */
.nim-company-map-section {
  margin: 34px 0;
}

.nim-company-map-frame {
  max-width: 860px;
  border: 1px solid #d8edc3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(80, 100, 60, 0.08);
}

.nim-company-map-frame iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 640px) {
  .nim-company-map-frame iframe {
    height: 300px;
  }
}