﻿/* 配色は現行LP(yLP-campaign.css)準拠:
   ピンク #eb7080 / ティール #009ba0 / クリーム #f4f1e2 / 赤 #e50012 / 紫(hover) #7b67a4 */
:root {
  --pink: #eb7080;
  --pink-dark: #d95a6b;
  --pink-soft: #f5e0e3;
  --teal: #009ba0;
  --teal-dark: #007e82;
  --teal-soft: #dceeed;
  --red: #e50012;
  --cream: #f4f1e2;
  --cream-light: #faf8f2;
  --card: #ffffff;
  --text: #303332;
  --muted: #77766f;
  --line: #d9d5c9;
  --hover: #7b67a4;
  --focus: #006f73;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --space-xs: clamp(0.375rem, 0.32rem + 0.2vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.42rem + 0.3vw, 0.75rem);
  --space-md: clamp(0.75rem, 0.62rem + 0.45vw, 1rem);
  --space-lg: clamp(1rem, 0.82rem + 0.65vw, 1.5rem);
  --page-inline: clamp(1rem, 2.5vw, 1.25rem);
  --content-max: 75rem;
  --inner-max: 72.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ヘッダー（現行LPと同じ構成: ロゴ+タイトル / フリーコール） */
.site-header {
  background: #fff;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 64px; width: auto; display: block; }
.brand-name { font-size: 20px; font-weight: bold; color: var(--pink); }
.brand-sub { font-size: 12px; color: var(--teal); font-weight: bold; }
.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 64px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  line-height: 1.25;
}
.contact-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.contact-phone {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #d95245;
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.contact-phone span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.contact-phone:hover { color: var(--pink-dark); }
.contact-phone:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact-hours { color: var(--muted); font-size: 10px; }
.menu-toggle { display: none; }

/* グローバルメニュー（yomipri.jp共通の7項目） */
.gnav {
  background: var(--teal);
}
.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  list-style: none;
  overflow-x: auto;
}
.gnav-inner li { flex: 1 1 auto; }
.gnav-inner a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  padding: 12px 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.gnav-inner li:first-child a { border-left: 1px solid rgba(255, 255, 255, 0.35); }
.gnav-inner a:hover { background: var(--teal-dark); }

/* カタログ操作 */
.page-title-bar {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-sm) var(--page-inline) 0;
}
.page-title-bar h1 {
  font-size: 22px;
  color: var(--text);
  border-left: 4px solid var(--pink);
  padding-left: var(--space-sm);
  letter-spacing: 0.06em;
}
.header-search {
  display: flex;
  align-items: center;
  width: min(42rem, 100%);
  min-height: clamp(2.75rem, 3.2vw, 3rem);
  margin-top: var(--space-xs);
  background: #fff;
  color: var(--muted);
  border: 1px solid #cfc8ba;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(62, 49, 43, 0.05);
}
.header-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 155, 160, 0.12);
}
.header-search svg {
  flex: 0 0 auto;
  margin-left: var(--space-md);
}
.header-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  padding: var(--space-sm);
  color: var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
}
.search-button {
  align-self: stretch;
  min-width: 5rem;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.search-button:hover { background: var(--teal-dark); }

.category-filter {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-sm) var(--page-inline) var(--space-xs);
  border-bottom: 1px solid rgba(217, 213, 201, 0.72);
}
.category-filter h2 {
  margin: 0 0 var(--space-xs);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.cat-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.cat-tabs-more {
  margin-top: var(--space-xs);
  padding: var(--space-xs);
  flex-wrap: wrap;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}
.cat-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  min-height: 2.25rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.cat-tab:hover {
  color: var(--pink-dark);
  border-color: #d9a9b0;
  background: #fffafa;
}
.cat-tab.active,
.cat-more-toggle.has-selection {
  color: #692a34;
  background: var(--pink-soft);
  border-color: var(--pink);
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(235, 112, 128, 0.18),
    0 2px 8px rgba(126, 54, 65, 0.08);
}
.cat-more-toggle span {
  display: inline-block;
  margin-left: var(--space-xs);
  transition: transform 160ms ease;
}
.cat-more-toggle.is-open span { transform: rotate(180deg); }
.cat-tab .cnt {
  margin-left: var(--space-xs);
  font-size: 11px;
  opacity: 0.75;
}

.active-filters {
  width: calc(100% - var(--page-inline) - var(--page-inline));
  max-width: var(--inner-max);
  margin: var(--space-xs) auto 0;
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid #d8d2c6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}
.active-filters-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.active-filter-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid #d9a9b0;
  border-radius: 999px;
  padding: var(--space-xs) var(--space-sm);
  background: #fff5f6;
  color: #7e3641;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.clear-filters {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 3px 1px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.results-toolbar {
  width: calc(100% - var(--page-inline) - var(--page-inline));
  max-width: var(--inner-max);
  min-height: 2.5rem;
  margin: var(--space-sm) auto 0;
  padding-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border-bottom: 1px solid rgba(217, 213, 201, 0.72);
}
.hit-count {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.35;
  white-space: nowrap;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}
.filter-toggle {
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: var(--space-xs) var(--space-sm);
  background: #fff;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter-toggle[aria-expanded="true"] { background: var(--teal-soft); }
.sort-control {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
#sortSelect {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--space-xs) var(--space-sm);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.sub-filter-panel {
  width: calc(100% - var(--page-inline) - var(--page-inline));
  max-width: var(--inner-max);
  margin: var(--space-xs) auto 0;
  padding: var(--space-xs);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}
.sub-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  min-height: 2.125rem;
  border: 1px solid var(--teal);
  border-radius: 9px;
  padding: var(--space-xs) var(--space-sm);
  background: #fff;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.chip:hover { background: #f5fbfa; }
.chip.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: #075f62;
  font-weight: 600;
}
.cat-tab:focus-visible,
.chip:focus-visible,
.card:focus-visible,
#sortSelect:focus-visible,
.menu-toggle:focus-visible,
.search-button:focus-visible,
.filter-toggle:focus-visible,
.active-filter-chip:focus-visible,
.clear-filters:focus-visible,
.order-btn:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.cat-tab:disabled,
.chip:disabled,
#sortSelect:disabled,
.filter-toggle:disabled,
.header-search input:disabled,
.search-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.catalog-status {
  position: relative;
  width: calc(100% - var(--page-inline) - var(--page-inline));
  max-width: var(--inner-max);
  min-height: 0;
  margin: var(--space-xs) auto 0;
  color: var(--muted);
  font-size: 12px;
}
.catalog-status:empty { display: none; }
.catalog-status.is-loading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: min(180px, 42vw);
  height: 2px;
  background: var(--teal);
  transform-origin: left;
  animation: loading-line 900ms ease-in-out infinite alternate;
}
.catalog-status.is-error { color: #9f3443; }
.retry-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 1px 2px;
}
.retry-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* グリッド */
.grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xs) var(--page-inline) var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-md);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 1px 0 rgba(48, 51, 50, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}
.card:hover {
  border-color: #d99ba5;
  box-shadow: 0 9px 24px rgba(65, 56, 50, 0.11);
  transform: translateY(-3px);
}
.card.is-revealing {
  animation: card-reveal 520ms var(--ease-out) both;
  animation-delay: calc(var(--reveal-index, 0) * 7ms);
}
.card.is-filtering {
  animation-name: card-filter-reveal;
  animation-duration: 320ms;
  animation-delay: calc(var(--reveal-index, 0) * 10ms);
}
.card img {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  display: block;
  background: #eee;
}
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 14px;
}

.load-sentinel { height: 1px; }

/* フッター（LP準拠: クリーム地に細ボーダー） */
.site-footer {
  background: var(--cream-light);
  border-top: 1px solid #cdcdcd;
  color: var(--text);
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  line-height: 2;
}

/* モーダル */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35, 36, 34, 0.58); }
.modal-panel {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1080px;
  margin: 3vh auto;
  background: var(--cream-light);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 7px;
  padding: 32px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(20, 22, 21, 0.26);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
}
.modal-body { display: flex; gap: 36px; flex-wrap: wrap; }
.modal-img { flex: 0 0 390px; }
.modal-img img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.modal-info { flex: 1 1 360px; min-width: 300px; }
.modal-no { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.modal-info h2 { font-size: 28px; margin-bottom: 16px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.modal-tags span {
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  color: var(--muted);
}
.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 16px 28px;
  border-radius: 5px;
}
.order-btn:hover { background: var(--pink-dark); }
.order-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

@keyframes loading-line {
  from { transform: scaleX(0.22); opacity: 0.45; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985) rotate(var(--reveal-angle, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes card-filter-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 48rem) {
  body { overflow-x: hidden; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-xs) var(--space-sm);
    padding: var(--space-xs) var(--page-inline);
  }
  .brand { min-width: 0; gap: var(--space-xs); }
  .brand-logo { height: clamp(2.25rem, 8vw, 2.75rem); }
  .brand-text { min-width: 0; }
  .brand-name {
    overflow: hidden;
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-sub { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: 2.5rem;
    border: 1px solid var(--teal);
    border-radius: 0.5rem;
    padding: var(--space-xs) var(--space-sm);
    background: #fff;
    color: var(--teal-dark);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-toggle-icon {
    display: flex;
    width: 1.125rem;
    height: 0.875rem;
    flex-direction: column;
    justify-content: space-between;
  }
  .menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 0.125rem;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(1) {
    transform: translateY(0.375rem) rotate(45deg);
  }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-0.375rem) rotate(-45deg);
  }
  .header-info {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    line-height: 1.2;
  }
  .contact-label { display: none; }
  .contact-phone {
    flex: 0 0 auto;
    gap: 0.25rem;
    font-size: clamp(0.9rem, 4vw, 1.05rem);
  }
  .contact-phone span { font-size: 0.5rem; }
  .contact-hours {
    min-width: 0;
    flex: 1 1 auto;
    font-size: clamp(0.55rem, 2.2vw, 0.65rem);
    line-height: 1.25;
    text-align: right;
  }

  .gnav { display: none; }
  .gnav.is-open { display: block; }
  .gnav-inner {
    display: grid;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: var(--space-xs);
    overflow: visible;
    background: rgba(255, 255, 255, 0.3);
  }
  .gnav-inner li { min-width: 0; }
  .gnav-inner a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: var(--space-sm);
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: normal;
  }
  .gnav-inner li:first-child a { border-left: 0; }

  .page-title-bar { padding-top: var(--space-sm); }
  .page-title-bar h1 { font-size: 1.125rem; }
  .header-search {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .header-search:focus-within {
    border-color: transparent;
    box-shadow: none;
  }
  .header-search svg {
    position: absolute;
    z-index: 1;
    top: 0.8125rem;
    left: var(--space-sm);
    margin: 0;
    pointer-events: none;
  }
  .header-search input {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #cfc8ba;
    border-radius: 0.5rem;
    padding: var(--space-xs) var(--space-sm) var(--space-xs) 2.5rem;
    background: #fff;
    font-size: 0.875rem;
  }
  .header-search input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 155, 160, 0.12);
  }
  .search-button {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    border-radius: 0.5rem;
  }

  .category-filter { padding-top: var(--space-sm); }
  .cat-tabs,
  .cat-tabs-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
    overflow: visible;
    scrollbar-width: none;
  }
  .cat-tabs::-webkit-scrollbar,
  .cat-tabs-more::-webkit-scrollbar { display: none; }
  .cat-tabs-more {
    margin-top: var(--space-xs);
    padding: var(--space-xs);
  }
  .cat-tab {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .active-filters {
    flex-wrap: wrap;
    padding: var(--space-xs);
  }
  .active-filters-label { width: 100%; }
  .clear-filters { margin-left: auto; }

  .results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-xs);
  }
  .hit-count {
    overflow: hidden;
    min-width: 0;
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .toolbar-right {
    flex: 0 0 auto;
    gap: var(--space-xs);
    margin-left: 0;
  }
  .filter-toggle {
    padding: var(--space-xs);
    font-size: 0.75rem;
  }
  .sort-control > span { display: none; }
  #sortSelect {
    max-width: 7rem;
    padding: var(--space-xs);
    font-size: 0.75rem;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }
  .card.is-revealing {
    animation-name: card-filter-reveal;
    animation-duration: 360ms;
  }

  .modal-panel {
    width: auto;
    max-height: 94vh;
    margin: 3vh var(--space-sm);
    padding: var(--space-md);
  }
  .modal-body { gap: var(--space-md); }
  .modal-img { flex: 1 1 100%; }
  .modal-info { flex: 1 1 100%; min-width: 0; }
  .modal-info h2 { font-size: 1.375rem; }
  .order-btn { padding: var(--space-sm) var(--space-md); font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card.is-revealing,
  .card.is-filtering { opacity: 1; transform: none; }
}
