/* =========================================================
   HQ Background: Layout
   key: gastro-item-single-01
   name: Gastro Item Single｜From the Kitchen
   group: partial
   type: layout
   layer: single
   ========================================================= */

/* =========================================================
   From the Kitchen｜Paper Menu Layout
   ========================================================= */

.p-gastro-item {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 10, 12, 0.62);
}

.p-gastro-item .p-post-header {
  margin-bottom: 20px;
}

.p-gastro-item .p-post-title {
  margin: 0;
  line-height: 1.5;
}

.p-gastro-item .p-post-subtitle {
  margin-top: 8px;
}

.p-gastro-item .p-post-price {
  margin-top: 14px;
}

.p-gastro-item .p-post-status {
  display: block;
  margin-top: 8px;
  margin-left: 0;
}

.p-gastro-item .p-post-thumbnail {
  margin: 0 0 24px;
}

.p-gastro-item .p-post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.p-gastro-item .p-post-content {
  min-width: 0;
}

.p-gastro-item .p-post-content > *:first-child {
  margin-top: 0;
}

.p-gastro-item .p-post-content > *:last-child {
  margin-bottom: 0;
}

.p-gastro-item .p-post-content img {
  max-width: 100%;
  height: auto;
}

.p-gastro-item .p-post-content iframe {
  width: 100%;
  max-width: 100%;
}

.p-gastro-item .p-post-content table {
  width: 100%;
  border-collapse: collapse;
}

.p-gastro-item .p-post-content ul,
.p-gastro-item .p-post-content ol {
  padding-left: 1.5em;
}

.p-gastro-item .p-post-content blockquote {
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   Price / Tax
   ========================================================= */

.p-gastro-item .p-post-price {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;

  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;

  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(255, 255, 255, 0.06);
}

.p-gastro-item .p-post-tax {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.5;
}

/* =========================================================
   Sold Out
   ========================================================= */

.p-gastro-item .p-post-status {
  display: inline-block;
  width: fit-content;

  font-size: 0.62rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.14em;

  padding: 3px 7px;

  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(200, 60, 60, 0.38);
  background: rgba(200, 60, 60, 0.12);
  opacity: 0.75;
  white-space: nowrap;

  text-shadow: 0 0 6px rgba(200, 60, 60, 0.18);
}

/* =========================================================
   PC｜写真小さめ・紙メニュー風
   ========================================================= */

@media (min-width: 961px) {
  .p-gastro-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    column-gap: 32px;
    row-gap: 8px;
    align-items: start;
  }

  .p-gastro-item > .p-post-thumbnail {
    grid-column: 1;
    grid-row: 1;
    width: 240px;
    max-width: 240px;
    min-width: 240px;
    margin: 0;
  }

  .p-gastro-item > .p-post-thumbnail img {
    display: block;
    width: 240px;
    max-width: 240px;
    height: auto;
  }

  .p-gastro-item > .p-post-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }

  .p-gastro-item > .p-post-header {
    grid-column: 2;
    grid-row: 1;
  }

  .p-gastro-item > .p-post-content {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 96px;
  }
}

/* =========================================================
   No Image
   ========================================================= */

.p-gastro-item.is-noimage {
  display: block;
}

.p-gastro-item.is-noimage .p-post-thumbnail {
  display: none;
}

/* =========================================================
   Gastro Item Pager
   ========================================================= */

.p-gastro-item-nav {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.p-gastro-item-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 68px;
  text-decoration: none;

  padding: 14px 16px;

  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 10, 12, 0.5);

  transition: 0.25s ease;
}

.p-gastro-item-nav__link:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(20, 16, 16, 0.65);
}

.p-gastro-item-nav__link--next {
  margin-left: auto;
  text-align: right;
}

.p-gastro-item-nav__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.p-gastro-item-nav__label {
  display: block;
}

.p-gastro-item-nav__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 0.9rem;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

.p-gastro-item-nav__link {
  color: rgba(255, 255, 255, 0.75);
}

.p-gastro-item-nav__label {
  color: rgba(255, 255, 255, 0.55);
}

.p-gastro-item-nav__title {
  color: rgba(255, 255, 255, 0.85);
}

.p-gastro-item-nav__thumb {
  width: 64px;
  min-width: 64px;
}

.p-gastro-item-nav__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767px) {
  .p-gastro-item {
    padding: 22px;
  }

  .p-gastro-item .p-post-thumbnail {
    margin-bottom: 24px;
  }

  .p-gastro-item-nav {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .p-gastro-item-nav__link {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    text-align: left;
  }

  .p-gastro-item-nav__link--next {
    margin-left: 0;
    text-align: left;
  }

  .p-gastro-item-nav__thumb {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
  }

  .p-gastro-item-nav__title {
    min-width: 0;
    word-break: break-word;
  }
}
