/* ひなたLink 運用アプリ（LIFF・PC向け）— 店主アプリと同じ色使いで、PCレイアウト */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #f4f6f8;
  color: #1a2b33;
  font-size: 15px;
  line-height: 1.6;
}

.app-header {
  background: #123a4d;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-subtitle {
  font-size: 13px;
  opacity: 0.85;
}

.status-card {
  max-width: 640px;
  margin: 32px auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(18, 58, 77, 0.12);
}

/* レイアウト: 左にタブナビ、右に本体（狭い画面では縦積み） */
.layout {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  align-items: flex-start;
}

.tab-nav {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 20px;
}

.tab-btn {
  text-align: left;
  background: #fff;
  color: #123a4d;
  border: 1px solid #d5dee3;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
}

.tab-btn.is-active {
  background: #123a4d;
  color: #fff;
  border-color: #123a4d;
}

.tab-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .layout {
    flex-direction: column;
  }
  .tab-nav {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    width: 100%;
  }
  .tab-main {
    width: 100%;
  }
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(18, 58, 77, 0.12);
}

.card h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #123a4d;
  border-left: 4px solid #e8873a;
  padding-left: 8px;
}

.card h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #123a4d;
}

.app-message {
  background: #eef4f2;
  border: 1px solid #2e6e63;
  color: #1d4a43;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.app-message.is-error {
  background: #fbeeee;
  border-color: #a83a32;
  color: #7c2a24;
}

/* テーブル */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th, .data-table td {
  border-bottom: 1px solid #d5dee3;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  background: #eef4f2;
  color: #123a4d;
  font-weight: 600;
}

.data-table td .sub-id {
  font-size: 12px;
  color: #5b7280;
}

/* フォーム */
input[type="text"], input[type="time"], textarea, select {
  font: inherit;
  font-size: 15px;
  padding: 9px 10px;
  border: 1px solid #c3ced4;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
  max-width: 480px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.shop-select {
  max-width: 360px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #46606e;
  margin: 6px 0 4px;
}

button {
  font: inherit;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #e8873a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  opacity: 0.5;
}

button.secondary {
  background: #2e6e63;
}

button.danger {
  background: #a83a32;
}

button.small {
  font-size: 13px;
  padding: 6px 12px;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.note {
  font-size: 13px;
  color: #5b7280;
  margin: 4px 0 10px;
}

/* トグルスイッチ */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #c3ced4;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + .slider {
  background: #2e6e63;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* 声掛け */
.prompt-slot {
  border-top: 1px solid #d5dee3;
  padding-top: 12px;
  margin-top: 12px;
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prompt-row input[type="time"] {
  width: 140px;
  margin-bottom: 0;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* 覚えたこと */
.memory-group {
  margin-bottom: 16px;
}

.memory-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.memory-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3eaee;
  padding: 6px 0;
}

.memory-date {
  flex: 0 0 auto;
  font-size: 12px;
  color: #5b7280;
}
