/**
 * S6 +新規モーダル (ボトムシート)
 * モバイル UI 標準パターン:下からスライドアップ
 */

.s6-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.s6-overlay.is-open {
  opacity: 1;
}

.s6-sheet {
  width: 100%;
  max-width: var(--mobile-max-width, 414px);
  background: var(--mobile-surface, #ffffff);
  border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.2s ease;
  touch-action: pan-y;
}

.s6-overlay.is-open .s6-sheet {
  transform: translateY(0);
}

/* スワイプ中の手動オフセット */
.s6-sheet.is-dragging {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .s6-overlay,
  .s6-sheet {
    transition: opacity 0.1s ease;
  }
  .s6-sheet {
    transform: none;
  }
}

/* スワイプダウン用のつまみ */
.s6-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  cursor: grab;
}

.s6-handle {
  width: 36px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.s6-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
}

.s6-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text, #2c2c2a);
  margin: 0;
}

.s6-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mobile-text-secondary, #5F5E5A);
  font-size: 18px;
  line-height: 1;
}

/* 選択肢 */
.s6-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.s6-option {
  background: var(--mobile-bg, #f9f9f7);
  border: 1px solid var(--mobile-border, #e8e7e2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s ease;
}

.s6-option:active {
  background: var(--mobile-accent-light, #E1F5EE);
}

.s6-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.s6-option-icon.is-report {
  background: #FAEEDA;
  color: #854F0B;
}

.s6-option-icon.is-task {
  background: #E1F5EE;
  color: #0F6E56;
}

.s6-option-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s6-option-text {
  flex: 1;
  min-width: 0;
}

.s6-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text, #2c2c2a);
}

.s6-option-desc {
  font-size: 12px;
  color: var(--mobile-text-secondary, #5F5E5A);
  margin-top: 2px;
}

.s6-cancel {
  width: 100%;
  background: none;
  border: 1px solid var(--mobile-border, #e8e7e2);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--mobile-text-secondary, #5F5E5A);
  cursor: pointer;
}
