html {
  font-family: "momochidori", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

:root {
  --producer-card-bg: linear-gradient(to bottom, rgb(229, 241, 249), rgb(206, 230, 254));
  --producer-section-title-size: 1.5rem;
}

#section-ja-osusume{
  scroll-margin-top: 80px;
  background: #fff;
}

.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../SVG/cloud_back_v3.svg?v=1.0.3);
  background-repeat: repeat-y;
  background-position: center;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

.container-top-title{
  width: calc(80% - 40px);
  min-width: 280px;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}


.producer-page__header {
  text-align: center;
}

h1,
.producer-page__title {
  text-align: center;
  font-size: 34px;
  padding-top: 40px;
  margin: 0 auto 10px;
}

.company-section,
.producer-page__intro {
  margin-bottom: 40px;
}

.product-list,
.producer-page__intro-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.container.producer-page,
.container.all-categories-page,
.container.all-portal-page,
.container.eat-guide-page,
 .producer-page  {
  width: calc(100% - 40px);
  margin: 0 auto;
  max-width: 480px;
  text-align: center;
}

.container.all-portal-page{
  margin-bottom: 40px;
}

.container.all-categories-page{
  margin-bottom: 60px;
}

.intro.review-guide__intro {
  font-size: 0.9em;
  line-height: 1.65em;
  margin-bottom: 20px;
}

.product-item,
.producer-page__hero,
.soba-section,
.producer-page__section,
.ja-section {
  background: var(--producer-card-bg);
  border-radius: 15px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2.5px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.producer-page__section--related {
  border: 2.5px solid #000;
}

.product-content,
.producer-page__hero-content {
  padding: 5px 0 10px;
}

.producters-image,
.producer-page__hero-media {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 10px;
}

.producters-image img,
.rice-bag {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.product-title, .producer-page__hero-caption, .section-title, .producer-page__section-title {
  margin: 0 0 14px;
  text-align: center;
  color: #000;
  font-size: 1.25em;
  line-height: 1.35em;
  width: fit-content;
  margin: 0 auto;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 10px;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
}

.margin-bottom-0 .product-title{
  margin-bottom: -40px;
}

title:after, .producer-page__hero-caption:after, .producer-page__section-title:after {
  content: "";
  display: block;
  width: 100%;
  height: 24px;
  margin-top: 0px;
  background-image: url(../img/wave_line.png?v=1.0.3);
  background-size: 24px;
  background-position: center;
  background-repeat: repeat-x;
}

.product-images,
.producer-page__featured-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.guidance-text {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.65em;
  word-break: auto-phrase;
}

/* レビュー投稿方法 まとめページ */
.review-guide-page-wrap .portal-section {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  margin-bottom: 20px;
  border: 2.5px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
.review-guide-page-wrap .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin: 0 0 0;
  padding-bottom: 0;
  border-bottom: 0 solid rgba(0, 0, 0, 0.08);
  transition: padding-bottom 0.25s ease, border-bottom-width 0.25s ease;
}
.review-guide-page-wrap .section-body {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s ease, visibility 0.2s ease, margin-top 0.3s ease;
}
.review-guide-page-wrap .portal-section h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
}
.review-guide-page-wrap .section-title .toggle-btn {
  margin-left: auto;
  width: 8em;
  padding: 6px 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: #a1d6d7;
  border: 0px solid #000;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font-family: "momochidori", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.review-guide-page-wrap .section-title .toggle-btn:hover {
  background: #d2e3fc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.review-guide-page-wrap .portal-section.is-open .section-title {
  padding-bottom: 12px;
  border-bottom-width: 1px;
}
.review-guide-page-wrap .portal-section.is-open .section-body {
  margin-top: 20px;
  max-height: 500px;
  visibility: visible;
}
.review-guide-page-wrap .portal-section .steps {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.portal-section .steps li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 1rem;
  line-height: 1.65em;
  color: #6e6e73;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
  text-align: justify;
}
.portal-section .steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e07d3a;
  opacity: 0.9;
}
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #c45c26 0%, #e07d3a 100%);
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.portal-btn.rakuten {
  background: linear-gradient(135deg, #bf0000 0%, #e60012 100%);
  box-shadow: 0 2px 8px rgba(191, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.rakuten {
  background: linear-gradient(135deg, #bf0000 0%, #e60012 100%);
  box-shadow: 0 2px 8px rgba(191, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.choice {
  background: linear-gradient(135deg, #c45c26 0%, #e07d3a 100%);
}
.portal-btn.furunavi {
  background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.satofull {
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.amazon {
  background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.3), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.ana {
  background: linear-gradient(135deg, #0066cc 0%, #0088dd 100%);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn.jal {
  background: linear-gradient(135deg, #9e0b0f 0%, #c41e3a 100%);
  box-shadow: 0 2px 8px rgba(158, 11, 15, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portal-btn .btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.portal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-bottom: 60px;
}

body[data-page='catalog-portal-links'] .portal-list > a.portal-button:nth-of-type(-n + 5) {
  grid-column: 1 / -1;
}

.portal-button {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  text-align: left;
  margin: 20px 0 0 0;
  cursor: pointer;
  outline: none;
  gap: 18px;
  position: relative;
  overflow: hidden;
  padding-inline: 0 !important;
  transition: box-shadow 0.1s, transform 0.1s;
}

.category-btn:first-of-type {
  margin-top: 0;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.portal-button img,
.portal-logo,
.portal-link-grid__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-links,
.portal-link-grid,
.modal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 15px;
}

/* カテゴリ一覧へのリンク */
.all-categories-page-link {
  width: 100%;
  height: 65px;
  background: #e7370e;
  border-radius: 12px;
  border: 2.5px #000 solid;
  position: relative;
  top: -0px;
}
a.all-categories-page-link__item {
  line-height: 65px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  display: block;
}

/* 先頭5リンクを1列表示（全幅）、6件目以降は2列のまま
   nth-of-type … div 内の改行がテキストノードになると nth-child がずれるため a の順だけで数える */
.portal-link-grid.portal-link-grid--top5-full > a.portal-link:nth-of-type(-n + 5) {
  grid-column: 1 / -1;
}

.portal-link,
.portal-link-grid__item,
.modal-link {
  display: block;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

/* プレースホルダー（href 空）: 高さ・余白を持たせずグリッド上も詰める */
a.portal-link[href=""] {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
}

/* JAページ・おすすめ枠のテキストポータルリンク（画像なし）: 通常・ホバー・アクティブ・フォーカス */
#section-ja-osusume a.portal-link:not([href=""]) {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  padding: 12px 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: #a1d6d7;
  border: 0px solid #000;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font-family: "momochidori", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#section-ja-osusume a.portal-link:not([href=""]):hover {
  background: rgba(132, 157, 168, 0.38);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 8px 10px rgba(0, 0, 0, 0.02);
}

#section-ja-osusume a.portal-link:not([href=""]):active {
  background: rgba(132, 157, 168, 0.38);
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 8px 10px rgba(0, 0, 0, 0.02);
}

#section-ja-osusume a.portal-link:not([href=""]):focus-visible {
  outline: 0px solid #000;
  outline-offset: 0px;
}

.producers-links {
  font-size: 0.9em;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  border: 2.5px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
  margin-bottom: 40px;
}

/* 関連リンク（portal-kanren-link）のみ 432×94.92 比率 */
.portal-links.portal-kanren-link {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.portal-links.portal-kanren-link a.portal-link.portal-link-grid__item {
  padding: 0;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 432 / 94.92;
  line-height: 0;
}
.portal-links.portal-kanren-link a.portal-link.portal-link-grid__item .portal-logo,
.portal-links.portal-kanren-link a.portal-link.portal-link-grid__item .portal-link-grid__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 0 80px;
  box-sizing: border-box;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  padding: 36px 24px 28px;
  border-radius: 16px;
  width: calc(100% - 40px);
  max-width: 480px;
  max-height: calc(100vh - 160px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  top: 0;
  animation: slideIn 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -88px;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  color: #aaa;
  z-index: 2;
  line-height: 0;
}

.modal-close img {
  display: block;
  width: 72px;
  height: 72px;
}

.modal-img {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 20px;
}

.modal-title {
  margin: 0 0 8px;
  text-align: center;
}

.modal-description {
  text-align: center;
  margin: 0 0 16px;
}

.modal-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.header-card,
.portal-section,
.modal-content {
  background: #fff;
  border-radius: 16px;
}

.portal-section {
  padding: 20px;
  margin-bottom: 16px;
}

.section-title .toggle-btn,
.portal-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.section-body {
  margin-top: 0;
}

.sub-categories {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-category-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 15px;
  border-radius: 8px;
}

.sub-category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sub-category-name {
  font-weight: 700;
  font-size: 1.1em;
    color: #333;
}

.sub-category-img {
  width: 100%;
  max-width: 345px;
  margin: 0 auto;
  display: block;
}

.header-card__title {
  font-size: 1.3em;
  letter-spacing: 0.09em;
  font-weight: 700;
  text-align: center;
  margin: 40px auto 20px;
}
.city-img,
.producer-page__municipality-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  margin: 0px auto 40px;
  display: block;
}
.header-card__description {
  font-size: 0.95em;
  width: calc(100% - 40px);
  max-width: 480px;
  text-align: justify;
  margin: 0px auto 20px;
  font-weight: 700;
}
.header-card__line {
  width: calc(100% - 40px);
  max-width: 480px;
  overflow: hidden;
  margin: 0 auto 40px;
}
.header-card__line img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* 共有ヘッダー: ハンバーガー + ドロワー（script.js が data-shared-header-card を挿入したときのみ） */
.header-card[data-shared-header-card] {
  position: relative;
}

.header-card__toolbar {
  position: absolute;
  top: -20px;
  right: 10px;
  z-index: 5;
}

.header-card--nav-open .header-card__toolbar {
  z-index: 1103;
}

.header-card__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-card__menu-toggle:hover {
  background: #f7f7f8;
}

/* 3本線（中央span + ::before/::after）→ aria-expanded 時に中央で交差して ✕ */
.header-card__menu-bars {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 1px;
  transition: background 0.25s ease;
}

.header-card__menu-bars::before,
.header-card__menu-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 1px;
  transform-origin: 50% 50%;
  top: 50%;
  margin-top: -1px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-card__menu-bars::before {
  transform: translateY(-7px);
}

.header-card__menu-bars::after {
  transform: translateY(7px);
}

.header-card__menu-toggle[aria-expanded='true'] .header-card__menu-bars {
  background: transparent;
}

.header-card__menu-toggle[aria-expanded='true'] .header-card__menu-bars::before {
  transform: translateY(0) rotate(45deg);
}

.header-card__menu-toggle[aria-expanded='true'] .header-card__menu-bars::after {
  transform: translateY(0) rotate(-45deg);
}

.header-card__nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1101;
  background: rgba(0, 0, 0, 0.38);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.header-card__drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1102;
  width: min(320px, 88vw);
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
  overflow: auto;
  box-sizing: border-box;
}

.header-card__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.header-card__drawer-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d1d1f;
}

.header-card__drawer-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #444;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-card__drawer-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.header-card__nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
}

.header-card__nav-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-card__nav-item--subhead {
  border-bottom: 0;
}

.header-card__nav-subhead-label {
  display: block;
  padding: 14px 18px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #86868b;
  letter-spacing: 0.08em;
}

.header-card__nav-link[aria-current="page"] {
  background: rgba(161, 214, 215, 0.35);
  border-left: 3px solid #7acbcd;
  padding-left: 15px;
}

.header-card__nav-link {
  display: block;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-card__nav-link:hover,
.header-card__nav-link:focus-visible {
  background: rgba(161, 214, 215, 0.25);
  outline: none;
}

body.shared-nav-open {
  overflow: hidden;
}


.footer {
  padding: 60px 20px 50px;
  margin-top: 40px;
  text-align: center;
  background-image: url(../img/footer_line.jpg?v=1.0.3);
  background-repeat: repeat-x;
  background-position: center;
  background-size: contain;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo{
  font-size: 1.3em;
  font-weight: bold;
  color: #000;
  line-height: 1.6;
  margin-bottom: 5px;
}
.footer-title {
  font-size: 0.8em;
  color: #666;
  line-height: 1.6;
}
.footer-info {
  font-size: 0.8em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
.footer-link {
    color: #000;
    text-decoration: none;
    margin: 10px 2px 0;
    font-size: 0.8em;
    font-weight: 700;
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 21px;
    border: 1.5px solid #000;
}

/* shared shell injected by assets/js/script.js */
.shared-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shared-site-header__logo {
  width: 72px;
  height: auto;
}

/* page-specific variables */
body[data-page="catalog-producers-andmerci"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(251, 243, 231), #fbe6ce);
}
body[data-page="catalog-producers-umui"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(244, 232, 214), #f3d4b0);
}
body[data-page="catalog-producers-furusato-aguri"],
body[data-page="catalog-producers-ginzansou-kitchen"],
body[data-page="catalog-producers-ja"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(229, 241, 249), rgb(206, 230, 254));
}
body[data-page="catalog-producers-kiyo-soba"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(239, 242, 255), rgb(207, 218, 253));
}
body[data-page="catalog-producers-sushiken"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(253, 241, 196), rgb(255, 225, 180));
}
body[data-page="catalog-producers-tsurukoubou-mori"] {
  --producer-card-bg: linear-gradient(to bottom, #f0fff0, rgb(213, 255, 219));
}
body[data-page="catalog-producers-ginzansou-kitchen"] {
  --producer-section-title-size: 16px;
}

@media (max-width: 680px) {
  .header-card__title {
    font-size: 1.2em;
}
  .city-img, .producer-page__municipality-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin: 0px auto 40px;
    display: block;
}
}
  .container,
  .producer-page {
    max-width: calc(100% - 50px);
    margin: 0 auto;
    padding: 0;
  }
  h1,
  .producer-page__title {
    font-size: 13px;
    padding-top: 5px;
  }
  .product-image,
  .producer-page__featured-image-wrap {
    text-align: center;
  }
  .portal-links,
  .portal-link-grid,
  .modal-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

.header-card__description {
  font-size: 0.85em;
  line-height: 1.65em;
  width: calc(100% - 40px);
  max-width: 480px;
  text-align: justify;
  margin: 0px auto 20px;
  font-weight: 700;
}
.shared-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shared-site-header__logo {
  width: 72px;
  height: auto;
}

/* page-specific variables */
body[data-page="catalog-producers-andmerci"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(251, 243, 231), #fbe6ce);
}
body[data-page="catalog-producers-umui"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(244, 232, 214), #f3d4b0);
}
body[data-page="catalog-producers-furusato-aguri"],
body[data-page="catalog-producers-ginzansou-kitchen"],
body[data-page="catalog-producers-ja"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(229, 241, 249), rgb(206, 230, 254));
}
body[data-page="catalog-producers-kiyo-soba"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(239, 242, 255), rgb(207, 218, 253));
}
body[data-page="catalog-producers-sushiken"] {
  --producer-card-bg: linear-gradient(to bottom, rgb(253, 241, 196), rgb(255, 225, 180));
}
body[data-page="catalog-producers-tsurukoubou-mori"] {
  --producer-card-bg: linear-gradient(to bottom, #f0fff0, rgb(213, 255, 219));
}
body[data-page="catalog-producers-ginzansou-kitchen"] {
  --producer-section-title-size: 16px;
}



@media (max-width: 680px) {
  .container-top-title{
    width: calc(100% - 40px);
  }
  .container,
  .producer-page {
    max-width: calc(100% - 50px);
    margin: 0 auto;
    padding: 0;
  }
  .producer-page__municipality-logo {
    width: 125px;
    height: 125px;
  }
  .header-card[data-shared-header-card] .city-img {
    width: min(220px, 78vw);
    height: auto;
    max-height: none;
    aspect-ratio: 1;
    margin: 0 auto 28px;
  }
  .header-card__title {
    font-size: 1.15em;
    margin: 24px auto 14px;
  }
  .header-card__description {
    width: calc(100% - 40px);
    font-size: 0.9em;
  }
  .header-card__line {
    width: calc(100% - 24px);
  }
  h1,
  .producer-page__title {
    font-size: clamp(1.125rem, 4vw, 1.75rem);
    padding-top: 16px;
    line-height: 1.35;
  }
  .review-guide-page-wrap h1.review-guide__page-title,
  .container h1.jigyousya__page-title {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 16px;
  }
  .portal-links,
  .portal-link-grid,
  .modal-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .modal-content {
    width: calc(100% - 32px);
    max-height: calc(100dvh - 120px);
    padding: 24px 16px 20px;
  }
  .modal-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }
  .modal-close {
    bottom: -76px;
  }
  .modal-close img {
    width: 64px;
    height: 64px;
  }
  .footer-logo img {
    width: 56px;
  }
  .shared-site-header__logo {
    width: 52px;
  }
  .product-item, .producer-page__hero, .soba-section, .producer-page__section, .ja-section {
    background: var(--producer-card-bg);
    border-radius: 15px;
    padding: 24px 20px;
    margin-bottom: 35px;
  }
  .footer-link {
    margin: 10px 2px 0;
    font-size: 0.75em;
    background-color: #fff;
    padding: 8px 10px;
    border-radius: 21px;
    border: 1.5px solid #000;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 620px) {
  .footer {
    height: 240px;
    box-sizing: border-box;
    padding: 40px 20px 36px;
    margin-top: 0px;
    text-align: center;
    background-image: url(../img/footer_line.jpg?v=1.0.3);
    background-repeat: repeat-x;
    background-position: center;
    background-size: cover;
  }
  .footer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}