/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
}
a {
  color: rgb(255, 141, 240);
}
a.aname {
  top: -94px;
  position:relative;
  z-index: 100;
  font-size: 0;
}
dl {
  margin-block-start: 0 !important;  
  margin-block-end: 0 !important;
}

/* ベース */
body {
  font-family: sans-serif;
  line-height: 1.5em;
  background: url(./img/popbg30.png);
  background-size: cover;
  background-attachment: fixed;
}


/* ヘッダー */
header {
  background: #333;
  color: #fff;
  padding: 0 0 5px 0;
}
.header-login {
  position: absolute;
  top: 7px;
  right: 6px;
  background: #0099ff;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}
h1 {
  font-family: "Kaisei Opti", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  text-align: center;
  /* padding: 0 2em 0 0; */
}
h1 a {
  color: #fff;
  text-decoration: none;
}

/* メイン */
main {
  padding: 0 0;
}

/* フッター */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  margin: 150px 0 0 0;
}
footer p {
  padding: 8px;
}
footer p.copyright {
  font-size: smaller;
}
footer p.copyright a {
  color: #fff;
}
footer p img {
  display: inline-block;
  width: 100px;
}
footer ul {
  list-style-type: none;
  margin: auto;
}
footer ul li {
  list-style-type: none;
  display: inline-block;
  padding: 0 0.5em;
  font-size: x-small;
}
footer p a {
  color: #fb2;
}
footer ul li a {

}

/* 共通コンテナ */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 15px 10px;
}
main .container {
  padding: 30px;
}
.sub-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 30px;
}


/* グリッド */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}


/* カード */
.stack {
  width: 100%;
  max-width: 480px;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 0 0 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start; /* 上寄せ */
  align-content: flex-start;
}
.card {
  /* background: #f5f5f5; */
  background: #0000001d;
  position: relative;
  margin: 0 0 20px 0;
  padding: 0;
  width: 100%;

  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}
.card.small {
  width: calc((100% - 20px) / 3); /* ← gap考慮して正確に3分割 */
  margin-bottom: 30px;
}
.card.midashi {
  font-family: "Rampart One", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: transparent;
  font-size: xx-large;
  letter-spacing: -0.05em;
  white-space: nowrap;
  margin-left: -20px;
  margin-bottom: 10px;
  padding: 0 0 13px 0;
  padding: 0 0 18px 0;
  padding: 0 0 8px 0;
  color: #111;
  -webkit-text-stroke: 0.25px #111;
  box-shadow: none;
  background: url(./img/midashi_bg2.png) 0 -10px;

  text-shadow:
    1px 0 1px #fff,
   -1px 0 1px #fff,
    0 1px 1px #fff,
    0 -1px 1px #fff,
    1px 1px 1px #fff,
   -1px 1px 1px #fff,
    1px -1px 1px #fff,
   -1px -1px 1px #fff,

    2px 0 2px #fff,
   -2px 0 2px #fff,
    0 2px 2px #fff,
    0 -2px 2px #fff,
    2px 2px 2px #fff,
   -2px 2px 2px #fff,
    2px -2px 2px #fff,
   -2px -2px 2px #fff;
}
.card.exp {
  background: #0066ff5d;
  color: #fff;
  padding: 8px;
  margin: 0 0 10px 0;
  font-size: smaller;
  line-height: 1.5em;
  text-align: center;
}
.card.info {
  background: #c9108c7d;
  color: #fff;
  padding: 6px 8px;
  margin: 0 0 10px 0;
  font-size: smaller;
  line-height: 1.5em;

  text-shadow: 1px 1px 1px #0000005d;
  /*
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  */
}
.card.info a {
  /* color: rgb(139, 216, 240); */
  color: #fff;
  text-shadow: none;
}
.card.info p {
  clear: both;
  text-align: right;
}
/*
.card.info p a {
  margin: 0 0.3em;
  color: rgb(139, 216, 240);
  text-shadow: none;
}
*/
.card.info dl {
  /*
  margin-top: -1.5em;
  width: 40%;
  display: block;
  float: left;
  */
  margin: 0;
  column-count: 2;
  column-gap: 0px;
}
.card.info dl.na {
  column-count: auto;
}
/*
.card.info dl.column2 {
  margin-top: 0;
  border-left: 1px dashed #ffffff77;
}
*/
.card.info dl dt {
  break-inside: avoid;
  clear: both;
  font-weight: bold;
}
.card.info dl dd {
  break-inside: avoid;
  /*
  float: left;
  display: inline;
  clear: both;
  */
  margin: 0 0 0 1.0em;
}
/*
.card.info dl dd.onlyname {
  clear: none;
}
*/
.card.info dl dt a {
  color: rgb(139, 216, 240);
  text-shadow: none;
  font-size: x-small;
}
.card img {
  width: 100%;
  line-height: 0;
  margin: 0;
  min-height: 120px;
  background: #fff;
}
.card img:hover {
  opacity: 0.8;
}
.card,
.card img {
  border-radius: 6px;
}
.card.small,
.card.small img {
  border-radius: 4px;
}
span.label-text {
  position: absolute;
  left: 8px;
  background: rgba(68, 68, 68, 0.7); /* 座布団 */
  color: #fff;
  padding: 2px 8px;
  font-size: smaller;
  line-height: 1.5em;
  border-radius: 5px;
  text-align: center;
}
span.label-text-up {
  top: 8px;
  white-space: nowrap;
}
span.label-text-down {
  bottom: 8px;
  font-size: x-small;
}
/*
span.remaining {
  position: absolute;

  background: #666;
  color: #eee;

  top: 50%;
  transform: translateY(-50%);

  right: -10px;
  left: auto;
  padding: 0 0 0 1px;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  font-family: "Cabin", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
*/
span.remaining::before {
  content: attr(data-num);
  display: inline-block;
  min-width: 1.5em;      /* 幅を強制 */
  text-align: center;
  margin-top: -1px;
}
span.label-badge {
  position: absolute;
  display: block;
  top: -18px;
  right: -10px;
  font-size: 0;
  height: 80px;
  width: 80px;
  background-image: url(./img/badge_recom.png);
  background-size: 100%;
}
.card.small span.label-badge {
  height: 40px;
  width: 40px;
  top: -12px;
  right: -10px;
}
span.label-badge.badge_limited_time {
  background-image: url(./img/badge_limited_time.png?2);
}
span.label-badge.badge_price {
  background-image: url(./img/badge_price.png?2);
}
span.label-badge.badge_limited_amount {
  background-image: url(./img/badge_limited_amount.png?2);
}
span.label-badge.badge_healthy {
  background-image: url(./img/badge_healthy.png?2);
}
span.label-badge.badge_heavy {
  background-image: url(./img/badge_heavy.png?2);
}
span.label-badge.badge_domestic {
  background-image: url(./img/badge_domestic.png?2);
}
span.label-badge.badge_standard {
  background-image: url(./img/badge_standard.png?2);
}
span.label-badge.badge_popular {
  background-image: url(./img/badge_popular.png?2);
}
span.label-badge.badge_pride {
  background-image: url(./img/badge_pride.png?2);
}
span.label-badge.badge_non {
  background-image: url(./img/badge_non.png?2);
}
span.label-badge.badge_new {
  background-image: url(./img/badge_new.png?2);
}
span.label-badge.badge_low {
  background-image: url(./img/badge_low.png?2);
}
span.label-badge.badge_recom {
  background-image: url(./img/badge_recom.png?2);
}

.card.small span.label-text {
  font-size: 65%;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 4px;
  border-radius: 4px;
  
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  /*
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
  */
}
.card.small span.label-text-down {
  font-size: 50%;
  text-wrap: nowrap;
  top: auto;
  bottom: -14px;
}
.card.small img {
  min-height: 60px;
}

.back-to-top {
  position: fixed;
  right: 8px;
  bottom: 8px;
  width: 48px;
  height: 48px;
  background: #2c8bca8d;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9999;
  box-shadow: 3px 3px 2px 0px rgba(255, 255, 255, 0.35);
}
/*
.back-to-top:hover {
  opacity: 0.8;
}
*/
/* 修正 */
.category-menu {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #222;
  padding: 8px;

  display: flex;
  flex-wrap: wrap;        /* ← 折り返し */
  gap: 4px;
  overflow-x: visible;    /* ← 横スクロール禁止 */
}
.category-menu a {
  color: #fff;
  text-decoration: none;
  padding: 2px 4px;
  background: #555;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  transition: 0.2s;
}
.category-menu a.active {
  background: rgb(255 168 244);
  color: #000;
}

.midline {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  /* border-top: 1px dashed red; */
  pointer-events: none;
  z-index: 999;
}







body.static-page {
  background: #fff;
}
body.static-page main {

}
body.static-page main h2 {
  font-size: x-large;
  text-align: center;
  margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px dotted #222;
}
body.static-page main h3 {
  margin: 20px 0 10px 0;
}
body.static-page main p {
  font-family: serif;
  padding: 0 0 0 15px;
}









/* モバイル（デフォルト） */
@media (max-width: 768px) {
  body {
    background-size: auto;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stack {
    padding-top: 0;
    gap: 0 10px;
  }
  .container {
    padding-top: 10px;
    padding-bottom: 7px;
  }
  main .container {
    padding: 10px 15px 15px 15px;
  }
  .card.midashi {
    /*
    margin-left: -15px;
    padding-left: 5px;
    */
    padding-bottom: 15px;
    /* border-top: dotted 1px #ccc; */
    border-radius: 0;
    padding-top: 10px;
    margin-top: 10px;
    text-align: center;
    /*
    background: #ffffff5d;
    background: url(./img/midashi_bg1.png) repeat-x;
    background: url(./img/midashi_bg2.png) 0 0;
    */
    background: url(./img/midashi_bg_sp.png) center 0;
  }
  .card.exp {
    background: none;
    color: #333;
    padding: 0 8px;
    margin: 0 0 10px 0;
    font-size: x-small;
    line-height: 1.5em;
    box-shadow: none;
  }
  .card.exp a {
    color: #000;
  }
  .card.info {
    font-size: small;
  }
  .card.small {
    margin-top: 30px;
  }
  .card.small span.label-text {
    border-radius: 4px;
  }
}

/* タブレット */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    padding-left: 30px;
  }
  h1 {
    font-size: xx-large;
    text-align: left;
  }
  .card.small {
    margin-top: 18px;
  }
}

/* PC */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}