/* version 1.2 | last-modified 2026-07-22 */
/* day_result_new.css - 即日体入ページ(神奈川タトキ版)専用スタイル */
/* renewal.cssのCSS変数を前提とする。将来的にrenewal.cssへ統合予定 */

:root {
  --color-available: #cf5f94;
}

body.day-result-new {
  margin: 0;
  min-height: 100vh;
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-feature-settings: "palt";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.day-shell {
  min-height: 100vh;
  position: relative;
}

/* Banner slide (bxSlider, 旧サイトと同一仕様) */
.result_special {
  position: relative;
}

.bxslider_result_special {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bxslider_result_special li img {
  width: 100%;
  aspect-ratio: 430 / 179;
  display: block;
  object-fit: cover;
}

.result_special .bx-wrapper {
  margin: 0 !important;
  box-shadow: none;
  border: none;
  background: #fcf5ec !important;
}

.result_special .bx-viewport {
  left: 0 !important;
  top: 0 !important;
  border: none;
  background: #fcf5ec !important;
}

.result_special .bx-pager {
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fcf5ec !important;
  position: static !important;
}

.result_special .bx-pager-item {
  display: inline-block;
}

.result_special .bx-pager-link {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold) !important;
  background: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}

.result_special .bx-pager-link.active {
  border-color: var(--color-gold) !important;
  background: var(--color-gold) !important;
}

.result_special .bx-controls-direction a {
  display: none;
}

/* Today heading */
.day-today-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96) 0%, rgba(238, 232, 247, 0.78) 58%, rgba(251, 246, 238, 0.96) 100%);
}

.day-today-title {
  padding: 48px 20px 24px;
}

.day-today-title .section-label {
  margin-bottom: 0;
  color: var(--color-gold);
}

.day-today-title h2 {
  margin-top: 0;
  color: var(--color-ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
}

.day-today-title p {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 28px;
}

/* Area tabs */
.day-area-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 20px 20px;
}

.day-area-tab {
  height: 40px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

.day-area-tab[aria-current="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
}

/* Shop list */
.day-shop-list {
  display: grid;
  gap: 10px;
}

.day-shop-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 14px 20px;
  background: var(--color-paper);
}

.day-shop-image {
  display: block;
  width: 160px;
  height: 107px;
  overflow: hidden;
  border-radius: 4px;
}

.day-shop-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.day-shop-info {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.day-shop-name {
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.day-shop-station {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.day-shop-station svg {
  width: 12px;
  height: 14px;
  flex: 0 0 auto;
}

.day-shop-wage {
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-shop-wage-label {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.day-shop-wage-price {
  color: var(--color-gold);
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

/* Calendar */
.day-shop-calendar {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.day-calendar-dates,
.day-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-calendar-dates {
  height: 44px;
  border-top: 1px solid var(--color-border);
}

.day-calendar-dates > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.day-calendar-dates > div:first-child {
  border-left: none;
}

.day-calendar-dates .day-calendar-trigger {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-available);
  cursor: pointer;
}

.day-calendar-dates .day-calendar-trigger:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 2px;
}

.day-calendar-dates .day-unavailable {
  color: #2f3142;
  font-weight: 700;
}

.day-calendar-days {
  height: 24px;
}

.day-calendar-days > div {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-soft);
  border-left: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.day-calendar-days > div:first-child {
  border-left: none;
}

/* 日程カレンダーモーダル(Figma node 50:66 "modal Open / Mobile" 準拠) */
.day-calendar-dialog {
  width: min(calc(100% - 70px), 360px);
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #372937;
  overflow: visible;
}

.day-calendar-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.day-calendar-dialog::backdrop {
  background: rgba(48, 42, 57, 0.46);
}

.day-calendar-dialog-close {
  border: none;
  background: none;
  padding: 0;
  height: 48px;
  font-size: 30px;
  line-height: 48px;
  color: var(--color-paper);
  cursor: pointer;
}

.day-calendar-dialog-card {
  width: 100%;
  display: grid;
  gap: 20px;
  padding-bottom: 30px;
  border-radius: 8px;
  background: var(--color-paper);
  font-family: "Noto Sans JP", sans-serif;
}

.day-calendar-dialog-title {
  margin: 0;
  padding: 0;
  line-height: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  color: #2a2427;
}

.day-calendar-dialog-fields {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 20px 10px;
  padding: 0 20px;
}

.day-calendar-dialog-label {
  text-align: center;
  font-size: 16px;
  color: #372937;
}

.day-calendar-dialog-field {
  position: relative;
}

.day-calendar-dialog-value {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 48px;
  padding: 0 30px 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--color-paper)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%23b89a5d" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    no-repeat right 14px center;
  background-size: 10px 6px;
  font-size: 18px;
  color: #372937;
  cursor: pointer;
}

.day-calendar-dialog-value-text {
  flex: 1 0 0;
  text-align: left;
}

.day-calendar-dialog-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.day-calendar-dialog-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 28px;
  color: #372937;
  cursor: pointer;
}

.day-calendar-dialog-list li:last-child {
  border-bottom: none;
}

.day-calendar-dialog-list li:hover,
.day-calendar-dialog-list li:active {
  background: rgba(184, 154, 93, 0.1);
}

.day-calendar-dialog-mark {
  flex-shrink: 0;
}

.day-calendar-dialog-reserve {
  justify-self: center;
  width: 186px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(164deg, #e0c691 0%, #b89a5d 100%);
  box-shadow: 0 2px 1px rgba(184, 154, 93, 0.36);
  color: var(--color-paper);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.day-calendar-dialog-reserve:hover {
  background: var(--color-gold);
}

/* Area title / arealist title */
.day-area-title {
  margin: 0;
  padding: 0 20px;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 49px;
}

.day-area-title-icon {
  width: 16px;
  height: 21px;
  vertical-align: -3px;
}

.day-arealist-title {
  margin: 0 !important;
  padding: 0 20px !important;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

/* Narrow phones (iPhone SE 375px etc.) */
@media (max-width: 429px) {
  .day-today-title {
    padding: 40px 16px 20px;
  }

  .day-today-title h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .day-area-tabs {
    padding: 10px 16px 16px;
  }

  .day-arealist-title {
    padding: 0 16px !important;
  }

  .day-shop-card {
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 12px 16px;
  }

  .day-shop-image {
    width: 120px;
    height: 80px;
  }

  .day-shop-name {
    font-size: 16px;
    line-height: 22px;
  }

  .day-area-title {
    padding: 0 16px;
    font-size: 18px;
    line-height: 40px;
  }
}
