/* ====================================================================
   lot.css — ロットと納期の目安ページ
   base.css（.inner-hero / .section-cta）を前提に、明るいトーンのHERO、
   数字の見方、カテゴリの絞り込み、アイテムカードの一覧、条件の説明を定義。
   ==================================================================== */

/* HERO：flow / service と同じ明るいトーンに上書き */
body#lot .inner-hero__bg { opacity: 0.96; }
body#lot .inner-hero__overlay {
    background: linear-gradient(100deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.7) 42%, rgba(255,255,255,.25) 74%, rgba(255,255,255,0) 100%);
}
body#lot .inner-hero__eyebrow { color: var(--sky); }
body#lot .inner-hero__title { color: var(--ink); }
body#lot .inner-hero__lead { color: var(--ink-mute); }
body#lot .inner-hero__lead strong { font-weight: 700; }

.lot-section { padding: 72px 48px 40px; }
.lot-section--notes { padding-top: 40px; padding-bottom: 96px; }
.lot-inner { max-width: var(--container-max); margin: 0 auto; }

/* 数字の見方 */
.lot-guide {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 24px 28px;
    background: var(--cream);
    margin-bottom: 40px;
}
.lot-guide__title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin: 0;
}
.lot-guide__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px;
}
.lot-guide__list li { font-size: 0.8rem; line-height: 1.7; color: var(--ink-mute); }
.lot-guide__list strong { display: block; font-size: 0.84rem; color: var(--ink); margin-bottom: 2px; }

/* 絞り込み */
.lot-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lot-tab {
    font: inherit; font-size: 0.82rem; letter-spacing: 0.04em;
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    background: #fff; color: var(--ink-mute);
    border-radius: 999px; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.lot-tab:hover { border-color: var(--navy); color: var(--navy); }
.lot-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.lot-tab:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.lot-count { font-size: 0.78rem; color: var(--ink-faint); margin: 0 0 20px; }
.lot-count span { font-variant-numeric: tabular-nums; margin-right: 2px; }

/* カード一覧 */
.lot-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.lot-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 22px 20px 18px;
    display: flex; flex-direction: column;
}
.lot-card[hidden] { display: none; }
.lot-card__icon {
    width: 64px; height: 64px;
    color: var(--navy);
    margin-bottom: 14px;
}
.lot-card__icon svg {
    width: 100%; height: 100%;
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linejoin: round; stroke-linecap: round;
}
.lot-card__cat { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--sky); margin: 0 0 4px; }
.lot-card__name { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; line-height: 1.5; }
.lot-card__mat { font-size: 0.74rem; color: var(--ink-faint); margin: 0 0 16px; line-height: 1.6; }
.lot-card__spec {
    margin: auto 0 0; padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px;
}
.lot-card__spec div { min-width: 0; }
.lot-card__spec dt { font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 2px; }
.lot-card__spec dd {
    margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--ink);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lot-card__spec dd span { font-size: 0.72rem; font-weight: 500; margin-left: 1px; }

/* 条件の説明 */
.lot-h2 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: 700; color: var(--ink); margin: 0 0 28px; }
.lot-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.lot-note { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.lot-note + .lot-note { padding-left: 24px; border-left: 1px solid var(--line); }
.lot-note h3 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.lot-note p { font-size: 0.84rem; line-height: 1.85; color: var(--ink-mute); margin: 0; }
.lot-more { font-size: 0.84rem; color: var(--ink-mute); margin: 28px 0 0; }
.lot-more a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
    .lot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lot-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lot-note:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 900px) {
    .lot-section { padding: 48px 24px 32px; }
    .lot-section--notes { padding-bottom: 72px; }
    .lot-guide { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .lot-guide__list { grid-template-columns: 1fr; }
    .lot-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 14px; padding: 0 24px 4px; scrollbar-width: none; }
    .lot-tabs::-webkit-scrollbar { display: none; }
    .lot-tab { flex: 0 0 auto; padding: 7px 14px; }
    .lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lot-card { padding: 18px 14px 14px; }
    .lot-card__icon { width: 52px; height: 52px; }
    .lot-card__spec { grid-template-columns: 1fr; gap: 6px; }
    .lot-card__spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
    .lot-notes { grid-template-columns: 1fr; }
    .lot-note, .lot-note + .lot-note { padding: 20px 0; border-left: none; }
}
