* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f5f5f5;
  color: #1a1a1a;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.page {
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin-top: 20px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: #ccc;
}

.cell {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.store {
  display: flex;
  flex-direction: column;
}

.store-img-placeholder,
.detail-item-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-img-placeholder {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f0ec;
}

.store-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.store-body {
  padding: 14px 16px 18px;
}

.store-num,
.detail-item-num {
  color: #aaa;
  letter-spacing: 0.1em;
}

.store-num {
  margin-bottom: 2px;
  font-size: 10px;
}

.store-category,
.detail-item-category {
  color: #777;
  letter-spacing: 0.04em;
}

.store-category {
  margin-bottom: 3px;
  font-size: 10px;
}

.store-name {
  margin-bottom: 6px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.store-desc {
  color: #555;
  font-size: 10px;
  line-height: 1.7;
}

.center-card {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
}

.center-inner {
  width: 100%;
  padding: 28px 20px;
  border: 1.5px solid #1a1a1a;
  text-align: center;
}

.center-label {
  margin-bottom: 10px;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.center-title-ja {
  margin-bottom: 12px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.center-divider {
  width: 40px;
  height: 1px;
  margin: 10px auto;
  background: #1a1a1a;
}

.center-sub {
  color: #555;
  font-size: 10px;
  line-height: 1.8;
}

.center-brand {
  margin-top: 14px;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ph-coffee { background: linear-gradient(135deg, #c8a97e 0%, #8b6347 100%); }
.ph-bread { background: linear-gradient(135deg, #d4a56a 0%, #b8834a 100%); }
.ph-fruit { background: linear-gradient(135deg, #e89070 0%, #c46040 100%); }
.ph-burger { background: linear-gradient(135deg, #9cb580 0%, #6a9050 100%); }

.ph-icon {
  font-size: 40px;
  opacity: 0.75;
}

.detail-section {
  margin-top: 2px;
  background: #fff;
  border-top: 3px solid #1a1a1a;
}

.detail-section-title {
  padding: 32px 0 24px;
  border-bottom: 1px solid #e0e0e0;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}

.detail-section-title span {
  display: block;
  margin-bottom: 6px;
  color: #888;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.detail-item {
  display: flex;
  border-bottom: 1px solid #ebebeb;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item:nth-child(even) {
  flex-direction: row-reverse;
}

.detail-item-img {
  flex-shrink: 0;
  width: 34%;
  min-width: 260px;
  max-width: 360px;
  height: auto;
  min-height: 220px;
  font-size: 56px;
  overflow: hidden;
  background: #f3f0ec;
}

.detail-item-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.detail-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.detail-item-num {
  margin-bottom: 4px;
  font-size: 11px;
}

.detail-item-category {
  margin-bottom: 6px;
  font-size: 11px;
}

.detail-item-name {
  margin-bottom: 12px;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-item-desc {
  margin-bottom: 16px;
  color: #555;
  font-size: 12px;
  line-height: 1.9;
}

.detail-item-info {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 11px;
  line-height: 1.9;
}

.detail-item-info div {
  margin-bottom: 2px;
}

.detail-item-info dt {
  display: inline;
  margin-right: 4px;
  color: #999;
}

.detail-item-info dd {
  display: inline;
  margin: 0;
}

.detail-item-menu {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.menu-title {
  margin-bottom: 8px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 3px;
  border-bottom: 1px dotted #ddd;
  color: #444;
  font-size: 11px;
}

.menu-item-name {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item-price {
  flex-shrink: 0;
  color: #888;
  font-size: 10px;
  white-space: nowrap;
}

.menu-section-title {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 8px 0 4px;
  border-top: 1px solid #eee;
  color: #8b5e3c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  body {
    display: block;
    padding: 0;
  }

  .page {
    width: 100%;
    min-height: 0;
    margin-top: 0;
    box-shadow: none;
  }

  .store-img-placeholder {
    height: 175px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .center-card {
    grid-row: auto;
    grid-column: auto;
    order: -1;
  }

  .detail-item,
  .detail-item:nth-child(even) {
    flex-direction: column;
  }

  .detail-item-img {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 140px;
  }

  .detail-item-img img {
    min-height: 140px;
  }

  .detail-item-body {
    padding: 24px 20px;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }
}
