/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
/* ===== MVP UI minimal polish ===== */
:root {
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-sub: #f9fafb;
    --danger: #dc2626;
    --primary: #2563eb;
  }
  
  body {
    color: var(--text);
    background: var(--bg);
    margin: 0;
    line-height: 1.6;
  }
  
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
  }
  
  .header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .header__logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
  }
  
  .header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nav__link {
    text-decoration: none;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 8px;
  }
  
  .nav__link:hover {
    background: var(--bg-sub);
  }
  
  .nav__link--primary {
    color: var(--primary);
    border: 1px solid var(--border);
  }
  
  .nav__link--danger {
    color: var(--danger);
  }
  
  .flash {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 16px 0;
  }
  
  .flash--notice {
    background: #ecfdf5;
  }
  
  .flash--alert {
    background: #fef2f2;
  }
  .flash--error { background-color: #fdecea; color: #b02a37; }
  /* ===== Table ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
  }
  
  .table th,
  .table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
  }
  
  .table__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .table__stock.is-empty {
    color: #9ca3af;
  }
  
  /* ===== Buttons ===== */
  .btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
  }
  
  .btn:hover {
    background: #f3f4f6;
  }
  
  .btn--primary {
    background: #2563eb;
    color: white;
    border: none;
  }
  
  .btn--accent {
    background: #10b981;
    color: white;
    border: none;
  }
  
  .btn--danger {
    background: #dc2626;
    color: white;
    border: none;
  }
  
  .btn--small {
    font-size: 13px;
    padding: 5px 8px;
  }
  
  /* ===== Badge ===== */
  .badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
  }
  
  .badge--empty {
    background: #f3f4f6;
    color: #6b7280;
  }
  
  /* ===== Top actions ===== */
  .actions {
    margin: 12px 0;
  }
  .card {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0 18px;
  }
  
  .card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .label {
    font-size: 12px;
    color: #6b7280;
  }
  
  .value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
  }
  
  .value.is-empty {
    color: #9ca3af;
  }
  
  .section-title {
    margin-top: 18px;
    font-size: 18px;
  }
  
  .muted {
    color: #6b7280;
  }
  /* --- form ui --- */
.form {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0 18px;
    max-width: 640px;
  }
  
  .field {
    margin-bottom: 14px;
  }
  
  .field__label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
  }
  
  .field__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
  }
  
  .field__input:focus {
    outline: none;
    border-color: #9ca3af;
  }
  
  .field__datetime select {
    margin-right: 6px;
    margin-bottom: 6px;
  }
  
  .help {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
  }
  
  /* --- alerts --- */
  .alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
  }
  
  .alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
  }
  /* ===== Top page ===== */
.hero {
    padding: 28px 0;
  }
  
  .hero__title {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 10px;
  }
  
  .hero__lead {
    color: var(--muted);
    margin: 0 0 18px;
  }
  
  .hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }
  
  .feature {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: var(--bg);
  }
  
  .feature__title {
    font-weight: 700;
    margin: 0 0 6px;
  }
  
  .feature__text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  
  @media (max-width: 720px) {
    .features {
      grid-template-columns: 1fr;
    }
  }
/* --- LP --- */
.lp { padding: 28px 0; }
.lp__title { font-size: 32px; margin: 10px 0; }
.lp__lead { color: var(--muted); max-width: 680px; }
.lp__cta { margin: 18px 0 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.lp__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lp__card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg); }
.lp__card h2 { font-size: 16px; margin: 0 0 6px; }
.lp__card p { margin: 0; color: var(--muted); }

/* guideページ用 */
.guide {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.guide__hero {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 40px;
}

.guide__title {
  font-size: 32px;
  margin: 0 0 16px;
}

.guide__lead {
  margin: 0 0 12px;
  line-height: 1.8;
}

.guide__section {
  margin-bottom: 40px;
}

.guide__heading {
  font-size: 24px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e5e5;
}

.guide__steps {
  display: grid;
  gap: 20px;
}

.guide__card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  font-weight: bold;
  margin-bottom: 12px;
  background: #222;
  color: #fff;
}

.guide__card-title {
  font-size: 20px;
  margin: 0 0 12px;
}

.guide__text {
  margin: 0 0 12px;
  line-height: 1.8;
}

.guide__text--strong {
  font-weight: bold;
}

.guide__feature-box {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
}

.guide__list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .guide {
    padding: 24px 0 40px;
  }

  .guide__hero,
  .guide__card,
  .guide__feature-box {
    padding: 20px;
  }

  .guide__title {
    font-size: 28px;
  }

  .guide__heading {
    font-size: 22px;
  }

  .guide__card-title {
    font-size: 18px;
  }
}
.lp {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.lp__hero {
  text-align: center;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 48px 24px;
  margin-bottom: 56px;
}

.lp__label {
  font-size: 14px;
  margin: 0 0 12px;
  color: #666;
  letter-spacing: 0.04em;
}

.lp__title {
  font-size: 40px;
  line-height: 1.3;
  margin: 0 0 20px;
}

.lp__lead {
  font-size: 18px;
  line-height: 1.9;
  margin: 0 auto 12px;
  max-width: 640px;
}

.lp__sublead {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 760px;
  color: #444;
}

.lp__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn--guide {
  border: 1px solid #dcdcdc;
  background: #fff;
}

.lp__section {
  margin-bottom: 56px;
}

.lp__section-title {
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 24px;
  text-align: center;
}

.lp__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp__card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lp__card h3 {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.lp__card p {
  line-height: 1.8;
  margin: 0;
}

.lp__recommend {
  display: flex;
  justify-content: center;
}

.lp__recommend-box {
  width: 100%;
  max-width: 640px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
}

.lp__recommend-box p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.lp__recommend-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .lp {
    padding: 24px 0 40px;
  }

  .lp__hero {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .lp__title {
    font-size: 32px;
  }

  .lp__lead {
    font-size: 16px;
  }

  .lp__sublead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .lp__section {
    margin-bottom: 40px;
  }

  .lp__section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .lp__points {
    grid-template-columns: 1fr;
  }
}
.actions--top {
  margin-bottom: 16px;
}

.drink-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.drink-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.drink-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.drink-card__title {
  font-size: 22px;
  margin: 0;
  line-height: 1.5;
}

.drink-card__body {
  margin-bottom: 20px;
}

.drink-card__stock {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.drink-card__stock.is-empty {
  color: #b00020;
}

.drink-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge--active {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f7ec;
  color: #2e7d32;
  font-size: 12px;
  font-weight: bold;
}

.badge--empty {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdecec;
  color: #b00020;
  font-size: 12px;
  font-weight: bold;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fafafa;
}

.empty-state__title {
  font-size: 20px;
  margin: 0 0 8px;
}

.empty-state__text {
  margin: 0 0 16px;
  color: #666;
}

@media (max-width: 1024px) {
  .drink-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .drink-cards {
    grid-template-columns: 1fr;
  }

  .drink-card {
    padding: 20px;
  }

  .drink-card__title {
    font-size: 20px;
  }

  .drink-card__stock {
    font-size: 24px;
  }
}

.form--record {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
}

.record-tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.record-tip__title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
}

.record-tip__list {
  margin: 0;
  padding-left: 20px;
  color: #555;
}

.record-tip__list li {
  margin-bottom: 4px;
}

.actions--record {
  margin-top: 24px;
}

.field__datetime select {
  margin-right: 8px;
  margin-bottom: 8px;
}

.drink-detail {
  margin-top: 16px;
}

.drink-detail__header {
  margin-bottom: 16px;
}

.drink-detail__title {
  margin-bottom: 8px;
}

.drink-detail__card {
  padding: 24px;
  margin-bottom: 32px;
}

.drink-detail__stock-area {
  margin-bottom: 20px;
}

.drink-detail__stock {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
}

.drink-detail__stock.is-empty {
  color: #b00020;
}

.drink-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table__action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.log-list {
  display: grid;
  gap: 16px;
}

.log-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.log-card__main {
  flex: 1;
}

.log-card__title {
  font-size: 20px;
  margin: 0 0 4px;
}

.log-card__amount {
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}

.log-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .log-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .log-card__amount {
    font-size: 20px;
  }
}

.suggestion-card {
  margin: 20px 0 24px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.suggestion-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 20px 0 24px;
  padding: 20px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.suggestion-banner__content {
  flex: 1;
}

.suggestion-banner__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  color: #8a5a00;
}

.suggestion-banner__title {
  margin: 0 0 6px;
  font-size: 24px;
}

.suggestion-banner__text {
  margin: 0;
  color: #666;
}

.suggestion-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .suggestion-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .suggestion-banner__title {
    font-size: 22px;
  }
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.summary-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.summary-card__label {
  margin: 0 0 8px;
  color: #666;
  font-size: 14px;
  font-weight: bold;
}

.summary-card__value {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}

.dashboard-section {
  margin-top: 32px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-record-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-record-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-record-amount {
  cursor: pointer;
}

.quick-record-amount input {
  display: none;
}

.quick-record-amount span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.quick-record-amount input:checked + span {
  border-color: #333;
  font-weight: bold;
}

.weekly-chart {
  display: grid;
  gap: 12px;
}

.weekly-chart__row {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  align-items: center;
  gap: 12px;
}

.weekly-chart__label {
  color: #666;
  font-size: 14px;
}

.weekly-chart__bar-wrap {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f1f1;
}

.weekly-chart__bar {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: #8b5e3c;
}

.weekly-chart__value {
  text-align: right;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-section {
  margin-top: 32px;
}

.dashboard-section:first-child {
  margin-top: 0;
}

.section-title {
  margin: 0 0 16px;
  font-size: 22px;
}

.summary-cards {
  align-items: stretch;
}

.summary-card {
  min-height: 110px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-actions .btn {
  justify-content: center;
  text-align: center;
}

.weekly-chart {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .weekly-chart {
    padding: 16px;
  }

  .weekly-chart__row {
    grid-template-columns: 44px 1fr 56px;
    gap: 8px;
  }

  .weekly-chart__label,
  .weekly-chart__value {
    font-size: 13px;
  }
}

.search-box {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-box__fields {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
}

@media (max-width: 768px) {
  .search-box__fields {
    grid-template-columns: 1fr;
  }
}

.admin-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.admin-header p {
  color: #666;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-stat-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.admin-stat-number {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-menu-link {
  display: block;
  padding: 16px 20px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.admin-menu-link:hover {
  background: #eeeeee;
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

.admin-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #f7f7f7;
  font-weight: bold;
  color: #333;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-input {
  min-width: 280px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.admin-search-button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.admin-search-button:hover {
  background: #555;
}

.admin-search-reset {
  display: inline-block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.admin-search-reset:hover {
  text-decoration: underline;
}
